Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe PR adds a shared Merge Risk: 🟡 Moderate · up to On landscape phones with a left-side camera cutout, users may be unable to reliably access the control needed to reopen a hidden workspace sidebar. Restore safe-area-aware positioning before merge. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Linked Issues checkExplanation The changes satisfy the coding objectives in issue Full details: Description checkExplanation The description follows the repository template and includes the change, rationale, linked issue, visual proof, testing, review notes, AI disclosure, boundary status, and checklist. It also explains that full-suite and build validation remain covered by CI.
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Team
Run ID: e5f30f25-8a79-4012-86e6-9aedcd16cf69
📒 Files selected for processing (7)
mobile/app/h/_layout.tsxmobile/src/components/HostSidebarToggleButton.test.tsxmobile/src/components/HostSidebarToggleButton.tsxmobile/src/host-screen/host-screen-header.tsxmobile/src/host-screen/host-screen-primary-styles.tsmobile/src/layout/responsive-layout-metrics.test.tsmobile/src/layout/responsive-layout-metrics.ts
💤 Files with no reviewable changes (1)
- mobile/src/host-screen/host-screen-primary-styles.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Wide-layout classification —
getResponsiveLayoutMetricsnow treatswidth >= 700in landscape asisWideLayout(on top of the existing tablet short-side rule), flipping the[hostId]base route to the detail placeholder and moving landscape phones into the split view. - Collapsible-sidebar reveal rail —
HostGroupLayoutrenders a safe-area-aware left rail (40px + insets.left, top/left inset padded) whenever the wide sidebar is collapsed, exposing a reusableHostSidebarToggleButtonto reopen it. - Shared toggle component — the new
HostSidebarToggleButtoncentralizes the hide/reopenPressablewith label, hint, andexpandedstate, and the header's inline collapse button is replaced with it. - Tests — a boundary table (699/700 across landscape and tablet) and a renderer test asserting the toggle's accessibility contract and single
onPressfire.
ℹ️ isWideLayout is a shared flag with reach beyond this PR's title
The change deliberately broadens isWideLayout, which is consumed well past the workspace sidebar: home host list and empty state (content capping/centering), session panel dock (canDockSessionPanel), PR sidebar dock (canDockPrSidebar), MobileDiffReviewScreenView, RightDrawer width resolution, and mounted-bottom-drawer modal capping. The PR body and validation only cover the workspace sidebar, so I traced the other callers to confirm they don't misbehave on a landscape phone. They appear benign — the dock paths are gated by measured available width, and the detail pane on a landscape phone (window width minus the sidebar) falls below the 640px/680px dock thresholds, so panels stay in push/overlay mode; the rest is cosmetic capping. No code change required, but worth a quick landscape-phone sanity check of the home list and the session/diff-review screens if that behavior wasn't an explicit goal.
Technical details
# Blast radius of widened isWideLayout
## Affected sites (all mobile/)
- src/session/use-mobile-session-foundation.ts — canDockSessionPanel (dock gated by HOST_DOCK_MIN_WIDTH 280 + minMain 360 = 640)
- src/components/mobile-pr-sidebar-presentation.ts — canDockPrSidebar (320 + 360 = 680)
- src/components/MobileDiffReviewScreenView.tsx — inline vs overlay PR sidebar
- src/components/right-drawer-panel-width.ts — caps wide panel at 420
- src/components/mounted-bottom-drawer.tsx — caps modal at modalMaxWidth 480
- src/home/MobileHomeHostList.tsx / MobileHomeEmptyState.tsx — cap + center at contentMaxWidth 720
- app/h/[hostId]/index.tsx — base host route -> WorkspaceDetailPlaceholder
## Required outcome
- None required; the concern is a scope/validation question, not a defect.
## Open questions for the human (optional)
- Is dock/centering behavior on landscape phones an intended consequence, or should isWideLayout stay tablet-only with a separate split-view flag for the sidebar?ℹ️ Nitpicks
- Two comments are now inaccurate due to the semantic change (both in unchanged lines, so noted here rather than inline):
mobile/app/h/_layout.tsx:65("Wide layout = tablet/foldable canvas") andmobile/src/host-screen/use-host-screen-controller.ts:50("on phones isWideLayout is false so it stays edge-to-edge").
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Team
Run ID: dd484a41-3c27-4941-a0f0-6a44b5ded95c
📒 Files selected for processing (4)
mobile/app/h/_layout.tsxmobile/src/components/HostSidebarToggleButton.tsxmobile/src/layout/host-sidebar-presentation.test.tsmobile/src/layout/host-sidebar-presentation.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- mobile/src/components/HostSidebarToggleButton.tsx
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.
There was a problem hiding this comment.
ℹ️ No critical issues — one minor suggestion for the reveal tab's safe-area handling.
Reviewed changes
- Compact reveal tab — replaced the full-height, safe-area-aware reveal rail with a floating
revealTabpinned to the left edge at vertical center, so a collapsed sidebar leaves no empty strip. - Extracted presentation decision — new pure
getHostSidebarPresentationhelper (plus unit tests) mapsshowSidebar/detailHasContent/sidebarOpentohidden | sidebar | reveal, which also keeps the base host route rendering the sidebar synchronously instead of flashing the reveal control before the state-reset effect runs. - Metrics cleanup — hoisted
isLandscapeinto a local ingetResponsiveLayoutMetricsand removed the now-stale comment that claimed width alone avoided landscape phones.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Safe-area-aware reveal tab — re-added
insets.leftpadding plus abgPanelbackground to the floatingrevealTab, so the compact edge button clears the Dynamic Island on notched landscape devices instead of sitting under it. This resolves the prior safe-area concern.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Reveal-tab positioning — moved the collapsed-sidebar reveal tab from vertical center (
top: '50%') totop: '25%'and dropped thepaddingLeft: insets.leftsafe-area inset plus the containerbgPanel, so the compact edge tab clears a landscape phone's side-mounted camera island by sitting above it rather than padding around it. The toggle button already supplies its ownbgPanel/border, so the container background removal is a clean dedup anduseSafeAreaInsetsis now unused.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
|
Follow-up verification for the collapsed-sidebar affordance:
|

ELI5
Orca Mobile now keeps the workspace list beside the active workspace when a landscape phone is wide enough, just like on a tablet. If the list is hidden, a compact edge tab remains so it can always be reopened without taking width away from the workspace.
What Changed
HostSidebarToggleButtonfor both hide and reopen actions.This change is based on
mainand is independent from keyboard-navigation PR #18195.Why
Wide landscape phones have enough room for the tablet-style workspace split view, but were forced into full-screen list navigation. Wide layouts also had no in-place way to recover after hiding the workspace sidebar.
The list, host catalog, and navigation implementation are unchanged, so folder workspaces and git worktrees continue through the same existing paths.
Linked Issue
Fixes #18365
Visual Proof
Before: landscape phone opens the session without a workspace sidebar
After: landscape phone uses the wide split layout
After collapse: compact reopen edge tab without an empty rail
Testing
pnpm --dir mobile test src/layout/responsive-layout-metrics.test.ts src/layout/host-sidebar-presentation.test.ts src/components/HostSidebarToggleButton.test.tsx— 14 tests passed.pnpm tc— passed.pnpm run check:code-quality:changed— passed with 0 findings.Author
AI Disclosure
OpenAI Codex (GPT-5) was used for implementation, tests, review, and simulator validation.
Review
Agent skill upstream boundary
Notes
The base host route resolves directly to the visible-sidebar presentation, so a collapsed detail route cannot flash the reveal control over the empty placeholder while the state-reset effect runs.
Checklist
pnpm tc, and changed-file quality checks pass; remaining full-suite/build coverage is left to CI.