forked from molecule-ai/molecule-core
Two small UIUX fixes for Cmd+K search. 1. Auto-highlight the first match while the user types. Before, Enter on a non-empty query was a no-op — focusedIndex stayed at -1 until the user pressed ↓. Standard search-palette behavior is to highlight the top result so Enter just works. Empty query keeps -1 (opening the dialog shows ALL workspaces; arbitrarily pinning one looks wrong). 2. placeholder-zinc-400 → placeholder-ink-soft. The hardcoded zinc broke the semantic-token pattern other inputs use; placeholder now flips with theme correctly. (Also reordered focus:outline-none ahead of the focus-visible variants — cosmetic, more idiomatic.) Tests: replaced the "resets to -1" test with two new ones — auto- highlight on a matching query (Enter selects without ArrowDown), and no-results query stays a no-op. Full suite 1220/1220. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| e2e | ||
| public | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| components.json | ||
| Dockerfile | ||
| next.config.ts | ||
| package-lock.json | ||
| package.json | ||
| playwright.config.ts | ||
| playwright.staging.config.ts | ||
| postcss.config.js | ||
| tsconfig.json | ||
| vitest.config.ts | ||