Skip to content

Trigger config redesign (phase 1): sentence builder + recipes#261

Merged
ANonABento merged 1 commit into
mainfrom
trigger-ux-redesign
Jun 9, 2026
Merged

Trigger config redesign (phase 1): sentence builder + recipes#261
ANonABento merged 1 commit into
mainfrom
trigger-ux-redesign

Conversation

@ANonABento

Copy link
Copy Markdown
Owner

Reimagines the column automation UI per .tickets/_docs/TRIGGER_UX_REDESIGN.md. Presentation-layer only — reads/writes the same ColumnTriggers JSON, no backend/pipeline change.

Before → after

Was: a 3-tab modal (General / Triggers / Exit) where the common case ("run Claude, advance when done") was buried behind a hidden "advanced editor" and split across two tabs with no visible link between the action and its exit criterion.

Now, one flowing modal:

  • Identity (name · icon · color).
  • Automation — a plain-language sentence: "When a task enters this column, [run an AI agent ▾] using [Claude ▾] [opus ▾] · then move it on when [the agent finishes ▾]." Each token is an inline dropdown. Led by a one-click recipe gallery (⚡ Code it · 👀 Review+approve · 🧪 Run tests · 🔀 Open PR · ▫ Manual). Picking a real exit condition implies auto-advance; "manually" doesn't.
  • Advanced (collapsed) reuses the existing full editors verbatim (on-entry/on-exit ActionEditor, exit details, capacity) — nothing lost; power users open one expander.
  • A plain-language summary chip in the footer.

New column-recipes.ts + column-automation-sentence.tsx; +7 tests. tsc · lint · vitest (419) green.

Known phase-1 scope

  • Non-agent actions (run_script / create_pr) expose their sub-config (script name, base branch) under Advanced, not inline in the sentence — so the "Run tests" recipe needs a script picked under Advanced before save.
  • The old column-trigger-editor (NL-generate box) is now unused by the dialog; removed in phase 2.

Phase 2 = cleanups (unify model vocab to opus/sonnet/haiku, de-jargon Terminal/Managed, drop dead surface). Phase 3 = on-card chip + zero-config defaults.

…n phase 1)

Reimagines the column automation UI per .tickets/_docs/TRIGGER_UX_REDESIGN.md.
Presentation-layer only — reads/writes the same ColumnTriggers JSON; no backend
or pipeline change.

Replaces the 3-tab form (General / Triggers / Exit, with the common case buried
behind a hidden "advanced editor" split across two tabs) with one flowing modal:

- **Identity** (name · icon · color) up top.
- **Automation** — a plain-language sentence: "When a task enters this column,
  [run an AI agent ▾] using [Claude ▾] [opus ▾] · then move it on when
  [the agent finishes ▾]." Each token is an inline dropdown. Led by a one-click
  **recipe gallery** (⚡ Code it · 👀 Review+approve · 🧪 Run tests · 🔀 Open PR ·
  ▫ Manual) that wires a complete runnable rule. Picking a real exit condition
  implies auto-advance; "manually" doesn't.
- **Advanced** (collapsed) reuses the existing full editors verbatim — on-entry /
  on-exit ActionEditor, the exit-details editor (retries/timeout/auto-advance),
  and capacity — so nothing is lost; power users open one expander.
- A plain-language **summary chip** in the footer ("▸ Run an AI agent · advance
  when the agent finishes").

New: column-recipes.ts (recipes, plain-language clauses, summary, model values
matching the spawn-cli editor) + column-automation-sentence.tsx. +7 tests.

Phase 2 (cleanups: unify model vocab, de-jargon, drop dead trigger_task / the
LLM-generate box) and phase 3 (column-card chip, zero-config defaults) follow.
tsc · lint · vitest (419) green.
@ANonABento ANonABento merged commit 96d5165 into main Jun 9, 2026
3 checks passed
@ANonABento ANonABento deleted the trigger-ux-redesign branch June 9, 2026 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant