Skip to content

Conversation

adityathebe
Copy link
Member

No description provided.

Copy link

netlify bot commented Oct 8, 2025

Deploy Preview for goofy-euclid-75956c ready!

Name Link
🔨 Latest commit fbd86b9
🔍 Latest deploy log https://app.netlify.com/projects/goofy-euclid-75956c/deploys/68e665acad235000084f4cf6
😎 Deploy Preview https://deploy-preview-2645--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 fbd86b9
🔍 Latest deploy log https://app.netlify.com/projects/clerk-saas-ui/deploys/68e665ac5000a00008067d56
😎 Deploy Preview https://deploy-preview-2645--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.

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 1:33pm
flanksource-ui Ready Ready Preview Oct 8, 2025 1:33pm

@adityathebe adityathebe requested a review from Copilot October 8, 2025 06:37
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 introduces a comprehensive access scopes feature that allows users to define visibility boundaries for resources. The implementation includes a new page for managing access scopes, form components for creating/editing scopes, and supporting infrastructure.

  • Adds complete access scopes management with CRUD operations
  • Implements both form-based and YAML-based scope configuration
  • Removes unnecessary tags and agents filtering from permissions forms (likely moved to access scopes)

Reviewed Changes

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

Show a summary per file
File Description
src/pages/Settings/PermissionsPage.tsx Adds informational banner linking to access scopes
src/pages/Settings/AccessScopesPage.tsx New main page for access scopes management
src/context/UserAccessContext/permissions.ts Adds access_scopes table reference
src/components/Settings/ResourceTable.tsx Adds access_scopes to table configuration
src/components/SchemaResourcePage/resourceTypes.tsx Adds access_scopes to resource type definitions
src/components/Permissions/ManagePermissions/Forms/PermissionForm.tsx Removes tags and agents filtering functionality
src/components/Forms/Formik/FormikSelectDropdown.tsx Adds SSR safety check for document.body
src/components/AccessScopes/* New components for access scopes management
src/api/types/accessScopes.ts Type definitions for access scopes
src/api/services/accessScopes.ts API service functions
src/api/query-hooks/useAccessScopesQuery.ts React Query hooks
src/App.tsx Adds routing and navigation for access scopes

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 fbd86b9
🔍 Latest deploy log https://app.netlify.com/projects/flanksource-demo-stable/deploys/68e665ac2d51d000070a69c0
😎 Deploy Preview https://deploy-preview-2645--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.

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

Copilot reviewed 17 out of 17 changed files in this pull request and generated no new comments.


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

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

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


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

The creator avatar wasn't rendering because the created_by field was never set when saving access scopes. This fix ensures:
- created_by is set when creating new access scopes
- updated_by is set when updating access scopes
- API queries properly fetch created_by with avatar info using the standard AVATAR_INFO pattern
- Type definitions include created_by and updated_by fields
Show validation errors when submitting the form with no scopes or empty scope fields. Errors appear inline on the top right of each scope header.
…scopes

- Add live preview showing parsed names as badges
- Validate wildcard usage interactively (must be alone)
- Improve hint text clarity for names field
- Increase names textarea to 6 rows
- Remove scope number headers for cleaner UI
@moshloop moshloop merged commit 0b5b2ad into main Oct 8, 2025
15 of 18 checks passed
@moshloop moshloop deleted the feat/access-scopes branch October 8, 2025 13:32
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