Skip to content

feat(mobile): diff screen with jump to file, folded context and Stage/Viewed · next file - #36998

Merged
AmoabaKelvin merged 1 commit into
mainfrom
mobile-diff-screen-layout
Nov 1, 2026
Merged

AmoabaKelvin merged 1 commit into
mainfrom
mobile-diff-screen-layout

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 15 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​241 $\color{#cf222e}{\Huge{\mathbf{−}}}$​207 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​34
Prod 62 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2101 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3469 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1368

ELI5

The screen you land on after tapping a changed file now looks and works like the approved design. The title is the file's name and opens a list of every file. Unchanged code folds away. The big button does the next thing: stage this file, or mark it viewed, then go to the next file.

What Changed

Before:

  • The review screen walked every changed file in one mixed list ("7/9"), filtered by six chips.
  • Every unchanged line showed.
  • The only navigation was previous/next and hunk jumps.
  • The bar had Note, Mark Reviewed and a row of Stage/Unstage/Discard buttons.

After (mobile/src/session and MobileDiffReview*):

  • One section at a time. The screen walks the Changes section the file came from: uncommitted (unstaged and untracked), staged, committed on the branch, or one commit's files. The subtitle reads "3 of 12 · 4 viewed", "1 of 4 uncommitted" or "1 of 2 in this commit".
  • Jump to file. Tapping the title opens a sheet built on src/shared/source-control-tree (desktop's compact folder tree), with search, status letters, a "current" pill, note counts, +/- and viewed boxes.
  • Folded context. Unchanged runs fold into "N unchanged lines" rows, keeping 3 lines beside each change, which is the Monaco default desktop's diff uses. Lines with notes never fold.
  • One main button.
    • "Stage · next file" for uncommitted files.
    • "Viewed · next file" for staged and branch files.
    • "Next file" for commit files and files already viewed.
  • ⋯ menu. Discard (with its confirm), Unstage, Add File Note, the notes actions, Pull Request on phones, and Open in Session.
  • Commit files. openDiffForFile also takes { kind: 'commit', commitOid, filePath }. The screen reads the files through git.commitCompare and the diffs through git.commitDiff (diffed against the parent it returns). Commit files are read-only: no notes, no viewed state. New native shells forward the commit param. Shipped shells drop it on a cold mount, and the screen then asks for an app update.
  • Selection by key. The open file is held by key, so a stage, unstage, discard or save that reloads the queue keeps the reader on the right file. A file that leaves falls to whatever took its place.
  • Removed: filter chips, hunk jumps and Stage Reviewed. The mock drops them, and the sections plus jump sheet replace them.

Why

This is the "One diff screen" section of the approved Source Control mocks. Everything is reused rather than rebuilt:

  • the tree is desktop's shared builder;
  • the fold numbers are what desktop's diff uses;
  • the commit diff is the host call desktop's history uses;
  • local viewed state and notes are today's.

GitHub threads under their lines, viewed sync to GitHub, and long-press line-range comments come in the next PR in this stack.

Linked Issue

None. This is part of the approved mobile Source Control redesign.

Visual Proof

Before After
Committed file
Uncommitted file
⋯ menu
Jump to file (title tap) none
A commit's file none
Light

The shots are captured from the built OTA page bundles of main and this branch, with scripted host replies (WebKit, iPhone-size viewport).

Testing

  • Captured every state above from both bundles.

  • Ran the mobile typecheck (app and tests) and the focused src/session, src/components and src/source-control tests (491 files).

  • New tests cover:

    • folds, including notes and opened folds surviving a split;
    • key-based selection;
    • Stage · next file wrapping and keeping a pick made while staging;
    • Retry reloading the open diff;
    • the commit route param.
  • Added an RPC recording scenario for the commit snapshot and commit diff, re-recorded every golden with --prune, and re-pinned the bridged-parity tally.

  • build:mobile-web still reports 183 assets.

  • Mobile localization verified, plus coverage. The changed-file quality gate passes.

  • I manually tested these changes locally

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

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

  • Mixed versions:
    • git.commitCompare and git.commitDiff are already allowed for mobile.
    • The commit summary is optional in the reply schema; without it the screen shows an error rather than guessing at a parent.
    • Older native shells drop the new commit param only on cold native mounts, which then show an "update the app" state. In-page pushes keep it.
  • Remote/SSH: no new calls beyond the existing git reads.
  • Folder workspaces: these have no Source Control rows, so they can't reach this screen.

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)

@AmoabaKelvin
AmoabaKelvin changed the base branch from mobile-diff-entry-point to main November 1, 2026 10:57
@coderabbitai

coderabbitai Bot commented Nov 1, 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

No actionable comments were generated in the recent review.

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: 936a6791-cba0-41c4-9961-5fe69f386472
Commits

Reviewing files that changed from the base of the PR and between d6eeeb9 and 7c378a7.

Files selected for processing: 3
  • mobile/src/components/MobileDiffReviewDrawers.tsx
  • mobile/src/session/mobile-diff-review-rows.test.ts
  • mobile/src/test-support/rpc-recording/adapters/diff-review-mount-adapters.ts

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

Walkthrough

The mobile review flow now supports commit-scoped files, file selection, viewed-state actions, and expandable folds for unchanged diff lines. Source-control file rows route changes to review screens. The branch-diff preview and session diff-reveal flows have been removed. Related RPC recordings, tests, and translations have also changed.

Merge Risk: Moderate · up to 7c378

The lint job can fail, and review state or errors can be displayed incorrectly. Resolve these issues before merging.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 26.00% 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: 4 passed
Check name Status Explanation
Title check Passed The title clearly identifies the mobile diff-screen redesign, including file navigation, folded context, and Stage/Viewed next-file behavior.
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.
Description check Passed The description is detailed and follows the required structure. It includes the ELI5 summary, user-visible changes, rationale, visual proof, testing details, notes, and checklist. The Linked Issue fie…
Full details: Description check

Explanation

The description is detailed and follows the required structure. It includes the ELI5 summary, user-visible changes, rationale, visual proof, testing details, notes, and checklist. The Linked Issue field states "None," although the template normally requires an issue link; this is the only notable template gap.

Full details: Docstring Coverage

Explanation

Docstring coverage is 26.00% 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 50 functions across 55 files.

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: 2

Caution

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

⚠️ Outside diff range comments (2)

Major · Fix the max-lines lint failure. CI blocks the merge. · use-mobile-diff-review-controller.ts:350

mobile/src/session/use-mobile-diff-review-controller.ts:350
Major · Maintainability & Code Quality · Quick win

Fix the max-lines lint failure. CI blocks the merge.

The Mobile verify job fails because pnpm lint reports 325 lines for this file. The commit-snapshot branch, the key/index selection state, and the new callbacks add the extra lines.

Extract one cohesive block into its own hook. The selection state (Lines 85-88 and 186-229) is a good candidate:

  • Move the selection state into a hook such as useMobileDiffReviewSelection(filteredQueue, initialTarget).
  • Return currentIndex, currentItem, selectIndex, selectKey, and moveSelection from that hook.
  • Keep the seededInitialTargetRef seeding effect inside the same hook.

The controller then calls the new hook once and passes its results to useMobileDiffReviewInteractions.

Source: Pipeline failures

Minor · Remove the unused MobileDiffReviewQueueItem import. · mobile-diff-review-queue.test.ts:8

mobile/src/session/mobile-diff-review-queue.test.ts:8
Minor · Maintainability & Code Quality · Quick win

Remove the unused MobileDiffReviewQueueItem import.

The removed tests were the only uses of this type. Oxlint reports unused imports through its enabled correctness rules, so this import can independently fail pnpm lint.

Suggested fix
 import {
   buildMobileDiffReviewQueue,
-  createMobileDiffReviewFileKey,
-  type MobileDiffReviewQueueItem
+  createMobileDiffReviewFileKey
 } from './mobile-diff-review-queue'

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: a16dddf5-8a30-48d2-8307-47773df6eea6
Commits

Reviewing files that changed from the base of the PR and between 90a5374 and b8857cd.

Files selected for processing: 112
  • config/mobile-localization-coverage-allowlist.json
  • mobile/app/h/[hostId]/review/[worktreeId].tsx
  • mobile/app/h/[hostId]/source-control/[worktreeId].web.tsx
  • mobile/rpc-foundation/goldens/diff-review-commit-file-diff.json
  • mobile/rpc-foundation/goldens/matrix-git.branch-diff-preview-git.branchdiff-1.json
  • mobile/rpc-foundation/goldens/matrix-session.diff-review-actions-worktree.set-1.json
  • mobile/rpc-foundation/goldens/matrix-session.review-git-mutations-git.discard-1.json
  • mobile/rpc-foundation/goldens/matrix-session.review-git-mutations-git.stage-1.json
  • mobile/rpc-foundation/goldens/matrix-session.review-git-mutations-git.stage-2.json
  • mobile/rpc-foundation/goldens/matrix-session.tab-reveal-session.tabs.activate-1.json
  • mobile/rpc-foundation/goldens/matrix-session.tab-reveal-session.tabs.list-1.json
  • mobile/rpc-foundation/goldens/review-git-mutations-run.json
  • mobile/rpc-foundation/goldens/review-mark-reviewed-rolls-back.json
  • mobile/rpc-foundation/goldens/review-stage-file.json
  • mobile/rpc-foundation/goldens/review-stage-refused.json
  • mobile/rpc-foundation/goldens/sc-branch-diff-previewed.json
  • mobile/rpc-foundation/goldens/sc-reveal-first-poll.json
  • mobile/rpc-foundation/goldens/sc-reveal-timeout.json
  • mobile/rpc-foundation/pilot-scenarios.json
  • mobile/src/agent-history/agent-history-pending-resume-ownership.test.tsx
  • mobile/src/components/MobileDiffReviewBody.tsx
  • mobile/src/components/MobileDiffReviewDrawers.tsx
  • mobile/src/components/MobileDiffReviewFileSummary.tsx
  • mobile/src/components/MobileDiffReviewFilesSheet.tsx
  • mobile/src/components/MobileDiffReviewFooter.tsx
  • mobile/src/components/MobileDiffReviewHeader.tsx
  • mobile/src/components/MobileDiffReviewLine.tsx
  • mobile/src/components/MobileDiffReviewScreenView.tsx
  • mobile/src/components/mobile-diff-review-control-styles.ts
  • mobile/src/components/mobile-diff-review-layout-styles.ts
  • mobile/src/components/mobile-diff-review-send-sheet-stacking.test.ts
  • mobile/src/components/nav-bar/NavBar.tsx
  • mobile/src/components/use-mobile-diff-review-overflow-actions.test.tsx
  • mobile/src/components/use-mobile-diff-review-overflow-actions.ts
  • 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/session/MobileDiffReviewRouteScreen.tsx
  • mobile/src/session/MobileSessionContentRow.tsx
  • mobile/src/session/SessionDockColumn.tsx
  • mobile/src/session/mobile-diff-hunks.test.ts
  • mobile/src/session/mobile-diff-hunks.ts
  • mobile/src/session/mobile-diff-review-git-operations.ts
  • mobile/src/session/mobile-diff-review-loaders.test.ts
  • mobile/src/session/mobile-diff-review-loaders.ts
  • mobile/src/session/mobile-diff-review-operations.ts
  • mobile/src/session/mobile-diff-review-positioning.ts
  • mobile/src/session/mobile-diff-review-queue.test.ts
  • mobile/src/session/mobile-diff-review-queue.ts
  • mobile/src/session/mobile-diff-review-retry.test.tsx
  • mobile/src/session/mobile-diff-review-rows.test.ts
  • mobile/src/session/mobile-diff-review-rows.ts
  • mobile/src/session/mobile-diff-review-screen-model.test.ts
  • mobile/src/session/mobile-diff-review-screen-model.ts
  • mobile/src/session/mobile-diff-review-selection.test.ts
  • mobile/src/session/mobile-diff-review-selection.ts
  • mobile/src/session/mobile-diff-review-sheets.ts
  • mobile/src/session/opened-mobile-session-tab.test.ts
  • mobile/src/session/opened-mobile-session-tab.ts
  • mobile/src/session/session-screen-handlers.ts
  • mobile/src/session/use-mobile-diff-review-comment-actions.ts
  • mobile/src/session/use-mobile-diff-review-controller.test.ts
  • mobile/src/session/use-mobile-diff-review-controller.ts
  • mobile/src/session/use-mobile-diff-review-diff-loading.test.ts
  • mobile/src/session/use-mobile-diff-review-diff-loading.ts
  • mobile/src/session/use-mobile-diff-review-git-actions.test.ts
  • mobile/src/session/use-mobile-diff-review-git-actions.ts
  • mobile/src/session/use-mobile-diff-review-interactions.ts
  • mobile/src/session/use-mobile-session-file-actions.ts
  • mobile/src/session/use-mobile-session-panel-route-actions.tsx
  • mobile/src/source-control/MobileBranchDiffPreviewDrawer.tsx
  • mobile/src/source-control/MobileSourceControlContent.test.tsx
  • mobile/src/source-control/MobileSourceControlContent.tsx
  • mobile/src/source-control/MobileSourceControlFileList.tsx
  • mobile/src/source-control/MobileSourceControlFileList.web.test.tsx
  • mobile/src/source-control/MobileSourceControlFileRows.tsx
  • mobile/src/source-control/MobileSourceControlModals.tsx
  • mobile/src/source-control/MobileSourceControlPanel.tsx
  • mobile/src/source-control/git-compare-reply-schema.ts
  • mobile/src/source-control/mobile-branch-preview-ownership.test.tsx
  • mobile/src/source-control/mobile-git-read-operations.ts
  • mobile/src/source-control/mobile-git-status.ts
  • mobile/src/source-control/mobile-review-route.test.ts
  • mobile/src/source-control/mobile-review-route.ts
  • mobile/src/source-control/mobile-source-control-actions.test.ts
  • mobile/src/source-control/mobile-source-control-actions.ts
  • mobile/src/source-control/mobile-source-control-primary-action.test.ts
  • mobile/src/source-control/mobile-source-control-primary-action.ts
  • mobile/src/source-control/mobile-source-control-screen-state.ts
  • mobile/src/source-control/reveal-mobile-source-control-session-diff.test.ts
  • mobile/src/source-control/reveal-mobile-source-control-session-diff.ts
  • mobile/src/source-control/source-control-status-retry.test.tsx
  • mobile/src/source-control/use-mobile-branch-diff-preview.ts
  • mobile/src/source-control/use-mobile-source-control-action-sheet.ts
  • mobile/src/source-control/use-mobile-source-control-openers.test.tsx
  • mobile/src/source-control/use-mobile-source-control-openers.ts
  • mobile/src/source-control/use-mobile-source-control-state.ts
  • mobile/src/test-support/bridged-parity/divergence-classes.test.ts
  • mobile/src/test-support/bridged-parity/divergence-classes.ts
  • mobile/src/test-support/rpc-recording/adapters/diff-review-action-mount-adapters.ts
  • mobile/src/test-support/rpc-recording/adapters/diff-review-mount-adapters.ts
  • mobile/src/test-support/rpc-recording/adapters/source-control-mount-adapters.ts
  • mobile/src/test-support/rpc-recording/adapters/source-control-screen-read-mount-adapters.ts
Files with no reviewable changes: 31
  • mobile/rpc-foundation/goldens/sc-reveal-timeout.json
  • mobile/rpc-foundation/goldens/matrix-session.review-git-mutations-git.stage-2.json
  • mobile/src/source-control/use-mobile-source-control-openers.test.tsx
  • mobile/src/source-control/reveal-mobile-source-control-session-diff.test.ts
  • mobile/rpc-foundation/goldens/matrix-session.tab-reveal-session.tabs.activate-1.json
  • mobile/rpc-foundation/goldens/sc-branch-diff-previewed.json
  • mobile/src/agent-history/agent-history-pending-resume-ownership.test.tsx
  • mobile/src/session/use-mobile-diff-review-git-actions.test.ts
  • mobile/rpc-foundation/goldens/matrix-session.tab-reveal-session.tabs.list-1.json
  • mobile/src/source-control/mobile-source-control-actions.test.ts
  • config/mobile-localization-coverage-allowlist.json
  • mobile/rpc-foundation/goldens/matrix-git.branch-diff-preview-git.branchdiff-1.json
  • mobile/src/source-control/source-control-status-retry.test.tsx
  • mobile/src/source-control/mobile-source-control-primary-action.test.ts
  • mobile/src/session/use-mobile-session-panel-route-actions.tsx
  • mobile/src/session/mobile-diff-hunks.test.ts
  • mobile/src/source-control/use-mobile-source-control-action-sheet.ts
  • mobile/src/source-control/mobile-branch-preview-ownership.test.tsx
  • mobile/src/session/MobileSessionContentRow.tsx
  • mobile/src/source-control/MobileSourceControlModals.tsx
  • mobile/src/session/mobile-diff-review-queue.test.ts
  • mobile/rpc-foundation/goldens/sc-reveal-first-poll.json
  • mobile/src/test-support/rpc-recording/adapters/source-control-mount-adapters.ts
  • mobile/src/session/mobile-diff-hunks.ts
  • mobile/src/source-control/MobileBranchDiffPreviewDrawer.tsx
  • mobile/src/source-control/mobile-source-control-screen-state.ts
  • mobile/app/h/[hostId]/source-control/[worktreeId].web.tsx
  • mobile/src/source-control/reveal-mobile-source-control-session-diff.ts
  • mobile/src/source-control/use-mobile-branch-diff-preview.ts
  • mobile/src/test-support/rpc-recording/adapters/source-control-screen-read-mount-adapters.ts
  • mobile/src/session/opened-mobile-session-tab.ts

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

@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-diff-screen-layout branch from b8857cd to 465c03e Compare November 1, 2026 12:33

@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: 7a5868fd-ec5d-48a4-b7ca-d1c5cd3fab0b
Commits

Reviewing files that changed from the base of the PR and between b8857cd and 465c03e.

Files selected for processing: 8
  • config/scripts/mobile-web-app/mobile-web-app-source-control-render.test.mjs
  • mobile/rpc-foundation/pilot-scenarios.json
  • mobile/src/session/mobile-diff-review-commit-loader.ts
  • mobile/src/session/mobile-diff-review-loaders.ts
  • mobile/src/session/mobile-diff-review-queue.test.ts
  • mobile/src/session/use-mobile-diff-review-controller.ts
  • mobile/src/session/use-mobile-diff-review-selection.ts
  • mobile/src/test-support/rpc-recording/adapters/diff-review-mount-adapters.ts

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

@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-diff-screen-layout branch 2 times, most recently from e6c386b to d6eeeb9 Compare November 1, 2026 14:45

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

Follow-up Comments

Outside diff Roll back all failed viewed-state changes.

131-132: Major · Data Integrity & Integration · Heavy lift

Roll back all failed viewed-state changes.

If a user toggles two files while both saves are pending, and both saves fail in order, the first failure does not roll back because a newer save started. The second failure then restores previous, which can still contain the first optimistic toggle. The screen shows that file as viewed, but the host did not save it. Track pending changes individually, or serialize saves and restore the last confirmed state on failure. (raw.githubusercontent.com)

Open the source location


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: 057e29d4-2336-4846-baf6-37cd7302f905
Commits

Reviewing files that changed from the base of the PR and between e6c386b and d6eeeb9.

Files selected for processing: 6
  • mobile/src/components/MobileDiffReviewHeader.tsx
  • mobile/src/components/use-mobile-diff-review-overflow-actions.ts
  • mobile/src/session/mobile-diff-review-queue.ts
  • mobile/src/session/mobile-diff-review-screen-model.ts
  • mobile/src/session/use-mobile-diff-review-comment-actions.ts
  • mobile/src/source-control/mobile-source-control-screen-state.ts
Files with no reviewable changes: 1
  • mobile/src/source-control/mobile-source-control-screen-state.ts

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

…d/stage next

The review screen becomes the one diff screen from the approved design.
It walks the Changes section the file came from (uncommitted, staged or on
the branch) or one commit's files, so 'N of M' and next/previous stay in
that list. The title opens a jump-to-file sheet built on the shared
source-control tree, with search and viewed boxes. Unchanged runs fold the
way desktop's diff does. The bar's main button is Stage · next file for
uncommitted files and Viewed · next file otherwise; Discard and Unstage move
to the menu. Filter chips, hunk jumps and Stage Reviewed are gone.

openDiffForFile also takes { kind: 'commit', commitOid, filePath }, read
through git.commitCompare and git.commitDiff.
@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-diff-screen-layout branch from 07e290c to cc9b144 Compare November 1, 2026 17:57
@AmoabaKelvin
AmoabaKelvin merged commit 3edc370 into main Nov 1, 2026
45 checks passed
Nenzyz pushed a commit to Nenzyz/orca that referenced this pull request Nov 2, 2026
…d/stage next (stablyai#36998)

The review screen becomes the one diff screen from the approved design.
It walks the Changes section the file came from (uncommitted, staged or on
the branch) or one commit's files, so 'N of M' and next/previous stay in
that list. The title opens a jump-to-file sheet built on the shared
source-control tree, with search and viewed boxes. Unchanged runs fold the
way desktop's diff does. The bar's main button is Stage · next file for
uncommitted files and Viewed · next file otherwise; Discard and Unstage move
to the menu. Filter chips, hunk jumps and Stage Reviewed are gone.

openDiffForFile also takes { kind: 'commit', commitOid, filePath }, read
through git.commitCompare and git.commitDiff.
Nenzyz pushed a commit to Nenzyz/orca that referenced this pull request Nov 2, 2026
…d/stage next (stablyai#36998)

The review screen becomes the one diff screen from the approved design.
It walks the Changes section the file came from (uncommitted, staged or on
the branch) or one commit's files, so 'N of M' and next/previous stay in
that list. The title opens a jump-to-file sheet built on the shared
source-control tree, with search and viewed boxes. Unchanged runs fold the
way desktop's diff does. The bar's main button is Stage · next file for
uncommitted files and Viewed · next file otherwise; Discard and Unstage move
to the menu. Filter chips, hunk jumps and Stage Reviewed are gone.

openDiffForFile also takes { kind: 'commit', commitOid, filePath }, read
through git.commitCompare and git.commitDiff.
Nenzyz pushed a commit to Nenzyz/orca that referenced this pull request Nov 2, 2026
…d/stage next (stablyai#36998)

The review screen becomes the one diff screen from the approved design.
It walks the Changes section the file came from (uncommitted, staged or on
the branch) or one commit's files, so 'N of M' and next/previous stay in
that list. The title opens a jump-to-file sheet built on the shared
source-control tree, with search and viewed boxes. Unchanged runs fold the
way desktop's diff does. The bar's main button is Stage · next file for
uncommitted files and Viewed · next file otherwise; Discard and Unstage move
to the menu. Filter chips, hunk jumps and Stage Reviewed are gone.

openDiffForFile also takes { kind: 'commit', commitOid, filePath }, read
through git.commitCompare and git.commitDiff.
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.

2 participants