Skip to content

feat(mobile): polish press feedback, sheet motion, states, spacing and layout jumps - #36713

Merged
AmoabaKelvin merged 2 commits into
mainfrom
mobile-polish
Nov 1, 2026
Merged

AmoabaKelvin merged 2 commits into
mainfrom
mobile-polish

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 33 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​240 $\color{#cf222e}{\Huge{\mathbf{−}}}$​66 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​174
Prod 187 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4776 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3547 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1229

ELI5

The phone app now behaves more consistently:

  • Every button shows a press the same way, and haptics follow one rule.
  • Sheets move with your finger instead of fighting it.
  • When something loads, fails or goes offline, you get a clear message with a way out instead of a raw error or a spinner that never stops.
  • Rows and labels line up, and screens stop jumping as data arrives.

What Changed

An audit of five areas on the phone-size preview drove this pass: press feedback, motion, states, spacing and jumps. It measured element positions frame by frame where it could, and each fix went to the component that owns the problem.

  • Press feedback and haptics:
    • One pressed opacity (0.7) and one disabled opacity (0.4), as feedback tokens. Pressed fills use translucentFill, so presses show in light mode too (sheet header actions, ⋯ menus, workspace rows).

    • Session tabs and segmented switchers now show a pressed state.

    • 44 pt touch areas for terminal dock keys, composer buttons and the workspace lineage toggle.

    • One haptic rule:

      Action Haptic
      Picks and toggles Selection tick
      Long-press menus Medium
      Create and delete workspace Success or error
      Plain navigation None

      This drops the medium thump from task-row taps and the double tick from pickers.

    • Composer insets are 12 pt on chat, the terminal dock and source control.

  • Sheet motion (mounted-bottom-drawer.tsx):
    • One value drives each sheet. Grabbing a sheet mid-open hands it to your finger. A release decides by projected position (past half the sheet, capped at 200 pt, or a flick over 800 pt/s) and carries the finger's speed into a critically damped spring, with no overshoot.
    • The scrim follows the sheet's position.
    • Create-worktree pickers stack over the pinned form: the scrim deepens from 0.55 to 0.80 without stepping, and the return takes 350 ms instead of 830.
    • Collapsing a section keeps the content until the height reaches zero, and the chevron turns on the same curve.
    • The ⋯ menu grows from its button and fades out.
    • The workspace-options pager uses the page curve.
    • Pushing a screen shifts the one underneath left 30% and dims it.
    • The page title fold snaps without the 140 ms pause.
    • Tapping into the bottom search folds the filter button away over 220 ms instead of jumping the field.
  • Loading, empty, error and offline states:
    • One MobileStateView with loading, empty, no-match (Clear), error (Retry plus a Details toggle for the raw text) and offline (Waiting for {host}, Reconnect) variants.
    • describeLoadError turns socket errors and RPC codes into one sentence.
    • Adopted across Files, preview, Source Control, Review, the PR sidebar, Tasks, Accounts, session tabs and content, workspaces, new workspace and Agent History.
    • Ends spinners that never stopped (session tabs, Accounts, Tasks offline) and failures that showed as empty lists.
    • Retry no longer appears where it can't help (binary or too-large diffs).
    • Hard-coded English moved to t().
  • Spacing:
    • The issue sheet uses one left edge, with a 16 pt title.
    • Section labels line up with their rows. Workspace group headers are now 13 pt sentence case.
    • ActionSheetModal and PickerModal are built on ListGroup/ListRow.
    • Chat markdown lists match paragraph size, and their markers line up.
    • The PR tab moves to a 16 pt gutter.
    • Workspace list separators start at the text and are hairlines.
    • Switch rows are 48 pt, like other rows. The workspace row's trailing values end on one edge.
    • Chat meta is aligned, the Tasks filter's Done button lines up, and off-scale chip and row padding is snapped to the scale.
  • Jumps and flickers:
    • The chat transcript no longer drops on the first keystroke.
    • The host name and list come from a synchronous peekHosts(), so no "Host" or "No paired desktops" flash.
    • Review no longer flashes "Diff Unavailable" for a frame.
    • Tasks no longer flashes "No matching tasks" and no longer reflows its provider chips.
    • The create-worktree sheet holds its height while loading, and Home's connect note waits for the first connect.

Why

These were the rough edges left after the redesign: presses that didn't show, sheets that stalled and bounced, raw exceptions and endless spinners, edges at 12, 14, 16 and 28 pt on the same screen, and layout that shifted as data loaded.

Linked Issue

N/A. Follow-up polish to #36585, from an audit; no issue.

Visual Proof

Left is main, right is this branch. Phone-size renders of the OTA pages against a fake host. The states rows force a failed, offline or empty reply.

Screen Before / After
Files, load error files-error.png
Tasks, offline tasks-offline.png
Workspaces, no match workspaces-no-match.png
Issue sheet issue-sheet.png
Workspaces workspaces.png
Source control source-control.png
Agent Session History agent-history.png
Chat chat.png
Workspace options workspace-options.png

Testing

  • Re-measured the motion on the built bundle:

    • Swipe-away starts at finger speed (8, 24, 42, 57, 84 px per frame against a 14 px/frame finger) and is gone 315 ms after release.
    • Snap-back settles with no overshoot, and a grab mid-open follows the finger.
    • When a picker closes, the pinned form holds its frame with no empty-frame flash.
  • pnpm tc, pnpm lint, check:code-quality:changed, check:react-doctor:changed, check:zustand-selector-fanout, both mobile localization checks, the mobile tests typecheck, build:mobile-web (183 assets, within the shell's budget) and all 455 mobile page render checks pass.

  • The full mobile suite passes except mobile-e2ee-v2-client-session ("preserves full large text frames"), which fails locally on main too.

  • The stack-transition render test now asserts the parallax rule: the list stays painted and moves between 0 and −30% mid-slide.

  • Re-recorded RPC goldens where the requests are the same and only element counts or text changed (tasks list, files explorer, git history, Agent History).

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

AI Disclosure

Review

  • mobile/src/components/mounted-bottom-drawer.tsx and its new gesture and motion helpers: the drag, release and scrim rules.
  • mobile/src/components/MobileStateView.tsx and load-error-description.ts: the shared states.
  • mobile/src/theme/mobile-theme.ts: the feedback tokens.
  • SectionHeader lives in components/list/ListGroup.tsx. A separate file, even a re-export, makes esbuild emit an extra shared chunk, and the bundle sits at the shell's 183-asset ceiling.

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

Mobile only. Home, the drawer's native paths and the settings screens ship with the next app build; the rest are OTA pages. There are no RPC changes.

Deferred, each needing an iPhone, an app release or a product call:

Deferred item Needs
Edge swipe-back on in-page screens App release (native)
Keyboard-synced motion for sheets and the bottom bar iPhone
The double sheet on Home → New workspace iPhone
The ~400 ms first-render wait before a push slides Product/perf call: placeholder, or a cheaper session render. Route preloading was tried and dropped: no gain for a ~12 MB eager download.
Native pinned-form remount check on iPhone iPhone
Moving the remaining hand-rolled rows and Settings onto the shared list and NavBar Product call
bodySize 14 → 15 Product call
PR reviewers shifting Checks Product call
Home desktop reorder on return Product call
Composer placeholder height when "Waiting for terminal…" shows Product call

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)
  • 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 Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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
Walkthrough

The update adds shared loading, error, offline, and no-match views across mobile screens. Tasks now track list settlement and hydration retries, and host screens can initialize from cached profiles. Drawer and navigation transitions use shared motion helpers. The change also updates touch targets, feedback, list layouts, translations, and related golden snapshots and tests.

Merge Risk: Low · up to b141c

An empty session can misleadingly say it is connecting when the device needs re-pairing. This is a bounded issue to address before or shortly after merging.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description covers the required change summary, rationale, visual proof, testing, review notes, scope, and checklist. However, the required Linked Issue section is marked N/A and does not provide … Add a valid linked issue reference in the Linked Issue section, or identify the applicable pre-existing issue if the author is a maintainer. Keep the existing testing and visual proof details.
Docstring Coverage Warning Docstring coverage is 39.22% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly summarizes the main mobile changes: press feedback, sheet motion, shared states, spacing, and layout stability. It is concise and related to the changeset.
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: Description check

Explanation

The description covers the required change summary, rationale, visual proof, testing, review notes, scope, and checklist. However, the required Linked Issue section is marked N/A and does not provide an actual issue link.

Resolution

Add a valid linked issue reference in the Linked Issue section, or identify the applicable pre-existing issue if the author is a maintainer. Keep the existing testing and visual proof details.

Full details: Docstring Coverage

Explanation

Docstring coverage is 39.22% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 51 functions across 65 files. (1 skipped: 1 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
  • 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

@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: a46cfc13-cc71-4d14-8987-d55986abd1c4
Commits

Reviewing files that changed from the base of the PR and between 893152f and e1321f4.

Files selected for processing: 210
  • config/scripts/mobile-web-app/mobile-web-app-stack-transition-render.test.mjs
  • mobile/app/terminal-settings.tsx
  • mobile/app/voice-settings.tsx
  • mobile/rpc-foundation/goldens/files-explorer-legacy-fallback.json
  • mobile/rpc-foundation/goldens/files-explorer-readdir.json
  • mobile/rpc-foundation/goldens/matrix-aivault.history-screen-status.get-2.json
  • mobile/rpc-foundation/goldens/matrix-files.explorer-screen-files.list-1.json
  • mobile/rpc-foundation/goldens/matrix-files.explorer-screen-files.readdir-1.json
  • mobile/rpc-foundation/goldens/matrix-git.history-commit-files-git.commitcompare-1.json
  • mobile/rpc-foundation/goldens/matrix-git.history-commit-files-git.history-1.json
  • mobile/rpc-foundation/goldens/matrix-settings.task-hydration-status.get-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.linear-team-context-linear.listteams-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.linear-team-context-linear.teamstates-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.task-list-gitlab-items-gitlab.listworkitems-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.task-list-gitlab-todos-gitlab.todos-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.task-list-linear-linear.listissues-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.task-list-linear-linear.searchissues-1.json
  • mobile/rpc-foundation/goldens/sc-history-commit-files.json
  • mobile/rpc-foundation/goldens/tk-linear-team-context.json
  • mobile/rpc-foundation/goldens/tk-list-gitlab-items.json
  • mobile/rpc-foundation/goldens/tk-list-gitlab-todos.json
  • mobile/rpc-foundation/goldens/tk-list-linear.json
  • mobile/src/accounts/MobileAccountsLoadState.tsx
  • mobile/src/accounts/MobileAccountsScreen.tsx
  • mobile/src/accounts/mobile-accounts-screen-reset-credit.test.ts
  • mobile/src/agent-history/AgentHistorySessionRow.tsx
  • mobile/src/agent-history/AgentHistoryStateView.tsx
  • mobile/src/agent-history/MobileAgentSessionHistoryList.tsx
  • mobile/src/agent-history/MobileAgentSessionHistoryPanel.tsx
  • mobile/src/agent-history/agent-history-back-handoff.test.tsx
  • mobile/src/agent-history/agent-history-pending-resume-ownership.test.tsx
  • mobile/src/agent-history/agent-history-retry.test.tsx
  • mobile/src/agent-history/agent-history-styles.ts
  • mobile/src/automations/AutomationManager.tsx
  • mobile/src/browser/use-mobile-browser-stream.ts
  • mobile/src/components/ActionSheetModal.tsx
  • mobile/src/components/AutoHeight.tsx
  • mobile/src/components/DisclosureChevron.tsx
  • mobile/src/components/DragReorderRow.tsx
  • mobile/src/components/JiraConnectPrompt.tsx
  • mobile/src/components/MobileDiffReviewBody.tsx
  • mobile/src/components/MobileDiffReviewScreenView.tsx
  • mobile/src/components/MobileLoadErrorState.tsx
  • mobile/src/components/MobileMarkdown.rendering.test.tsx
  • mobile/src/components/MobileMarkdown.tsx
  • mobile/src/components/MobilePRSidebar.tsx
  • mobile/src/components/MobileSegmentedControl.tsx
  • mobile/src/components/MobileStateView.tsx
  • mobile/src/components/MobileSwitch.tsx
  • mobile/src/components/NewWorktreeFormOptions.tsx
  • mobile/src/components/NewWorktreeFormSheet.tsx
  • mobile/src/components/NewWorktreeModal.test.tsx
  • mobile/src/components/NewWorktreeModal.tsx
  • mobile/src/components/NewWorktreeProjectTargetFields.tsx
  • mobile/src/components/PickerListDrawer.tsx
  • mobile/src/components/PickerModal.accessibility.test.ts
  • mobile/src/components/PickerModal.tsx
  • mobile/src/components/RightDrawer.tsx
  • mobile/src/components/SheetPrimaryButton.tsx
  • mobile/src/components/SmartWorkspaceSourceField.tsx
  • mobile/src/components/WorktreeListRow.tsx
  • mobile/src/components/bottom-drawer-constants.ts
  • mobile/src/components/bottom-drawer-drag-motion.test.ts
  • mobile/src/components/bottom-drawer-drag-motion.ts
  • mobile/src/components/composer-input/ComposerSendButton.tsx
  • mobile/src/components/composer-input/composer-input-styles.ts
  • mobile/src/components/list/ListGroup.tsx
  • mobile/src/components/list/ListRow.tsx
  • mobile/src/components/list/SectionHeader.tsx
  • mobile/src/components/load-error-description.ts
  • mobile/src/components/mobile-markdown-blocks.tsx
  • mobile/src/components/mounted-bottom-drawer.tsx
  • mobile/src/components/nav-bar/BottomSearchBar.tsx
  • mobile/src/components/nav-bar/FilterChip.tsx
  • mobile/src/components/nav-bar/NavBarButton.tsx
  • mobile/src/components/nav-bar/PageTitle.tsx
  • mobile/src/components/nav-bar/PullDownMenu.tsx
  • mobile/src/components/nav-bar/SheetHeader.tsx
  • mobile/src/components/new-worktree-form-sheet-visibility.test.ts
  • mobile/src/components/new-worktree-form-sheet-visibility.ts
  • mobile/src/components/new-worktree-form-styles.ts
  • mobile/src/components/pr-sidebar/mobile-pr-sidebar-styles.ts
  • mobile/src/components/pr-sidebar/pr-create-empty-state-styles.ts
  • mobile/src/components/sheet-motion-values.ts
  • mobile/src/components/use-bottom-drawer-drag.ts
  • mobile/src/components/use-new-workspace-create-submit.ts
  • mobile/src/components/use-new-workspace-repositories.ts
  • mobile/src/components/use-new-worktree-drawer-navigation.test.ts
  • mobile/src/components/use-new-worktree-drawer-navigation.ts
  • mobile/src/components/worktree-list-row-layout.ts
  • mobile/src/files/MobileFileExplorerPanel.test.ts
  • mobile/src/files/MobileFileExplorerPanel.tsx
  • mobile/src/files/MobileFileMediaPreview.tsx
  • mobile/src/files/MobileFilePreviewBody.tsx
  • mobile/src/files/MobileMarkdownPreviewImage.test.tsx
  • mobile/src/files/MobileMarkdownPreviewImage.tsx
  • mobile/src/files/MobileMarkdownPreviewModeBar.test.ts
  • mobile/src/files/MobilePdfPreview.tsx
  • mobile/src/files/mobile-file-explorer-row.tsx
  • mobile/src/files/mobile-file-explorer-rows.tsx
  • mobile/src/files/mobile-file-preview-retry.test.tsx
  • mobile/src/home/MobileHomeBottomBar.test.tsx
  • mobile/src/home/MobileHomeBottomBar.tsx
  • mobile/src/home/MobileHomeScreen.tsx
  • mobile/src/home/use-mobile-home-data.ts
  • mobile/src/host-screen/host-bottom-bar.test.tsx
  • mobile/src/host-screen/host-list-settings-sync.test.ts
  • mobile/src/host-screen/host-screen-secondary-styles.ts
  • mobile/src/host-screen/host-stored-identity.ts
  • mobile/src/host-screen/host-workspace-list.tsx
  • mobile/src/host-screen/use-host-screen-controller.ts
  • mobile/src/host-screen/use-host-screen-identity.ts
  • mobile/src/host-screen/use-host-screen-state.ts
  • mobile/src/host-screen/use-host-worktree-actions.ts
  • mobile/src/host-screen/workspace-option-controls.tsx
  • mobile/src/host-screen/workspace-options-pager.tsx
  • mobile/src/host-screen/workspace-options-sheet.test.tsx
  • mobile/src/host-screen/workspace-options-sheet.tsx
  • 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/mobile-web-shell/terminal-key-rail.tsx
  • mobile/src/navigation/host-stack-motion.web.ts
  • mobile/src/navigation/host-stack.web.tsx
  • mobile/src/navigation/push-motion.ts
  • mobile/src/session/MobileMarkdownReader.tsx
  • mobile/src/session/MobileNativeChatView.tsx
  • mobile/src/session/MobileSessionAccessoryKeys.tsx
  • mobile/src/session/MobileSessionActiveContent.tsx
  • mobile/src/session/MobileSessionContentState.tsx
  • mobile/src/session/MobileSessionFileReader.tsx
  • mobile/src/session/MobileSessionMarkdownReader.test.tsx
  • mobile/src/session/MobileSessionMarkdownReader.tsx
  • mobile/src/session/MobileSessionTab.tsx
  • mobile/src/session/MobileSessionTabStrip.tsx
  • mobile/src/session/MobileTerminalInputActions.tsx
  • mobile/src/session/TerminalMoreKeysSheet.tsx
  • mobile/src/session/mobile-diff-review-retry.test.tsx
  • mobile/src/session/mobile-native-chat-render-data.ts
  • mobile/src/session/mobile-session-frame-styles.ts
  • mobile/src/session/mobile-session-header-overflow.test.tsx
  • mobile/src/session/native-chat/composer/MobileNativeChatComposer.tsx
  • mobile/src/session/native-chat/composer/MobileNativeChatComposerField.web.tsx
  • mobile/src/session/native-chat/composer/MobileNativeChatComposerMic.tsx
  • mobile/src/session/native-chat/composer/mobile-native-chat-composer-styles.ts
  • mobile/src/session/native-chat/input/MobileNativeChatSessionOptionPickers.tsx
  • mobile/src/session/native-chat/input/MobileNativeChatSessionOptionSegments.tsx
  • mobile/src/session/native-chat/input/MobileNativeChatStopButton.tsx
  • mobile/src/session/native-chat/transcript/MobileNativeChatMessage.tsx
  • mobile/src/session/native-chat/transcript/MobileNativeChatMessageActionsSheet.test.tsx
  • mobile/src/session/native-chat/transcript/MobileNativeChatRowOverlaysHost.test.tsx
  • mobile/src/session/native-chat/transcript/MobileNativeChatRowOverlaysHost.tsx
  • mobile/src/session/native-chat/transcript/mobile-native-chat-message-styles.ts
  • mobile/src/session/terminal-dock-styles.ts
  • mobile/src/session/use-mobile-diff-review-diff-loading.ts
  • mobile/src/session/use-mobile-session-document-readers.ts
  • mobile/src/session/use-mobile-session-presentation.ts
  • mobile/src/settings/terminal-settings-hydration.test.tsx
  • mobile/src/settings/voice-settings-screen.tsx
  • mobile/src/source-control/MobileGitHistoryList.test.tsx
  • mobile/src/source-control/MobileGitHistoryList.tsx
  • mobile/src/source-control/MobileSourceControlFileList.tsx
  • mobile/src/source-control/MobileSourceControlFileRows.tsx
  • mobile/src/source-control/MobileSourceControlPanel.tsx
  • mobile/src/source-control/mobile-source-control-list-styles.ts
  • mobile/src/source-control/source-control-status-retry.test.tsx
  • mobile/src/source-control/use-mobile-source-control-openers.ts
  • mobile/src/tasks/MobileTasksLegacySurface.tsx
  • mobile/src/tasks/linear-search-failure-render.test.tsx
  • mobile/src/tasks/mobile-task-request-cancellation.test.tsx
  • mobile/src/tasks/mobile-tasks-chrome-styles.ts
  • mobile/src/tasks/mobile-tasks-dependencies.ts
  • mobile/src/tasks/mobile-tasks-detail-styles.ts
  • mobile/src/tasks/mobile-tasks-filter-pickers.tsx
  • mobile/src/tasks/mobile-tasks-filter-sheet.tsx
  • mobile/src/tasks/mobile-tasks-github-project-list.tsx
  • mobile/src/tasks/mobile-tasks-item-comments.tsx
  • mobile/src/tasks/mobile-tasks-item-detail-content.tsx
  • mobile/src/tasks/mobile-tasks-item-field-editors.tsx
  • mobile/src/tasks/mobile-tasks-item-review-sections.tsx
  • mobile/src/tasks/mobile-tasks-linear-list.tsx
  • mobile/src/tasks/mobile-tasks-list-state.tsx
  • mobile/src/tasks/mobile-tasks-list-styles.ts
  • mobile/src/tasks/mobile-tasks-list-surface.tsx
  • mobile/src/tasks/mobile-tasks-provider-item-list.tsx
  • mobile/src/tasks/mobile-tasks-screen-chrome.tsx
  • mobile/src/tasks/mobile-tasks-search-control.tsx
  • mobile/src/tasks/mobile-tasks-workspace-create-drawer.tsx
  • mobile/src/tasks/use-mobile-tasks-connection-presentation.tsx
  • mobile/src/tasks/use-mobile-tasks-jira-direct-entry.test.ts
  • mobile/src/tasks/use-mobile-tasks-list-and-detail-effects.tsx
  • mobile/src/tasks/use-mobile-tasks-route-and-item-state.tsx
  • mobile/src/tasks/use-mobile-tasks-runtime-hydration.tsx
  • mobile/src/tasks/use-mobile-tasks-task-list-loading.tsx
  • mobile/src/tasks/use-mobile-tasks-workspace-and-project-state.tsx
  • mobile/src/test-support/expo-haptics-node.ts
  • mobile/src/theme/mobile-theme.ts
  • mobile/src/transport/host-list-load-sharing.ts
  • mobile/src/transport/host-store.ts
  • mobile/src/transport/host-store.web.ts
  • mobile/src/worktree/host-workspace-list-states.tsx
  • mobile/vitest.config.ts
Files with no reviewable changes: 8
  • mobile/src/agent-history/agent-history-styles.ts
  • mobile/src/components/new-worktree-form-sheet-visibility.test.ts
  • mobile/src/tasks/mobile-tasks-dependencies.ts
  • mobile/src/components/list/SectionHeader.tsx
  • mobile/src/files/mobile-file-explorer-rows.tsx
  • mobile/src/components/new-worktree-form-sheet-visibility.ts
  • mobile/src/agent-history/AgentHistoryStateView.tsx
  • mobile/src/components/MobileLoadErrorState.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 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.

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Minor · Give authentication failure precedence over the load error. · MobileAccountsLoadState.tsx:1-67

mobile/src/accounts/MobileAccountsLoadState.tsx:1-67
Minor · Functional Correctness · Quick win

Give authentication failure precedence over the load error.

An in-flight accounts.list request can fail when the connection becomes auth-failed. If hostName is still empty, the current error-first condition renders MobileLoadErrorState and hides the Re-pair action. The generic error state has no recovery action when the connection is no longer connected. Check auth-failed before the generic error branch.

Suggested fix
-  if (error && (connState === 'connected' || !hostName)) {
-    return (
-      <MobileLoadErrorState error={error} onRetry={connState === 'connected' ? onRetry : null} />
-    )
-  }
   if (connState === 'auth-failed') {
     return (
       <MobileStateView
@@
         }}
       />
     )
   }
+  if (error && (connState === 'connected' || !hostName)) {
+    return (
+      <MobileLoadErrorState error={error} onRetry={connState === 'connected' ? onRetry : null} />
+    )
+  }

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: c4c478f7-e9a6-49e7-ab08-abf68939283e
Commits

Reviewing files that changed from the base of the PR and between e1321f4 and 0554df6.

Files selected for processing: 17
  • mobile/rpc-foundation/goldens/matrix-settings.task-hydration-linear.status-1.json
  • mobile/rpc-foundation/goldens/matrix-settings.task-hydration-preflight.check-1.json
  • mobile/rpc-foundation/goldens/matrix-settings.task-hydration-settings.get-1.json
  • mobile/rpc-foundation/goldens/matrix-settings.task-hydration-status.get-1.json
  • mobile/rpc-foundation/goldens/matrix-settings.task-hydration-ui.get-1.json
  • mobile/rpc-foundation/goldens/schedules-settings-task-hydration-fulfilled.json
  • mobile/rpc-foundation/goldens/settings-task-hydration-transport-error.json
  • mobile/src/accounts/MobileAccountsLoadState.tsx
  • mobile/src/accounts/MobileAccountsScreen.tsx
  • mobile/src/components/ActionSheetModal.tsx
  • mobile/src/components/list/ListRow.tsx
  • mobile/src/i18n/locales/en.json
  • mobile/src/settings/settings-screen-state.test.tsx
  • mobile/src/settings/voice-settings-screen.tsx
  • mobile/src/tasks/use-mobile-tasks-runtime-hydration.tsx
  • mobile/src/transport/host-list-load-sharing.test.ts
  • mobile/src/transport/host-list-load-sharing.ts
Files skipped from review as they are similar to previous changes: 6
  • mobile/src/accounts/MobileAccountsLoadState.tsx
  • mobile/src/accounts/MobileAccountsScreen.tsx
  • mobile/src/transport/host-list-load-sharing.ts
  • mobile/src/tasks/use-mobile-tasks-runtime-hydration.tsx
  • mobile/src/settings/voice-settings-screen.tsx
  • mobile/src/i18n/locales/en.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 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.

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (2)

Minor · Keep the provider list loading during… · use-mobile-tasks-runtime-hydration.tsx:143-145

mobile/src/tasks/use-mobile-tasks-runtime-hydration.tsx:143-145
Minor · Functional Correctness · Quick win

Keep the provider list loading during incomplete hydration when no rows are retained.

Reconnect hydration can mark the current client as supported before taskStateHydrated becomes true. If the prior settled list was empty, taskListSettled remains true, so the provider list skips the loading state and shows its empty label while the new read is still pending. Gate this predicate on hydration when no retained rows or project rows exist, while preserving already-rendered rows during reconnect.

Suggested fix
+  const hasRetainedItems =
+    provider === 'github' && githubMode === 'project'
+      ? (model.githubProjectTable?.rows.length ?? 0) > 0
+      : provider === 'linear'
+        ? model.linearIssuesForView.length > 0
+        : model.sortedItems.length > 0
   const loading =
-    model.loading || (connState === 'connected' && !model.taskListSettled && !model.error)
+    model.loading ||
+    (connState === 'connected' &&
+      !model.error &&
+      (!model.taskListSettled || (!model.taskStateHydrated && !hasRetainedItems)))
Minor · Discard saved transforms for screens outside the next motion. · host-stack-motion.web.ts:90-98

mobile/src/navigation/host-stack-motion.web.ts:90-98
Minor · Functional Correctness · Quick win

Discard saved transforms for screens outside the next motion.

When the push from A to B is interrupted by pushOther, the cleanup stores A's computed transform. The B-to-C run clears only B and C. The following B-to-A pop then starts A from that stale transform instead of UNDER_SHIFT, so A can appear at the wrong offset on the first frame.

Capture the starts for the new run, then clear saved transforms for mounted screens that are not moving or under.

Suggested fix
 export function runStackMotion(args: {
   kind: 'push' | 'pop'
   moving: HTMLElement | null
   under: HTMLElement | null
+  nodes: Iterable<HTMLElement>
   onSettled: () => void
 }): () => void {
-  const { kind, moving, under, onSettled } = args
+  const { kind, moving, under, nodes, onSettled } = args
   if (moving === null) {
     return () => {}
   }
   const push = kind === 'push'
   const options: KeyframeAnimationOptions = {
     duration: PUSH_SLIDE_MS,
     easing: PUSH_EASING_CSS,
     fill: 'both'
   }
   const from = (node: HTMLElement, rest: string) => stoppedAt.get(node) ?? rest
+  const movingStart = from(moving, push ? 'translateX(100%)' : 'translateX(0)')
+  const underStart =
+    under === null ? null : from(under, push ? 'translateX(0)' : UNDER_SHIFT)
+  for (const node of nodes) {
+    if (node !== moving && node !== under) {
+      stoppedAt.delete(node)
+    }
+  }
   const slide = moving.animate(
     push
-      ? [{ transform: from(moving, 'translateX(100%)') }, { transform: 'translateX(0)' }]
-      : [{ transform: from(moving, 'translateX(0)') }, { transform: 'translateX(100%)' }],
+      ? [{ transform: movingStart }, { transform: 'translateX(0)' }]
+      : [{ transform: movingStart }, { transform: 'translateX(100%)' }],
     options
   )
@@
           push
-            ? [{ transform: from(under, 'translateX(0)') }, { transform: UNDER_SHIFT }]
-            : [{ transform: from(under, UNDER_SHIFT) }, { transform: 'translateX(0)' }],
+            ? [{ transform: underStart ?? 'translateX(0)' }, { transform: UNDER_SHIFT }]
+            : [{ transform: underStart ?? UNDER_SHIFT }, { transform: 'translateX(0)' }],
           options
         )
     under: nodes.current.get((push ? transition.underKey : topKey) ?? '') ?? null,
+    nodes: nodes.current.values(),
     onSettled: settle

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: 1df5c2ad-ad6c-4afc-bfab-75365498b5c6
Commits

Reviewing files that changed from the base of the PR and between 0554df6 and ae62d53.

Files selected for processing: 17
  • mobile/src/components/MobileSvgPreview.tsx
  • mobile/src/files/MobileFilePreviewBody.test.tsx
  • mobile/src/files/MobileFilePreviewBody.tsx
  • 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/session/MobileSessionFileReader.tsx
  • mobile/src/session/mobile-native-chat-render-data.ts
  • mobile/src/theme/mobile-theme.ts
Files skipped from review as they are similar to previous changes: 11
  • mobile/src/i18n/locales/zh.json
  • mobile/src/i18n/locales/zh-Hant.json
  • mobile/src/i18n/locales/es.json
  • mobile/src/i18n/locales/de.json
  • mobile/src/i18n/locales/ja.json
  • mobile/src/i18n/locales/ko.json
  • mobile/src/i18n/locales/ru.json
  • mobile/src/i18n/locales/tr.json
  • mobile/src/i18n/locales/pt.json
  • mobile/src/i18n/locales/en.json
  • mobile/src/i18n/locales/fr.json

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

…d layout jumps

Every control presses and disables the same way, with one haptic rule.
Sheets follow the finger and settle without bounce, pickers stack instead of
swapping, and screens slide over a dimmed, shifted parent. Loading, empty,
error and offline states share one view with plain-language errors, rows and
labels line up on one grid, and screens stop jumping as data arrives.
…hot current

Voice settings with no paired desktop shows the connect state instead of
loading forever. A failed task settings read after a successful probe retries
hydration. The shared host-list snapshot drops on invalidation and ignores
stale passes. Accounts shows a re-pair state on auth failure, and busy
action-sheet rows keep their disabled state for screen readers.

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

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Minor · Handle authentication failure separately. · MobileSessionActiveContent.tsx:46

mobile/src/session/MobileSessionActiveContent.tsx:46
Minor · Functional Correctness · Quick win

Handle authentication failure separately.

When a session has no visible tabs and the connection is auth-failed, this branch shows “Connecting” indefinitely. The header instead reports “Pairing invalid.” Show a pairing error and recovery guidance rather than a loading state. (raw.githubusercontent.com)


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: 11e87136-cd99-4cc8-a4b1-3e0120db2135
Commits

Reviewing files that changed from the base of the PR and between b2962cb and b141ce9.

Files selected for processing: 5
  • mobile/src/i18n/locales/en.json
  • mobile/src/session/MobileSessionActiveContent.tsx
  • mobile/src/session/native-chat/transcript/MobileNativeChatMessage.tsx
  • mobile/src/session/native-chat/transcript/MobileNativeChatMessageActionsSheet.test.tsx
  • mobile/vitest.config.ts
Files skipped from review as they are similar to previous changes: 1
  • mobile/src/i18n/locales/en.json

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

@AmoabaKelvin
AmoabaKelvin merged commit 563ada1 into main Nov 1, 2026
45 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