Skip to content

Add emoji picker to workspace editing and search - #13429

Merged
nwparker merged 3 commits into
stablyai:mainfrom
nwparker:nwparker/cmd-j-emoji-picker
Aug 10, 2026
Merged

nwparker merged 3 commits into
stablyai:mainfrom
nwparker:nwparker/cmd-j-emoji-picker

Conversation

@nwparker

@nwparker nwparker commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • reuse the workspace :shortcode emoji picker in sidebar double-click rename, Edit Worktree Details, and Cmd+J search
  • share completed-shortcode replacement, caret restoration, arrow navigation, Enter/Tab selection, and Escape dismissal across the new surfaces
  • keep picker portals inside dialogs so focus trapping and pointer selection stay reliable
  • scope virtualized status-header keys by host so repeated sticky labels cannot overlap in multi-host sidebars

Testing

  • 58 focused Vitest tests
  • web TypeScript check
  • changed-code quality, React Doctor, and max-lines ratchet
  • Electron E2E covering all three emoji surfaces
  • visual-proof recording passed 3 consecutive runs
  • live multi-host sidebar verification through Electron CDP

Visual proof

Sidebar double-click rename

Before Picker
Sidebar rename before Sidebar rename picker

Edit Worktree Details

Before Picker
Worktree details before Worktree details picker

Cmd+J search

Before Picker
Cmd+J before Cmd+J picker

Multi-host sticky header regression

Before After
Repeated sticky In progress labels overlapping workspace cards One sticky In progress label above the workspace cards

End-to-end video

workspace-emoji-picker.webm

@coderabbitai

coderabbitai Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 2724818a-6c39-4468-9485-d632b6488277

📥 Commits

Reviewing files that changed from the base of the PR and between 0133a10 and 2533d4f.

📒 Files selected for processing (7)
  • src/renderer/src/components/WorktreeJumpPalette.recent-tabs.test.tsx
  • src/renderer/src/components/sidebar/WorktreeDisplayNameField.tsx
  • src/renderer/src/components/sidebar/WorktreeMetaDialog.test.tsx
  • src/renderer/src/components/sidebar/worktree-list-virtual-rows.test.ts
  • src/renderer/src/components/workspace-emoji/useWorkspaceEmojiShortcodeInput.test.tsx
  • src/renderer/src/components/workspace-emoji/useWorkspaceEmojiShortcodeInput.ts
  • src/renderer/src/components/worktree-jump-palette-interleaved-sections.test.tsx
🚧 Files skipped from review as they are similar to previous changes (3)
  • src/renderer/src/components/sidebar/WorktreeMetaDialog.test.tsx
  • src/renderer/src/components/sidebar/WorktreeDisplayNameField.tsx
  • src/renderer/src/components/sidebar/worktree-list-virtual-rows.test.ts

📝 Walkthrough

Walkthrough

Added shared emoji shortcode processing with suggestion selection, keyboard navigation, cursor restoration, and IME handling. Integrated it into worktree display-name editing, inline rename, and the worktree jump palette. Updated the suggestion popover to support custom styling, portal containers, and positioning. Added unit, component, and end-to-end tests. Updated virtual worktree header keys to include host identifiers when available.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the primary change: adding emoji picker support to workspace editing and search.
Description check ✅ Passed The description includes a clear summary, visual proof, and testing details, but omits the required AI Review Report, Security Audit, Notes, and checklist items.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 38d2f9c6-22bf-459c-accc-fe388520f676

📥 Commits

Reviewing files that changed from the base of the PR and between 8a38e2f and df70eb3.

📒 Files selected for processing (12)
  • src/renderer/src/components/WorktreeJumpPalette.test.tsx
  • src/renderer/src/components/WorktreeJumpPalette.tsx
  • src/renderer/src/components/new-workspace/SmartWorkspaceNameField.tsx
  • src/renderer/src/components/sidebar/WorktreeDisplayNameField.tsx
  • src/renderer/src/components/sidebar/WorktreeMetaDialog.test.tsx
  • src/renderer/src/components/sidebar/WorktreeMetaDialog.tsx
  • src/renderer/src/components/sidebar/WorktreeTitleInlineRename.begin-editing.test.tsx
  • src/renderer/src/components/sidebar/WorktreeTitleInlineRename.tsx
  • src/renderer/src/components/workspace-emoji/WorkspaceEmojiSuggestionPopover.tsx
  • src/renderer/src/components/workspace-emoji/useWorkspaceEmojiShortcodeInput.test.tsx
  • src/renderer/src/components/workspace-emoji/useWorkspaceEmojiShortcodeInput.ts
  • tests/e2e/workspace-emoji-picker.spec.ts

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
src/renderer/src/components/sidebar/worktree-list-virtual-rows.test.ts (1)

35-35: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Do not bypass the hostId type with as never.

This assertion disables type checking for the new fixture field. Use the declared host-ID type or a typed header-row factory instead. Confirm that the 'header' variant of RenderRow declares hostId as optional.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 51267bab-6cd6-4241-8fbb-9f30ea34cc0c

📥 Commits

Reviewing files that changed from the base of the PR and between df70eb3 and 0133a10.

📒 Files selected for processing (2)
  • src/renderer/src/components/sidebar/worktree-list-virtual-rows.test.ts
  • src/renderer/src/components/sidebar/worktree-list-virtual-rows.ts

@nwparker
nwparker merged commit 9ccec55 into stablyai:main Aug 10, 2026
47 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* Add emoji picker to workspace editing and search

* fix(sidebar): scope sticky headers by host

* fix: address emoji picker review findings
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