Repository navigation
feat(mobile): rebuild Home around what needs you, with actions pinned at the bottom - #36520
Conversation
|
No actionable comments were generated in the recent review.
|
There was a problem hiding this comment.
Actionable comments posted: 3

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:
b59b629d-647e-4cdd-85d4-9eaf74d0fa3d
Files selected for processing: 94-
config/flaky-test-pattern-baseline.txtconfig/scripts/locale-ko-key-overrides.jsonmobile/rpc-foundation/goldens/home-host-accounts.jsonmobile/rpc-foundation/goldens/home-host-stats.jsonmobile/rpc-foundation/goldens/matrix-home.host-accounts-accounts.list-1.jsonmobile/rpc-foundation/goldens/matrix-home.host-stats-stats.summary-1.jsonmobile/rpc-foundation/goldens/matrix-settings.home-providers-linear.status-1.jsonmobile/rpc-foundation/goldens/matrix-settings.home-providers-preflight.check-1.jsonmobile/rpc-foundation/goldens/matrix-settings.home-providers-settings.get-1.jsonmobile/rpc-foundation/goldens/matrix-worktree.home-catalog-worktree.ps-1.jsonmobile/rpc-foundation/goldens/schedules-settings-home-providers-fulfilled.jsonmobile/rpc-foundation/goldens/settings-home-coalesced.jsonmobile/rpc-foundation/goldens/settings-home-providers-fulfilled.jsonmobile/rpc-foundation/goldens/settings-home-providers-refuse-after-data.jsonmobile/rpc-foundation/goldens/settings-home-providers-refused.jsonmobile/rpc-foundation/goldens/settings-home-providers-transport-error.jsonmobile/rpc-foundation/goldens/worktree-home-catalog.jsonmobile/rpc-foundation/pilot-scenarios.jsonmobile/rpc-foundation/settings-recording-coverage.jsonmobile/src/accounts/use-open-mobile-accounts.tsmobile/src/cache/home-snapshot-cache.tsmobile/src/components/AgentSpinner.tsxmobile/src/components/MobileHomeQuickActions.test.tsmobile/src/components/MobileHomeQuickActions.tsxmobile/src/components/MobileHostCard-truthful-status.test.tsxmobile/src/components/MobileHostCard.test.tsmobile/src/components/MobileHostCard.tsxmobile/src/home/AppUpdateCard.tsxmobile/src/home/MobileHomeAccountUsageCards.tsxmobile/src/home/MobileHomeAppUpdateCard.tsxmobile/src/home/MobileHomeBottomBar.tsxmobile/src/home/MobileHomeDesktopRow.test.tsxmobile/src/home/MobileHomeDesktopRow.tsxmobile/src/home/MobileHomeEmptyState.tsxmobile/src/home/MobileHomeHostList.tsxmobile/src/home/MobileHomeJumpBackIn.tsxmobile/src/home/MobileHomeListFooter.test.tsxmobile/src/home/MobileHomeListFooter.tsxmobile/src/home/MobileHomeListHeader.tsxmobile/src/home/MobileHomeResumeCard.tsxmobile/src/home/MobileHomeScreen.tsxmobile/src/home/MobileHomeTasksCard.tsxmobile/src/home/MobileHomeTopBar.tsxmobile/src/home/home-host-reply-schema.test.tsmobile/src/home/home-host-reply-schema.tsmobile/src/home/home-list-styles.tsmobile/src/home/mobile-home-host-operations.tsmobile/src/home/mobile-home-host-requests.tsmobile/src/home/use-mobile-home-data.tsmobile/src/home/use-mobile-home-host-connections.tsmobile/src/i18n/locales/de.jsonmobile/src/i18n/locales/en.jsonmobile/src/i18n/locales/es.jsonmobile/src/i18n/locales/fr.jsonmobile/src/i18n/locales/ja.jsonmobile/src/i18n/locales/ko.jsonmobile/src/i18n/locales/pt.jsonmobile/src/i18n/locales/ru.jsonmobile/src/i18n/locales/tr.jsonmobile/src/i18n/locales/zh-Hant.jsonmobile/src/i18n/locales/zh.jsonmobile/src/stats/home-stats-total.test.tsmobile/src/stats/home-stats-total.tsmobile/src/test-support/bridged-parity/divergence-classes.test.tsmobile/src/test-support/bridged-parity/divergence-classes.tsmobile/src/test-support/rpc-recording/README.mdmobile/src/test-support/rpc-recording/adapters/home-accounts-mount-adapters.tsmobile/src/test-support/rpc-recording/adapters/host-screen-mount-adapters.tsmobile/src/test-support/rpc-recording/adapters/mounted-operation-modules.tsmobile/src/test-support/rpc-recording/adapters/settings-mount-adapters.tsmobile/src/test-support/rpc-recording/derived-goldens.tsmobile/src/test-support/rpc-recording/mutants/operation-mutations.tsmobile/src/test-support/rpc-recording/mutants/pilot-mutants.test.tsmobile/src/worktree/home-host-worktree-fetch.test.tsmobile/src/worktree/home-host-worktree-fetch.tsmobile/src/worktree/home-jump-back-in.test.tsmobile/src/worktree/home-jump-back-in.tsmobile/src/worktree/home-resume-card.tsmobile/src/worktree/home-worktree-info.tsmobile/src/worktree/workspace-list-ordering.tssrc/renderer/src/assets/mobile-page.csssrc/renderer/src/components/mobile/slides/HomeSlide.fixture.tsxsrc/renderer/src/components/mobile/slides/HomeSlide.tsxsrc/renderer/src/i18n/locales/de.jsonsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/pt.jsonsrc/renderer/src/i18n/locales/ru.jsonsrc/renderer/src/i18n/locales/tr.jsonsrc/renderer/src/i18n/locales/zh-Hant.jsonsrc/renderer/src/i18n/locales/zh.json
Files with no reviewable changes: 51-
- mobile/rpc-foundation/goldens/settings-home-coalesced.json
- mobile/src/components/MobileHostCard-truthful-status.test.tsx
- mobile/rpc-foundation/goldens/home-host-stats.json
- mobile/rpc-foundation/goldens/matrix-home.host-stats-stats.summary-1.json
- mobile/src/components/MobileHostCard.test.ts
- mobile/src/components/MobileHomeQuickActions.tsx
- mobile/rpc-foundation/settings-recording-coverage.json
- mobile/rpc-foundation/goldens/matrix-settings.home-providers-linear.status-1.json
- mobile/rpc-foundation/goldens/settings-home-providers-refused.json
- mobile/rpc-foundation/goldens/matrix-settings.home-providers-settings.get-1.json
- mobile/rpc-foundation/goldens/settings-home-providers-refuse-after-data.json
- mobile/rpc-foundation/goldens/home-host-accounts.json
- mobile/rpc-foundation/goldens/schedules-settings-home-providers-fulfilled.json
- mobile/src/home/MobileHomeListFooter.test.tsx
- mobile/rpc-foundation/goldens/matrix-settings.home-providers-preflight.check-1.json
- mobile/rpc-foundation/goldens/matrix-home.host-accounts-accounts.list-1.json
- mobile/src/home/MobileHomeListHeader.tsx
- mobile/src/home/MobileHomeAccountUsageCards.tsx
- mobile/rpc-foundation/goldens/settings-home-providers-fulfilled.json
- mobile/src/components/MobileHostCard.tsx
- mobile/src/home/MobileHomeTasksCard.tsx
- mobile/src/components/MobileHomeQuickActions.test.ts
- mobile/src/accounts/use-open-mobile-accounts.ts
- config/scripts/locale-ko-key-overrides.json
- mobile/src/test-support/rpc-recording/adapters/mounted-operation-modules.ts
- mobile/src/home/MobileHomeListFooter.tsx
- mobile/src/test-support/rpc-recording/derived-goldens.ts
- mobile/src/home/home-host-reply-schema.test.ts
- mobile/src/home/MobileHomeResumeCard.tsx
- mobile/src/stats/home-stats-total.test.ts
- mobile/src/home/mobile-home-host-requests.ts
- mobile/src/home/home-host-reply-schema.ts
- mobile/rpc-foundation/goldens/settings-home-providers-transport-error.json
- mobile/src/test-support/rpc-recording/adapters/settings-mount-adapters.ts
- mobile/src/stats/home-stats-total.ts
- mobile/src/test-support/rpc-recording/mutants/pilot-mutants.test.ts
- mobile/src/test-support/rpc-recording/adapters/host-screen-mount-adapters.ts
- mobile/src/test-support/rpc-recording/adapters/home-accounts-mount-adapters.ts
- mobile/src/home/mobile-home-host-operations.ts
- mobile/src/test-support/rpc-recording/mutants/operation-mutations.ts
- mobile/rpc-foundation/pilot-scenarios.json
- src/renderer/src/i18n/locales/pt.json
- src/renderer/src/i18n/locales/zh.json
- src/renderer/src/i18n/locales/zh-Hant.json
- src/renderer/src/i18n/locales/tr.json
- src/renderer/src/i18n/locales/de.json
- src/renderer/src/i18n/locales/ko.json
- src/renderer/src/i18n/locales/es.json
- src/renderer/src/i18n/locales/fr.json
- src/renderer/src/i18n/locales/ja.json
- src/renderer/src/i18n/locales/ru.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
-
There was a problem hiding this comment.
Actionable comments posted: 2

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:
86a8cbbb-cfb9-48e9-89b6-91119eef58ff
Files selected for processing: 6-
config/flaky-test-pattern-baseline.txtmobile/src/home/MobileHomeJumpBackIn.tsxmobile/src/home/MobileHomeScreen.tsxmobile/src/home/use-mobile-home-data.tsmobile/src/worktree/home-jump-back-in.test.tsmobile/src/worktree/home-jump-back-in.ts
Files with no reviewable changes: 1-
- mobile/src/home/MobileHomeScreen.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
-
… at the bottom Home led with stats and a stack of same-weight cards, and its actions sat below the fold. It now shows "Jump back in" (agents waiting for input, unseen finished work, running work, then the last-opened workspace), one grouped Desktops list, and Tasks / New workspace pinned above the home indicator. - Drop the stats tiles, account usage cards, Tasks card logos and quick-action tiles, plus the stats.summary, accounts and task-provider requests that only Home sent. - Desktop rows: one status line coloured like its dot, the fix on its own wrapping line, long-press for the menu (path and endpoint in its header). - Keep Jump back in current with runtime client events while Home is focused, at most one list read per desktop every 3 s; agent states from offline or stale lists are never shown. - First run pins Pair desktop in the same spot; paired users no longer see first-run while the catalog loads. - Redraw the desktop Settings > Mobile Home slide to match.
…icking A failed host catalog read replaced the list with [], so a refresh error dropped every desktop and showed first-run. It now keeps what was shown. Relative times in Jump back in froze while Home stayed open; they now tick with useNow. Agent states are no longer restored from the saved snapshot, so the 10-minute age cutoff that guarded against that goes away and accurate rows no longer drop out after ten quiet minutes. The flaky-test baseline now only drops the two deleted host-card entries.
After a reconnect, Jump back in showed the agent states from before the drop until the reconnect read landed. Leaving 'connected' now clears them, and only a fresh list read can show them again. The saved-snapshot strip uses the same helper. The flaky-test baseline is rebuilt from current main, minus only the two deleted host-card tests.
f055c0f to
854f995
Compare
ELI5
The phone's Home screen opened on stats nobody came for ("agents spawned", "agent time") and a stack of look-alike cards. The buttons you actually use sat below the bottom of the screen. Home now opens on the agents that need you and your desktops, with Tasks and New workspace always at the bottom where your thumb is.
What Changed
worktree.pslist Home already reads. Agent states only come from a connected desktop's list read this session, never from the copy saved on the phone.stats.summary,accounts.listwithaccounts.subscribe, and the task-provider lookup), plus their RPC recordings. Usage stays on each desktop's Accounts screen.runtime.clientEventsnotices (sidebarInputsChanged,worktreesChanged,reposChanged) trigger a fresh read, at most one every 3 s per desktop. This replaces Home'saccounts.subscribestream.Why
Most people open Home to get back to an agent that needs them, or to start something. Stats and per-provider usage bars answer neither question, and same-weight bordered cards gave no sense of what mattered or what you could tap. This follows the corner rules from #36437: 16 for groups, 12 for buttons.
Linked Issue
None. This is a maintainer change.
Visual Proof
The same phone paired to the same desktop, main on the left, this branch on the right:
More states. "Light" and "Nothing connected" render the real components with sample data, because blocked agents and offline desktops are hard to stage. "First run" is the real route on a fresh install.
The round gear floating over the shots is the Expo dev client's tools button, not part of Home.
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Manual: iOS simulator (iPhone 18 Pro, iOS 27) running this branch's JS, paired to a real desktop, in light and dark. Not tested on Android or a physical phone.
New tests: the Jump back in order, the stale/offline cutoff, and the last-opened dedupe (
home-jump-back-in.test.ts). The old host card's truthful-status tests move toMobileHomeDesktopRow.test.tsx, plus amber-not-red text and the long-press accessibility action.RPC recordings: re-recorded with
rpc:record --prune; the recording and bridged-parity suites pass.Checks run locally:
pnpm lint,pnpm tc, mobiletypecheck:tests,check:code-quality:changed,check:react-doctor:changed, the mobile and desktop localization verifiers, and the focused Home tests. The full suite is left to CI.AI Disclosure
Review
connection-healthcopy.Agent skill upstream boundary
Notes
worktree.psit uses already exist on current hosts.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)