-
Notifications
You must be signed in to change notification settings - Fork 23
fix: permission form #2638
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
fix: permission form #2638
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Deploy Preview for goofy-euclid-75956c ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for flanksource-demo-stable ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
Pull Request Overview
This PR fixes permission table refresh issues and adds support for CRD-sourced permissions. The changes ensure the permissions table updates immediately after CRUD operations and properly handles read-only CRD permissions.
- Fixed permission table refresh by adding query invalidation to create, update, and delete operations
- Added CRD permission support with read-only form behavior and visual indicators
- Improved UI by reordering subject selector options and renaming types for clarity
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
src/components/Permissions/PermissionsView.tsx | Updated type reference from PermissionAPIResponse to PermissionsSummary |
src/components/Permissions/PermissionsTable.tsx | Added CRD source indicator and updated type references |
src/components/Permissions/ManagePermissions/Forms/PermissionSubjectControls.tsx | Reordered subject options to show "Person" first |
src/components/Permissions/ManagePermissions/Forms/PermissionForm.tsx | Added query invalidation for table refresh and CRD read-only support |
src/components/Permissions/ManagePermissions/Forms/DeletePermission.tsx | Added query invalidation to refresh table after deletion |
src/api/types/permissions.ts | Renamed PermissionAPIResponse to PermissionsSummary and added source field |
src/api/services/permissions.ts | Updated type reference to use PermissionsSummary |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
✅ Deploy Preview for clerk-saas-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
PermissionAPIResponse
type toPermissionsSummary
for better code clarity