You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(mobile): make Troubleshooting a list of checks, the connection log and issue pages - #48522
Troubleshooting opened with two big filled buttons and an accordion of Title Case paragraphs. It's now a list: run the check (its results are rows, the summary is the header), the connection log, then common issues that each open a short page of numbered steps. The connection log picks the computer from its title and keeps Copy and Send in ⋯.
Files
Added
Deleted
Net
Test
0
0
0
0
Prod
23
$\color{#1a7f37}{\Huge{\mathbf{+}}}$388
$\color{#cf222e}{\Huge{\mathbf{−}}}$633
$\color{#cf222e}{\Huge{\mathbf{−}}}$245
What Changed
Troubleshooting: "Run check" is an accent row in the first group; after a run, each check is a row (green or red mark, detail as subtitle, red when it failed), the header says "All good" or "2 problems", and the row becomes "Check again". "Connection log ›" replaces the "View network diagnostics" button. Common issues are drill rows named by what you see ("Port 6768 is blocked", "Orca isn't running on the computer", "Notifications don't arrive") instead of a Title Case accordion with icons; each opens a page with its steps numbered in one group.
The page goes by one name, "Connection log", instead of three (Network diagnostics, View network diagnostics, connection log).
Connection log: with more than one paired computer the title is a button ("Connection log ⌄ / Kelvin's MacBook Pro") that opens a picker, instead of a row of chips under the bar. Copy report and Send report sit in ⋯ (Send only when the report can go to Orca, with its privacy line as the item's hint) instead of a pill and a card with an 18-word note. States read as words ("Reconnecting · attempt 3", "Needs pairing again") instead of raw values ("reconnecting", "auth-failed"). The diagnosis is a row in the same group.
SettingsNavBar takes an optional center, so a settings page can use NavBarTitleButton.
Why
From the phone UX audit (Settings, Troubleshooting) and the approved mock. Steps stay the same strings, now one per numbered row on their own page, so nothing is lost when they leave the accordion.
Linked Issue
None; from the phone UX audit (Settings, Troubleshooting).
Visual Proof
Light: before | after with a failed check | before running | a common issue's page: (screenshot removed: contained real product data)
Dark, same order: (screenshot removed: contained real product data)
Connection log with two computers, reconnecting (light before/after, dark before/after): (screenshot removed: contained real product data)
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
Rendered Troubleshooting (idle, after a run with a failure), a common issue page and the connection log from the real components in both themes. pnpm check:changed and the mobile typecheck pass. No tests: layout and copy; the diagnostics, report and submit code is unchanged.
Performance
None, because the checks, log and report run the same code; the issue page reads the paired computers once to name their ports, as the list did.
Risk
Level: Low
Copy and Send move behind ⋯, one tap further. Plain revert backs it out.
AI Disclosure
Review
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
This PR is small and focused
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
I stated the risk: what could break, for whom, and how to back it out
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
No actionable comments were generated in the recent review.
Walkthrough
Connection diagnostics now receive host choices through the screen and present host selection, connection details, logs, and report actions in a settings-based layout. The troubleshooting view presents diagnostic results and common issues as rows. Selecting an issue opens a dedicated route that loads host endpoints and displays the matching issue steps when available. The changes also update troubleshooting labels and guidance across locales.
Merge Risk: Low · up to cc80c
Troubleshooting and connection-log layouts work, and Copy report is now reachable before a computer is paired. A few small issues remain. Warning-only checks can show "All good". A selected nondefault firewall issue page can be blank if the host catalog read fails. A title picker passed through the settings wrapper would be dropped. Several new labels appear in English in non-English locales. These are low-impact and can be followed up on.
Pre-merge checks: 3 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Description check
The description follows the template closely and covers the main sections: ELI5, What Changed, Why, Visual Proof, Testing, Performance, Risk, and the checklist. The change is scoped to mobile Troubles…
1) Link a real issue in the Linked Issue section (replace 'None' with 'Fixes #'), or explain why none exists and confirm the author is a maintainer. 2) Re-attach the before/after screenshots or videos for the Visual Proof section, s…
Passed checks: 3 passed
Check name
Status
Explanation
Title check
The title names the mobile Troubleshooting change (a list of checks), the connection log page, and the issue pages. These match the main changes in the diff. The title is long and lists three parts, b…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the mobile Troubleshooting change (a list of checks), the connection log page, and the issue pages. These match the main changes in the diff. The title is long and lists three parts, but it is specific and related to the changeset. It uses a conventional commit prefix, which is acceptable.
Full details: Description check
Explanation
The description follows the template closely and covers the main sections: ELI5, What Changed, Why, Visual Proof, Testing, Performance, Risk, and the checklist. The change is scoped to mobile Troubleshooting and the connection log, and the Risk section names a plain revert. Gaps remain. The Linked Issue section says 'None' and gives no issue link, which the template says must always exist for outside contributors. Visual Proof screenshots were removed, so the before/after evidence the template requires is not visible. The Testing section says no automated tests were added and gives no reason tied to the test-anti-pattern item, though it does state a reason ('layout and copy'). The Risk level is set to Low, and the AI Disclosure section is blank. The Performance line is complete. The Testing checklist for lint, typecheck, test, and build is unchecked, with 'CI will cover' not stated. The Review and Notes sections are unfilled template text.
Resolution
Link a real issue in the Linked Issue section (replace 'None' with 'Fixes #<number>'), or explain why none exists and confirm the author is a maintainer. 2) Re-attach the before/after screenshots or videos for the Visual Proof section, since the current ones were removed. Use a method that does not commit files to the PR. 3) State the reason no automated tests were added, and confirm whether pnpm lint, typecheck, test, and build passed. 4) Complete the AI Disclosure section or mark it as not applicable for internal contributors.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Files skipped from review as they are similar to previous changes: 11
mobile/src/i18n/locales/de.json
mobile/src/i18n/locales/en.json
mobile/src/i18n/locales/es.json
mobile/src/i18n/locales/fr.json
mobile/src/i18n/locales/ja.json
mobile/src/i18n/locales/ko.json
mobile/src/i18n/locales/pt.json
mobile/src/i18n/locales/ru.json
mobile/src/i18n/locales/tr.json
mobile/src/i18n/locales/zh-Hant.json
mobile/src/i18n/locales/zh.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Resolve firewall advice without requiring another catalog read.
If the list contains firewall-8888 and this page's catalog read fails, endpoints stays empty. troubleshootCommonIssues then produces only firewall-6768. This lookup fails, and the page permanently shows “Common issues” with no steps.
Preserve the selected port in the route and generate its advice directly. A failed catalog refresh must not remove instructions that the user already selected.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Keep Copy report available without a paired host.
When no host is paired, this condition hides the only control that opens the report menu. App connection events can still appear, and createNativeDiagnosticsOperations(null, ...) explicitly generates an app-only report. Users cannot copy that report.
Show the overflow button without a host. Keep Send controlled by canSend.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Do not show “All good” when a check has a warning.
If reading host data fails but the other checks pass, the diagnostics hook returns a warn result with “Could not read host data.” This summary counts only failures, so it displays “All good.”
Show “All good” only when every check passes. Use a separate summary when checks contain warnings but no failures.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Add German entries for the troubleshooting keys that currently fall back to English.
de.json has no entries for the issue titles in diagnostics.troubleshootCommonIssues (wifiIssue, firewallIssue, notificationsIssue, desktopIssue, timeoutIssue, tailscaleIssue, vpnIssue). Its diagnostics.troubleshootView block also lacks allGood, problems_one, problems_other, runCheck, and checkAgain. When a key is missing, translate() uses the English fallback. A German user therefore sees text such as "Not on the same Wi-Fi", "1 problem", and "Run check" in English on the Troubleshooting screen.
Add German values for these keys to de.json. The other non-English catalogs have the same gap for problems_one, wifiIssue, firewallIssue, and notificationsIssue, so add those entries there as well.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Add translated values for the new Troubleshooting keys in ru, tr, zh, and zh-Hant.
This change removes the translated Troubleshooting labels in these four locale files. It does not add replacement values for the new keys. The keys diagnostics.troubleshootView.runCheck and diagnostics.troubleshootView.connectionLog, and the issue titles diagnostics.troubleshootCommonIssues.wifiIssue, firewallIssue, desktopIssue, and timeoutIssue, have no entry in these locales. Their English inline defaults therefore display for Russian, Turkish, and Chinese users (both zh and zh-Hant). The Run check and Check again actions and the common-issue titles appear in English.
Add a translated value for every key that troubleshoot-view.tsx and troubleshoot-common-issues.tsx read in each of these locales. Include the keys not named here, such as the remaining issue-title keys. The screen remains usable in English, so this is a localization regression rather than a blocking failure.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Forward center through SettingsScreen.
SettingsScreen also accepts SettingsNavBarProps, so this change adds center to its public props. However, SettingsScreen neither destructures nor forwards center. If a caller supplies a title-picker button through this wrapper, the button is omitted and the ordinary title remains.
Destructure center in SettingsScreen and pass it to SettingsNavBar. An undefined value will preserve the existing title fallback.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: b1897d5f-e3b2-4024-b6c5-3270b7224957
Commits
Reviewing files that changed from the base of the PR and between c82fe33 and 86f07a1.
Files selected for processing: 3
mobile/src/i18n/en-runtime-required.json
mobile/src/i18n/locales/ru.json
mobile/src/i18n/locales/tr.json
Files skipped from review as they are similar to previous changes: 1
mobile/src/i18n/en-runtime-required.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Add translations for the connection-state labels and the Send hint.
The connection log reads diagnostics.connectionDiagnosticsView.status.* for state labels, and the Send menu reads diagnostics.connectionDiagnosticsView.sendHint for its privacy hint. Neither key exists in ru.json or tr.json. Russian and Turkish users therefore see the English defaults, such as "Connected", "Reconnecting", and "Redacted: never terminal contents or credentials."
Add a status object and a sendHint value to both locale files, under diagnostics.connectionDiagnosticsView. The removed Russian and Turkish state values can serve as a starting point for connecting, handshaking, connected, disconnected, and reconnecting. Review authFailed before reusing it: its old meaning ("authentication failed") differs from the new English default "Needs pairing again". The Send hint needs a new translation, because the removed privacyHint text is longer and describes a different report.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
Troubleshooting opened with two big filled buttons and an accordion of Title Case paragraphs. It's now a list: run the check (its results are rows, the summary is the header), the connection log, then common issues that each open a short page of numbered steps. The connection log picks the computer from its title and keeps Copy and Send in ⋯.
What Changed
SettingsNavBartakes an optionalcenter, so a settings page can useNavBarTitleButton.Why
From the phone UX audit (Settings, Troubleshooting) and the approved mock. Steps stay the same strings, now one per numbered row on their own page, so nothing is lost when they leave the accordion.
Linked Issue
None; from the phone UX audit (Settings, Troubleshooting).
Visual Proof
Light: before | after with a failed check | before running | a common issue's page:
(screenshot removed: contained real product data)
Dark, same order:
(screenshot removed: contained real product data)
Connection log with two computers, reconnecting (light before/after, dark before/after):
(screenshot removed: contained real product data)
Testing
Rendered Troubleshooting (idle, after a run with a failure), a common issue page and the connection log from the real components in both themes.
pnpm check:changedand the mobile typecheck pass. No tests: layout and copy; the diagnostics, report and submit code is unchanged.Performance
None, because the checks, log and report run the same code; the issue page reads the paired computers once to name their ports, as the list did.
Risk
Level: Low
Copy and Send move behind ⋯, one tap further. Plain revert backs it out.
AI Disclosure
Review
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)