Skip to content

Combine untracked files into Changes - #31831

Merged
AmethystLiang merged 2 commits into
mainfrom
combine-right-side-changes
Oct 22, 2026
Merged

AmethystLiang merged 2 commits into
mainfrom
combine-right-side-changes

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​105 $\color{#cf222e}{\Huge{\mathbf{−}}}$​66 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​39
Prod 20 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​116 $\color{#cf222e}{\Huge{\mathbf{−}}}$​120 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4

Problem

Untracked files were shown in a separate section from other working changes, making source control actions and ordering less consistent.

Solution

Show untracked files together with unstaged files in Changes, while preserving their file identity for selection and actions. Stage all and discard all now include those files, with clearer deletion warnings. Legacy “untracked first” preferences safely fall back to Changes first.

ELI5

Untracked files now live with the other files you are working on, so there are fewer sections to scan.

What Changed

  • Combined untracked and unstaged files into the Changes section across desktop and mobile.
  • Kept Changes and Staged Changes as the available display sections and settings choices.
  • Updated bulk staging, discard-all behavior, confirmation copy, filtering, sorting, tree selection keys, and capped status handling for the combined section.
  • Mapped the legacy untracked-first setting to Changes first.

Why

A single Changes section makes the working-file list easier to understand and keeps bulk actions aligned with what is visible. This avoids a separate untracked-only path while preserving safe confirmation language for permanent deletion.

Linked Issue

TODO: No linked issue provided.

Fixes #

Visual Proof

TODO: UI behavior changed; before/after visual proof has not been provided.

Testing

  • Updated unit tests covering mobile sections, section order, filtering, discard behavior, capped bulk staging, actions, settings, and file projection.
  • 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

Cross-platform, remote SSH, mobile, backwards compatibility, performance, and security were considered. Mobile behavior is updated; legacy group-order preferences fall back safely.

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 22, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4248c5c5-d528-4815-bfdc-68e9bcd525d2
📥 Commits

Reviewing files that changed from the base of the PR and between 667c753a6dbce498d028b20d5fed8212d37692f3 and 87bebe1.

📒 Files selected for processing: 31
  • mobile/src/source-control/mobile-git-status.test.ts
  • mobile/src/source-control/mobile-git-status.ts
  • mobile/src/source-control/mobile-path-sort.test.ts
  • src/renderer/src/components/right-sidebar/discard-all-sequence.test.ts
  • src/renderer/src/components/right-sidebar/source-control-discard-confirmation.test.ts
  • src/renderer/src/components/right-sidebar/source-control-file-filter.test.ts
  • src/renderer/src/components/right-sidebar/source-control-section-order.test.ts
  • src/renderer/src/components/right-sidebar/source-control/commit/discard-all-sequence.ts
  • src/renderer/src/components/right-sidebar/source-control/commit/discard-confirmation.ts
  • src/renderer/src/components/right-sidebar/source-control/commit/use-bulk-actions-capped-stage.test.tsx
  • src/renderer/src/components/right-sidebar/source-control/commit/use-bulk-actions.ts
  • src/renderer/src/components/right-sidebar/source-control/listing/file-filter.ts
  • src/renderer/src/components/right-sidebar/source-control/listing/section-action-buttons.test.tsx
  • src/renderer/src/components/right-sidebar/source-control/listing/section-order.ts
  • src/renderer/src/components/right-sidebar/source-control/listing/uncommitted-sections.tsx
  • src/renderer/src/components/right-sidebar/source-control/listing/use-file-listing.ts
  • src/renderer/src/components/right-sidebar/source-control/listing/use-file-projection-work.test.tsx
  • src/renderer/src/components/right-sidebar/source-control/listing/use-file-projection.ts
  • src/renderer/src/components/right-sidebar/source-control/panel/panel-content.tsx
  • src/renderer/src/components/settings/GitPane.test.ts
  • src/renderer/src/components/settings/GitPane.tsx
  • src/renderer/src/components/settings/git-search.ts
  • src/renderer/src/i18n/locales/en.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/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/zh.json
  • src/shared/source-control-group-order.test.ts
  • src/shared/source-control-group-order.ts
📝 Walkthrough

The change combines untracked and unstaged entries in the Changes section on desktop and mobile. It removes the untracked-first setting and maps its legacy value to changes-first. Filtering now applies to constructed display sections. Staging and discard actions for the Changes section include untracked paths. Discard confirmations state that untracked files are permanently deleted.

Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to 667c7

French users still see an inaccurate “unplanned” description for unstaged changes, but this PR leaves that text unchanged and introduces no merge-blocking behavior risk.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description explains the problem, solution, scope, and updated tests. However, it has no linked issue, no required visual proof or N/A explanation for the UI behavior change, and does not confirm … Add an actual linked issue in the Fixes field. Provide before-and-after visual proof, or write N/A with a reason if no visual or interaction change exists. Confirm the status of pnpm lint, pnpm typecheck, pnpm test, and pnpm build, includin…
Docstring Coverage Warning Docstring coverage is 14.29% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 14 functions across 22 files. (7 skipped:… 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 and concisely describes the main change: combining untracked files with Changes.
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 explains the problem, solution, scope, and updated tests. However, it has no linked issue, no required visual proof or N/A explanation for the UI behavior change, and does not confirm the required validation commands passed or will be covered by CI.

Resolution

Add an actual linked issue in the Fixes field. Provide before-and-after visual proof, or write N/A with a reason if no visual or interaction change exists. Confirm the status of pnpm lint, pnpm typecheck, pnpm test, and pnpm build, including whether CI will cover them.

Full details: Docstring Coverage

Explanation

Docstring coverage is 14.29% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 14 functions across 22 files. (7 skipped: 7 unsupported.)

Resolution

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

✨ Finishing Touches: 💡 1
📝 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

Comment @coderabbitai help to get the list of available commands.

@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
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 417e96eb-9135-4e0d-a257-08b09625573f
📥 Commits

Reviewing files that changed from the base of the PR and between 0a7d6bb and 3f6fd82ef789618917206fdec845ff883ae27200.

📒 Files selected for processing: 25
  • mobile/src/source-control/mobile-git-status.test.ts
  • mobile/src/source-control/mobile-git-status.ts
  • mobile/src/source-control/mobile-path-sort.test.ts
  • src/renderer/src/components/right-sidebar/discard-all-sequence.test.ts
  • src/renderer/src/components/right-sidebar/source-control-discard-confirmation.test.ts
  • src/renderer/src/components/right-sidebar/source-control-file-filter.test.ts
  • src/renderer/src/components/right-sidebar/source-control-section-order.test.ts
  • src/renderer/src/components/right-sidebar/source-control/commit/discard-all-sequence.ts
  • src/renderer/src/components/right-sidebar/source-control/commit/discard-confirmation.ts
  • src/renderer/src/components/right-sidebar/source-control/commit/use-bulk-actions-capped-stage.test.tsx
  • src/renderer/src/components/right-sidebar/source-control/commit/use-bulk-actions.ts
  • src/renderer/src/components/right-sidebar/source-control/listing/file-filter.ts
  • src/renderer/src/components/right-sidebar/source-control/listing/section-action-buttons.test.tsx
  • src/renderer/src/components/right-sidebar/source-control/listing/section-order.ts
  • src/renderer/src/components/right-sidebar/source-control/listing/uncommitted-sections.tsx
  • src/renderer/src/components/right-sidebar/source-control/listing/use-file-listing.ts
  • src/renderer/src/components/right-sidebar/source-control/listing/use-file-projection-work.test.tsx
  • src/renderer/src/components/right-sidebar/source-control/listing/use-file-projection.ts
  • src/renderer/src/components/right-sidebar/source-control/panel/panel-content.tsx
  • src/renderer/src/components/settings/GitPane.test.ts
  • src/renderer/src/components/settings/GitPane.tsx
  • src/renderer/src/components/settings/git-search.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/source-control-group-order.test.ts
  • src/shared/source-control-group-order.ts
💤 Files with no reviewable changes: 2
  • src/renderer/src/components/right-sidebar/source-control/listing/file-filter.ts
  • src/renderer/src/components/right-sidebar/source-control/listing/use-file-listing.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.

@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
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bd73efaa-51b6-4445-b908-c384c75535d1
📥 Commits

Reviewing files that changed from the base of the PR and between 3f6fd82ef789618917206fdec845ff883ae27200 and 667c753a6dbce498d028b20d5fed8212d37692f3.

📒 Files selected for processing: 8
  • src/renderer/src/components/right-sidebar/source-control/commit/discard-confirmation.ts
  • src/renderer/src/i18n/locales/en.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/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/zh.json
🚧 Files skipped from review as they are similar to previous changes: 2
  • src/renderer/src/components/right-sidebar/source-control/commit/discard-confirmation.ts
  • src/renderer/src/i18n/locales/en.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.

Comment thread src/renderer/src/i18n/locales/fr.json Resolved
@AmethystLiang
AmethystLiang force-pushed the combine-right-side-changes branch from 667c753 to 87bebe1 Compare October 22, 2026 05:13
@AmethystLiang
AmethystLiang merged commit 8aa7f9c into main Oct 22, 2026
34 of 36 checks passed
smwbev added a commit to smwbev/orca that referenced this pull request Oct 23, 2026
414 commits landed on main between ebc8b06 and f045046. The six older catalogs conflicted along with en-runtime-required.json, and pt.json, which stablyai#31627 added to main, came in with them, so all seven catalogs and en-runtime-required.json are taken from main and the prune is recomputed in one pass. It is the previous 1,618 keys plus 6: three lost their reader when stablyai#31831 combined untracked files into Changes, two when stablyai#31593 added the PTY inventory to the Resource Manager, and SshStatusSegment.connecting with stablyai#32083. None left the set. en.json goes from 16,929 entries to 15,305; en-runtime-required.json keeps 597 of them.

native-chat-shared-copy-matches-catalog.test.ts conflicted because stablyai#31425 added a test right above the block this branch rewrites. The branch's edit was re-applied on main's version of the file with git apply -C1 ("Context reduced to (1/1) to apply fragment at 45"); the file now differs from main by exactly the branch's added and removed lines.
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