Skip to content

Fix: [AEA-6021] - conditional render for displaying roles without access table#1983

Merged
jonathanwelch1-nhs merged 1 commit intomainfrom
AEA-6021-empty-no-roles-with-access-table
Apr 1, 2026
Merged

Fix: [AEA-6021] - conditional render for displaying roles without access table#1983
jonathanwelch1-nhs merged 1 commit intomainfrom
AEA-6021-empty-no-roles-with-access-table

Conversation

@jonathanwelch1-nhs
Copy link
Copy Markdown
Contributor

@jonathanwelch1-nhs jonathanwelch1-nhs commented Mar 31, 2026

Summary

Remove items from this list if they are not relevant. Remove this line once this has been done

  • Routine Change
    dont render the roles without access table if there are no roles

Copilot AI review requested due to automatic review settings March 31, 2026 19:30
@github-actions
Copy link
Copy Markdown
Contributor

This PR is linked to a ticket in an NHS Digital JIRA Project. Here's a handy link to the ticket:

AEA-6021

@jonathanwelch1-nhs jonathanwelch1-nhs changed the title Fix: [AEA-6021] - added the conditional render back in for disp Fix: [AEA-6021] - conditional render for displaying roles without access table Mar 31, 2026
Copy link
Copy Markdown
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

Restores conditional rendering for the “roles without access” section on the EPS role selection page, and adds a test hook for the table to support UI testing.

Changes:

  • Add data-testid="roles-without-access-table" to the “roles without access” table.
  • Only render RolesWithoutAccessSection when rolesWithoutAccess.length > 0.

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

@sonarqubecloud
Copy link
Copy Markdown

@jonathanwelch1-nhs jonathanwelch1-nhs merged commit 0e7e58d into main Apr 1, 2026
43 of 46 checks passed
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.

3 participants