Skip to content

Choose CIR version for EQ formtype XXXX page - radio buttons - view permissions#1024

Open
matthew-robinson-ons wants to merge 5 commits into
mainfrom
cir-version-radios-view-permissions
Open

Choose CIR version for EQ formtype XXXX page - radio buttons - view permissions#1024
matthew-robinson-ons wants to merge 5 commits into
mainfrom
cir-version-radios-view-permissions

Conversation

@matthew-robinson-ons

@matthew-robinson-ons matthew-robinson-ons commented Aug 7, 2025

Copy link
Copy Markdown
Contributor

What and why?

This PR updates the cir versions page radio buttons, for when the user on the page doesn't have edit permissions.
The acceptance criteria stated to have the radios be disabled but the design system doesn't implement a disabled variant of a radio button.
The approach taken is to provide a summary list of the available versions and a check mark next to a version if it has been selected. See conversation on the Jira ticket.

N.B. Have implemented technical task 1 from https://officefornationalstatistics.atlassian.net/browse/RAS-1665 to hide the save button as was easier to implement than not.

How to test?

Deploy this PR and set up a CIR collection exercise (QBS)
Add some form types and select some cir versions.
Setup up an account without edit survey permissions on the manage user accounts tab.
Navigate to surveys/QBS/PERIODREF/view-sample-ci/summary/FORMTYPE with and without edit permissions and ensure in both cases all the versions are visible and the selected version is shown to the user.

N.B. Due to the trade off with not having disabled radio buttons the user won't see a nothing selected option unless they have edit permissions.

Jira

https://officefornationalstatistics.atlassian.net/browse/RAS-1639

@matthew-robinson-ons matthew-robinson-ons requested a review from a team as a code owner August 7, 2025 15:03
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