Skip to content

Fix sidebar PR status hidden by workspace activity - #12793

Merged
brennanb2025 merged 1 commit into
mainfrom
brennanb2025/fix-worktree-sidebar-pr-2
Aug 5, 2026
Merged

brennanb2025 merged 1 commit into
mainfrom
brennanb2025/fix-worktree-sidebar-pr-2

Conversation

@brennanb2025

Copy link
Copy Markdown
Contributor

Summary

  • keep workspace activity, unread, and branch identity in the left status lane
  • render PR/MR check status independently in the title-row indicator group
  • preserve accessible review-state copy and provider-neutral status glyphs

Regression

PR #12658 restricted review status to inactive workspaces so meaningful activity could retain the shared status slot. That made Active, Working, Done, and Permission suppress existing PR/check metadata. This change separates those concerns so both states remain visible.

Validation

  • pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/sidebar/WorktreeCardStatusSlot.test.tsx src/renderer/src/components/sidebar/WorktreeCardReviewStatus.test.tsx src/renderer/src/components/sidebar/WorktreeCard.pr-display.test.tsx (47 tests)
  • pnpm exec tsc --noEmit -p config/tsconfig.web.json --composite false
  • focused oxlint --deny-warnings and oxfmt --check
  • Electron QA in dark mode: Active activity dot and failing PR/check status render simultaneously; tooltip reads “PR checks: Failed”

Screenshot

Active workspace with independent failing PR status

@coderabbitai

coderabbitai Bot commented Aug 5, 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: 92a5c997-f72e-4f63-a72e-a96943a14d49

📥 Commits

Reviewing files that changed from the base of the PR and between ae1ed5e and 0e46a04.

📒 Files selected for processing (6)
  • src/renderer/src/components/sidebar/WorktreeCard.pr-display.test.tsx
  • src/renderer/src/components/sidebar/WorktreeCard.tsx
  • src/renderer/src/components/sidebar/WorktreeCardReviewStatus.test.tsx
  • src/renderer/src/components/sidebar/WorktreeCardReviewStatus.tsx
  • src/renderer/src/components/sidebar/WorktreeCardStatusSlot.test.tsx
  • src/renderer/src/components/sidebar/WorktreeCardStatusSlot.tsx

📝 Walkthrough

Walkthrough

The worktree card now renders pull-request review status independently in the title row. The status slot handles activity, branch, permission, and unread indicators without pull-request data. The new review-status component maps review and check states to tooltips and icons. Tests cover review states, activity states, unread cards, title-row rendering, and branch review cache behavior.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers the summary, visual change, and validation, but it omits the required AI Review Report, Security Audit, and Notes sections. Add the required AI Review Report, Security Audit, and Notes sections, including cross-platform checks and any security or follow-up findings.
Docstring Coverage ⚠️ Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: PR status remains visible alongside workspace activity in the sidebar.
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.
✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch

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.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Electron QA

Validated the exact PR worktree (ondine @ brennanb2025/fix-worktree-sidebar-pr-2) in an isolated dark-mode Electron session. A live browser tab drives the workspace to Active while the separate PR/check glyph remains visible and updates independently.

Active workspace + pending checks

Active workspace with pending PR checks

Active workspace + passing checks tooltip

Active workspace with passing PR checks tooltip

Accessibility snapshot: Active and PR checks: Passing are both exposed in the workspace row.

@brennanb2025
brennanb2025 merged commit 4774d38 into main Aug 5, 2026
85 of 87 checks passed
brennanb2025 added a commit that referenced this pull request Aug 6, 2026
#12793 fixed PR status being hidden by workspace activity by relocating
it: prDisplay was dropped from WorktreeCardStatusSlot and re-rendered as
WorktreeCardReviewStatus in the title-row indicator group, at the right
edge of the card.

Reverting restores the review glyph to the left status lane. Because
#12658 still narrows the passive-identity set to {inactive}, this alone
brings PR status back only for inactive workspaces; reverting #12658
widens it to active and done.

No behavior change for branch identity, and #8813's guard stays intact.
brennanb2025 added a commit that referenced this pull request Aug 6, 2026
#12793 fixed PR status being hidden by workspace activity by relocating
it: prDisplay was dropped from WorktreeCardStatusSlot and re-rendered as
WorktreeCardReviewStatus in the title-row indicator group, at the right
edge of the card.

Reverting restores the review glyph to the left status lane. Because
#12658 still narrows the passive-identity set to {inactive}, this alone
brings PR status back only for inactive workspaces; reverting #12658
widens it to active and done.

No behavior change for branch identity, and #8813's guard stays intact.
brennanb2025 added a commit that referenced this pull request Aug 6, 2026
Stacked on the #12793 revert. Widens the passive-identity set from
{inactive} back to {active, done, inactive}, so the PR/check glyph
returns to the left status lane for workspaces that are actively being
worked, not just idle ones.

Tradeoff, deliberate: #12658 was not purely a regression. It also fixed
#8813, where an active workspace with branch identity and no PR showed
the grey branch glyph instead of the emerald Active dot. This revert
reintroduces that, and removes its e2e guard.

The left lane holds one glyph, so activity, branch identity, and review
status cannot all be shown. This picks review status.
brennanb2025 added a commit that referenced this pull request Aug 6, 2026
Stacked on the #12793 revert. Widens the passive-identity set from
{inactive} back to {active, done, inactive}, so the PR/check glyph
returns to the left status lane for workspaces that are actively being
worked, not just idle ones.

Tradeoff, deliberate: #12658 was not purely a regression. It also fixed
#8813, where an active workspace with branch identity and no PR showed
the grey branch glyph instead of the emerald Active dot. This revert
reintroduces that, and removes its e2e guard.

The left lane holds one glyph, so activity, branch identity, and review
status cannot all be shown. This picks review status.
gal064 pushed a commit to gal064/orca that referenced this pull request Aug 7, 2026
…oo (stablyai#12825)

Stacked on the stablyai#12793 revert. Widens the passive-identity set from
{inactive} back to {active, done, inactive}, so the PR/check glyph
returns to the left status lane for workspaces that are actively being
worked, not just idle ones.

Tradeoff, deliberate: stablyai#12658 was not purely a regression. It also fixed
stablyai#8813, where an active workspace with branch identity and no PR showed
the grey branch glyph instead of the emerald Active dot. This revert
reintroduces that, and removes its e2e guard.

The left lane holds one glyph, so activity, branch identity, and review
status cannot all be shown. This picks review status.
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…ablyai#12815)

stablyai#12793 fixed PR status being hidden by workspace activity by relocating
it: prDisplay was dropped from WorktreeCardStatusSlot and re-rendered as
WorktreeCardReviewStatus in the title-row indicator group, at the right
edge of the card.

Reverting restores the review glyph to the left status lane. Because
stablyai#12658 still narrows the passive-identity set to {inactive}, this alone
brings PR status back only for inactive workspaces; reverting stablyai#12658
widens it to active and done.

No behavior change for branch identity, and stablyai#8813's guard stays intact.
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…oo (stablyai#12825)

Stacked on the stablyai#12793 revert. Widens the passive-identity set from
{inactive} back to {active, done, inactive}, so the PR/check glyph
returns to the left status lane for workspaces that are actively being
worked, not just idle ones.

Tradeoff, deliberate: stablyai#12658 was not purely a regression. It also fixed
stablyai#8813, where an active workspace with branch identity and no PR showed
the grey branch glyph instead of the emerald Active dot. This revert
reintroduces that, and removes its e2e guard.

The left lane holds one glyph, so activity, branch identity, and review
status cannot all be shown. This picks review status.
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