Skip to content

feat: tab to autocomplete the cycling agent name in onboarding#58

Merged
shirshanka merged 1 commit into
mainfrom
feat/onboarding-tab-autocomplete
May 22, 2026
Merged

feat: tab to autocomplete the cycling agent name in onboarding#58
shirshanka merged 1 commit into
mainfrom
feat/onboarding-tab-autocomplete

Conversation

@shirshanka
Copy link
Copy Markdown
Contributor

Summary

Small delight feature on the onboarding wizard.

Step 1 of the wizard ("Hello! I'm ___, your data analytics agent") already animates a typewriter cycling through a list of sample agent names — Aria, Nova, Scout, Sage, Atlas, Ember, Iris, Max, Luna, Felix, Zara, Rex. Now pressing Tab while the input is empty fills in whichever name is currently on screen. Spot a name you like as it cycles by, tap Tab, and it's yours.

What changes

A single keydown handler addition in OnboardingWizard.tsx:

```tsx
} else if (e.key === "Tab" && !value) {
e.preventDefault();
onChange(SAMPLE_NAMES[nameIdx]);
}
```

  • Only fires when the input is empty — once the user has typed anything, Tab falls through to default focus behavior.
  • Fills with the full current name (not the partially-typed prefix), so Tab mid-animation gives you the complete word, matching shell/editor autocomplete conventions.
  • The existing typewriter `useEffect` already early-returns when `value` is truthy, so the carousel naturally stops after autocomplete.

Test plan

  • Open onboarding wizard step 1, wait for a name to start typing, press Tab — input fills with the full name and the carousel stops.
  • Type some text, then press Tab — focus moves to the next element (default behavior, autocomplete doesn't fire).
  • Clear the input — carousel resumes.

🤖 Generated with Claude Code

The first step of the onboarding wizard ("Hello! I'm ___, your data
analytics agent") already cycles through a typewriter list of sample
names. Now pressing Tab while the input is empty fills in the name
currently on screen — a small delight for keyboard-first users who
spot a name they like as it cycles by.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@shirshanka shirshanka merged commit ec1bfed into main May 22, 2026
5 checks passed
@shirshanka shirshanka deleted the feat/onboarding-tab-autocomplete branch May 22, 2026 06:14
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