Modify git commit modal [INS-1994] [INS-1475]#9607
Merged
Conversation
✅ Circular References ReportGenerated at: 2026-02-13T03:39:09.840Z Summary
Click to view all circular references in PR (76)Click to view all circular references in base branch (76)Analysis✅ No Change: This PR does not introduce or remove any circular references. This report was generated automatically by comparing against the |
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request modifies the Git commit modal to add a header line to the diff viewer with workspace scope information. The changes include refactoring scope-related constants to a common location and enhancing the UI to display file metadata.
Changes:
- Refactored scope-related constants (
scopeToLabelMap,scopeToIconMap,scopeToBgColorMap,scopeToTextColorMap, andProjectScopeKeys) from the route file to a common utility module (get-workspace-label.ts) - Enhanced the diff viewer header in the Git staging modal to display workspace scope icon, name, filepath, and a stage/unstage button
- Updated
git-service.tsto extract and return scope information for diff items
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| packages/insomnia/src/common/get-workspace-label.ts | Added scope-related constants and types previously defined in route files |
| packages/insomnia/src/main/git-service.ts | Enhanced getPreviewItemNameAndScope to extract scope from diff items and updated GitDiffResult type to include filepath, scope, and staged status |
| packages/insomnia/src/ui/components/modals/git-project-staging-modal.tsx | Added enhanced diff viewer header with scope badge, filepath display, and stage/unstage button; refactored stageChanges/unstageChanges functions to component level |
| packages/insomnia/src/ui/components/dropdowns/git-project-sync-dropdown.tsx | Modified Git staging modal initial state (appears to be debugging leftover) |
| packages/insomnia/src/ui/components/modals/git-project-migration-modal.tsx | Updated import to use common get-workspace-label module |
| packages/insomnia/src/ui/components/modals/workspace-duplicate-modal.tsx | Updated import to use common get-workspace-label module |
| packages/insomnia/src/ui/components/project/git-repo-scan-result.tsx | Updated import to use common get-workspace-label module |
| packages/insomnia/src/ui/components/command-palette.tsx | Updated import to use common get-workspace-label module |
| packages/insomnia/src/routes/organization.$organizationId.project.$projectId._index.tsx | Removed scope-related constants (moved to common module) |
| packages/insomnia/src/routes/organization.$organizationId.project.$projectId.list-workspaces.tsx | Updated import to use common get-workspace-label module |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
packages/insomnia/src/ui/components/dropdowns/git-project-sync-dropdown.tsx
Outdated
Show resolved
Hide resolved
bafe5cc to
bb65130
Compare
bb65130 to
1081c8d
Compare
1081c8d to
25ae113
Compare
25ae113 to
69e2dd5
Compare
CurryYangxx
approved these changes
Feb 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.