Repository navigation
fix(mobile): the page's auth-failed banner offers Re-pair again - #22363
Conversation
#22283 dropped all three banner actions on the page, on the claim that /pair-scan sits outside the page's route root so Re-pair cannot work there. It does work: the host screen's router is the route handoff, which posts a target the page does not serve to the shell (route-handoff.web.ts:207), and on the emulator the tap opened the native scan screen and Back returned to the same page document. The page's sibling now renders Re-pair as native does, wired to the same onRepair, plus a muted line for the two it still cannot honour: "Reconnect or remove this host from the Orca app." forceReconnect stays null on the page and removal keeps refusing; native renders its three actions as before. The doc comments and the web-overrides reason are corrected, and the reason's drifted citations re-resolved. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 📝 WalkthroughWalkthroughThe web auth-failure banner now renders a Re-pair button connected to Priority: ⬇️ Low Merge Risk: 🔵 Low · up to Localized builds may show the new Re-pair guidance only in English. Localize the new banner text before merging. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the behavior change, rationale, implementation, and tests, but it does not follow the required template. It omits the required section structure, explicit Linked Issue entry, Visual Proof or N/A statement, testing checkboxes, review notes, and checklist. Resolution Rewrite the description using the repository template. Add ELI5, What Changed, Why, and Linked Issue sections with a valid issue reference such as Fixes #...; provide before-and-after visual proof or write N/A with a reason; complete the Testing, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist sections. Full details: Docstring CoverageExplanation Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 4 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 4155318b-b9b8-4035-bdb1-b2cd7b6aca67
📒 Files selected for processing (5)
mobile/src/components/AuthFailedBannerActions.tsxmobile/src/components/AuthFailedBannerActions.web.tsxmobile/src/components/auth-failed-banner-actions-page.test.tsxmobile/src/components/auth-failed-banner-styles.tsmobile/web-entry/web-overrides.json
Included review availability: Your plan provides up to 10 included reviews per hour; 4 remain after this review.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Page banner offers Re-pair again —
AuthFailedBannerActions.web.tsxnow renders the nativeRe-pairpressable wired toonRepair, plus a muted note naming the app for the two actions the page cannot honour, replacing the single "Reconnect or re-pair from the Orca app." line. - Shared style added —
auth-failed-banner-styles.tsgains anotestyle consistent with the siblingactionText(theme tokens,fontSize: 13). - Comments and override reason refreshed — the native sibling's JSDoc and the
web-overrides.jsonreason now explain why the page keeps Re-pair and drops Retry/Remove, with two stale line citations corrected (bridge-host.ts:301,bridge-envelope.ts:44). - Page suite rewritten — asserts exactly one pressable labelled
Re-pair, that its press reachesonRepair, and that the note names reconnect/removal. The native three-action suite is unchanged.
The handoff path checks out: host-workspace-list.tsx:52 wires onRepair to router.push('/pair-scan'), use-host-screen-controller.ts:51 takes router from useRouteHandoff(), and BRIDGE_ROUTE_HREF_PATTERN (bridge-caps.ts:84) admits /pair-scan while servedHere finds no page route for it, so it is handed to the shell, which registers pair-scan at app/_layout.tsx:217. The refreshed citations all match the head.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

#22283 removed all three actions from the page's auth-failed banner on the claim that Re-pair could not work there because
/pair-scansits outside the page's route root. The claim was wrong for one of the three, and this puts that one back. Inert today: the page only mounts in anEXPO_PUBLIC_MOBILE_SHELL=otabuild; native renders its three actions as before.What the emulator showed (
emulator-check-page-repair, pre-#22283 build): the page's route handoff (route-handoff.web.ts) hands any rooted href it does not serve to the shell, which pushes the native screen. Tapping Re-pair on the page opened the native "Pair with desktop" screen, then the camera prompt and the scanner, and Back returned to the same page document without a reload. Retry did nothing (the page's re-dial is null since #22326) and Remove refused (the page holds no host list), both as #22283 said.The page's sibling now renders Re-pair alone, with the native label, styles and
onRepair(the banner's push of/pair-scan, carried to the shell by the handoff), and a muted line for the two it cannot honour: "Reconnect or remove this host from the Orca app." The status sentence above is unchanged. Every comment and theweb-overrides.jsonreason that repeated the wrong claim now say why the sibling exists: Retry and Remove are inert on the page, Re-pair is not; two stale citations in that reason were refreshed.Tests: the page suite asserts one pressable labelled Re-pair whose press reaches the screen, and that the line names reconnect and removal, not re-pair (red against the previous sibling); the native three-action suite is unchanged. Session-route closure pin unchanged at 4,213.