Skip to content

Demote address picker to optional disclosure on Orca Relay - #12796

Merged
AmethystLiang merged 3 commits into
mainfrom
improve-relay-guide-user-experience
Aug 6, 2026
Merged

AmethystLiang merged 3 commits into
mainfrom
improve-relay-guide-user-experience

Conversation

@AmethystLiang

Copy link
Copy Markdown
Contributor

Problem

When pairing via Orca Relay, the network address picker is prominently displayed even though Relay has its own built-in endpoint—the picker is only useful for the optional local fast path. This clutters the pairing UI. Additionally, the Sign in panel sits below the options, obscuring that it applies to Relay specifically, not LAN.

Solution

  • Demote the network address picker to an optional disclosure on Relay, keeping it reachable via toggle or settings search
  • Keep the picker fully visible for LAN (which requires an address) and when a custom address is set
  • Move the Sign in panel inside the radiogroup between Relay and LAN to clarify it's Relay-specific
  • Update copy to clarify sign-in is required for Relay only
  • Add reassuring note on Windows that pairing still works over Relay if firewall blocks the LAN address

Testing

  • Relay mode hides address picker behind disclosure (unless custom address)
  • LAN mode shows address picker fully visible
  • Settings search for "network" opens the disclosure
  • Sign in panel positioned between Relay and LAN options
  • Windows Firewall notice shows Relay fallback message
  • pnpm lint
  • pnpm typecheck
  • pnpm test
  • pnpm build

Notes

  • Address picker remains reachable on Relay since Relay still advertises a LAN endpoint for faster local connections when nearby
  • Custom addresses always shown (never hidden) because they're explicit user overrides
  • Settings search opens disclosure when users search for "network" or "interface", supporting discoverability
  • No security or backend changes; pure UX refinement

Relay provides remote access without requiring a specific local address,
so hide the picker behind a disclosure to keep the direct fast path
accessible without visual clutter. Reposition Sign in between the Relay
and LAN options to clarify it's Relay-specific. Keep custom addresses
always visible and force the disclosure open when settings search
targets the address picker.
@coderabbitai

coderabbitai Bot commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 19ea8eb4-3829-4617-8ec8-87ca4319fe97

📥 Commits

Reviewing files that changed from the base of the PR and between a3b21e9 and 40e9d9a.

📒 Files selected for processing (10)
  • src/renderer/src/assets/mobile-page.css
  • src/renderer/src/components/mobile/MobileHero.test.tsx
  • src/renderer/src/components/mobile/MobileHeroPairingStep.tsx
  • src/renderer/src/components/settings/MobilePairingSetupSection.test.tsx
  • src/renderer/src/components/settings/MobilePairingSetupSection.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
🚧 Files skipped from review as they are similar to previous changes (9)
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/components/mobile/MobileHero.test.tsx
  • src/renderer/src/components/settings/MobilePairingSetupSection.tsx
  • src/renderer/src/components/settings/MobilePairingSetupSection.test.tsx
  • src/renderer/src/components/mobile/MobileHeroPairingStep.tsx
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json

📝 Walkthrough

Walkthrough

Mobile pairing now hides optional local network addresses behind Relay disclosures while keeping custom addresses and LAN controls visible. Settings search can force the address section open. Relay and LAN path options use a shared accessible radio component with nested sign-in controls. Relay-aware firewall messaging and localized copy were added. Address refresh no longer invalidates the initial QR selection. Virtual bridge interfaces receive lower address-selection priority. Tests cover the updated behavior.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the user-visible changes and tests, but it omits the required Screenshots, AI Review Report, and Security Audit sections and leaves command checks incomplete. Add the missing template sections, report lint/typecheck/test/build results, and document the AI review, cross-platform checks, and security audit.
Docstring Coverage ⚠️ Warning Docstring coverage is 28.57% which is insufficient. The required threshold is 80.00%. 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 summarizes the primary change: making the Orca Relay address picker optional.
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.
✨ Finishing Touches 💡 1
📝 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.

@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: Pro Plus

Run ID: baee22a7-0698-44f1-80b9-cfcc759c164d

📥 Commits

Reviewing files that changed from the base of the PR and between 9ce9ce9 and 4b88854.

📒 Files selected for processing (21)
  • src/renderer/src/components/mobile/MobileHero.test.tsx
  • src/renderer/src/components/mobile/MobileHeroPairingStep.tsx
  • src/renderer/src/components/mobile/WindowsFirewallNotice.test.tsx
  • src/renderer/src/components/mobile/WindowsFirewallNotice.tsx
  • src/renderer/src/components/mobile/use-mobile-pairing-address-preference.test.tsx
  • src/renderer/src/components/mobile/use-mobile-pairing-address-preference.ts
  • src/renderer/src/components/settings/MobilePairingConnectionOptions.test.tsx
  • src/renderer/src/components/settings/MobilePairingConnectionOptions.tsx
  • src/renderer/src/components/settings/MobilePairingPathOption.tsx
  • src/renderer/src/components/settings/MobilePairingSetupSection.test.tsx
  • src/renderer/src/components/settings/MobilePairingSetupSection.tsx
  • src/renderer/src/components/settings/MobilePane.test.tsx
  • src/renderer/src/components/settings/MobilePane.tsx
  • src/renderer/src/components/settings/MobilePaneAddressSearch.test.tsx
  • src/renderer/src/components/settings/mobile-pane-search.test.ts
  • src/renderer/src/components/settings/mobile-pane-search.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json

- Rank Docker/VirtualBox bridges below real LAN addresses so they're never auto-advertised as the default
- Clarify UI copy: 'Local network address (optional)' → 'Direct connection on this network'
- Better explain direct connection vs Relay roles and when each is used
- Fix Relay unavailability to be a build property, not dependent on current selection
Demote the address picker from primary action styling to an optional
disclosure with quieter visual treatment. Update messaging from "Direct
connection on this network" to "Also use a faster local path" to
clarify Relay is the default path and local addressing only applies
when nearby. Add explanatory hint text to set expectations that Relay
remains available when away.

@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: Pro Plus

Run ID: 9a5bf3b4-ce5a-4ec2-b9ab-ae9ebe84465b

📥 Commits

Reviewing files that changed from the base of the PR and between 4b88854 and a3b21e9.

📒 Files selected for processing (13)
  • src/main/ipc/mobile.test.ts
  • src/main/ipc/mobile.ts
  • src/renderer/src/components/mobile/MobileHero.test.tsx
  • src/renderer/src/components/mobile/MobileHeroPairingStep.tsx
  • src/renderer/src/components/settings/MobilePairingConnectionOptions.test.tsx
  • src/renderer/src/components/settings/MobilePairingConnectionOptions.tsx
  • src/renderer/src/components/settings/MobilePairingSetupSection.test.tsx
  • src/renderer/src/components/settings/MobilePairingSetupSection.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
🚧 Files skipped from review as they are similar to previous changes (11)
  • src/renderer/src/components/mobile/MobileHeroPairingStep.tsx
  • src/renderer/src/components/settings/MobilePairingSetupSection.test.tsx
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/components/settings/MobilePairingSetupSection.tsx
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/components/mobile/MobileHero.test.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/components/settings/MobilePairingConnectionOptions.tsx
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/components/settings/MobilePairingConnectionOptions.test.tsx

Comment thread src/main/ipc/mobile.ts Resolved
@AmethystLiang
AmethystLiang merged commit c3db2b8 into main Aug 6, 2026
43 checks passed
gal064 pushed a commit to gal064/orca that referenced this pull request Aug 7, 2026
…12796)

* refactor(mobile): demote address picker to optional disclosure on Relay

Relay provides remote access without requiring a specific local address,
so hide the picker behind a disclosure to keep the direct fast path
accessible without visual clutter. Reposition Sign in between the Relay
and LAN options to clarify it's Relay-specific. Keep custom addresses
always visible and force the disclosure open when settings search
targets the address picker.

* refactor(mobile): improve relay pairing guide and interface ranking

- Rank Docker/VirtualBox bridges below real LAN addresses so they're never auto-advertised as the default
- Clarify UI copy: 'Local network address (optional)' → 'Direct connection on this network'
- Better explain direct connection vs Relay roles and when each is used
- Fix Relay unavailability to be a build property, not dependent on current selection

* refactor(mobile): reframe local network address as optional in relay pai

Demote the address picker from primary action styling to an optional
disclosure with quieter visual treatment. Update messaging from "Direct
connection on this network" to "Also use a faster local path" to
clarify Relay is the default path and local addressing only applies
when nearby. Add explanatory hint text to set expectations that Relay
remains available when away.
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…12796)

* refactor(mobile): demote address picker to optional disclosure on Relay

Relay provides remote access without requiring a specific local address,
so hide the picker behind a disclosure to keep the direct fast path
accessible without visual clutter. Reposition Sign in between the Relay
and LAN options to clarify it's Relay-specific. Keep custom addresses
always visible and force the disclosure open when settings search
targets the address picker.

* refactor(mobile): improve relay pairing guide and interface ranking

- Rank Docker/VirtualBox bridges below real LAN addresses so they're never auto-advertised as the default
- Clarify UI copy: 'Local network address (optional)' → 'Direct connection on this network'
- Better explain direct connection vs Relay roles and when each is used
- Fix Relay unavailability to be a build property, not dependent on current selection

* refactor(mobile): reframe local network address as optional in relay pai

Demote the address picker from primary action styling to an optional
disclosure with quieter visual treatment. Update messaging from "Direct
connection on this network" to "Also use a faster local path" to
clarify Relay is the default path and local addressing only applies
when nearby. Add explanatory hint text to set expectations that Relay
remains available when away.
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