Skip to content

feat(sidebar): compact issue & task rows in workspace hovercard - #37262

Merged
nwparker merged 2 commits into
mainfrom
nwparker/card-issue-view
Nov 2, 2026
Merged

nwparker merged 2 commits into
mainfrom
nwparker/card-issue-view

Conversation

@nwparker

@nwparker nwparker commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​14 $\color{#cf222e}{\Huge{\mathbf{−}}}$​23 $\color{#cf222e}{\Huge{\mathbf{−}}}$​9
Prod 27 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​906 $\color{#cf222e}{\Huge{\mathbf{−}}}$​754 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​152

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.

  • Row layout: the state glyph sits in the icon column (open, closed, backlog, in progress, cancelled, or unknown), followed by a single-line title that scrolls on hover. The meta line shows the provider mark, the identifier, ·, and the source repo or site.
  • Labels: the row shows one chip plus +N, and the tooltip lists every label. Below 16rem only the count shows, so nothing squeezes into slivers.
  • Row actions: a single ⋯ 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.
  • Collection view: task rows now get the ⋯ menu, a state glyph, and labels from live data. They replace the separate State: … badge row.
  • Ordering: Reviews come first in both views and in the activity hovercard. The header icons are GitPullRequest and ListTodo.
  • Shared code: one WorktreeCardTaskDetailSection replaces three copies of the issue, Linear, and Jira blocks across WorktreeCardMeta and activity-thread-hover-card. The dead IssueStateBadge, LinearStateBadge, and WorktreeCardIssueDetailSection are removed.
  • Badge variant: a new referenceLabel variant on <Badge> follows the design-system gate. The new fixture sidebar/WorktreeCardDetailsHover covers 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

before after

Linear task + PR, before → after

before after

Jira, before → after

before after

Multi-link collection view, before → after (state and labels now visible, task ⋯ added)

before after

Edge cases: a narrow 300px card, long labels, and light theme

narrow long labels light

Testing

  • pnpm tc:web, the full pnpm lint (41/41), and pnpm check:code-quality:changed origin/main all pass.
  • pnpm test passes for the sidebar, activity, and ui suites: 3137 tests.
  • The screenshots come from pnpm fixtures:shot sidebar/WorktreeCardDetailsHover --theme both.

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.
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

The change consolidates GitHub, Linear, and Jira task details into shared components and adds conditional task-action menus. Linked references now display task-state icons, provider icons, and labels. Fixtures, tests, and translations are updated for the shared presentation. The English runtime-required emulator message for input blocked by Xcode Device Hub is moved within the error list.

Merge Risk: Low · up to 9146b

Some linked tasks can show an outdated status, and assistive technology may not announce state and label text reliably. These are bounded issues to fix or explicitly accept before merging.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description includes a useful summary, visual proof, and testing details, but it omits several required template sections, including ELI5, Why, Linked Issue, Risk, AI Disclosure, Review, Notes, an… Add the missing required sections. Include an actual linked issue after “Fixes #”, explain why this approach was chosen, document risks and rollback steps, complete the AI Disclosure and review sections as applicable, address cross-platform…
Docstring Coverage Warning Docstring coverage is 17.65% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: compact issue and task rows in the workspace hovercard.
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.
Full details: Description check

Explanation

The description includes a useful summary, visual proof, and testing details, but it omits several required template sections, including ELI5, Why, Linked Issue, Risk, AI Disclosure, Review, Notes, and Checklist confirmations.

Resolution

Add the missing required sections. Include an actual linked issue after “Fixes #”, explain why this approach was chosen, document risks and rollback steps, complete the AI Disclosure and review sections as applicable, address cross-platform and compatibility considerations, and check or explain each checklist item.

Full details: Docstring Coverage

Explanation

Docstring coverage is 17.65% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 17 functions across 16 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@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
  • 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
Commits

Reviewing files that changed from the base of the PR and between 0377e8b and aeaa62d.

Files selected for processing: 27
  • src/renderer/src/components/activity/activity-thread-hover-card.tsx
  • src/renderer/src/components/sidebar/WorktreeCard.compact-hover.test.tsx
  • src/renderer/src/components/sidebar/WorktreeCard.single-reference-details.test.tsx
  • src/renderer/src/components/sidebar/WorktreeCardDetailsHover.fixture.tsx
  • src/renderer/src/components/sidebar/WorktreeCardIssueDetailSection.tsx
  • src/renderer/src/components/sidebar/WorktreeCardLinkedItemsSection.test.tsx
  • src/renderer/src/components/sidebar/WorktreeCardLinkedItemsSection.tsx
  • src/renderer/src/components/sidebar/WorktreeCardMeta.test.tsx
  • src/renderer/src/components/sidebar/WorktreeCardMeta.tsx
  • src/renderer/src/components/sidebar/WorktreeCardMetadataStatusBadges.tsx
  • src/renderer/src/components/sidebar/WorktreeCardReferenceRow.tsx
  • src/renderer/src/components/sidebar/WorktreeCardReviewDetailSection.tsx
  • src/renderer/src/components/sidebar/WorktreeCardTaskDetailSection.tsx
  • src/renderer/src/components/sidebar/worktree-task-state.ts
  • src/renderer/src/components/ui/badge.tsx
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/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.

Comment on lines +35 to +39
<span
tabIndex={0}
aria-label={label}
className="inline-flex shrink-0 rounded-sm outline-none focus-visible:ring-2 focus-visible:ring-ring"
>

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.

Minor · Functional Correctness · Quick win

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

@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.

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

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. getLinkedTaskState currently selects that older detail first, so the row can display an obsolete status.

Select liveTask first 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
Commits

Reviewing files that changed from the base of the PR and between aeaa62d and 9146b27.

Files selected for processing: 9
  • src/renderer/src/components/activity/activity-thread-hover-card.tsx
  • src/renderer/src/components/sidebar/WorktreeCardLinkedItemsSection.tsx
  • src/renderer/src/components/sidebar/WorktreeCardMeta.tsx
  • src/renderer/src/components/sidebar/WorktreeCardReferenceRow.tsx
  • src/renderer/src/components/sidebar/WorktreeCardReviewActions.tsx
  • src/renderer/src/components/sidebar/WorktreeCardRowActionsMenu.tsx
  • src/renderer/src/components/sidebar/WorktreeCardTaskDetailSection.tsx
  • src/renderer/src/components/sidebar/worktree-card-details-hover-state.ts
  • src/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.

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