Repository navigation
feat(source-control): make group order configurable - #2188
Conversation
# Conflicts: # src/renderer/src/components/right-sidebar/SourceControl.tsx
# Conflicts: # src/shared/types.ts
# Conflicts: # src/renderer/src/components/settings/GitPane.tsx
# Conflicts: # src/shared/constants.test.ts
- add testable routing for conflict section review actions - cover group-order setting updates and persistence reloads
|
Thanks again! Made a few review tweaks but otherwise looks good:
GitHub is reporting the branch mergeable, but no checks are present in the check rollup yet. |
# Conflicts: # src/renderer/src/components/right-sidebar/SourceControl.tsx # src/renderer/src/components/settings/GitPane.tsx
|
Really sorry about the delay here, I'll take a look at this tomorrow. Appreciate the patience! |
# Conflicts: # src/main/persistence.test.ts # src/renderer/src/components/editor/RichMarkdownEditor.tsx # src/renderer/src/components/right-sidebar/SourceControl.tsx # src/shared/constants.ts
Dont worry |
# Conflicts: # src/renderer/src/components/right-sidebar/SourceControl.tsx # src/renderer/src/components/settings/GitPane.tsx # src/renderer/src/components/settings/git-search.ts # src/shared/constants.test.ts
Resolve conflicts and keep the source-control group-order patch scoped.
|
Ready to review this PR? Stage has broken it down into 7 individual chapters for you: Chapters generated by Stage for commit 253dfee on Jun 20, 2026 12:31am UTC. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThis PR introduces a 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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.
Actionable comments posted: 3
🧹 Nitpick comments (1)
src/renderer/src/components/right-sidebar/SourceControl.tsx (1)
1527-1530: ⚡ Quick winDocument why conflict directory keys are namespaced.
This conflict-specific branch encodes a non-obvious collapse-state isolation rule; add a short “Why” comment so it is not removed during future tree refactors.
📝 Proposed comment
roots[section.id] = section.id === 'conflicts' ? applyGitStatusEntryAreasToSourceControlTree( + // Why: conflict sections can mirror normal directory paths; keep + // their collapse keys isolated from the original area sections. namespaceSourceControlTreeDirectoryKeys(sectionRoots, 'conflicts') ) : sectionRootsAs per coding guidelines, “When writing or modifying code driven by a design doc or non-obvious constraint, add a comment explaining why the code behaves the way it does.”
Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 7d01bf03-6f1f-42a5-83e8-3dd2bc13de6e
📒 Files selected for processing (24)
src/main/codex-accounts/runtime-home-service.test.tssrc/main/codex-accounts/service.test.tssrc/main/persistence.test.tssrc/main/persistence.tssrc/renderer/src/components/right-sidebar/SourceControl.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/right-sidebar/source-control-tree.test.tssrc/renderer/src/components/right-sidebar/source-control-tree.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/renderer/src/store/slices/editor.test.tssrc/renderer/src/store/slices/editor.tssrc/shared/constants.test.tssrc/shared/constants.tssrc/shared/source-control-group-order.test.tssrc/shared/source-control-group-order.tssrc/shared/types.ts
Resolve conflicts and keep the source-control group-order patch scoped.
|
@leynier sorry for the delay here, appreciate the patience and the PR! |
Don't worry, and thank you for your work on Orca. It's awesome! |
Co-authored-by: Neil <[email protected]> Co-authored-by: brennanb2025 <[email protected]>
Summary
Closes #2178
Testing
git diff --checkpnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/right-sidebar/source-control-section-order.test.ts src/renderer/src/components/right-sidebar/source-control-tree.test.ts src/renderer/src/components/right-sidebar/useSourceControlSelection.test.ts src/renderer/src/components/settings/GitPane.test.tsx src/shared/constants.test.tspnpm typecheckAI Review Report
Reviewed the diff against
AGENTS.md,.github/CONTRIBUTING.md, anddocs/STYLEGUIDE.md.Main risks checked:
Security Audit
Risk: medium
Historic risk metadata backfill based on the existing
risk:mediumlabel.