Skip to content

Add command palette feature tip#4718

Draft
brennanb2025 wants to merge 4 commits into
mainfrom
brennanb2025/cmd-j-feature-tip
Draft

Add command palette feature tip#4718
brennanb2025 wants to merge 4 commits into
mainfrom
brennanb2025/cmd-j-feature-tip

Conversation

@brennanb2025
Copy link
Copy Markdown
Contributor

@brennanb2025 brennanb2025 commented Jun 5, 2026

Summary

  • Adds a concrete in-app feature tip for the Cmd+J command palette, teaching users they can jump across worktrees, settings, tabs, and quick actions from one search surface.
  • Renders the live, platform-correct binding via useShortcutKeys('worktree.palette') so the keycap cue stays accurate after a rebind (and shows Ctrl+Shift+J on Linux/Windows), with the description pointing to Settings for rebinding.
  • Hand-authored an Orca-style CSS/keyframes animation (keypress cue → palette entrance → selection sweep across a worktree, the Shortcuts setting, and a quick action). No runtime GIF/video.
  • Passive education tip: single Got it acknowledgement CTA, no secondary "Maybe Later". Priority sits just after the Orca CLI tip.

Test plan

  • pnpm exec vitest run --config config/vitest.config.ts src/shared/feature-tips.test.ts src/renderer/src/components/feature-tips/feature-tip-modal-state.test.ts src/renderer/src/components/feature-tips/feature-tip-startup-gate.test.ts
  • Typecheck (tsgo -p config/tsconfig.tc.web.json) and oxlint on changed files
  • Animation + modal composition verified via Playwright-screenshotted mock mirroring the React port's classes/timing. Live Electron renderer not spun up to avoid disturbing concurrent dev sessions.

Generated after feature-tip candidate review.

Made with Orca 🐋

Co-authored-by: Orca <help@stably.ai>
@brennanb2025 brennanb2025 self-assigned this Jun 5, 2026
brennanb2025 and others added 3 commits June 5, 2026 14:02
Co-authored-by: Orca <help@stably.ai>
…able Settings link

- Replace stacked setTimeout typing with a single setInterval at 90ms/char
  for uniform cadence; sync the whole visual to one master timeline so the
  keypress visibly precedes the palette opening (cause -> effect).
- Hold the populated end state for 3.2s so the user can actually read the
  matched worktrees + create option.
- Show the two results together via cmd-j-tip-result-in, mirroring how the
  real palette renders incremental search.
- Mixed agent states in the results: 1 done (green dot) + 1 running
  (Loader2 spinner with 'Running' chip) so the tip shows the palette's value
  at a glance.
- Add CmdJPaletteTipDialog and extract shared FeatureTipActions so
  FeatureTipsModal stays under the max-lines rule.
- Make the 'Settings' link in the description open Settings -> Shortcuts
  (uses the existing settingsNavigationTarget machinery), then close the
  tip and dismiss the modal so the tip doesn't re-appear on Settings close.

Co-authored-by: Orca <help@stably.ai>
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