feat(mobile): point an offline host at Remote Access setup

Merged
KI
2mo ago
+135-14

What & why

On mobile, a host that never had Remote Access turned on looks the same as one that dropped offline. A first-time user sees "offline" with nothing to do about it.

The offline view now adds a short hint and a "Set up remote access" link to https://docs.superset.sh/remote-access. "Switch host" is unchanged. The link uses the existing openUrl helper and COMPANY.DOCS_URL, like the connect-host and hosts-settings screens. Both new strings are translated in all 16 non-English locales.

How I tested it

Offline host view with the Remote Access hint and Set up remote access link

iPhone 17 Pro simulator, iOS 26.5, local Debug build from this branch. The component was mounted through a temporary, uncommitted preview route, so the signed-in Home header is absent and the host name is a placeholder. The link was not tapped.

  • bun run check:i18n: pass
  • bun run lint in apps/mobile: pass
  • bunx turbo run typecheck --filter=@superset/mobile: 11 errors, all in packages/port-scanner and packages/workspace-fs. The same 11 appear with this change reverted.

Checklist

  • PR title follows conventional commits (type(scope): subject)
  • bun run lint and bun run typecheck pass — lint passes; typecheck fails on the pre-existing errors above

Summary by CodeRabbit

  • New Features

    • Offline devices now include guidance for enabling Remote Access in the desktop app.
    • Added a “Set up remote access” link that opens the relevant documentation.
    • Added localized Remote Access guidance and action labels across supported languages.
  • UI Improvements

    • Updated spacing, alignment, typography, and button layout for the offline-device view.