Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
9c316c3
WIP
mokhld Jan 21, 2026
1fa9b37
Styling fix
jbarnsley10 Jan 22, 2026
caa6073
WIP: progress commit
mokhld Jan 22, 2026
41fbf7a
Fixed tests
jbarnsley10 Jan 22, 2026
28c5566
feat(payment): add payment expired notification banner
mokhld Jan 22, 2026
7591d88
Handles test/live API key
jbarnsley10 Jan 23, 2026
a3aa743
Merge branch 'feat/df-623-payment-2' of https://github.com/DEFRA/form…
jbarnsley10 Jan 23, 2026
87adc2d
fix(summary): update button text from Accept and send to Accept and s…
mokhld Jan 23, 2026
960c118
feat(payment): add createdAt field to FormAdapterPayment and update r…
mokhld Jan 23, 2026
5debb87
refactor(sonar): reduce complexity
mokhld Jan 23, 2026
eabbe41
refactor(sonar): replace magic numbers with http-status-codes
mokhld Jan 23, 2026
41a710e
Added service and help tests
jbarnsley10 Jan 23, 2026
bbc727c
Merge branch 'feat/df-623-payment-2' of https://github.com/DEFRA/form…
jbarnsley10 Jan 23, 2026
1ee302a
Added some tests for PaymentField
jbarnsley10 Jan 26, 2026
17de9a6
More coverage on PaymentField
jbarnsley10 Jan 26, 2026
d325679
Corrected formating/linting
jbarnsley10 Jan 26, 2026
0e7b7c5
Added env var for tests
jbarnsley10 Jan 26, 2026
a34a866
chore(payment-test): add schema version to payment test form
mokhld Jan 23, 2026
dbc6e12
feat(payment): enhance email formatting to include payment details se…
mokhld Jan 23, 2026
536c86b
refactor: add factory for payment service, helpers, remove unneeded c…
mokhld Jan 26, 2026
30be6de
Payment route tests
jbarnsley10 Jan 26, 2026
9f59172
Merge branch 'feat/df-623-payment-2' of https://github.com/DEFRA/form…
jbarnsley10 Jan 26, 2026
a69a7ee
Extra route coverage
jbarnsley10 Jan 26, 2026
c32768c
test(payment): add tests for formatPaymentDate and formatPaymentAmoun…
mokhld Jan 26, 2026
a3ca63f
refactor: fix circular import
mokhld Jan 26, 2026
2c29585
Tests for payment-helper
jbarnsley10 Jan 27, 2026
3690961
Merge branch 'feat/df-623-payment-2' of https://github.com/DEFRA/form…
jbarnsley10 Jan 27, 2026
9cd6adb
feat(submission): implement building submission records for csv
mokhld Jan 27, 2026
5dd9502
Coverage on human v1
jbarnsley10 Jan 27, 2026
09aa7cd
Lint fix
jbarnsley10 Jan 27, 2026
a95c376
feat(payment): add payer email handling in payment state and pre-fill…
mokhld Jan 27, 2026
435ac07
Coverage on machine v2
jbarnsley10 Jan 27, 2026
005a269
Merge branch 'feat/df-623-payment-2' of https://github.com/DEFRA/form…
jbarnsley10 Jan 27, 2026
5340c7a
Corrected type
jbarnsley10 Jan 27, 2026
6ed0b82
Corrected types
jbarnsley10 Jan 27, 2026
7c95570
refactor: simplify formatPaymentDate function using date-fns
mokhld Jan 27, 2026
f069bfb
refactor(submission): update payment field names and descriptions for…
mokhld Jan 27, 2026
ccfb248
Fixed vulnerabilities with npm audit fix
jbarnsley10 Jan 28, 2026
25e9ff2
Merge branch 'feat/df-623-payment-2' of https://github.com/DEFRA/form…
jbarnsley10 Jan 28, 2026
dcad7b2
Removed pre-fill email as needs more thinking
jbarnsley10 Jan 28, 2026
0d97703
Extra coverage
jbarnsley10 Jan 28, 2026
acd3849
Sonar fix
jbarnsley10 Jan 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions jest.setup.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ process.env.UPLOADER_BUCKET_NAME = 'dummy-bucket'
process.env.GOOGLE_ANALYTICS_TRACKING_ID = 'G-123456789'
process.env.SUBMISSION_EMAIL_ADDRESS = 'dummy@defra.gov.uk'
process.env.ORDNANCE_SURVEY_API_KEY = 'dummy'
process.env.PAYMENT_PROVIDER_API_KEY_TEST = 'test-api-key'
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/server/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ export const FORM_PREFIX = ''
export const EXTERNAL_STATE_PAYLOAD = 'EXTERNAL_STATE_PAYLOAD'
export const EXTERNAL_STATE_APPENDAGE = 'EXTERNAL_STATE_APPENDAGE'
export const COMPONENT_STATE_ERROR = 'COMPONENT_STATE_ERROR'
export const PAYMENT_EXPIRED_NOTIFICATION = 'PAYMENT_EXPIRED_NOTIFICATION'
1 change: 1 addition & 0 deletions src/server/forms/payment-test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
schema: 2
name: Payment Test Form
declaration: "<p class=\"govuk-body\">All the answers you have provided are true to the best of your knowledge.</p>"
pages:
Expand Down
2 changes: 1 addition & 1 deletion src/server/plugins/engine/components/FormComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export class FormComponent extends ComponentBase {
return value.filter(isFormValue)
}

return this.isValue(value) ? value : null
return this.isValue(value) ? (value as Item['value']) : null
}

getContextValueFromState(
Expand Down
Loading
Loading