improvement: migrate app connections UI to v3 components#6937
Conversation
|
💬 Discussion in Slack: #pr-review-infisical-6937-improvement-migrate-app-connections-ui-to-v3-components Posted by Review Police — reviews, comments, new commits, and CI failures will stream into this channel. |
121f935 to
df69abb
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 121f935924
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
| Filename | Overview |
|---|---|
| frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AddAppConnectionModal.tsx | Migrated from Modal to Sheet with a discard-confirmation AlertDialog; new selectedApp state drives the connection-select vs form step; onBack replaced by onCancel threaded through context. |
| frontend/src/helpers/appConnections.ts | Added required category and description fields to every entry in APP_CONNECTION_MAP; added POPULAR_APP_CONNECTIONS constant; no logic changes. |
| frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionFormContext.tsx | New context that propagates the sheet's onCancel callback to all connection form footers without prop drilling through ~130 form render sites. |
| frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionFormFooter.tsx | New shared footer with sticky positioning, scope-variant Submit, and Cancel wired through AppConnectionFormContext; allowPristineSubmit flag supports OAuth reconnect forms. |
| frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionsTable.tsx | Migrated all v2 components to v3; adds Organization/All tab view toggle with localStorage persistence; presetApp state wires GitHub OAuth callback back into the Sheet. |
| frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionList.tsx | New card-grid provider selector replaces flat list; uses category/description from APP_CONNECTION_MAP; Popular section added using new POPULAR_APP_CONNECTIONS constant. |
| frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GenericAppConnectionFields.tsx | Replaced v2 FormControl with v3 Field/FieldLabel/FieldError; name helper text is now conditionally hidden when a validation error is present. |
Reviews (1): Last reviewed commit: "improvement: migrate app connection ui t..." | Re-trigger Greptile
adilsitos
left a comment
There was a problem hiding this comment.
Looks good! I have just left some minor comments.
ALso, the ones that I said that don't show up they are exclusive for orgs. Not sure if this is intended, but on the docs we don't say anything about it (we don't need to fix it right now, but maybe it would be good to have this on docs)
…dge filename and component Addresses review feedback on PR #6937. Renames CrededentialRotationBadge.tsx and the exported CredentialRotationStatusBadge component, updating both importers. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Context
This PR migrates app connections UI to v3 components and updates the UI to match secret sync re-vamp styling
Screenshots
Steps to verify the change
Type
Checklist
type(scope): short description(scope is optional, e.g.,fix: prevent crash on syncorfix(api): handle null response).