Skip to content

Update banner notifications when changing a select-one question with routes from answers#2879

Open
SamJamCul wants to merge 2 commits into
mainfrom
update-warnings-when-deleting-a-question-at-the-start-or-end-of-a-route
Open

Update banner notifications when changing a select-one question with routes from answers#2879
SamJamCul wants to merge 2 commits into
mainfrom
update-warnings-when-deleting-a-question-at-the-start-or-end-of-a-route

Conversation

@SamJamCul

Copy link
Copy Markdown
Contributor

What problem does this pull request solve?

Trello card: https://trello.com/c/P4dayADV/3143-update-banner-notifications-when-changing-a-select-one-question-with-routes-from-answers

Updates the banner that shows when changing the answer type from a selection question, with only one option. The banner no longer shows if it's a selection question with multiple options.

The banner says route or routes depending on the number of routes from that question.

image

Things to consider when reviewing

  • Ensure that you consider the wider context.
  • Does it work when run on your machine?
  • Is it clear what the code is doing?
  • Do the commit messages explain why the changes were made?
  • Are there all the unit tests needed?
  • Do the end to end tests need updating before these changes will pass?
  • Has all relevant documentation been updated?

SamJamCul added 2 commits July 1, 2026 09:34
When changing the answer type of a selection question, we only need to
delete conditions associated with that question if it was a single
selection question. If it could have multiple options, then we don't
need to remove existing conditions.
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

🎉 A review copy of this PR has been deployed! You can reach it at: https://pr-2879.admin.review.forms.service.gov.uk/

It may take 5 minutes or so for the application to be fully deployed and working. If it still isn't ready
after 5 minutes, there may be something wrong with the ECS task. You will need to go to the integration AWS account
to debug, or otherwise ask an infrastructure person.

For the sign in details and more information, see the review apps wiki page.

@lfdebrux lfdebrux changed the title Update warnings when deleting a question at the start or end of a route Update banner notifications when changing a select-one question with routes from answers Jul 1, 2026
@william-castoncook

Copy link
Copy Markdown
Contributor

Checked content (plural and singular) and it looks good!

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