Skip to content

Conversation

adityathebe
Copy link
Member

@adityathebe adityathebe commented Oct 1, 2025

  • Permission table refresh: Fixed an issue where the permissions table wasn't updating after creating, updating, or deleting permissions. Now uses query invalidation to ensure the table reflects changes immediately
  • CRD-sourced permissions: Added support for displaying and handling permissions that come from Kubernetes CRDs:
    • These permissions are now shown with a CRD indicator in the table
    • The permission form is read-only when viewing CRD-sourced permissions to prevent unintended modifications
  • UI improvements:
    • Reordered subject selector to show "Person" first (most commonly used option)
    • Renamed PermissionAPIResponse type to PermissionsSummary for better code clarity

Copy link

vercel bot commented Oct 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
aws-preview Ready Ready Preview Oct 1, 2025 11:11am
flanksource-ui Ready Ready Preview Oct 1, 2025 11:11am

Copy link

netlify bot commented Oct 1, 2025

Deploy Preview for goofy-euclid-75956c ready!

Name Link
🔨 Latest commit 67e2233
🔍 Latest deploy log https://app.netlify.com/projects/goofy-euclid-75956c/deploys/68dd0ac95889730008238ab4
😎 Deploy Preview https://deploy-preview-2638--goofy-euclid-75956c.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

netlify bot commented Oct 1, 2025

Deploy Preview for flanksource-demo-stable ready!

Name Link
🔨 Latest commit 67e2233
🔍 Latest deploy log https://app.netlify.com/projects/flanksource-demo-stable/deploys/68dd0ac92b4f770008480e29
😎 Deploy Preview https://deploy-preview-2638--flanksource-demo-stable.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@adityathebe adityathebe requested a review from Copilot October 1, 2025 11:07
Copy link

@Copilot Copilot AI left a 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.

Copy link

netlify bot commented Oct 1, 2025

Deploy Preview for clerk-saas-ui ready!

Name Link
🔨 Latest commit 67e2233
🔍 Latest deploy log https://app.netlify.com/projects/clerk-saas-ui/deploys/68dd0ac9e419d600098abbe4
😎 Deploy Preview https://deploy-preview-2638--clerk-saas-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@adityathebe adityathebe requested a review from moshloop October 1, 2025 14:34
@moshloop moshloop merged commit 0ba0c62 into main Oct 3, 2025
16 of 18 checks passed
@moshloop moshloop deleted the fix/permission-form branch October 3, 2025 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants