Skip to content

Conversation

adityathebe
Copy link
Member

@adityathebe adityathebe commented Oct 8, 2025

  • Disable the form when viewing CRD created Permission
  • Display the creator avatar in the table
  • We don't need tags and agents anymore.

- Join with people table to fetch created_by user info
- Display avatar in Created By column
- Handle missing creator gracefully
- Add read-only banner when source is KubernetesCRD
- Disable all form fields with pointer-events-none and opacity
- Add disabled prop to PermissionSubjectControls
- Display linked CRD in footer via CanEditResource
- Only show delete button for UI-created permissions
- Remove tags and agents from PermissionTable type
- Remove tags and agents from PermissionsSummary type
- Remove badge rendering logic from permissions table
- Simplify Resource column display
Copy link

vercel bot commented Oct 8, 2025

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

Project Deployment Preview Updated (UTC)
aws-preview Ready Ready Preview Oct 8, 2025 4:06pm
flanksource-ui Ready Ready Preview Oct 8, 2025 4:06pm

Copy link

netlify bot commented Oct 8, 2025

Deploy Preview for goofy-euclid-75956c ready!

Name Link
🔨 Latest commit 6f2f478
🔍 Latest deploy log https://app.netlify.com/projects/goofy-euclid-75956c/deploys/68e689a162d4a30008091818
😎 Deploy Preview https://deploy-preview-2648--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 8, 2025

Deploy Preview for clerk-saas-ui ready!

Name Link
🔨 Latest commit 6f2f478
🔍 Latest deploy log https://app.netlify.com/projects/clerk-saas-ui/deploys/68e689a1050036000845de58
😎 Deploy Preview https://deploy-preview-2648--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 Copilot October 8, 2025 15:52
Copy link
Contributor

@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 removes tags and agents functionality from the permissions system as they are no longer needed. It also improves the permission form UI with better read-only state handling and fixes the created_by field access.

  • Removed tags and agents support from permissions table display and type definitions
  • Enhanced permission form with read-only state indicators and improved UI styling
  • Fixed created_by field access in API calls and table display

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
PermissionsTable.tsx Removed tags/agents display logic and badge rendering, fixed created_by field access
PermissionSubjectControls.tsx Added disabled prop support to prevent form interaction when read-only
PermissionForm.tsx Enhanced UI with read-only warnings and improved layout styling
permissions.ts Updated type definitions to remove tags/agents fields and fix created_by field
permissions.ts (services) Updated API call to properly select created_by field with avatar info

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

netlify bot commented Oct 8, 2025

Deploy Preview for flanksource-demo-stable ready!

Name Link
🔨 Latest commit 6f2f478
🔍 Latest deploy log https://app.netlify.com/projects/flanksource-demo-stable/deploys/68e689a1865faf000742d55c
😎 Deploy Preview https://deploy-preview-2648--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 force-pushed the feat/revamp-permission-form branch from 672e906 to 6f2f478 Compare October 8, 2025 15:56
@adityathebe adityathebe requested a review from moshloop October 8, 2025 16:06
@adityathebe adityathebe merged commit df62e86 into main Oct 9, 2025
16 of 18 checks passed
@adityathebe adityathebe deleted the feat/revamp-permission-form branch October 9, 2025 16:49
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.

1 participant