-
Notifications
You must be signed in to change notification settings - Fork 25
fix: add missing form. Cover all connection types #2807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
❌ Deploy Preview for flanksource-demo-stable failed. Why did it fail? →
|
WalkthroughThe PR adds permission-based gating for save/delete actions and a Kubernetes-CRD read-only mode in the ConnectionSpecEditor, shows a read-only banner, disables the YAML editor when read-only, and fixes editor layout (adds Changes
Pre-merge checks and finishing touches❌ Failed checks (2 warnings, 1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (4)
🧰 Additional context used🧬 Code graph analysis (2)src/components/Connections/connectionTypes.tsx (1)
src/components/Connections/ConnectionSpecEditor.tsx (4)
🔇 Additional comments (8)
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/components/Connections/ConnectionSpecEditor.tsx
🧰 Additional context used
🧬 Code graph analysis (1)
src/components/Connections/ConnectionSpecEditor.tsx (4)
src/components/Forms/Formik/FormikCodeEditor.tsx (1)
FormikCodeEditor(44-150)src/components/Permissions/AuthorizationAccessCheck.tsx (1)
AuthorizationAccessCheck(14-56)src/context/UserAccessContext/permissions.ts (1)
tables(1-27)src/components/Settings/CanEditResource.tsx (1)
CanEditResource(88-102)
🔇 Additional comments (3)
src/components/Connections/ConnectionSpecEditor.tsx (3)
53-80: LGTM! Clean read-only mode implementation for CRD-managed resources.The read-only logic correctly identifies Kubernetes CRD sources and provides clear user feedback through the warning banner while disabling the editor. This prevents accidental modifications to resources that should only be managed through Kubernetes.
Also applies to: 85-85
68-68: LGTM! Themin-h-0additions fix the reported height issue.Adding
min-h-0to both the container (line 68) and the FormikCodeEditor (line 83) resolves the flexbox height problem where the editor was displaying as a single line. This is the correct fix: flex items default tomin-height: auto, which prevents them from shrinking below their content size. Settingmin-height: 0allows the editor to properly participate in flex layout and take full available height.Also applies to: 83-83
127-145: Same permission wrapping pattern applied to Submit button.This follows the same double permission wrapping as the Delete button. The same verification questions from the previous comment apply here. Additionally, note that
hideSourceLinkis not set here (unlike the Delete button wrapper at line 100), which creates an inconsistency that should be verified as intentional or corrected.
|
@adityathebe When looking at the gemini connection it shows created_at, id, metadata fields shouldn't it only be spec ? |
- opensearch - gemini - loki (with icons) - azure kms - gcp kms
587bce9 to
483ad6d
Compare
|
@moshloop covered missing forms for all other connection types |
resolves: #2678
Summary by CodeRabbit
New Features
Chores
API/Schema
✏️ Tip: You can customize this high-level summary in your review settings.