Skip to content

Add permission handling for connections page#2075

Open
alexandrudanpop wants to merge 2 commits intomainfrom
feat/connections-permissions
Open

Add permission handling for connections page#2075
alexandrudanpop wants to merge 2 commits intomainfrom
feat/connections-permissions

Conversation

@alexandrudanpop
Copy link
Contributor

Fixes OPS-3681

Copilot AI review requested due to automatic review settings March 5, 2026 14:25
@linear
Copy link

linear bot commented Mar 5, 2026

Copy link
Contributor

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

Adds permission-aware UI elements to the Connections page by moving the page header into the route module and wrapping connection actions with a permission guard.

Changes:

  • Introduces a ConnectionsHeader component in the connections route and wires it into the router.
  • Updates the “New Connection” trigger to be wrapped with PermissionGuard.
  • Wraps the per-row “Edit” and “Delete” dropdown actions with PermissionGuard and removes the old header export from the table module.

Reviewed changes

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

File Description
packages/react-ui/src/app/routes/connections/index.tsx Adds ConnectionsHeader with a permission-guarded “New Connection” trigger and simplifies the page component to only render the table.
packages/react-ui/src/app/router.tsx Switches the connections route header import to the new route-level ConnectionsHeader.
packages/react-ui/src/app/features/connections/components/connection-table.tsx Removes the old ConnectionsHeader and wraps Edit/Delete menu items with PermissionGuard.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 5, 2026

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