feat(activity): reveal thread-row actions on keyboard focus
Summary
Thread-row action affordances (the Mark-unread bell and Jump-to-workspace button) were revealed only on pointer hover, so keyboard users tabbing into a row never saw them. This adds group-focus-within: Tailwind variants alongside the existing group-hover: ones so the actions also appear when any control within the row receives keyboard focus.
The row now uses a named Tailwind group, group/thread-row, so the hover and focus-within reveal rules do not depend on an unscoped parent group.
Screenshots
Keyboard focus recording: the row actions are hidden before focus and visible once Tab focuses the thread row.

Testing
- [x]
PATH="$(mise where node@24)/bin:$PATH" pnpm lint - [x]
PATH="$(mise where node@24)/bin:$PATH" pnpm build- completed with existing Vite chunk warnings, SwiftCGWindowListCreateImagedeprecation warnings, and a non-fatal/usr/local/bin/orca-devsymlink permission notice. - [x]
pnpm run typecheck:web - [x]
pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/activity/ActivityPrototypePage.test.ts- 20 passed. - [x] Browser fixture check against the built CSS: before focus, bell opacity
0and jump wrappervisibility: hidden/pointer-events: none; after Tab focus, bell opacity1and jump wrappervisibility: visible/pointer-events: auto. - [x] Existing tests pass; change is CSS-variant-only with no new logic to unit-test.
AI Review Report
Reviewed the change for accessibility, touch behavior, and Tailwind group coupling. The row root is focusable and now owns the named group/thread-row class; descendants use matching group-hover/thread-row:* and group-focus-within/thread-row:* variants. Existing can-hover: hidden-state guards remain intact, so touch devices keep the actions visible.
Findings addressed during review:
- Switched the row reveal rules from an unscoped
grouptogroup/thread-rowto avoid accidental coupling with future nested groups. - Completed the previously unchecked lint and build verification.
- Attached keyboard focus evidence.
Cross-platform: pure CSS class changes, no shortcut, path, shell, Electron IPC, or provider-specific behavior touched. SSH/remote/local behavior is unchanged.
Security Audit
No input handling, command execution, path/auth/secrets/IPC, dependency, or network changes. CSS-only.
Notes
- X handle: @wolfie_
Ready to review this PR? Stage has broken it down into 2 individual chapters for you:
| Title | |
|---|---|
| 1 | Define named Tailwind group for thread rows |
| 2 | Reveal thread actions on keyboard focus |
Chapters generated by Stage for commit d93fe24dd52c2509ccd525960aaa8d35b62219a3 on Jun 22, 2026 9:25am UTC.
📝 Walkthrough
Walkthrough
In ActivityPrototypePage.tsx, the ThreadRow container's Tailwind class is renamed from the generic group to the scoped group/thread-row. All child elements that referenced the generic group-hover and group-focus-within selectors — the unread bell icon's opacity toggles and the "Jump to workspace" action wrapper's pointer-events and visibility transitions — are updated to use group-hover/thread-row and group-focus-within/thread-row. Inline comments on those elements are adjusted to describe the updated selectors. No exported APIs or data flow are changed.
🚥 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 accurately describes the main change: adding keyboard focus reveal for thread-row actions, which matches the core feature of this PR. |
| 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. |
| Description check | ✅ Passed | The PR description comprehensively covers all required template sections with detailed information about the change, testing verification, accessibility improvements, and cross-platform considerations. |
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
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.
Comment @coderabbitai help to get the list of available commands and usage tips.
Folding the keyboard-focus reveal into #6343, which rewrites the same ThreadRow component to add right-click row actions. The group/thread-row rename plus the group-focus-within/thread-row: reveal rules for the bell and Jump-to-workspace affordances are now part of #6343. Screenshots/GIF carried over there.