Repository navigation
Revert #12793: put PR status back in the left status lane (1 of 2) - #12815
Conversation
📝 WalkthroughWalkthroughThe 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)
✨ Finishing Touches📝 Generate docstrings
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. Comment |
472c25f to
edc4f43
Compare
|
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. |
#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.
edc4f43 to
5a46791
Compare
|
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. |
…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.
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:
prDisplaywas removed fromWorktreeCardStatusSlotentirely and re-rendered as a newWorktreeCardReviewStatusinside 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 toactiveanddoneis 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 diffagainst2ff2a1b268;WorktreeCard.tsxdiffers 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:
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.inactiveworkspaces 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-repooxlint --format githubis clean, 0 warnings and 0 errors across 12,032 files. React Doctor and oxfmt clean on changed files.static analysiswith amax-lineserror inmobile/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 currentmainand 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.WorktreeCardReviewStatus.test.tsxis removed along with the component it covered. No new tests, since restoring prior coverage is the intent.AI Review Report
src,tests, andmobileforWorktreeCardReviewStatusand thedata-worktree-card-review-statusattribute. Every hit is in a file this revert also restores; no orphan imports.IDENTITY_REPLACEABLE_STATUSESremains{inactive}and gates both the review and branch glyphs, so no state shows two glyphs or none.tsc. Two isolated runs are clean at 72/72; the failures were load-induced, not real.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.