Repository navigation
feat(sidebar): compact issue & task rows in workspace hovercard - #37262
Conversation
Issues, Linear and Jira tasks in the workspace hovercard now use the same compact two-line row as PRs: state glyph, single-line title, provider mark, identifier, source, labels summary, and a row actions menu.
Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
Actionable comments posted: 2

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
f0eb1b6a-0ce1-46d0-aa49-735385026cd8
Files selected for processing: 27-
src/renderer/src/components/activity/activity-thread-hover-card.tsxsrc/renderer/src/components/sidebar/WorktreeCard.compact-hover.test.tsxsrc/renderer/src/components/sidebar/WorktreeCard.single-reference-details.test.tsxsrc/renderer/src/components/sidebar/WorktreeCardDetailsHover.fixture.tsxsrc/renderer/src/components/sidebar/WorktreeCardIssueDetailSection.tsxsrc/renderer/src/components/sidebar/WorktreeCardLinkedItemsSection.test.tsxsrc/renderer/src/components/sidebar/WorktreeCardLinkedItemsSection.tsxsrc/renderer/src/components/sidebar/WorktreeCardMeta.test.tsxsrc/renderer/src/components/sidebar/WorktreeCardMeta.tsxsrc/renderer/src/components/sidebar/WorktreeCardMetadataStatusBadges.tsxsrc/renderer/src/components/sidebar/WorktreeCardReferenceRow.tsxsrc/renderer/src/components/sidebar/WorktreeCardReviewDetailSection.tsxsrc/renderer/src/components/sidebar/WorktreeCardTaskDetailSection.tsxsrc/renderer/src/components/sidebar/worktree-task-state.tssrc/renderer/src/components/ui/badge.tsxsrc/renderer/src/i18n/en-runtime-required.jsonsrc/renderer/src/i18n/locales/de.jsonsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/pt.jsonsrc/renderer/src/i18n/locales/ru.jsonsrc/renderer/src/i18n/locales/tr.jsonsrc/renderer/src/i18n/locales/zh-Hant.jsonsrc/renderer/src/i18n/locales/zh.json
Files with no reviewable changes: 2-
- src/renderer/src/components/sidebar/WorktreeCardIssueDetailSection.tsx
- src/renderer/src/components/sidebar/WorktreeCardMetadataStatusBadges.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
-
| <span | ||
| tabIndex={0} | ||
| aria-label={label} | ||
| className="inline-flex shrink-0 rounded-sm outline-none focus-visible:ring-2 focus-visible:ring-ring" | ||
| > |
There was a problem hiding this comment.
Give the focusable aria-label spans a role.
StateGlyph and ReferenceLabels put aria-label on a plain <span tabIndex={0}>. A span has the generic role, which does not reliably take an accessible name. Screen readers can announce a focusable element with no name or purpose. The state and label text then stays unavailable to assistive technology. The sibling provider mark already uses role="img".
Add role="img" to both spans. The existing tests use getByLabelText, so they keep passing.
♿ Proposed fix
-
<span tabIndex={0} + role="img" aria-label={label}<span tabIndex={0} + role="img" aria-label={translate('workspace.links.labels', 'Labels: {{labels}}', { labels: list })}
Based on learnings: check that icon-only controls expose an explicit accessible name that assistive technology announces.
Also applies to: 206-210
Source: Learnings
…cards - WorktreeCardRowActionsMenu backs both PR and task row menus - Card tasks are expressed as attachments so single and linked rows share labels, sources and the task menu - getWorktreeCardTaskActions replaces duplicated copy-link and dismiss wiring in WorktreeCardMeta and the activity hovercard
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

Minor · Prefer the matching live task state over cached… · WorktreeCardLinkedItemsSection.tsx:37-52
src/renderer/src/components/sidebar/WorktreeCardLinkedItemsSection.tsx:37-52
Minor · Functional Correctness · Quick win Prefer the matching live task state over cached reference state.
A matching Linear row can use an attachment-scoped reference cache and a separately refreshed card-task cache. If the card task changes state, the reference detail can remain cached.
getLinkedTaskStatecurrently selects that older detail first, so the row can display an obsolete status.Select
liveTaskfirst at this state-selection boundary, then fall back to reference details when no matching live task exists.Suggested fix
function getLinkedTaskState( detail: WorkspaceReferenceDetails | undefined, liveTask: WorkspaceLinkedItemRow['liveTask'] ): WorktreeTaskState | null { + if (liveTask && 'identifier' in liveTask) { + return getLinearTaskState(liveTask.stateName, liveTask.stateType) + } + if (liveTask) { + return getIssueTaskState(liveTask.state) + } if (detail?.stateName) { return getLinearTaskState(detail.stateName, detail.stateType) } if (detail?.issueState) { return getIssueTaskState(detail.issueState) } - if (liveTask && 'identifier' in liveTask) { - return getLinearTaskState(liveTask.stateName, liveTask.stateType) - } return getIssueTaskState(liveTask?.state) }

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
8e3280ca-36a4-42ee-9348-b9af58dbfbba
Files selected for processing: 9-
src/renderer/src/components/activity/activity-thread-hover-card.tsxsrc/renderer/src/components/sidebar/WorktreeCardLinkedItemsSection.tsxsrc/renderer/src/components/sidebar/WorktreeCardMeta.tsxsrc/renderer/src/components/sidebar/WorktreeCardReferenceRow.tsxsrc/renderer/src/components/sidebar/WorktreeCardReviewActions.tsxsrc/renderer/src/components/sidebar/WorktreeCardRowActionsMenu.tsxsrc/renderer/src/components/sidebar/WorktreeCardTaskDetailSection.tsxsrc/renderer/src/components/sidebar/worktree-card-details-hover-state.tssrc/renderer/src/components/sidebar/worktree-card-task-actions.ts
Files with no reviewable changes: 1-
- src/renderer/src/components/sidebar/worktree-card-details-hover-state.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
-
Summary
Linked issues and tasks in the workspace hovercard now use the same compact two-line row as PRs. This covers GitHub issues, Linear, Jira, and the multi-link collection view.
·, and the source repo or site.+N, and the tooltip lists every label. Below 16rem only the count shows, so nothing squeezes into slivers.⋯menu replaces the old four header icon buttons. It holds Open in Orca, Open in Orca browser, Edit issue, and Copy link. Linear and Jira now get Copy link too.⋯menu, a state glyph, and labels from live data. They replace the separateState: …badge row.GitPullRequestandListTodo.WorktreeCardTaskDetailSectionreplaces three copies of the issue, Linear, and Jira blocks acrossWorktreeCardMetaandactivity-thread-hover-card. The deadIssueStateBadge,LinearStateBadge, andWorktreeCardIssueDetailSectionare removed.referenceLabelvariant on<Badge>follows the design-system gate. The new fixturesidebar/WorktreeCardDetailsHovercovers the edge cases.A designer agent ran two rounds of adversarial visual review. Round 1 found a narrow-width overflow P0, plus icon and consistency P1s; all are fixed. Round 2 returned ship, and its P2 polish is applied.
Visual proof (component fixture, dark theme)
GitHub issue + PR, before → after
Linear task + PR, before → after
Jira, before → after
Multi-link collection view, before → after (state and labels now visible, task
⋯added)Edge cases: a narrow 300px card, long labels, and light theme
Testing
pnpm tc:web, the fullpnpm lint(41/41), andpnpm check:code-quality:changed origin/mainall pass.pnpm testpasses for the sidebar, activity, and ui suites: 3137 tests.pnpm fixtures:shot sidebar/WorktreeCardDetailsHover --theme both.