Skip to content

feat/DF-553: CSAT feedback#268

Merged
jbarnsley10 merged 11 commits intomainfrom
feat/DF-553-csat-lint
Nov 27, 2025
Merged

feat/DF-553: CSAT feedback#268
jbarnsley10 merged 11 commits intomainfrom
feat/DF-553-csat-lint

Conversation

@jbarnsley10
Copy link
Contributor

@jbarnsley10 jbarnsley10 commented Nov 26, 2025

Proposed change

Prepopulates URL params into state (where a hidden field with the same name has been defined in the form)
This PR goes hand-in-hand with forms-runner PR DEFRA/forms-runner#1008

Jira ticket: DF-553

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Misc. (documentation, build updates, etc)

Checklist

  • You have executed this code locally and it performs as expected.
  • You have added tests to verify your code works.
  • You have added code comments and JSDoc, where appropriate.
  • There is no commented-out code.
  • You have added developer docs in README.md and docs/* (where appropriate, e.g. new features).
  • The tests are passing (npm run test).
  • The linting checks are passing (npm run lint).
  • The code has been formatted (npm run format).

@jbarnsley10 jbarnsley10 changed the title Stash feat/DF-553: types test PR Nov 26, 2025
@jbarnsley10 jbarnsley10 changed the title feat/DF-553: types test PR feat/DF-553: CSAT feedback Nov 26, 2025
@jbarnsley10 jbarnsley10 marked this pull request as ready for review November 26, 2025 09:01
Copy link
Contributor

@alexluckett alexluckett left a comment

Choose a reason for hiding this comment

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

really nice work, jez!

await cacheService.setConfirmationState(request, { confirmed: true })
await cacheService.setConfirmationState(request, {
confirmed: true,
formId: context.state.formId as string | undefined
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we not fix the type definition in FormSubmissionState?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not part of that, and isn't typed, but I could add a FormConfirmationState type and reference that

@alexluckett alexluckett self-requested a review November 27, 2025 16:26
@sonarqubecloud
Copy link

@jbarnsley10 jbarnsley10 merged commit d945cb8 into main Nov 27, 2025
24 checks passed
@jbarnsley10 jbarnsley10 deleted the feat/DF-553-csat-lint branch November 27, 2025 16:31
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