Skip to content

fix(mobile): the page's auth-failed banner offers Re-pair again - #22363

Merged
Jinwoo-H merged 2 commits into
mainfrom
ota-fu-page-repair-restored
Sep 23, 2026
Merged

Jinwoo-H merged 2 commits into
mainfrom
ota-fu-page-repair-restored

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​31 $\color{#cf222e}{\Huge{\mathbf{−}}}$​18 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​13
Prod 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​28 $\color{#cf222e}{\Huge{\mathbf{−}}}$​14 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​14

#22283 removed all three actions from the page's auth-failed banner on the claim that Re-pair could not work there because /pair-scan sits 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 an EXPO_PUBLIC_MOBILE_SHELL=ota build; 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 the web-overrides.json reason 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.

#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
@coderabbitai

coderabbitai Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

📝 Walkthrough

Walkthrough

The web auth-failure banner now renders a Re-pair button connected to onRepair and a note directing reconnect and removal to the Orca app. Retry and Remove remain inert on web. Shared styles include muted note text. Page tests verify control labels and callback behavior. Web override documentation now describes the updated behavior and route handoff.

Priority: ⬇️ Low

Merge Risk: 🔵 Low · up to 91a5f

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)

Check name Status Explanation Resolution
Description check ⚠️ Warning 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, … 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 Te…
Docstring Coverage ⚠️ Warning 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… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely identifies the main change: restoring Re-pair to the page's auth-failed banner.
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.
Full details: Description check

Explanation

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 Coverage

Explanation

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.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR

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: Advanced

Run ID: 4155318b-b9b8-4035-bdb1-b2cd7b6aca67

📥 Commits

Reviewing files that changed from the base of the PR and between d11b3e2 and 91a5ff3.

📒 Files selected for processing (5)
  • mobile/src/components/AuthFailedBannerActions.tsx
  • mobile/src/components/AuthFailedBannerActions.web.tsx
  • mobile/src/components/auth-failed-banner-actions-page.test.tsx
  • mobile/src/components/auth-failed-banner-styles.ts
  • mobile/web-entry/web-overrides.json

Included review availability: Your plan provides up to 10 included reviews per hour; 4 remain after this review.

@pullfrog pullfrog 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.

✅ No new issues found.

Reviewed changes

  • Page banner offers Re-pair again — AuthFailedBannerActions.web.tsx now renders the native Re-pair pressable wired to onRepair, 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.ts gains a note style consistent with the sibling actionText (theme tokens, fontSize: 13).
  • Comments and override reason refreshed — the native sibling's JSDoc and the web-overrides.json reason 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 reaches onRepair, 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.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@Jinwoo-H
Jinwoo-H merged commit 11083ac into main Sep 23, 2026
25 checks passed
@Jinwoo-H
Jinwoo-H deleted the ota-fu-page-repair-restored branch September 23, 2026 00:24
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