hof 22.9.0-beta.v3 → 22.9.0-fix-timeout-back-button-bug-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +10 -0
- package/.github/workflows/automate-publish.yml +38 -0
- package/.github/workflows/automate-tag.yml +78 -0
- package/.istanbul.yml +20 -0
- package/.nyc_output/3301185d-3a55-4452-9573-92910de66f65.json +1 -0
- package/.nyc_output/processinfo/3301185d-3a55-4452-9573-92910de66f65.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -0
- package/CHANGELOG.md +3 -15
- package/README.md +0 -30
- package/codeReviewChecklist.md +22 -0
- package/config/hof-defaults.js +1 -7
- package/frontend/template-partials/views/cookies.html +6 -6
- package/frontend/template-partials/views/layout.html +8 -2
- package/frontend/template-partials/views/partials/cookie-banner.html +6 -11
- package/frontend/template-partials/views/session-timeout.html +5 -2
- package/frontend/themes/gov-uk/styles/_cookie-banner.scss +3 -0
- package/lib/settings.js +0 -2
- package/middleware/errors.js +18 -7
- package/middleware/service-unavailable.js +4 -1
- package/package.json +6 -5
- package/pull_request_template.md +16 -0
- package/sandbox/.env +3 -0
- package/sandbox/apps/sandbox/translations/en/default.json +245 -0
- package/sandbox/package.json +1 -1
- package/sandbox/public/css/app.css +9552 -0
- package/sandbox/public/images/icons/icon-caret-left.png +0 -0
- package/sandbox/public/images/icons/icon-complete.png +0 -0
- package/sandbox/public/images/icons/icon-cross-remove-sign.png +0 -0
- package/sandbox/public/js/bundle.js +47603 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"parent":null,"pid":33093,"argv":["/Users/rhodine.orleans-lindsay/.nvm/versions/node/v20.19.0/bin/node","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/node_modules/.bin/_mocha","test/**/*.spec.js","sandbox/test/**/*.spec.js"],"execArgv":[],"cwd":"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof","time":1756725922963,"ppid":33090,"coverageFilename":"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/.nyc_output/3301185d-3a55-4452-9573-92910de66f65.json","externalId":"","uuid":"3301185d-3a55-4452-9573-92910de66f65","files":["/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/model/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/model/apis/axios-settings.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/address-lookup/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/address-lookup/default-model.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/address-lookup/defaults.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/clear-session/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/combine-and-loop-fields/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/date/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/date/fields.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/email-service.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/emailer.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/transports/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/transports/smtp.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/transports/ses.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/transports/stub.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/transports/debug.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/homeoffice-countries/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/config/component-defaults.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/notify/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/notify/notify.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/config/hof-defaults.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/config/rate-limits.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/helpers/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/logger.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/summary/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/rate-limiter.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/session-timeout-warning/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/base-controller.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/formatting/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/validation/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/validation/validators.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/validation/email.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/validation-error.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/autofill/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/autofill/inputs.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/test-data/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/countries.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/reqres/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/config/sanitisation-rules.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/formatting/formatters.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/behaviour-session.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/behaviour-hooks.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/controller.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/apps/sandbox/behaviours/country-select.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-mixins/mixins/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-mixins/mixins/template-mixins.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-mixins/mixins/render.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-mixins/mixins/helpers.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/govuk-template/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/govuk-template/build/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/govuk-template/build/config.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-partials/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-partials/translations/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/themes/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/themes/gov-uk/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/helpers.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/form-focus.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/progressive-reveal.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/validation.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/character-count.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/cookies.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/errors.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/not-found.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/deep-translate.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/service-unavailable.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/markdown.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/router.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/behaviours/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/behaviours/complete.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/util/constants.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/helpers.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/health.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/serve-static.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/ga-tag.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/deindex.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/sessions.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/settings.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/build/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/config/builder-defaults.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/lib/compile.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/lib/build.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/lib/expand-dirs.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/lib/aggregate.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/lib/write-files.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/model/apis/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/model/apis/html-to-pdf-converter.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/model.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/back-links.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/util/helpers.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/check-complete.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/check-progress.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/check-session.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/csrf.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/apps/sandbox/sections/summary-data-sections.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/apps/sandbox/lib/staticAppealStages.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/apps/sandbox/fields.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/test/helpers/utilities.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/apps/sandbox/behaviours/international-number.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/encryption.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/session.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/session-model.js"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"processes":{"3301185d-3a55-4452-9573-92910de66f65":{"parent":null,"children":[]}},"files":{"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/model/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/model/apis/axios-settings.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/address-lookup/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/address-lookup/default-model.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/address-lookup/defaults.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/clear-session/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/combine-and-loop-fields/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/date/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/date/fields.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/email-service.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/emailer.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/transports/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/transports/smtp.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/transports/ses.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/transports/stub.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/transports/debug.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/homeoffice-countries/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/config/component-defaults.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/notify/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/notify/notify.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/config/hof-defaults.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/config/rate-limits.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/helpers/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/logger.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/summary/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/rate-limiter.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/session-timeout-warning/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/base-controller.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/formatting/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/validation/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/validation/validators.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/validation/email.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/validation-error.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/autofill/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/autofill/inputs.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/test-data/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/countries.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/reqres/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/config/sanitisation-rules.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/formatting/formatters.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/behaviour-session.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/behaviour-hooks.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/controller.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/apps/sandbox/behaviours/country-select.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-mixins/mixins/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-mixins/mixins/template-mixins.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-mixins/mixins/render.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-mixins/mixins/helpers.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/govuk-template/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/govuk-template/build/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/govuk-template/build/config.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-partials/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-partials/translations/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/themes/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/themes/gov-uk/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/helpers.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/form-focus.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/progressive-reveal.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/validation.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/character-count.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/cookies.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/errors.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/not-found.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/deep-translate.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/service-unavailable.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/markdown.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/router.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/behaviours/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/behaviours/complete.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/util/constants.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/helpers.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/health.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/serve-static.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/ga-tag.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/deindex.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/sessions.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/settings.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/build/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/config/builder-defaults.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/lib/compile.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/lib/build.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/lib/expand-dirs.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/lib/aggregate.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/lib/write-files.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/model/apis/index.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/model/apis/html-to-pdf-converter.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/model.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/back-links.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/util/helpers.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/check-complete.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/check-progress.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/check-session.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/csrf.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/apps/sandbox/sections/summary-data-sections.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/apps/sandbox/lib/staticAppealStages.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/apps/sandbox/fields.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/test/helpers/utilities.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/apps/sandbox/behaviours/international-number.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/encryption.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/session.js":["3301185d-3a55-4452-9573-92910de66f65"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/session-model.js":["3301185d-3a55-4452-9573-92910de66f65"]},"externalIds":{}}
|
package/CHANGELOG.md
CHANGED
@@ -1,18 +1,6 @@
|
|
1
|
-
## 2025-08-
|
2
|
-
|
3
|
-
|
4
|
-
- Added `showCookiesBanner` configuration flag to control cookie banner display
|
5
|
-
- Automatically shows banner when `GA_TAG` or `GA_4_TAG` environment variables are present
|
6
|
-
- Defaults to `false` when no Google Analytics is configured
|
7
|
-
- Can be explicitly controlled via `SHOW_COOKIES_BANNER` environment variable
|
8
|
-
|
9
|
-
### Changed
|
10
|
-
- Cookie banner now intelligently displays based on GA configuration
|
11
|
-
- Improved cookie consent UX by hiding banner when GA is not enabled
|
12
|
-
- **Layout template updated**: Projects that override the default `layout` template should update their custom templates to include the new `showCookiesBanner` logic. If you inherit from HOF's layout template, no action is required.
|
13
|
-
|
14
|
-
### Migration Notes
|
15
|
-
- **Custom Layout Templates**: If your project overrides the default HOF layout template, ensure your custom template includes the cookie banner conditional logic using the new `showCookiesBanner` configuration flag. Check the updated HOF layout template for reference implementation.
|
1
|
+
## 2025-08-28, Version 22.8.5 (Stable), @Rhodine-orleans-lindsay
|
2
|
+
### Fixed
|
3
|
+
- Fixed bug where if `serviceName` had not been set in journey.json, the title tab on error pages did not default to the `header` in journey.json.
|
16
4
|
|
17
5
|
## 2025-07-24, Version 22.8.4 (Stable), @vivekkumar-ho
|
18
6
|
### Security
|
package/README.md
CHANGED
@@ -859,36 +859,6 @@ You can also provide an array of healthcheck URLs with `healthcheckUrls`,
|
|
859
859
|
should you not want to throw a Cookies required error when requesting the app with specific URLs.
|
860
860
|
Kubernetes healthcheck URLs are provided as defaults if no overrides are supplied.
|
861
861
|
|
862
|
-
### Cookie Banner Control
|
863
|
-
|
864
|
-
> **Available from version 22.9.1**
|
865
|
-
|
866
|
-
| Variable | Description | Default | Example |
|
867
|
-
|----------|-------------|---------|---------|
|
868
|
-
| `SHOW_COOKIES_BANNER` | Controls whether the cookies banner is displayed | Auto-detected based on GA tags | `true`, `false` |
|
869
|
-
|
870
|
-
**Behavior:**
|
871
|
-
- If `SHOW_COOKIES_BANNER` is explicitly set, that value is used
|
872
|
-
- If not set, banner is automatically shown when `GA_TAG` or `GA_4_TAG` is present
|
873
|
-
- If no GA tags are configured, banner is hidden by default
|
874
|
-
|
875
|
-
**Examples:**
|
876
|
-
```bash
|
877
|
-
# Explicitly show banner regardless of GA configuration
|
878
|
-
SHOW_COOKIES_BANNER=true
|
879
|
-
|
880
|
-
# Hide banner even when GA tags are present
|
881
|
-
SHOW_COOKIES_BANNER=false
|
882
|
-
GA_TAG=UA-12345678-1
|
883
|
-
|
884
|
-
# Auto-detect (recommended) - shows banner when GA is configured
|
885
|
-
GA_TAG=UA-12345678-1 # Banner will show
|
886
|
-
GA_4_TAG=G-XXXXXXXXXX # Banner will show
|
887
|
-
# (no GA tags) # Banner will be hidden
|
888
|
-
```
|
889
|
-
|
890
|
-
**Note:** If you have a custom layout template that overrides the default HOF layout, you'll need to update it to include the new `showCookiesBanner` logic. Projects that inherit from the default HOF layout template will automatically receive this functionality.
|
891
|
-
|
892
862
|
## Service Unavailable
|
893
863
|
Allows a service to be paused when required and then resumed. It ensures that anyone using the service that lands on any part of the form is diverted to a "Service Unavailable" page which will communicate to the user that the service is not available at this time.
|
894
864
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# HOF code review checklist v1.0
|
2
|
+
|
3
|
+
This is a general guide on what you should check for when reviewing another team member's code.
|
4
|
+
|
5
|
+
## Fundamental checks
|
6
|
+
- [ ] Check for code format
|
7
|
+
- [ ] Check for duplicate code
|
8
|
+
- [ ] Check for if there are existing components in the framework already
|
9
|
+
- [ ] Check for copy and paste
|
10
|
+
- [ ] Check code readability (if the class, function and variable names are making sense, avoid using acronyms, check for simplicity, avoid complexity)
|
11
|
+
- [ ] Check if user inputs are sanitized
|
12
|
+
- [ ] Check if errors are handled
|
13
|
+
- [ ] Check if null / undefined values are checked before actions are performed on a variable (May not always be necessary)
|
14
|
+
- [ ] Check for performance (are there logic in loops that doesn't have to be executed each time? Could some tasks be added to a queue and performed later? etc)
|
15
|
+
|
16
|
+
## Advanced (optional if the ticket is low / medium impact) checks
|
17
|
+
- [ ] Check if the code is following SOLID principle, code maintainability
|
18
|
+
- [ ] Check if none functional requirements are needed (for example, should an audit log be stored for an action performed)
|
19
|
+
- [ ] Check the performance and efficiency of the tests
|
20
|
+
- [ ] Check to avoid the use of operations that only work in javascript (e.g. using && to return the object on the right if the statement on the left is true)
|
21
|
+
|
22
|
+
|
package/config/hof-defaults.js
CHANGED
@@ -25,14 +25,8 @@ const defaults = {
|
|
25
25
|
host: process.env.HOST || '0.0.0.0',
|
26
26
|
port: process.env.PORT || '8080',
|
27
27
|
env: process.env.NODE_ENV || 'development',
|
28
|
-
gaTagId: process.env.GA_TAG,
|
28
|
+
gaTagId: process.env.GA_TAG || 'Test-GA-Tag',
|
29
29
|
ga4TagId: process.env.GA_4_TAG,
|
30
|
-
showCookiesBanner: parseBoolean(
|
31
|
-
process.env.SHOW_COOKIES_BANNER,
|
32
|
-
Boolean(process.env.GA_TAG || process.env.GA_4_TAG),
|
33
|
-
'SHOW_COOKIES_BANNER'
|
34
|
-
),
|
35
|
-
hasGoogleAnalytics: Boolean(process.env.GA_TAG || process.env.GA_4_TAG),
|
36
30
|
// added to allow support for multiple HOF forms using GTM to customize how they track page views
|
37
31
|
gtm: {
|
38
32
|
tagId: process.env.GTM_TAG || false,
|
@@ -3,9 +3,9 @@
|
|
3
3
|
{{$propositionHeader}}{{/propositionHeader}}
|
4
4
|
|
5
5
|
{{$validationSummary}}
|
6
|
-
{{#
|
6
|
+
{{#gaTagId}}
|
7
7
|
{{> partials-cookie-notification}}
|
8
|
-
{{/
|
8
|
+
{{/gaTagId}}
|
9
9
|
{{/validationSummary}}
|
10
10
|
|
11
11
|
{{$header}}
|
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
{{$content}}
|
16
16
|
<p>{{intro}}</p>
|
17
|
-
{{^
|
17
|
+
{{^gaTagId}}
|
18
18
|
{{#intro-list}}
|
19
19
|
{{> partials-bullet-list}}
|
20
20
|
{{/intro-list}}
|
@@ -31,9 +31,9 @@
|
|
31
31
|
{{#session-cookies-table}}
|
32
32
|
{{> partials-session-cookies-table}}
|
33
33
|
{{/session-cookies-table}}
|
34
|
-
{{/
|
34
|
+
{{/gaTagId}}
|
35
35
|
|
36
|
-
{{#
|
36
|
+
{{#gaTagId}}
|
37
37
|
<div id="cookie-settings">
|
38
38
|
{{#intro-list-ga-tag}}
|
39
39
|
{{> partials-bullet-list}}
|
@@ -78,7 +78,7 @@
|
|
78
78
|
</form>
|
79
79
|
</div>
|
80
80
|
</div>
|
81
|
-
{{/
|
81
|
+
{{/gaTagId}}
|
82
82
|
|
83
83
|
{{/content}}
|
84
84
|
{{/layout}}
|
@@ -33,9 +33,15 @@
|
|
33
33
|
</div>
|
34
34
|
{{/main}}
|
35
35
|
{{$cookieMessage}}
|
36
|
-
{{#
|
36
|
+
{{#gaTagId}}
|
37
37
|
{{> partials-cookie-banner}}
|
38
|
-
{{/
|
38
|
+
{{/gaTagId}}
|
39
|
+
{{^gaTagId}}
|
40
|
+
<p class="no-ga-tag">
|
41
|
+
{{#t}}cookies.banner.message{{/t}}
|
42
|
+
<a href="/cookies">{{#t}}cookies.banner.link{{/t}}</a>
|
43
|
+
</p>
|
44
|
+
{{/gaTagId}}
|
39
45
|
{{/cookieMessage}}
|
40
46
|
{{$footerSupportLinks}}
|
41
47
|
<ul class="govuk-footer__inline-list">
|
@@ -5,28 +5,23 @@
|
|
5
5
|
<h2 class="govuk-cookie-banner__heading govuk-heading-m">Cookies on {{#appName}}{{appName}}{{/appName}}{{^appName}}this service{{/appName}}</h2>
|
6
6
|
<div class="govuk-cookie-banner__content">
|
7
7
|
<p class="govuk-body">We use some essential cookies to make this website work.</p>
|
8
|
-
|
9
|
-
|
10
|
-
<p class="govuk-body">We also use cookies set by other sites to help us deliver content from their services.</p>
|
11
|
-
{{/hasGoogleAnalytics}}
|
8
|
+
<p class="govuk-body">We'd like to set additional cookies to understand how you use GOV.UK, remember your settings and improve government services.</p>
|
9
|
+
<p class="govuk-body">We also use cookies set by other sites to help us deliver content from their services.</p>
|
12
10
|
</div>
|
13
11
|
</div>
|
14
12
|
</div>
|
15
|
-
|
16
13
|
<div id="cookie-banner-actions" class="govuk-button-group">
|
17
|
-
{{#hasGoogleAnalytics}}
|
18
14
|
<button id="accept-cookies-button" class="gem-c-button govuk-button" type="submit" data-module="gem-track-click" data-accept-cookies="true" data-track-category="cookieBanner" data-track-action="Cookie banner accepted" data-cookie-types="all">Accept additional cookies</button>
|
19
15
|
|
20
16
|
<button id="reject-cookies-button" class="gem-c-button govuk-button" type="submit" data-module="gem-track-click" data-reject-cookies="true" data-track-category="cookieBanner" data-track-action="Cookie banner rejected">Reject additional cookies</button>
|
21
|
-
|
22
|
-
|
17
|
+
|
18
|
+
<a class="govuk-link" href="/cookies">View cookies</a>
|
23
19
|
</div>
|
24
20
|
</div>
|
25
|
-
|
26
21
|
<div class="gem-c-cookie-banner__confirmation govuk-width-container" hidden="" id="cookie-banner-submitted" >
|
27
22
|
<p class="gem-c-cookie-banner__confirmation-message" role="alert">
|
28
|
-
|
29
|
-
|
23
|
+
Your cookie preferences have been saved. You can <a class="govuk-link" data-module="gem-track-click" data-track-category="cookieBanner" data-track-action="Cookie banner settings clicked from confirmation" href="/cookies">change your cookie settings</a> at any time.
|
24
|
+
</p>
|
30
25
|
<div class="govuk-button-group">
|
31
26
|
<button class="gem-c-cookie-banner__hide-button govuk-button" id="hide-cookie-banner">Hide this message</button>
|
32
27
|
</div>
|
@@ -1,7 +1,10 @@
|
|
1
1
|
{{<error}}
|
2
|
+
{{$header}}
|
3
|
+
{{#t}}errors.session.title{{/t}}
|
4
|
+
{{/header}}
|
2
5
|
{{$content}}
|
3
|
-
<h1 class="govuk-heading-l">{{
|
4
|
-
<h2 class="govuk-heading-m">{{
|
6
|
+
<h1 class="govuk-heading-l">{{#t}}errors.session.title{{/t}}</h1>
|
7
|
+
<h2 class="govuk-heading-m">{{#t}}errors.session.message{{/t}}</h2>
|
5
8
|
<a href="{{startLink}}" class="govuk-button" role="button">{{#t}}buttons.start-again{{/t}}</a>
|
6
9
|
{{/content}}
|
7
10
|
{{/error}}
|
package/lib/settings.js
CHANGED
package/middleware/errors.js
CHANGED
@@ -13,13 +13,24 @@ const getContent = (err, translate) => {
|
|
13
13
|
// Helper to safely call translate if it's a function
|
14
14
|
const t = key => (typeof translate === 'function' ? translate(key) : undefined);
|
15
15
|
|
16
|
+
// Check whether a service name has been set in the journey.json file
|
17
|
+
const getServiceName = () => {
|
18
|
+
const serviceName = t('journey.serviceName');
|
19
|
+
const header = t('journey.header');
|
20
|
+
|
21
|
+
// Return serviceName if it's translated, otherwise fallback to journey header
|
22
|
+
return serviceName && serviceName !== 'journey.serviceName' ? serviceName : header;
|
23
|
+
};
|
24
|
+
|
25
|
+
const serviceName = getServiceName();
|
26
|
+
|
16
27
|
if (err.code === 'SESSION_TIMEOUT') {
|
17
28
|
err.status = 401;
|
18
29
|
err.template = 'session-timeout';
|
19
|
-
err.serviceName =
|
30
|
+
err.serviceName = serviceName;
|
20
31
|
err.title = t('errors.session.title');
|
21
32
|
err.message = t('errors.session.message');
|
22
|
-
content.serviceName =
|
33
|
+
content.serviceName = serviceName;
|
23
34
|
content.title = t('errors.session.title');
|
24
35
|
content.message = t('errors.session.message');
|
25
36
|
}
|
@@ -27,7 +38,7 @@ const getContent = (err, translate) => {
|
|
27
38
|
if (err.code === 'NO_COOKIES') {
|
28
39
|
err.status = 403;
|
29
40
|
err.template = 'cookie-error';
|
30
|
-
content.serviceName =
|
41
|
+
content.serviceName = serviceName;
|
31
42
|
content.title = t('errors.cookies-required.title');
|
32
43
|
content.message = t('errors.cookies-required.message');
|
33
44
|
}
|
@@ -35,14 +46,14 @@ const getContent = (err, translate) => {
|
|
35
46
|
if (err.code === 'DDOS_RATE_LIMIT') {
|
36
47
|
err.status = 429;
|
37
48
|
err.template = 'rate-limit-error';
|
38
|
-
err.serviceName =
|
49
|
+
err.serviceName = serviceName;
|
39
50
|
err.title = t('errors.ddos-rate-limit.title');
|
40
51
|
err.message = t('errors.ddos-rate-limit.message');
|
41
52
|
err.preTimeToWait = t('errors.ddos-rate-limit.pre-time-to-wait');
|
42
53
|
err.timeToWait = rateLimitsConfig.rateLimits.requests.windowSizeInMinutes;
|
43
54
|
err.postTimeToWait = t('errors.ddos-rate-limit.post-time-to-wait');
|
44
55
|
content.title = t('errors.ddos-rate-limit.title');
|
45
|
-
content.serviceName =
|
56
|
+
content.serviceName = serviceName;
|
46
57
|
content.message = t('errors.ddos-rate-limit.message');
|
47
58
|
content.preTimeToWait = t('errors.ddos-rate-limit.pre-time-to-wait');
|
48
59
|
content.timeToWait = rateLimitsConfig.rateLimits.requests.windowSizeInMinutes;
|
@@ -52,13 +63,13 @@ const getContent = (err, translate) => {
|
|
52
63
|
if (err.code === 'SUBMISSION_RATE_LIMIT') {
|
53
64
|
err.status = 429;
|
54
65
|
err.template = 'rate-limit-error';
|
55
|
-
err.serviceName =
|
66
|
+
err.serviceName = serviceName;
|
56
67
|
err.title = t('errors.submission-rate-limit.title');
|
57
68
|
err.message = t('errors.submission-rate-limit.message');
|
58
69
|
err.preTimeToWait = t('errors.submission-rate-limit.pre-time-to-wait');
|
59
70
|
err.timeToWait = rateLimitsConfig.rateLimits.submissions.windowSizeInMinutes;
|
60
71
|
err.postTimeToWait = t('errors.submission-rate-limit.post-time-to-wait');
|
61
|
-
content.serviceName =
|
72
|
+
content.serviceName = serviceName;
|
62
73
|
content.title = t('errors.submission-rate-limit.title');
|
63
74
|
content.message = t('errors.submission-rate-limit.message');
|
64
75
|
content.preTimeToWait = t('errors.submission-rate-limit.pre-time-to-wait');
|
@@ -9,9 +9,12 @@ const getTranslations = translate => {
|
|
9
9
|
};
|
10
10
|
|
11
11
|
if (translate) {
|
12
|
+
// set const for checking whether a service name has been set in the journey.json file
|
13
|
+
const isServiceNameSet = translate('journey.serviceName') !== 'journey.serviceName';
|
14
|
+
|
12
15
|
const contact = translate('errors.service-unavailable.contact');
|
13
16
|
const alternative = translate('errors.service-unavailable.alternative');
|
14
|
-
translations.serviceName = translate('journey.serviceName')
|
17
|
+
translations.serviceName = isServiceNameSet ? translate('journey.serviceName') : translate('journey.header');
|
15
18
|
translations.title = translate('errors.service-unavailable.title');
|
16
19
|
translations.message = translate('errors.service-unavailable.message');
|
17
20
|
translations['answers-saved'] = translate('errors.service-unavailable.answers-saved');
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "hof",
|
3
3
|
"description": "A bootstrap for HOF projects",
|
4
|
-
"version": "22.9.0-beta.
|
4
|
+
"version": "22.9.0-fix-timeout-back-button-bug-beta.2",
|
5
5
|
"license": "MIT",
|
6
6
|
"main": "index.js",
|
7
7
|
"author": "HomeOffice",
|
@@ -82,14 +82,14 @@
|
|
82
82
|
"nodemailer": "^6.6.3",
|
83
83
|
"nodemailer-ses-transport": "^1.5.1",
|
84
84
|
"nodemailer-stub-transport": "^1.1.0",
|
85
|
-
"notifications-node-client": "^8.2.
|
85
|
+
"notifications-node-client": "^8.2.0",
|
86
86
|
"redis": "^3.1.2",
|
87
87
|
"reqres": "^3.0.1",
|
88
88
|
"rimraf": "^3.0.2",
|
89
89
|
"sass": "^1.56.2",
|
90
90
|
"serve-static": "^1.14.1",
|
91
91
|
"uglify-js": "^3.14.3",
|
92
|
-
"underscore": "^1.13.
|
92
|
+
"underscore": "^1.13.6",
|
93
93
|
"urijs": "^1.19.11",
|
94
94
|
"uuid": "^8.3.2",
|
95
95
|
"winston": "^3.7.2"
|
@@ -104,8 +104,8 @@
|
|
104
104
|
"chai-subset": "^1.6.0",
|
105
105
|
"concat-stream": "^1.4.7",
|
106
106
|
"csv": "^5.3.2",
|
107
|
-
"eslint": "^
|
108
|
-
"eslint-config-hof": "^1.
|
107
|
+
"eslint": "^7.30.0",
|
108
|
+
"eslint-config-hof": "^1.1.0",
|
109
109
|
"funkie": "0.0.5",
|
110
110
|
"funkie-phantom": "0.0.1",
|
111
111
|
"istanbul": "^0.4.3",
|
@@ -141,6 +141,7 @@
|
|
141
141
|
"exit": "true"
|
142
142
|
},
|
143
143
|
"resolutions": {
|
144
|
+
"underscore": "^1.12.1",
|
144
145
|
"cached-path-relative": "^1.1.0",
|
145
146
|
"shell-quote": "^1.7.3"
|
146
147
|
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
## What?
|
2
|
+
## Why?
|
3
|
+
## How?
|
4
|
+
## Testing?
|
5
|
+
## Screenshots (optional)
|
6
|
+
## Anything Else? (optional)
|
7
|
+
## Check list
|
8
|
+
|
9
|
+
- [ ] I have reviewed my own pull request for linting issues (e.g. adding new lines)
|
10
|
+
- [ ] I have written tests (if relevant)
|
11
|
+
- [ ] I have created a JIRA number for my branch
|
12
|
+
- [ ] I have created a JIRA number for my commit
|
13
|
+
- [ ] I have followed the chris beams method for my commit https://cbea.ms/git-commit/
|
14
|
+
here is an [example commit](https://github.com/UKHomeOfficeForms/hof/commit/810959f391187c7c4af6db262bcd143b50093a6e)
|
15
|
+
- [ ] Ensure workflow jobs are passing especially tests
|
16
|
+
- [ ] I will squash the commits before merging
|
package/sandbox/.env
ADDED