Skip to content

Update add edit routes content#2774

Merged
SamJamCul merged 3 commits into
mainfrom
update-add-edit-routes-content
May 13, 2026
Merged

Update add edit routes content#2774
SamJamCul merged 3 commits into
mainfrom
update-add-edit-routes-content

Conversation

@SamJamCul

@SamJamCul SamJamCul commented May 13, 2026

Copy link
Copy Markdown
Contributor

What problem does this pull request solve?

https://trello.com/c/IgUz33Ml/3070-make-edit-questions-list-display-with-new-routes-and-content-update

Updates to the content for the Add and edit questions page for multiple branches. This does not handle exit pages at all.

Additionally, the list of answer values, when there are multiple that lead to the same page, is not ordered, and will shuffle around if routes are added and deleted. I found it was a bit fiddly to try and fix that, I'll take another crack at it in a bit.


When a page has a single condition based on an answer value

Note also that the key shows it's a singular route

image

When a page has multiple conditions

Conditions are grouped by their destination page's position, with skip to end conditions at the end. The key also shows that there are multiple routes, so uses the plural

image

Unconditional route to a question

image

Unconditional skip to the end

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 SamJamCul force-pushed the update-add-edit-routes-content branch from 0f5fcc8 to 5ec0e5d Compare May 13, 2026 11:46
Comment thread app/components/page_list_component/view.html.erb Outdated
lfdebrux
lfdebrux previously approved these changes May 13, 2026
SamJamCul added 2 commits May 13, 2026 12:54
Updates the content for the Add and edit questions view behind the
multiple_branches feature flag.

Questions with multiple conditions will have their conditions displayed
in groupings based on the destination for those conditions.

Groups are displayed in the order of their destination question
positions, with the skip to end group always set as the final group.

Also updates the content for unconditional routes.
The summary list key will be either singular or plural depending on how
many conditions are present for that question.
@SamJamCul SamJamCul force-pushed the update-add-edit-routes-content branch from 5ec0e5d to 68a1856 Compare May 13, 2026 11:54
lfdebrux
lfdebrux previously approved these changes May 13, 2026
@hannahkc

Copy link
Copy Markdown
Contributor

content in the screenshots all looks good to me!

This group has the feature flag enabled so that changes behind the flag
can be seen.
@SamJamCul SamJamCul force-pushed the update-add-edit-routes-content branch from 756b1b2 to 1f12886 Compare May 13, 2026 12:23
@github-actions

Copy link
Copy Markdown

🎉 A review copy of this PR has been deployed! You can reach it at: https://pr-2774.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.

@SamJamCul SamJamCul added this pull request to the merge queue May 13, 2026
Merged via the queue into main with commit 2d75ade May 13, 2026
3 checks passed
@SamJamCul SamJamCul deleted the update-add-edit-routes-content branch May 13, 2026 13:18
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