feat(desktop): automations onboarding empty state with rotating examples and suggestion cards
Merged
KI
4mo ago+268+268+012345678901234567890123456789-136-136-012345678901234567890123456789
Links
- Plan:
apps/desktop/plans/automations-onboarding.md(this ships build-order item 1; signals-based personalization, "New" dot, and the announcement card are later items) - Follows #6291
Summary
- Rebuilds the automations first-run empty state around the onboarding research: a hero affordance styled like the future NL input with rotating concrete placeholder examples, one line of run-model education, and four "Suggested" cards whose text is a complete typeable sentence (Zapier's automation-ideas pattern).
- Clicking a suggestion pre-fills the create dialog with a matching prompt + schedule via the existing template mechanism (
ONBOARDING_SUGGESTIONSintemplates/data.ts).
Why / Context
Competitive research (38 onboarding captures, Mobbin) showed nobody tours an empty automations page — the empty state is the onboarding. Cursor rotates concrete example placeholders; Zapier merges templates into the creation input as clickable sentences. Our previous empty state showed template names, not examples a user could imagine typing.
How It Works
- The hero is an interim affordance: it looks like the Phase 2 NL chat input but opens
CreateAutomationDialogtoday; the swap point is documented inline. - Placeholders cycle every 5s via a keyed
animate-in fade-inspan (pattern already used elsewhere in the renderer). - Suggestions are ordinary
AutomationTemplates — same prefill path the template gallery uses; each has a real agent prompt and rrule matching its sentence. - Education line uses the corrected wording from the review of #6291 ("Runs land in a workspace…" — dispatch reuses pinned workspaces, so no "isolated per run" claim).
Manual QA Checklist
- Empty state renders for an account with zero automations (hero, rotating placeholder, 4 cards, buttons)
- Clicking a suggestion opens the create dialog pre-filled with that prompt + schedule
- Hero click opens a blank create dialog
Testing
bun run typecheck- Biome check clean
- Not visually verified: my dev account has automations, so the empty state is unreachable live; the component compiles under HMR and reuses the pre-existing template-prefill path. Reviewer with a fresh org (or willing to filter their account) should exercise the checklist above.
Follow-ups (plan doc)
- Repo-signal personalization of which 4 cards show
- Ghost example row for returning non-creators
- "New" sidebar dot + one-time opt-in announcement card at release
- Swap hero to the real NL chat input when Phase 2 ships
Summary by cubic
Adds a new Automations onboarding empty state with a hero input that opens a “Create with AI” agent session, rotating examples, and suggestion cards that prefill the create dialog. It also declutters first run by hiding stats, search, and the CLI hint on empty tabs, and hiding tabs only when the org has no automations.
-
New Features
- Hero affordance styled like the future NL input; opens an agent session seeded to create an automation via
superset:automate(CLI fallback). - “Create with AI” button in the top bar opens the same flow.
- Rotating placeholder examples (5s, fade-in).
- Four “Suggested” cards from
ONBOARDING_SUGGESTIONS; each pre-fills a matching prompt and schedule.
- Hero affordance styled like the future NL input; opens an agent session seeded to create an automation via
-
Bug Fixes
- Centered the first-run empty state vertically.
- Guarded “Create with AI” against double clicks and navigation errors.
- Accessibility: stable aria-label on the hero; rotating examples are aria-hidden.
- Suggestion cards clamp descriptions to three lines; copy tweaks (no em dashes, dropped “on main”).
Summary by CodeRabbit
-
New Features
- Added four onboarding automation suggestions for CI fixes, issue triage, documentation updates, and release note drafting.
- Added a “Create with AI” flow that starts automation setup with a configured terminal agent.
- Suggestions include scheduling options and open the automation creation flow when selected.
-
Improvements
- Empty-state examples now rotate automatically with refreshed introductory copy.
- Empty organization and empty-tab states are presented more clearly.
- Unneeded controls are hidden when a tab has no automations.
- Template descriptions can now display up to three lines.