Repository navigation
Revert "Remove source control group order preference (#12785)" - #12955
Conversation
This reverts commit ae1ed5e.
📝 WalkthroughWalkthroughAdds a persisted 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
mobile/src/source-control/mobile-git-status.test.ts (1)
29-36: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAssert the entries in each section.
This test checks only section titles. A regression could place
new.tsinChangeswhile still creating anUntracked Filessection. Assert each section’sareaand file paths.Proposed test assertion
expect(sections.map((section) => section.title)).toEqual([ 'Changes', 'Untracked Files', 'Staged Changes' ]) + expect( + sections.map((section) => ({ + area: section.area, + paths: section.data.map((entry) => entry.path) + })) + ).toEqual([ + { area: 'unstaged', paths: ['a.ts'] }, + { area: 'untracked', paths: ['new.ts'] }, + { area: 'staged', paths: ['b.ts'] } + ])
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 24ea1b49-eed2-4e63-b111-a216d2808fb0
📒 Files selected for processing (33)
.oxlintrc.jsonconfig/scripts/relay-watcher-fault-harness.mjsmobile/src/source-control/mobile-git-status.test.tsmobile/src/source-control/mobile-git-status.tssrc/main/codex-accounts/runtime-home-service.test.tssrc/main/codex-accounts/service.test.tssrc/main/persistence.test.tssrc/main/persistence.tssrc/main/runtime/orca-runtime.tssrc/renderer/src/components/editor/CombinedDiffFileTree.tsxsrc/renderer/src/components/github/GitHubMarkdownComposerEditorPane.tsxsrc/renderer/src/components/right-sidebar/SourceControl.tsxsrc/renderer/src/components/right-sidebar/discard-all-sequence.test.tssrc/renderer/src/components/right-sidebar/discard-all-sequence.tssrc/renderer/src/components/right-sidebar/source-control-discard-confirmation.test.tssrc/renderer/src/components/right-sidebar/source-control-discard-confirmation.tssrc/renderer/src/components/right-sidebar/source-control-discard-dialog.tsxsrc/renderer/src/components/right-sidebar/source-control-section-order.test.tssrc/renderer/src/components/right-sidebar/source-control-section-order.tssrc/renderer/src/components/settings/GitPane.test.tssrc/renderer/src/components/settings/GitPane.tsxsrc/renderer/src/components/settings/git-search.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/shared/constants.test.tssrc/shared/constants.tssrc/shared/source-control-group-order.test.tssrc/shared/source-control-group-order.tssrc/shared/types.tstests/e2e/setup-script-prompt-unreadable-orca-yaml.spec.ts
💤 Files with no reviewable changes (2)
- src/renderer/src/components/right-sidebar/discard-all-sequence.test.ts
- src/renderer/src/components/right-sidebar/source-control-discard-confirmation.test.ts
stablyai#12955) This reverts commit b5c914e.
Summary
ae1ed5e886acdc4352e5c2de70fed04331386daafrom Remove source control group order preference #12785.Why
#12785 was merged before CI and automated review completed. The E2E build check subsequently failed, and post-merge review identified an empty test plus localization-dependent destructive-action UI behavior. Revert to the previous known state so any narrower redesign can be reviewed separately.
Validation
pnpm run lintpnpm run typecheckpnpm --dir mobile run typecheckgit diff origin/main --check