Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
577 commits
Select commit Hold shift + click to select a range
c71d937
Remove arguments not needed from magic link functions (#358)
emilyjevans Apr 25, 2025
2ff71ba
Fix tele regex (#362)
connoravo Apr 25, 2025
434c906
Privacy policy styling fixes (#363)
connoravo Apr 25, 2025
63869a7
Update TestForm1.json
calum-ukhsa Apr 25, 2025
ce83ece
Create TestForm2.json
calum-ukhsa Apr 25, 2025
b9779d7
Create TestForm3.json
calum-ukhsa Apr 25, 2025
5a6aa1e
Create TestForm4.json
calum-ukhsa Apr 25, 2025
4e30844
Update TestForm2.json
calum-ukhsa Apr 25, 2025
f9123c3
Update TestForm4.json
calum-ukhsa Apr 25, 2025
9d2d576
Create TestForm5.json
calum-ukhsa Apr 25, 2025
70b0683
Merge pull request #360 from ukhsa-collaboration/calum-ukhsa-patch-1
calum-ukhsa Apr 28, 2025
02a97a2
Fix telephone regex escaping (#364)
connoravo Apr 28, 2025
c427b90
Remove broken forms (#365)
connoravo Apr 28, 2025
cb50bf9
Add files via upload
calum-ukhsa Apr 28, 2025
af1b4a5
Merge pull request #367 from ukhsa-collaboration/simple-test-forms-fo…
calum-ukhsa Apr 28, 2025
3cce853
Improve PR checking (#366)
connoravo Apr 28, 2025
7b53495
Update TestForm1.json
calum-ukhsa Apr 29, 2025
2dd5538
Update TestForm2.json
calum-ukhsa Apr 29, 2025
1d7d78f
Update TestForm3.json
calum-ukhsa Apr 29, 2025
64c17ca
Update TestForm4.json
calum-ukhsa Apr 29, 2025
991db4e
Update TestForm5.json
calum-ukhsa Apr 29, 2025
209006c
Merge pull request #368 from ukhsa-collaboration/calum-ukhsa-patch-1
calum-ukhsa Apr 29, 2025
457d198
Disallow all zero numbers
connoravo Apr 29, 2025
c1672fe
Merge branch 'v2' into telephone-no-zeros
connoravo Apr 29, 2025
4075a59
Merge pull request #369 from ukhsa-collaboration/telephone-no-zeros
calum-ukhsa Apr 29, 2025
1245919
Update close-contact-form.json
calum-ukhsa Apr 29, 2025
8fcd3a9
Update TestForm1.json
calum-ukhsa Apr 29, 2025
c1ad47b
Update TestForm2.json
calum-ukhsa Apr 29, 2025
4fb31d5
Update TestForm3.json
calum-ukhsa Apr 29, 2025
6521e37
Update TestForm4.json
calum-ukhsa Apr 29, 2025
d8398a9
Update TestForm5.json
calum-ukhsa Apr 29, 2025
22ed70a
Merge pull request #371 from ukhsa-collaboration/calum-ukhsa-patch-1
calum-ukhsa Apr 29, 2025
35297db
Create TestForm6.json
calum-ukhsa Apr 30, 2025
4c76f72
Merge pull request #373 from ukhsa-collaboration/calum-ukhsa-patch-1
calum-ukhsa Apr 30, 2025
8e13c93
Add space between service users and staff questions on vaccination pa…
emilyjevans Apr 30, 2025
8a797ab
CAR-1463 Magic link defects (#370)
emilyjevans Apr 30, 2025
0a715dd
Create TestForm7.json
calum-ukhsa May 2, 2025
e9817b9
Merge pull request #374 from ukhsa-collaboration/calum-ukhsa-patch-1
calum-ukhsa May 2, 2025
6a5a8f4
LOPS3-330 - Comment out lines which potentially log PII (#375)
emilyjevans May 7, 2025
0c7a4b9
LOPS3-330 Comment out log line which could send PII to CloudWatch log…
emilyjevans May 8, 2025
b549656
KLS Basic test form config
SullyK May 21, 2025
801bc7d
Merge pull request #380 from SullyK/kls-test-form
kathryn-dale May 23, 2025
5503618
feat(timeout): redirect to form start page and support new config fie…
SullyK May 28, 2025
d242c8c
feat: Optional Security Headers added for webhook outputs (#379)
SullyK May 28, 2025
69763d1
feat: analytics support for form-level tracking (#378)
SullyK May 28, 2025
cd5f8e4
feat(magic-link): Implement domain whitelist for email validation (#377)
SullyK May 28, 2025
a93d551
Feat: Allow forms to use their own magic-link config (#383)
SullyK May 28, 2025
d349d1c
feat/fix: URL construction for hmac email (#385)
SullyK May 29, 2025
64f3bb5
- Test KLS config with features enabled (#386)
SullyK May 29, 2025
48159d1
Updated KLS config and fix accessibility issues
SullyK May 29, 2025
f2f2330
Merge branch 'v2' into updated-kls-config
SullyK Jun 2, 2025
cd73f75
Merge pull request #387 from SullyK/updated-kls-config
natashaburendo Jun 2, 2025
d2a562c
Updated KLS-Config-v2 and generalised paths for expired magic links
SullyK Jun 3, 2025
7995e29
Merge pull request #388 from SullyK/kls-config-v2
kathryn-dale Jun 4, 2025
4bec8fa
Update close-contact-form.json
calum-ukhsa Jun 6, 2025
d1af403
Update TestForm7.json
calum-ukhsa Jun 6, 2025
f32a4d0
Merge pull request #390 from ukhsa-collaboration/Webhook-change
calum-ukhsa Jun 6, 2025
fbf8897
added env variables (#389)
SullyK Jun 9, 2025
ab80d49
V3 version of KLS teams forms (#393)
SullyK Jun 10, 2025
65ea98f
KLS-Form-V4 (#396)
SullyK Jun 13, 2025
7a34b4a
Modify fileupload to send customSecurityHeaders (#395)
SullyK Jun 13, 2025
4c25bf0
Config change - KLS fileupload takeover (#394)
SullyK Jun 13, 2025
763b691
bug fix, make file upload optional (#397)
SullyK Jun 13, 2025
38b5265
- v5 config - pen test ready + bug fixes (#398)
SullyK Jun 16, 2025
c1ff1a6
Bypasses basic safelink check by outlook
SullyK Jun 19, 2025
73092fc
Feat: Option to remove back button:
SullyK Jun 19, 2025
3129529
Merge pull request #399 from SullyK/remove-back-button-option
kathryn-dale Jun 23, 2025
0f50115
Merge pull request #400 from SullyK/magic-link-consumed-fix
kathryn-dale Jun 23, 2025
ada6685
added training form and back link
kitttang Jun 23, 2025
5acb4c9
Update kls-training-magic-link.json
kitttang Jun 23, 2025
2555cef
Update kls-training-magic-link.json
kitttang Jun 23, 2025
4afd1b2
Merge pull request #401 from kitttang/backlink
SullyK Jun 23, 2025
5a61bf8
LOPS3-366: Added L3 webhook front end page to see if webhooks are re…
natashaburendo Jun 24, 2025
b625b7f
LOPS3-366: Added README
natashaburendo Jun 24, 2025
8c03b29
fix for broken training form output bug and back link
kitttang Jun 24, 2025
2bf78e8
Merge pull request #404 from kitttang/training
SullyK Jun 24, 2025
66150bd
LOPS3-366: Changed log to be dynamic
natashaburendo Jun 25, 2025
2b7aa19
disable back link on page after email confirmed
kitttang Jun 25, 2025
05e10d9
Merge pull request #407 from kitttang/backlink
SullyK Jun 25, 2025
455d997
bug-fix: Fix cookies banner issue
SullyK Jun 26, 2025
18f8bad
adding unauthenticated true to unapproved email page
kitttang Jun 26, 2025
db4abcf
Merge pull request #409 from kitttang/domain_validation
SullyK Jun 26, 2025
7c9457c
Merge branch 'v2' into LOPS3-366-hello-world-web-hook-for-testing-for…
natashaburendo Jun 26, 2025
717831c
Merge remote-tracking branch 'upstream/main' into fix/align-upstream
kathryn-dale Jun 26, 2025
6cd9030
LOPS3-366: Changed log to be only run when in dev
natashaburendo Jun 26, 2025
ab03943
LOPS3-366: Changed log to be logger.info - used throughout the system…
natashaburendo Jun 27, 2025
760fad0
Forms
calum-ukhsa Jun 27, 2025
3c991f8
Create closeContact.ts
calum-ukhsa Jun 27, 2025
76a51e0
Merge pull request #410 from ukhsa-collaboration/fix/align-upstream
kathryn-dale Jun 27, 2025
ce3435a
Change filtered to detailsContainingName
calum-ukhsa Jun 27, 2025
32a06d5
Merge branch 'v2' into close-contact-r2
calum-ukhsa Jun 27, 2025
d3cab1a
Add closeContact to summaryDetails/index.ts
calum-ukhsa Jun 27, 2025
6e38484
Rename youOrTheirDetails to convertSectionToRow
calum-ukhsa Jun 27, 2025
20efad4
Merge pull request #403 from ukhsa-collaboration/LOPS3-366-hello-worl…
natashaburendo Jun 30, 2025
aa314ac
Delete runner/src/server/transforms/summaryDetails/closeContact.ts
calum-ukhsa Jun 30, 2025
6469205
Revert index.ts
calum-ukhsa Jun 30, 2025
41118b6
Merge branch 'v2' into close-contact-r2
calum-ukhsa Jun 30, 2025
f4629b0
Merge pull request #408 from SullyK/fix-cookie-issue
kathryn-dale Jun 30, 2025
c209f41
Update RepeatingSectionSummaryPageController.ts
calum-ukhsa Jun 30, 2025
2dd83b6
Merge branch 'v2' into close-contact-r2
calum-ukhsa Jun 30, 2025
9da3676
Merge pull request #412 from ukhsa-collaboration/close-contact-r2
kathryn-dale Jun 30, 2025
dab7a09
Update index.ts
calum-ukhsa Jun 30, 2025
ddb9787
Create sectionsOnlyAndCardConversion.ts
calum-ukhsa Jun 30, 2025
e5756ae
Add all close-contact forms to index.ts
calum-ukhsa Jul 1, 2025
a1cdbfc
Merge pull request #413 from ukhsa-collaboration/close-contact-summary
calum-ukhsa Jul 1, 2025
4c0e28e
Update summary.html
calum-ukhsa Jul 1, 2025
c2aa42c
Merge pull request #414 from ukhsa-collaboration/calum-ukhsa-patch-1
calum-ukhsa Jul 1, 2025
e0ecbfc
adding external feedback form and footers (#415)
kitttang Jul 2, 2025
bdf36ed
Updated the value sent to SalesForce when selecting supply issues rel…
Jul 2, 2025
8db7671
LOPS3-387 Hard code AWS region (#418)
emilyjevans Jul 3, 2025
6cfdca0
Merge pull request #419 from ukhsa-collaboration/INC0189098_Amend_Iss…
TonyGalloneUKHSA Jul 3, 2025
4feab1a
Merge remote-tracking branch 'upstream/main' into fix/merge-in-upstream
kathryn-dale Jul 3, 2025
95e0e15
Merge remote-tracking branch 'upstream/main' into fix/merge-upstream
kathryn-dale Jul 3, 2025
5aafce4
Merge pull request #422 from ukhsa-collaboration/fix/merge-in-upstream
kathryn-dale Jul 4, 2025
75f6a0b
Update sectionsOnlyAndCardConversion.ts
calum-ukhsa Jul 4, 2025
44a790f
Update sectionsOnlyAndCardConversion.ts
calum-ukhsa Jul 4, 2025
f4b971a
Update multiple forms
calum-ukhsa Jul 7, 2025
61eb020
Merge pull request #424 from ukhsa-collaboration/WhoThisFormIsFor
calum-ukhsa Jul 7, 2025
8d0420f
Merge branch 'v2' into sectionsOnlyBugfix
calum-ukhsa Jul 7, 2025
75a7e4d
fixing summary page feedback (#425)
kitttang Jul 8, 2025
03e95c8
Merge pull request #423 from ukhsa-collaboration/sectionsOnlyBugfix
kathryn-dale Jul 9, 2025
fe21686
Delete runner/src/server/transforms/summaryDetails/sectionsOnlyAndCar…
calum-ukhsa Jul 14, 2025
0b04786
Add files via upload
calum-ukhsa Jul 14, 2025
d8a815c
Update index.ts
calum-ukhsa Jul 14, 2025
c1cb28f
Add files via upload
calum-ukhsa Jul 14, 2025
6a4e8f7
LOPS3-407 Reinstate upstream TelephoneNumberField regex (#428)
emilyjevans Jul 15, 2025
22f2185
Merge branch 'v2' into mergeRows
calum-ukhsa Jul 15, 2025
a942fcb
Change params const name to closeContactParams
calum-ukhsa Jul 16, 2025
ea7db9c
Add comment to filterSections.ts
calum-ukhsa Jul 16, 2025
75108c9
Add comment to mergeRows.ts
calum-ukhsa Jul 16, 2025
2fcfef2
Create mergeRows.test.js
calum-ukhsa Jul 16, 2025
83da690
Create filterSections.test.js
calum-ukhsa Jul 16, 2025
447d2f8
form changes and file upload size increase
kitttang Jul 11, 2025
1ce1ad0
Merge pull request #429 from kitttang/form_changes
SullyK Jul 16, 2025
1397711
Merge branch 'v2' into mergeRows
calum-ukhsa Jul 17, 2025
d05b7c3
Add runtime test to PR pipeline (#427)
emilyjevans Jul 17, 2025
d4e8796
Merge branch 'v2' into mergeRows
calum-ukhsa Jul 17, 2025
d67afd4
Delete runner/src/server/forms/TestForm1.json
calum-ukhsa Jul 17, 2025
be103d3
Delete runner/src/server/forms/TestForm2.json
calum-ukhsa Jul 17, 2025
e459d9c
Delete runner/src/server/forms/TestForm3.json
calum-ukhsa Jul 17, 2025
c8e4a86
Delete runner/src/server/forms/TestForm4.json
calum-ukhsa Jul 17, 2025
7929697
Delete runner/src/server/forms/TestForm5.json
calum-ukhsa Jul 17, 2025
8d28139
Delete runner/src/server/forms/TestForm6.json
calum-ukhsa Jul 17, 2025
4463d0f
Delete runner/src/server/forms/TestForm7.json
calum-ukhsa Jul 17, 2025
9b7c448
Rename close-contact-form.json to close-contact-form-nl1.json
calum-ukhsa Jul 17, 2025
0386f71
Rename close-contact-form-hpt.json to close-contact-form-hpt-nl1.json
calum-ukhsa Jul 17, 2025
8710eca
Rename close-contact-form-nl1.json to close-contact-form-nl1-test.json
calum-ukhsa Jul 17, 2025
66e357c
Rename close-contact-form-hpt-nl1.json to close-contact-form-hpt-nl1-…
calum-ukhsa Jul 17, 2025
e3253fc
New form variations
calum-ukhsa Jul 17, 2025
cc9b91c
Merge pull request #433 from ukhsa-collaboration/update-close-contact…
calum-ukhsa Jul 17, 2025
b1df4d0
Rename close-contact-form.json to close-contact-form-nl1-test.json
calum-ukhsa Jul 17, 2025
0229f80
Rename close-contact-form-hpt.json to close-contact-form-hpt-nl1-test…
calum-ukhsa Jul 17, 2025
0b0df39
Merge branch 'v2' into mergeRows
calum-ukhsa Jul 17, 2025
0cb304f
Merge pull request #430 from ukhsa-collaboration/mergeRows
calum-ukhsa Jul 18, 2025
1ff635d
Add files via upload
calum-ukhsa Jul 18, 2025
0969a36
Update closeContactParams
calum-ukhsa Jul 18, 2025
45d1c7b
Update index.ts
calum-ukhsa Jul 18, 2025
d5650f2
Update index.ts
calum-ukhsa Jul 18, 2025
eddbd43
Update scripts
calum-ukhsa Jul 18, 2025
50b933e
Merge pull request #435 from ukhsa-collaboration/close-contact-add-co…
calum-ukhsa Jul 18, 2025
6b73b65
Revert unapproved KLS change
kathryn-dale Jul 18, 2025
eca5a82
Merge branch 'v2' into revert-unapproved-changes
kathryn-dale Jul 18, 2025
eb41e7c
Merge pull request #436 from ukhsa-collaboration/revert-unapproved-ch…
kathryn-dale Jul 18, 2025
ae49a8f
footer pages and minor form changes. (#443)
kitttang Jul 24, 2025
c04c69e
Add files via upload
calum-ukhsa Jul 24, 2025
1e11183
Add files via upload
calum-ukhsa Jul 24, 2025
2d4a0a7
Add files via upload
calum-ukhsa Jul 24, 2025
1d6b740
Update mergeRows.ts
calum-ukhsa Jul 27, 2025
8464348
Merge pull request #446 from ukhsa-collaboration/close-contact-bugfix
calum-ukhsa Jul 28, 2025
6c49e58
Merge branch 'v2' into close-contact-phone-and-email-validation-changes
calum-ukhsa Jul 28, 2025
a6f42ab
Merge pull request #445 from ukhsa-collaboration/close-contact-phone-…
calum-ukhsa Jul 28, 2025
afb0e4a
file type error (#449)
kitttang Jul 29, 2025
4a93d68
adding digital accessibility email to allowed domains
kitttang Jul 31, 2025
03c89af
Merge pull request #450 from ukhsa-collaboration/dac_email
kathryn-dale Jul 31, 2025
ed75df8
Non-HPT forms
calum-ukhsa Aug 1, 2025
a83569e
HPT forms
calum-ukhsa Aug 1, 2025
f9d1e5a
LOPS3-587-xgov-flakey-pipeline Demoted Prisma for dependency issues
RowanGillUKHSA Aug 4, 2025
3815a38
LOPS3-587-xgov-flakey-pipeline Demoted Prisma in queue model
RowanGillUKHSA Aug 4, 2025
a5edef0
Merge pull request #454 from ukhsa-collaboration/LOPS3-587-xgov-flake…
RowanGillUKHSA Aug 4, 2025
1ee1eed
form iterations
kitttang Aug 6, 2025
2d5dba7
Merge branch 'main' into fix/merge-upstream
kathryn-dale Aug 7, 2025
3d143c9
Merge pull request #456 from ukhsa-collaboration/form_iterations
kitttang Aug 7, 2025
47ac91b
Merge branch 'v2' into fix/merge-upstream
kathryn-dale Aug 7, 2025
5cc7c60
Merge pull request #457 from ukhsa-collaboration/fix/merge-upstream
kathryn-dale Aug 8, 2025
5af9ae2
adding fine grained autocomplete for name and job title
kitttang Aug 8, 2025
75c2de3
Add files via upload
calum-ukhsa Aug 12, 2025
a12d137
Merge pull request #460 from ukhsa-collaboration/feedback-form-close-…
calum-ukhsa Aug 13, 2025
57cdbec
form iterations 2
kitttang Aug 13, 2025
38f6938
Merge branch 'autocomplete' into form_iterations
kitttang Aug 13, 2025
32841e3
Merge pull request #461 from ukhsa-collaboration/form_iterations
SullyK Aug 13, 2025
990bf0e
patch: form iterations 3
kitttang Aug 14, 2025
a7e76a4
Merge pull request #462 from ukhsa-collaboration/form_iterations
kitttang Aug 14, 2025
176ff45
footer router fixes (#451)
kitttang Aug 20, 2025
17ff161
Add files via upload
calum-ukhsa Aug 20, 2025
cd83f0b
Update and rename give-feedback-on-surge-response-service.json to clo…
calum-ukhsa Aug 20, 2025
9781eca
Make name and email fields optional
calum-ukhsa Aug 20, 2025
bd757d2
Merge pull request #463 from ukhsa-collaboration/close-contact-feedback
calum-ukhsa Aug 21, 2025
c70e4fa
Change button text to "Send feedback" in close-contact-feedback.json
calum-ukhsa Aug 21, 2025
3421a07
Merge pull request #464 from ukhsa-collaboration/calum-ukhsa-patch-2
calum-ukhsa Aug 22, 2025
cfba59a
fix: avoid duplicate form submissions (#465)
ramonrodgal Aug 27, 2025
3588da1
Merge branch 'main' into fix/merge-main-2025-08-28
kathryn-dale Aug 28, 2025
abf5465
Update close-contact-feedback.json
calum-ukhsa Aug 29, 2025
ceacd17
Merge pull request #467 from ukhsa-collaboration/feedback-form-working
calum-ukhsa Aug 29, 2025
aedfe2a
kls form iterations 4
kitttang Aug 29, 2025
cee1d14
Merge branch 'v2' into fix/merge-main-2025-08-28
kathryn-dale Sep 1, 2025
c04991b
Merge pull request #466 from ukhsa-collaboration/fix/merge-main-2025-…
kathryn-dale Sep 1, 2025
79f65da
Merge branch 'v2' into form_iterations
kitttang Sep 1, 2025
87b15f0
Merge pull request #468 from ukhsa-collaboration/form_iterations
kitttang Sep 1, 2025
7ff062d
Update close-contact-feedback.json
calum-ukhsa Sep 2, 2025
35377a2
Merge pull request #469 from ukhsa-collaboration/close-contact-feedba…
calum-ukhsa Sep 2, 2025
cc145bb
Merge branch 'v2' into close-contact-r3
calum-ukhsa Sep 3, 2025
e208595
Typo fix and section name change (latter to fix bug)
calum-ukhsa Sep 3, 2025
34b56ac
Update index.ts
calum-ukhsa Sep 3, 2025
e1dc561
Merge pull request #452 from ukhsa-collaboration/close-contact-r3
calum-ukhsa Sep 4, 2025
e2c43ef
Add files via upload
calum-ukhsa Sep 10, 2025
8383ece
Add files via upload
calum-ukhsa Sep 10, 2025
adaf0b1
patch: kls form changes for dac
kitttang Sep 9, 2025
e3c8341
Merge pull request #470 from ukhsa-collaboration/dac_fixes
kitttang Sep 10, 2025
76f61ec
Merge branch 'v2' into email-bugfix
calum-ukhsa Sep 11, 2025
b66733e
Add files via upload
calum-ukhsa Sep 11, 2025
290b4d2
Merge pull request #471 from ukhsa-collaboration/email-bugfix
calum-ukhsa Sep 11, 2025
4e7d2a0
Update close-contact-feedback.json
calum-ukhsa Sep 11, 2025
d7fe82e
Merge pull request #473 from ukhsa-collaboration/Feedback-form-API-ke…
calum-ukhsa Sep 11, 2025
d9a34d4
Add files via upload
calum-ukhsa Sep 12, 2025
f3342bf
Merge pull request #476 from ukhsa-collaboration/hpt-journey-fix
calum-ukhsa Sep 12, 2025
2c154e9
patch: form iterations 5
kitttang Sep 12, 2025
7cb9534
fix: unset tokens when application complete
SullyK Sep 15, 2025
9653c6b
Merge branch 'main' into fix/merge-upstream-september-25
kathryn-dale Sep 17, 2025
7b3b7f3
Merge pull request #480 from ukhsa-collaboration/fix/merge-upstream-s…
kathryn-dale Sep 17, 2025
4a4e8c2
Merge branch 'v2' into form_iterations
kitttang Sep 17, 2025
5ce25be
Update kls-training-request.json
kitttang Sep 17, 2025
20eb968
Merge pull request #474 from ukhsa-collaboration/form_iterations
kitttang Sep 18, 2025
d2851d4
Add files via upload
calum-ukhsa Sep 19, 2025
7683a31
Update index.ts
calum-ukhsa Sep 19, 2025
c6003c9
RITM0182451 - enable yorkshire & humber region in report an outbreak …
sam-aki Sep 23, 2025
5a06637
RITM0182451 - add HPT to yorkshire and humber value
sam-aki Sep 23, 2025
ab65665
RITM0182451 - put commented out redis config back in default.js
sam-aki Sep 23, 2025
6c8aa50
Add files via upload
calum-ukhsa Sep 23, 2025
7a6eb8e
Merge pull request #481 from ukhsa-collaboration/close-contact-form-c…
calum-ukhsa Sep 23, 2025
61395a9
Add files via upload
calum-ukhsa Sep 23, 2025
60195cc
Merge pull request #483 from ukhsa-collaboration/close-contact-mobile…
calum-ukhsa Sep 23, 2025
f6717aa
Merge branch 'v2' into fix_uncleared_cookies
SullyK Sep 23, 2025
7591896
Update value of Y&H in list
kathryn-dale Sep 24, 2025
5787aa6
Merge branch 'v2' into RITM0182451-enable-yorkshire-and-humber-in-rep…
kathryn-dale Sep 24, 2025
ff2056d
Merge pull request #482 from ukhsa-collaboration/RITM0182451-enable-y…
kathryn-dale Sep 24, 2025
1cb7718
fix dac audit issue with dd and dt tags
SullyK Sep 24, 2025
7b511ec
Merge pull request #484 from ukhsa-collaboration/fix-dac-audit-config
SullyK Sep 24, 2025
093977c
Merge branch 'v2' into fix_uncleared_cookies
SullyK Sep 24, 2025
00c6711
Merge pull request #479 from ukhsa-collaboration/fix_uncleared_cookies
SullyK Sep 24, 2025
3d659e7
feature: remove rows from summary page
kitttang Sep 27, 2025
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
9 changes: 9 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Each line is a file pattern followed by one or more owners.

# L3 Engineering are the default owners for everything excluding team specific forms (unless it's for a product supported by L3, in which
# case they are owners for those specific forms too)

* @ukhsa-collaboration/L3-Engineering
/runner/src/server/forms/ReportAnOutbreak @ukhsa-collaboration/L3-Engineering

/runner/src/server/forms
90 changes: 90 additions & 0 deletions .github/workflows/create-ukhsa-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: Create UKHSA Release

on:
push:
branches:
- v2
paths:
- "**/*docker-compose*.yml"
- "**/*docker-compose*.yaml"
- "**/docker-compose/**"
- "runner/**"
- "designer/**"
- "submitter/**"
- "model/**"
- "queue-model/**"
- "package.json"
- "yarn.lock"

jobs:
create-extended-tags:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Configure Git
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"

- name: Find merge base with main and create extended tags
run: |
# Ensure we have all tags and branches
git fetch --tags origin
git fetch origin main:main

# Find the merge base between v2 and main
MERGE_BASE=$(git merge-base v2 main)
echo "Merge base commit: $MERGE_BASE"

# Get the tags that point to the merge base commit
BASE_TAGS=$(git tag --points-at $MERGE_BASE)

if [ -z "$BASE_TAGS" ]; then
echo "No tags found at merge base. Exiting."
exit 0
fi

echo "Found tags at merge base: $BASE_TAGS"

# Process each found tag
for BASE_TAG in $BASE_TAGS; do
echo "Processing base tag: $BASE_TAG"

# Find highest existing extended tag version
HIGHEST_EXT_VERSION=0

# Get all extended tags for this base tag
EXISTING_EXT_TAGS=$(git tag -l "${BASE_TAG}-ext*")

for EXT_TAG in $EXISTING_EXT_TAGS; do
# Extract version number after "ext"
VERSION_NUM=$(echo $EXT_TAG | sed -E "s|${BASE_TAG}-ext([0-9]+)|\1|")

if [[ $VERSION_NUM =~ ^[0-9]+$ ]]; then
if [ $VERSION_NUM -gt $HIGHEST_EXT_VERSION ]; then
HIGHEST_EXT_VERSION=$VERSION_NUM
fi
fi
done

# Calculate new version
NEW_VERSION=$((HIGHEST_EXT_VERSION + 1))
NEW_TAG="${BASE_TAG}-ext${NEW_VERSION}"

echo "Creating new extended tag: $NEW_TAG"

# Get current v2 branch HEAD
V2_HEAD=$(git rev-parse v2)

# Create annotated tag
git tag -a "$NEW_TAG" -m "Extended tag from $BASE_TAG for v2 branch (version $NEW_VERSION)" $V2_HEAD

# Push the new tag
git push origin "$NEW_TAG"
echo "Successfully created and pushed tag $NEW_TAG"
done
76 changes: 76 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Pull Request Validation

on:
pull_request:
branches:
- "**"

jobs:
build-docker:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
path: builder

- name: Configure AWS Credentials
id: aws-creds
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: eu-west-2
aws-access-key-id: ${{secrets.ACCESS_KEY_ID}}
aws-secret-access-key: ${{secrets.SECRET_ACCESS_KEY}}

- name: Login to ECR
uses: docker/login-action@v2
with:
registry: ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{secrets.AWS_REGION}}.amazonaws.com
ecr: true

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Modify config for build
run: |
cd ./builder/runner
# Comment out specific Redis + sessionCookiePassword configuration lines
sed -i 's/^ sessionCookiePassword:/ \/\/ sessionCookiePassword:/' config/default.js
sed -i 's/^ redisHost:/ \/\/ redisHost:/' config/default.js
sed -i 's/^ redisPort:/ \/\/ redisPort:/' config/default.js
sed -i 's/^ redisPassword:/ \/\/ redisPassword:/' config/default.js
sed -i 's/^ redisTls:/ \/\/ redisTls:/' config/default.js

- name: Build and cache
uses: docker/build-push-action@v6
with:
push: false
load: true
tags: user/app:test
context: ./builder
file: ./builder/runner/Dockerfile
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Check
run: |
echo "Starting container..."

# Start container and immediately check if it's running
docker run --rm -d --name quick-test -p 8080:8080 user/app:test

# Wait a moment
sleep 5

# Check if still running
if docker ps | grep -q quick-test; then
echo "✅ Container started successfully"
docker logs quick-test
docker stop quick-test
else
echo "❌ Container failed to start or exited"
docker logs quick-test 2>&1 || echo "No logs available"
exit 1
fi
69 changes: 69 additions & 0 deletions .github/workflows/sync-tags.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Sync Upstream Main Tag

on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *" # Runs daily at midnight UTC; adjust as needed

jobs:
sync-tags:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # Ensure full history and all tags are fetched

- name: Add Upstream Remote
run: |
# Add the upstream remote; change the URL if needed.
git remote add upstream https://github.com/XGovFormBuilder/digital-form-builder.git || echo "Upstream remote already exists."

- name: Fetch Upstream Main and Tags
run: |
git fetch upstream main --tags

- name: Sync Tags for Upstream Main Commit with Original Message using IFS read loop
run: |
#!/bin/bash
set -e

# Fetch all refs from upstream and origin
git fetch upstream --tags
git fetch origin --tags

# Get all tags from upstream
upstream_tags=$(git ls-remote --tags upstream | grep -v '\^{}' | awk '{print $2}' | sed 's|refs/tags/||')

# Get all tags from origin
origin_tags=$(git ls-remote --tags origin | grep -v '\^{}' | awk '{print $2}' | sed 's|refs/tags/||')

echo "Found upstream tags: $upstream_tags"
echo "Found origin tags: $origin_tags"

# Loop through each upstream tag
for tag in $upstream_tags; do
# Check if tag exists on origin remote
if echo "$origin_tags" | grep -q "^$tag$"; then
echo "Tag $tag already exists on origin remote, skipping."
else
# Fetch the specific tag from upstream
git fetch upstream "refs/tags/$tag:refs/tags/$tag"

# Check if it's an annotated tag
if git cat-file -t "refs/tags/$tag" 2>/dev/null | grep -q "^tag$"; then
# It's an annotated tag, we've already fetched it correctly
echo "Fetched annotated tag: $tag"
else
# It's a lightweight tag, get the commit it points to
commit=$(git rev-parse "$tag^{commit}")
echo "Fetched lightweight tag: $tag (points to $commit)"
fi

# Push the tag to origin
git push origin "refs/tags/$tag"
echo "Successfully pushed tag $tag to origin"
fi
done

echo "All upstream tags have been synced to origin."
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,11 @@ A suite of smoke tests are run against all PRs. There is a Cron Job that execute
A legacy suite of smoke tests can be found in this [repository](https://github.com/XGovFormBuilder/digital-form-builder-legacy-smoke-tests). They have been removed so that the project can run on node 18.

Smoke tests will be migrated to use [cypress.io](https://cypress.io) in the coming months.

### L3 Webhook

The webhook JSON is here: digital-form-builder/runner/src/server/forms/L3Webhook.json

Add the URL of the client webhook that you are currently working with into the JSON (line 64)

Run the system locally and make your way through the screens as you would with other forms. Then navigate to the console and search for "status of the request is here" to see the request status. You can also see the status in multiple info logs throughout the console. Look for logs like 'INFO (74824 on Burendo-C6XDQM96PK): request completed' and there will be a sub section of '"statusCode": 200.'
3 changes: 3 additions & 0 deletions designer/client/page-create.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ class PageCreate extends React.Component {
<option value="">Question Page</option>
<option value="./pages/start.js">Start Page</option>
<option value="./pages/summary.js">Summary Page</option>
<option value="CheckpointSummaryPage">
Non-submitting Summary Page
</option>
</select>
</div>

Expand Down
3 changes: 3 additions & 0 deletions designer/client/page-edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ export class PageEdit extends React.Component {
<option value="./pages/summary.js">
{i18n("page.types.summary")}
</option>
<option value="CheckpointSummaryPage">
Non-submitting Summary Page
</option>
</select>
</div>
<Input
Expand Down
3 changes: 3 additions & 0 deletions designer/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export interface Config {
lastTag: string;
sessionTimeout: number;
sessionCookiePassword: string;
httpsCookieSecureAttribute: boolean;
awsCredentials?: CredentialsOptions;
}

Expand Down Expand Up @@ -49,6 +50,7 @@ const schema = joi.object({
lastTag: joi.string().default("undefined"),
sessionTimeout: joi.number().default(sessionSTimeoutInMilliseconds),
sessionCookiePassword: joi.string().optional(),
httpsCookieSecureAttribute: joi.boolean().optional(),
});

// Build config
Expand All @@ -66,6 +68,7 @@ const config = {
lastTag: process.env.LAST_TAG || process.env.LAST_TAG_GH,
sessionTimeout: process.env.SESSION_TIMEOUT,
sessionCookiePassword: process.env.SESSION_COOKIE_PASSWORD,
httpsCookieSecureAttribute: process.env.HTTPS_COOKIE_SECURE_ATTRIBUTE,
};

// Validate config
Expand Down
2 changes: 1 addition & 1 deletion designer/server/plugins/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const configureYarPlugin = (): ServerRegisterPluginObject<yar> => {
.fill(0)
.map(() => Math.random().toString(36).charAt(2))
.join(""),
isSecure: config.isProd,
isSecure: config.httpsCookieSecureAttribute,
isHttpOnly: true,
isSameSite: "Lax",
},
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ services:
- PREVIEW_MODE=true
- LAST_COMMIT
- LAST_TAG
- MAGIC_LINK_TOGGLE="false"
- ENFORCE_CSRF=true
# - ENABLE_QUEUE_SERVICE=true
# - QUEUE_DATABASE_URL=mysql://root:root@mysql:3306/queue # or postgres://user:root@postgres:5432/queue
# - DEBUG="prisma*"
Expand Down Expand Up @@ -95,4 +97,4 @@ services:
# environment:
# POSTGRES_DB: queue
# POSTGRES_PASSWORD: root
# POSTGRES_USER: user
# POSTGRES_USER: user
Loading
Loading