Kong / insomnia

[INS-1473] Introduce new Git Credentials management flow (#9513) (#9517)
* [INS-1473] Introduce new Git Credentials management flow (#9513) * Update git credentials model and deprecate embedded credentials in repos * Add credentialsId instead of relying on credentials object in gitVCS * Add git providers and registry * Expose new api in routes and remove gitlab/github specific routes * Move functions out of git service path to make sure there's no issues with the client bundle * Update shallowClone to use credentialsId instead of credentials in gitRepository * Update Credentials tab in settings to display Git Credentials * Fix import statement for getOauth2FormatName in GitHub app config link component * Refactor imports in GitProjectSyncDropdown and GitSyncDropdown for consistency * Refactor GitRemoteBranchSelect to use credentialsId instead of credentials and simplify essential input checks * Implement GitRepositorySelect component and remove GitHubRepositorySelect * Refactor GitRepoForm and GitRepositorySettingsModal to integrate Git Credentials selection and improve repository setup flow * Refactor getModificationClassName to use GitFileType constants and simplify logic for modification types * Refactor ProjectCreateForm to remove unused Git credentials fields and simplify project data structure * Refactor ProjectSettingsForm to integrate Git credentials fetching and simplify project data handling * Refactor GitConnectionInfo to integrate providerInfo and remove GitProviderTag component * Remove deprecated Git repository settings forms for GitHub, GitLab, and custom repositories * Refactor useGlobalKeyboardShortcuts to update keyboard shortcuts modal tab to 'keyboard' * Fix code style --------- Co-authored-by: yaoweiprc <6896642+yaoweiprc@users.noreply.github.com> * feat: credential setup when project creation (#9520) * feat: credential setup when project creation * fix: add username * Fix code style (#9521) * Fix code style * Improve accessibility * Update packages/insomnia/src/sync/git/providers/gitlab.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update packages/insomnia/src/ui/components/settings/credentials.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Fix bug --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Support editing custom git credentials in the preference modal (#9526) * Support editing custom git credentials in the preference modal * Remove duplicate props * feat: finish submit logic fot the new credential flow (#9528) * feat: new credential in project creation&edit * fix * fix: update project credential (#9532) * fix: update project credential * fix * fix: smoke test * fix: type * fix: vitest electron mock * fix: vitest * fix: disable button (#9533) * fix: empty view ui * Fuzzy match for repo selection (#9536) * fix: repo list refresh * Auto-close create credentials modal after deeplink callback (#9538) * refactor/git-credential-model (#9537) * refactor/git-credential-model * fix * fix: migration * fix: ts * feat: add credentials hook (#9539) * Migrate legacy git credentials for git-synced workspaces (#9540) --------- Co-authored-by: James Gatz <jamesgatzos@gmail.com> Co-authored-by: Curry Yang <163384738+CurryYangxx@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Curry Yang <1019yanglu@gmail.com>
yaoweiprc yaoweiprc committed on Jan 7, 2026, 06:32 AM
Showing 73 changed files +3559 additions -2303 deletions
Browse files at this commit โ†’