Skip to content

Revert #12658: show PR status on active and done workspaces too (2 of 2) - #12825

Merged
brennanb2025 merged 1 commit into
mainfrom
brennanb2025/widen-pr-status-to-active-workspaces
Aug 6, 2026
Merged

brennanb2025 merged 1 commit into
mainfrom
brennanb2025/widen-pr-status-to-active-workspaces

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Reverts #12658. Stacked on #12815 (the #12793 revert) — merge that one first.

Together the two PRs restore the pre-#12658 behavior of the worktree card's left status lane:

With this PR applied, the four touched sidebar files are byte-identical to their pre-#12658 state, verified with git diff against 003114dfad.

Screenshots

Visual change — no screenshot captured yet, so stating the before/after precisely rather than claiming no visual change:

Screenshots to be attached before merge.

Testing

  • pnpm lint — full-repo oxlint --format github is clean, 0 warnings and 0 errors across 12,032 files. React Doctor and oxfmt clean on changed files.
    • Earlier revisions of this branch went red on static analysis with a max-lines error in mobile/src/session/use-mobile-native-chat-controller.ts. That was a stale base, not this change — refactor(mobile): separate native chat controller contract #12826 shrank that file from 360 to 288 lines after I branched. Rebased onto current main and it is gone.
  • pnpm typecheck — exit 0.
  • pnpm test — full suite not run. Ran the three affected suites (WorktreeCardStatusSlot, WorktreeCard.pr-display, WorktreeCard.quick-actions): 70 tests passing across four consecutive isolated runs.
  • pnpm build — not run.
  • Test changes are the revert itself: pre-fix(sidebar): preserve meaningful workspace status indicators #12658 status-slot assertions return, and tests/e2e/worktree-card-status-indicator.spec.ts is removed along with the behavior it guarded. No new tests, since restoring prior coverage is the intent.

AI Review Report

Security Audit

No security surface. No input handling, command execution, path construction, auth or permission logic, secrets, dependency changes, or IPC. It only changes which already-rendered glyph occupies a layout slot, from data the card already holds. No remote wire compatibility impact. No follow-up needed.

Notes

Known tradeoff, deliberate. #12658 fixed #8813: an active workspace with branch identity and no PR was showing the grey branch glyph instead of the emerald Active dot. This revert brings that back, and removes the e2e test guarding it.

The left lane holds exactly one glyph, so activity, branch identity, and review status cannot all be shown there. This PR picks review status.

If that turns out to be the wrong call, the middle path neither #12658 nor #12793 tried is to widen the set for review status only while keeping branch identity at inactive-only. That satisfies #8813 and PR-on-left simultaneously, without #12793's relocation. Landing #12815 alone and closing this PR is also a valid stopping point.

Merge order: this branch targets brennanb2025/restore-worktree-pr-status, not main. Retarget it to main after #12815 lands — a stacked PR merged into an already-merged parent branch reports MERGED with green checks while delivering nothing.

@brennanb2025
brennanb2025 force-pushed the brennanb2025/restore-worktree-pr-status branch from edc4f43 to 5a46791 Compare August 6, 2026 02:26
@brennanb2025
brennanb2025 force-pushed the brennanb2025/widen-pr-status-to-active-workspaces branch from 81fabe7 to cf5f12b Compare August 6, 2026 02:26
@brennanb2025
brennanb2025 changed the base branch from brennanb2025/restore-worktree-pr-status to main August 6, 2026 02:33
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
brennanb2025 force-pushed the brennanb2025/widen-pr-status-to-active-workspaces branch from cf5f12b to da322c8 Compare August 6, 2026 02:34
@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The change updates worktree status selection so passive review or branch indicators replace active, done, and inactive activity statuses. Worktree cards now pass branch identity availability independently of the branch card-property setting. Component tests update PR status precedence, branch tooltip behavior, unread overlays, activity-status mocks, and linked PR status assertions. The quick-action test suite removes inactive status-dot coverage.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning The PR intentionally restores the active-workspace indicator behavior that issue #8813 reported as incorrect. Preserve the active status indicator when no review status exists, or obtain explicit approval to supersede issue #8813.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the revert and the restored PR status behavior for active and done workspaces.
Description check ✅ Passed The description covers the required sections and documents testing, risks, security, platform review, and the pending screenshot limitation.
Out of Scope Changes check ✅ Passed The code, test updates, and e2e test removal are directly related to reverting #12658 and restoring the stated status-lane behavior.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
📝 Generate docstrings
  • 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.

@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: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 8d7c03fc-3a14-4e98-b42c-6dfba8dbe95a

📥 Commits

Reviewing files that changed from the base of the PR and between 3838f6f and da322c8.

📒 Files selected for processing (6)
  • src/renderer/src/components/sidebar/WorktreeCard.pr-display.test.tsx
  • src/renderer/src/components/sidebar/WorktreeCard.quick-actions.test.tsx
  • src/renderer/src/components/sidebar/WorktreeCard.tsx
  • src/renderer/src/components/sidebar/WorktreeCardStatusSlot.test.tsx
  • src/renderer/src/components/sidebar/WorktreeCardStatusSlot.tsx
  • tests/e2e/worktree-card-status-indicator.spec.ts
💤 Files with no reviewable changes (1)
  • tests/e2e/worktree-card-status-indicator.spec.ts


vi.mock('./use-worktree-activity-status', () => ({
useWorktreeActivityStatus: () => activityStatus
useWorktreeActivityStatus: () => 'idle'

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Use a valid WorktreeStatus in this mock.

useWorktreeActivityStatus returns 'idle', but src/renderer/src/lib/worktree-status.ts defines WorktreeStatus as active, working, permission, done, or inactive. This mock exercises a state that production cannot provide and can bypass StatusIndicator behavior. Replace it with the valid status required by the test, such as 'active'.

@brennanb2025
brennanb2025 merged commit b70e337 into main Aug 6, 2026
43 checks passed
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
…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.

[Bug] visual indicators for statuses within the project dont appear

1 participant