Skip to content

Revert #12793: put PR status back in the left status lane (1 of 2) - #12815

Merged
brennanb2025 merged 1 commit into
mainfrom
brennanb2025/restore-worktree-pr-status
Aug 6, 2026
Merged

brennanb2025 merged 1 commit into
mainfrom
brennanb2025/restore-worktree-pr-status

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Reverts #12793, putting the PR/MR check glyph back in the worktree card's left status lane.

#12793 addressed PR status being hidden by workspace activity by relocating it rather than restoring it: prDisplay was removed from WorktreeCardStatusSlot entirely and re-rendered as a new WorktreeCardReviewStatus inside the title-row indicator group, at the right edge of the card. From the user's side that reads as the indicator disappearing — it moved, it didn't vanish.

Scope of this PR on its own. #12658 still narrows the passive-identity set to {inactive}, so this revert alone brings the PR glyph back to the left lane for inactive workspaces only. Widening it to active and done is the follow-up PR, which stacks on this branch. This split is deliberate: this PR is the safe half, with no behavior change to branch identity and #8813's e2e guard left fully intact.

This is 1 of 2. The second is intentionally separable so the #8813 tradeoff can be accepted or declined on its own merits.

The five touched files are byte-identical to their pre-#12793 state, verified with git diff against 2ff2a1b268; WorktreeCard.tsx differs only in the lines #12793 changed.

Screenshots

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

  • Before (current main): left lane shows only the activity dot; the PR fork glyph sits at the far right of the title row, after the details/ports indicators.
  • After: for inactive workspaces the PR fork glyph occupies the left lane; the right-edge review indicator is removed.

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): 72 tests passing, confirmed across two isolated runs.
  • pnpm build — not run.
  • Test changes are the revert itself: the pre-Fix sidebar PR status hidden by workspace activity #12793 status-slot assertions return, and WorktreeCardReviewStatus.test.tsx is removed along with the component it covered. No new tests, since restoring prior coverage is the intent.

AI Review Report

  • Completeness — Fix sidebar PR status hidden by workspace activity #12793 is a single-parent commit, so no mainline selection was needed. Confirmed the five touched files match their pre-Fix sidebar PR status hidden by workspace activity #12793 content exactly.
  • Dangling references — grepped src, tests, and mobile for WorktreeCardReviewStatus and the data-worktree-card-review-status attribute. Every hit is in a file this revert also restores; no orphan imports.
  • Interaction with fix(sidebar): preserve meaningful workspace status indicators #12658 — verified this revert composes correctly with fix(sidebar): preserve meaningful workspace status indicators #12658 still in place: IDENTITY_REPLACEABLE_STATUSES remains {inactive} and gates both the review and branch glyphs, so no state shows two glyphs or none.
  • Test flake caught — an initial run reported 3 failures, which reproduced only when vitest ran concurrently with tsc. Two isolated runs are clean at 72/72; the failures were load-induced, not real.
  • Cross-platform — explicitly checked macOS, Linux, and Windows. The diff is presentational renderer JSX and Tailwind classes only: no keyboard shortcuts or modifier keys, no shortcut labels, no file paths, no shell invocation, no Electron main-process or platform-conditional code. Behavior is identical on all three.

Security Audit

No security surface. No input handling, command execution, path construction, auth or permission logic, secrets, dependency changes, or IPC. It changes only which of two already-rendered glyphs occupies a layout slot, from data the card already holds. No remote wire compatibility impact — nothing exchanged between client and host is altered. No follow-up needed.

Notes

The left status lane renders exactly one glyph, so activity, branch identity, and review status permanently compete for it. Any change here is a precedence swap, never an addition — worth keeping in mind for future fixes in this area, which tend to be framed as "restore X" while silently demoting Y.

This PR takes no position on the #8813 tradeoff; that is entirely contained in the stacked follow-up.

@coderabbitai

coderabbitai Bot commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The worktree card no longer renders review status in the title row. It passes review data to the shared status slot. The status slot now renders review labels, icons, tooltips, branch fallbacks, inactive-state replacements, and unread review actions. Tests cover GitHub and GitLab review states, card-style precedence, activity states, unread overlays, and status rendering before review metadata is cached.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
Title check ✅ Passed The title clearly identifies the revert and the primary user-visible change to PR status placement.
Description check ✅ Passed The description covers the change, visual impact, testing status, AI review, security audit, and platform considerations, while clearly noting pending screenshots.
✨ 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.

@brennanb2025
brennanb2025 force-pushed the brennanb2025/restore-worktree-pr-status branch from 472c25f to edc4f43 Compare August 6, 2026 01:32
@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@brennanb2025 brennanb2025 changed the title Revert sidebar PR status back into the left status lane Revert #12793: put PR status back in the left status lane (1 of 2) 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
brennanb2025 force-pushed the brennanb2025/restore-worktree-pr-status branch from edc4f43 to 5a46791 Compare August 6, 2026 02:26
@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

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