# CreateSmartListDialog

## 2026-08-12 — Add a Tags condition (build a smart list from tags)

**Prompted by:** Hellen Tran (PO) — "a user can create a smart list for a tag"

### What changed
- New **Tags** field (a `TagInput`, pick-from-existing) above the numeric Conditions. A smart list
  now includes any contact carrying **any** selected tag (match ANY).
- A smart list can be built from **tags, conditions, or both** — Save is enabled when a name is set
  and there is at least one tag **or** a valid condition (previously a condition was mandatory).
- New props: `availableTags` (the broker's tag library, for autocomplete) and `initialTags`.
- `CreateSmartListPayload` gained `tags: string[]`.

### Why
- Tags are the broker's manual labels; letting a smart list segment on tags connects the two —
  Smart Lists stay, and tagging feeds directly into dynamic segments (and thus campaign targeting).

### Affected tokens / files
- `packages/shadcn/src/components/ui/create-smart-list-dialog.tsx`
