Skip to content

Add CSV download of From content#2625

Open
thomasiles wants to merge 3 commits intomainfrom
add-csv-welsh
Open

Add CSV download of From content#2625
thomasiles wants to merge 3 commits intomainfrom
add-csv-welsh

Conversation

@thomasiles
Copy link
Contributor

@thomasiles thomasiles commented Mar 13, 2026

Add a CSV download with all English and Welsh text for a form

Trello card: https://trello.com/c/zdsvt3Sk/2861-add-a-spreadsheet-download-containing-all-translatable-text

Add a button to the Welsh page which downloads a CSV containing the Welsh and English text of a form. The CSV is based on the form name, restricted to 80 characters.

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?

Add a service which generates a CSV file for downloading the form
content in English and Welsh.
Add a new route and controller for downloading a CSV of the form in Welsh.

The download will contain the English and Welsh text for each field of
the form, it's pages and conditions.
Add a button which links to the CSV download of the form content.
@sonarqubecloud
Copy link

@github-actions
Copy link

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

@thomasiles thomasiles changed the title Add csv welsh Add CSV download of From content Mar 13, 2026
@thomasiles thomasiles marked this pull request as ready for review March 13, 2026 12:37
@hannahkc
Copy link
Contributor

This looks great to me! Aceness!

Copy link
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.

Code and tests look good, works for me in Review, and the CSV looks as expected 🎉

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