Skip to content

Add link to add Welsh translations for a form#2283

Merged
chao-xian merged 6 commits into
mainfrom
add-welsh-task
Oct 27, 2025
Merged

Add link to add Welsh translations for a form#2283
chao-xian merged 6 commits into
mainfrom
add-welsh-task

Conversation

@chao-xian
Copy link
Copy Markdown
Contributor

@chao-xian chao-xian commented Oct 16, 2025

What problem does this pull request solve?

Trello card: https://trello.com/c/s3slDSAo/2637-add-new-task-link-to-task-list-for-adding-a-welsh-version

This goes nowhere atm as it's only the link we're adding.

Had to refactor the section numbers code to allow some way of making it dynamically change based on whether the feature is switched on. A loop over the sections wouldn't work as there wasn't a way to skip the subsections and have the correct number for the next loop.

Can't exercise the status code much atm as we don't have any translations.

Screenshot 2025-10-20 at 5 40 11 pm

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?

@chao-xian chao-xian marked this pull request as ready for review October 20, 2025 16:43
@chao-xian chao-xian force-pushed the add-welsh-task branch 2 times, most recently from 5608b1f to f881314 Compare October 21, 2025 14:58
Comment thread spec/models/form_document/content_spec.rb
Comment thread app/components/task_list_component/view.html.erb Outdated
Comment thread spec/models/form_spec.rb
Comment thread app/services/form_task_list_service.rb
@chao-xian chao-xian force-pushed the add-welsh-task branch 3 times, most recently from a728126 to 69fbdd2 Compare October 24, 2025 15:07
Comment thread app/models/form.rb Outdated
Comment thread spec/factories/models/forms.rb
Comment thread app/models/form.rb Outdated
@chao-xian chao-xian force-pushed the add-welsh-task branch 3 times, most recently from 673ad18 to 0867fc5 Compare October 27, 2025 14:59
This goes nowhere atm as it's only the link we're adding.
Most cases should be that there's an associated group. Now that we check whether a Group has the Welsh feature enabled, actions on a form on whether to do anything Welsh related are more dependent on there being a Group.

# Conflicts:
#	spec/factories/models/form_record.rb
Based on whether the feature is enabled.
We can uncouple Form and EmailTaskStatusService/TaskStatusService.
@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Contributor

@DavidBiddle DavidBiddle left a comment

Choose a reason for hiding this comment

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

Nice 🎉

@chao-xian chao-xian enabled auto-merge October 27, 2025 15:55
@chao-xian chao-xian merged commit 3de22a1 into main Oct 27, 2025
6 checks passed
@chao-xian chao-xian deleted the add-welsh-task branch October 27, 2025 15:56
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