# XWUIAutomationCenter

A Monday.com / Lark-style automation rule list. Each rule renders as a "When X then Y" sentence built from inline chip parts (trigger, condition, action) plus an on/off toggle, a run-count badge, a last-run timestamp, and duplicate/delete actions; an "Add automation" CTA and a category filter row (All / Active / Templates / Recipes) sit above the list. Rules come from `data.rules` with an optional `data.activeFilter`; `showFilters`/`showCounts`/`readOnly` tune the chrome, and `onToggle()`, `onPartClick()`, and `onAction()` surface interactions.

## Basic Usage

Two rules - an enabled "Notify on status change" (42 runs, last run 3h ago) and a disabled "Auto-archive done tasks" - each composed from literal text plus trigger and action chips.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: Two "when…then…" rules, one enabled with a run count and one off, showing the toggle and chip sentence.
```

## Filtered

Three rules tagged with `active`, `templates`, and `recipes` categories, with `activeFilter` set to `"templates"` so the filter row opens on the Templates tab.

```example
file: examples/Filtered.ts
html: examples/Filtered.html
title: Filtered
description: Three categorized rules with the filter row preset to the Templates tab and per-tab counts shown.
```

## Incident Response

A locked on-call escalation runbook rendered read-only so responders can scan but not edit the policy.

```example
file: examples/IncidentResponse.ts
html: examples/IncidentResponse.html
title: Incident Response
description: A read-only Sev1 escalation runbook with condition chips and high run counts; every toggle and action is disabled.
```

## CRM Recipes

Sales-ops pipeline recipes opened on the Recipes tab, mixing live and paused rules with condition chips on the higher-value ones.

```example
file: examples/CrmRecipes.ts
html: examples/CrmRecipes.html
title: CRM Recipes
description: Four CRM automations (lead round-robin, stale-deal nudge, closed-won celebration, billing sync) filtered to the Recipes tab.
```

```api
```
