Skip to content

fix(mobile): make Troubleshooting a list of checks, the connection log and issue pages - #48522

Merged
AmoabaKelvin merged 2 commits into
mainfrom
mobile-troubleshooting-rows
Nov 27, 2026
Merged

AmoabaKelvin merged 2 commits into
mainfrom
mobile-troubleshooting-rows

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

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

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)

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Note

Reviews paused

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.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

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: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning 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 Passed checks: 3 passed

Check name Status Explanation
Title check Passed 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 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: 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

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

Share

Recent 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: cdbce382-1980-4d27-bf09-86b5e5dbb616
Commits

Reviewing files that changed from the base of the PR and between ab0f9e7 and cc80c8b.

Files selected for processing: 14

  • mobile/src/diagnostics/connection-diagnostics-screen-styles.ts
  • mobile/src/diagnostics/troubleshoot-screen-styles.ts
  • 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
  • mobile/src/settings/settings-screen-frame.tsx
Files with no reviewable changes: 1

  • mobile/src/diagnostics/troubleshoot-screen-styles.ts
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.

@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: 6

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: 14711053-35d3-4a20-afa7-b154d1c0bc9b
Commits

Reviewing files that changed from the base of the PR and between 1f4588e and a9ba47f.

Files selected for processing: 43

  • mobile/app/about.tsx
  • mobile/app/connection-log.tsx
  • mobile/app/h/[hostId]/edit.tsx
  • mobile/app/settings.tsx
  • mobile/app/terminal-settings.tsx
  • mobile/app/troubleshoot-issue.tsx
  • mobile/app/troubleshoot.tsx
  • mobile/src/components/nav-bar/NavBarButton.tsx
  • mobile/src/diagnostics/connection-diagnostics-screen-styles.ts
  • mobile/src/diagnostics/connection-diagnostics-screen.tsx
  • mobile/src/diagnostics/connection-diagnostics-view.tsx
  • mobile/src/diagnostics/troubleshoot-common-issues.tsx
  • mobile/src/diagnostics/troubleshoot-screen-styles.ts
  • mobile/src/diagnostics/troubleshoot-view.tsx
  • mobile/src/i18n/en-runtime-required.json
  • 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
  • mobile/src/settings/about-screen.tsx
  • mobile/src/settings/app-update-settings-rows.tsx
  • mobile/src/settings/appearance-settings-screen.tsx
  • mobile/src/settings/browser-settings-screen.tsx
  • mobile/src/settings/mobile-settings-menu-items.ts
  • mobile/src/settings/mobile-settings-menu.tsx
  • mobile/src/settings/native-chat-settings-screen.tsx
  • mobile/src/settings/pending-credential-cleanup-card.tsx
  • mobile/src/settings/settings-app-update-section.tsx
  • mobile/src/settings/settings-menu-screen.tsx
  • mobile/src/settings/settings-screen-frame.tsx
  • mobile/src/settings/ui-language-settings-section.tsx
  • mobile/src/settings/voice-settings-screen.tsx
  • mobile/src/settings/voice-transcribe-on-section.tsx
  • mobile/src/terminal/preferences/settings/TerminalFontSettings.tsx
  • mobile/src/terminal/shortcuts/settings/TerminalShortcutSettings.tsx
  • mobile/src/theme/mobile-theme.ts
Files with no reviewable changes: 1

  • mobile/src/settings/settings-app-update-section.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

() => {}
)
}, [])
const issue = troubleshootCommonIssues(t, endpoints).find((entry) => entry.id === id)

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.

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.

}
onBack={onBack}
trailing={
hasHost ? (

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.

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.

Comment on lines +66 to +67
: problems === 0
? t('diagnostics.troubleshootView.allGood', 'All good')

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.

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.

"running": "Läuft…",
"title": "Fehlerbehebung",
"viewNetworkDiagnostics": "Netzwerkdiagnose anzeigen"
"title": "Fehlerbehebung"

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.

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.

"running": "Выполняется…",
"title": "Устранение неполадок",
"viewNetworkDiagnostics": "Открыть диагностику сети"
"title": "Устранение неполадок"

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.

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.

/** At most two NavBarButtons. */
trailing?: ReactNode
/** Replaces the title, e.g. a title button that picks a computer. */
center?: ReactNode

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.

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.

@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-troubleshooting-rows branch from c82fe33 to 86f07a1 Compare November 25, 2026 02:17

@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

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

"sent": "Диагностика отправлена",
"stateWithAttempt": "{{state}} · попытка {{attempts}}",
"title": "Диагностика сети"
"stateWithAttempt": "{{state}} · попытка {{attempts}}"

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.

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.

@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-troubleshooting-rows branch from 86f07a1 to ab0f9e7 Compare November 27, 2026 08:42
@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-troubleshooting-rows branch from ab0f9e7 to cc80c8b Compare November 27, 2026 09:23
@AmoabaKelvin
AmoabaKelvin merged commit b9f7d01 into main Nov 27, 2026
29 checks passed
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