Skip to content

fix(rbac): refine the RBAC v2 prototype - #3255

Open
RemiBonnet wants to merge 1 commit into
feat/rbacv2-ui-prototypefrom
fix/rbacv2-remove-members-idp-nudge
Open

RemiBonnet wants to merge 1 commit into
feat/rbacv2-ui-prototypefrom
fix/rbacv2-remove-members-idp-nudge

Conversation

@RemiBonnet

@RemiBonnet RemiBonnet commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

Issue: Follow-up to #3181

Refine the RBAC v2 prototype based on review feedback.

  • Remove the identity provider prompt from Members.

How to test

  1. Open Members with Without IdP selected and check that the members list appears below the heading.
  2. In Target, open Groups and verify that Connect an IdP leads to the identity provider settings.

Screenshots / Recordings

Testing

  • Verified in the local Console preview
  • 32 targeted RBAC tests passed
  • Formatted the changed files
  • Organization feature lint passed with 0 errors

PR Checklist

  • I followed naming, styling, and TypeScript rules (see .cursor/rules)
  • I performed a self-review (diff inspected, dead code removed)
  • I titled the PR using Conventional Commits with a scope when possible (e.g. feat(service): add new Terraform service) - required for semantic-release
  • I only kept necessary comments, written in English (watch for useless AI comments)
  • I involved a designer to validate UI changes if I am not a designer
  • I covered new business logic with tests (unit)
  • I confirmed CI is green (Codecov red can be accepted)
  • I reviewed and executed locally any AI-assisted code

See it in action
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Removes the identity provider prompt from the Members page of the RBAC v2 prototype so the members list appears directly below the heading.

  • Deletes the idp-nudge.tsx component and its connector modal.
  • Changes the Groups tab's "Connect an IdP" button to link directly to the identity provider settings page.
  • Updates the no-provider summary text and adjusts tests accordingly.

Written for commit 9aa93c1. Summary will update on new commits.

View guided diff Turn on auto-fix

@Astach

Astach commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Qovery Preview

Qovery can create a Preview Environment for this PR.
To trigger its creation, please post a comment with one of the following command.

Command Blueprint environment
/qovery preview ac5f6012-283d-4829-8e40-af6f98d32dd4 proto/rbacv2
/qovery preview {all|UUID1,UUID2,...} To preview multiple environments

This comment has been generated from Qovery AI 🤖.
Below, a word from its wisdom :

Don’t Sacrifice Readability, you are going to debug it in 6 months

@nx-cloud

nx-cloud Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 9aa93c1

Command Status Duration Result
nx run console:build --parallel=3 --configurati... ✅ Succeeded 1m 4s View ↗
nx affected --target=test --parallel=3 --config... ✅ Succeeded 3m 6s View ↗
nx affected --target=lint --parallel=3 ✅ Succeeded 2m 46s View ↗
nx-cloud record -- yarn nx format:check ✅ Succeeded 2s View ↗

💡 With Ultracache enabled, Nx Cloud learns each task's file inputs in CI and uses them on later runs. Turn on Ultracache in workspace settings ↗ · Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-11-23 09:24:56 UTC

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 5 files

Confidence score: 4/5

  • In settings-rbac-v2-prototype.spec.tsx, the assertion no longer proves the Members prompt was removed. Assert that the Connect an IdP button is absent and that Without IdP is selected by default.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="libs/domains/organizations/feature/src/lib/settings-rbac-v2-prototype/settings-rbac-v2-prototype.spec.tsx">

<violation number="1" location="libs/domains/organizations/feature/src/lib/settings-rbac-v2-prototype/settings-rbac-v2-prototype.spec.tsx:94">
P2: This assertion is vacuous after the copy change and does not prove the Members prompt was removed. Assert that the `Connect an IdP` button is absent, and verify `Without IdP` is selected by default.</violation>
</file>

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

expect(screen.queryByText('Groups')).not.toBeInTheDocument()
expect(screen.getByRole('button', { name: 'Remove Admin' })).toBeInTheDocument()
expect(screen.getByText('Manage access from your identity provider')).toBeInTheDocument()
expect(screen.queryByText('Manage access from your identity provider')).not.toBeInTheDocument()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: This assertion is vacuous after the copy change and does not prove the Members prompt was removed. Assert that the Connect an IdP button is absent, and verify Without IdP is selected by default.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At libs/domains/organizations/feature/src/lib/settings-rbac-v2-prototype/settings-rbac-v2-prototype.spec.tsx, line 94:

<comment>This assertion is vacuous after the copy change and does not prove the Members prompt was removed. Assert that the `Connect an IdP` button is absent, and verify `Without IdP` is selected by default.</comment>

<file context>
@@ -86,20 +86,18 @@ describe('SettingsRbacV2Page', () => {
     expect(screen.queryByText('Groups')).not.toBeInTheDocument()
     expect(screen.getByRole('button', { name: 'Remove Admin' })).toBeInTheDocument()
-    expect(screen.getByText('Manage access from your identity provider')).toBeInTheDocument()
+    expect(screen.queryByText('Manage access from your identity provider')).not.toBeInTheDocument()
 
-    await userEvent.click(screen.getByRole('button', { name: 'Connect an IdP' }))
</file context>
Suggested change
expect(screen.queryByText('Manage access from your identity provider')).not.toBeInTheDocument()
expect(screen.queryByRole('button', { name: 'Connect an IdP' })).not.toBeInTheDocument()
expect(screen.getByRole('radio', { name: /^Without IdP/ })).toHaveAttribute('data-state', 'on')

@RemiBonnet RemiBonnet changed the title fix(rbac): remove the Members IdP prompt fix(rbac): refine the RBAC v2 prototype Nov 23, 2026
@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.60870% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 55.67%. Comparing base (73e6f2a) to head (9aa93c1).

Files with missing lines Patch % Lines
...ib/settings-rbac-v2-prototype/tabs/members-tab.tsx 86.36% 1 Missing and 2 partials ⚠️
...lib/settings-rbac-v2-prototype/tabs/groups-tab.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@                     Coverage Diff                      @@
##           feat/rbacv2-ui-prototype    #3255      +/-   ##
============================================================
- Coverage                     55.71%   55.67%   -0.05%     
============================================================
  Files                           792      791       -1     
  Lines                         20587    20559      -28     
  Branches                       6299     6295       -4     
============================================================
- Hits                          11470    11446      -24     
+ Misses                         7371     7368       -3     
+ Partials                       1746     1745       -1     
Flag Coverage Δ
unittests 55.67% <82.60%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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