hof 22.0.0-timeout-warning-beta.12 → 22.1.0-timeout-warning-sign-in-beta

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "22.0.0-timeout-warning-beta.12",
4
+ "version": "22.1.0-timeout-warning-sign-in-beta",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",
@@ -54,7 +54,7 @@
54
54
  "duplexify": "^3.5.0",
55
55
  "express": "^4.17.1",
56
56
  "express-healthcheck": "^0.1.0",
57
- "express-partial-templates": "^0.2.0",
57
+ "express-partial-templates": "^0.2.1",
58
58
  "express-session": "^1.13.0",
59
59
  "findup": "^0.1.5",
60
60
  "glob": "^7.2.0",
@@ -81,7 +81,7 @@
81
81
  "nodemailer-ses-transport": "^1.5.1",
82
82
  "nodemailer-smtp-transport": "^2.7.4",
83
83
  "nodemailer-stub-transport": "^1.1.0",
84
- "notifications-node-client": "^6.0.0",
84
+ "notifications-node-client": "^8.2.0",
85
85
  "redis": "^3.1.2",
86
86
  "reqres": "^3.0.1",
87
87
  "rimraf": "^3.0.2",
package/sandbox/.env CHANGED
@@ -1,2 +1,3 @@
1
- SESSION_TTL=61
2
- SESSION_TIMEOUT_WARNING=57
1
+ SESSION_TTL=65
2
+ SESSION_TIMEOUT_WARNING=60
3
+ NODE_ENV = 'local
@@ -30,6 +30,7 @@ module.exports = {
30
30
  },
31
31
  '/dob': {
32
32
  fields: ['dateOfBirth'],
33
+ locals: { showSaveAndExit: true },
33
34
  next: '/address'
34
35
  },
35
36
  '/address': {
@@ -92,6 +93,7 @@ module.exports = {
92
93
  next: '/confirm'
93
94
  },
94
95
  '/session-timeout': {},
95
- '/exit': {}
96
+ '/exit': {},
97
+ '/save-and-exit': {}
96
98
  }
97
99
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "exit": {
3
- "header": "You have left this application",
4
- "title": "You have left this application"
3
+ "header": "You have left this form",
4
+ "title": "You have left this form"
5
5
  },
6
6
  "fields": {
7
7
  "landing-page-radio": {
@@ -170,10 +170,16 @@
170
170
  "message": "We have cleared your information to keep it secure. Your information has not been saved."
171
171
  },
172
172
  "session-timeout-warning": {
173
- "dialog-title": "Your application will close soon",
174
- "dialog-text": "If that happens, your progress will not be saved.",
175
- "timeout-continue-button": "Stay on this page",
176
- "dialog-exit-link": "Exit this form"
173
+ "dialog-title": "{{^showSaveAndExit}}Your application will close soon{{/showSaveAndExit}}{{#showSaveAndExit}}You will be signed out soon{{/showSaveAndExit}}",
174
+ "dialog-text": "{{^showSaveAndExit}}If that happens, your progress will not be saved.{{/showSaveAndExit}}{{#showSaveAndExit}}Any answers you have saved will not be affected, but your progress on this page will not be saved.{{/showSaveAndExit}}",
175
+ "timeout-continue-button": "{{^showSaveAndExit}}Stay on this page{{/showSaveAndExit}}{{#showSaveAndExit}}Stay signed in{{/showSaveAndExit}}",
176
+ "dialog-exit-link": "{{^showSaveAndExit}}Exit this form{{/showSaveAndExit}}{{#showSaveAndExit}}Sign out{{/showSaveAndExit}}"
177
+ },
178
+ "save-and-exit": {
179
+ "header": "You have been signed out",
180
+ "paragraph-1": "Your form doesn’t appear to have been worked on for 30 minutes so we closed it for security.",
181
+ "paragraph-2": "Any answers you saved have not been affected.",
182
+ "paragraph-3": "You can sign back in to your application at any time by returning to the"
177
183
  }
178
184
  },
179
185
  "validation": {
@@ -1,4 +1,4 @@
1
1
  {
2
- "header": "You have left this application",
3
- "title": "You have left this application"
2
+ "header": "You have left this form",
3
+ "title": "You have left this form"
4
4
  }
@@ -58,9 +58,15 @@
58
58
  "message": "We have cleared your information to keep it secure. Your information has not been saved."
59
59
  },
60
60
  "session-timeout-warning": {
61
- "dialog-title": "Your application will close soon",
62
- "dialog-text": "If that happens, your progress will not be saved.",
63
- "timeout-continue-button": "Stay on this page",
64
- "dialog-exit-link": "Exit this form"
61
+ "dialog-title": "{{^showSaveAndExit}}Your application will close soon{{/showSaveAndExit}}{{#showSaveAndExit}}You will be signed out soon{{/showSaveAndExit}}",
62
+ "dialog-text": "{{^showSaveAndExit}}If that happens, your progress will not be saved.{{/showSaveAndExit}}{{#showSaveAndExit}}Any answers you have saved will not be affected, but your progress on this page will not be saved.{{/showSaveAndExit}}",
63
+ "timeout-continue-button": "{{^showSaveAndExit}}Stay on this page{{/showSaveAndExit}}{{#showSaveAndExit}}Stay signed in{{/showSaveAndExit}}",
64
+ "dialog-exit-link": "{{^showSaveAndExit}}Exit this form{{/showSaveAndExit}}{{#showSaveAndExit}}Sign out{{/showSaveAndExit}}"
65
+ },
66
+ "save-and-exit": {
67
+ "header": "You have been signed out",
68
+ "paragraph-1": "Your form doesn’t appear to have been worked on for 30 minutes so we closed it for security.",
69
+ "paragraph-2": "Any answers you saved have not been affected.",
70
+ "paragraph-3": "You can sign back in to your application at any time by returning to the"
65
71
  }
66
72
  }
@@ -9214,88 +9214,6 @@ dl {
9214
9214
  padding: 20px;
9215
9215
  }
9216
9216
 
9217
- @media (min-width: 641px) {
9218
- .modal-dialog__inner {
9219
- padding: 30px;
9220
- }
9221
- }
9222
- .modal-dialog__inner__text {
9223
- font-family: "nta", Arial, sans-serif;
9224
- font-weight: 400;
9225
- text-transform: none;
9226
- font-size: 16px;
9227
- line-height: 1.25;
9228
- padding-top: 2px;
9229
- padding-bottom: 8px;
9230
- margin-bottom: 20px;
9231
- }
9232
-
9233
- @media (min-width: 641px) {
9234
- .modal-dialog__inner__text {
9235
- font-size: 19px;
9236
- line-height: 1.31579;
9237
- }
9238
- }
9239
- @media (min-width: 641px) {
9240
- .modal-dialog__inner__text {
9241
- padding-top: 0;
9242
- padding-bottom: 5px;
9243
- }
9244
- }
9245
- .modal-dialog__inner__button {
9246
- font-size: 19px;
9247
- margin-top: 10px;
9248
- }
9249
-
9250
- .modal-dialog__inner__link {
9251
- font-family: "nta", Arial, sans-serif;
9252
- font-weight: 400;
9253
- text-transform: none;
9254
- font-size: 16px;
9255
- line-height: 1.25;
9256
- padding-top: 2px;
9257
- padding-bottom: 8px;
9258
- background: none;
9259
- border: none;
9260
- vertical-align: middle;
9261
- margin-top: 20px;
9262
- }
9263
- .modal-dialog__inner__link:hover {
9264
- cursor: pointer;
9265
- }
9266
-
9267
- @media (min-width: 641px) {
9268
- .modal-dialog__inner__link {
9269
- font-size: 19px;
9270
- line-height: 1.31579;
9271
- }
9272
- }
9273
- @media (min-width: 641px) {
9274
- .modal-dialog__inner__link {
9275
- padding-top: 0;
9276
- padding-bottom: 5px;
9277
- }
9278
- }
9279
- @media (max-width: 640px) {
9280
- .modal-dialog__inner__link {
9281
- text-align: center;
9282
- display: block;
9283
- margin-top: 25px;
9284
- }
9285
- }
9286
- @media (min-width: 641px) {
9287
- .modal-dialog__inner__link {
9288
- position: absolute;
9289
- top: 50%;
9290
- transform: translateY(-50%);
9291
- padding: 0;
9292
- margin: 0 0 0 30px;
9293
- }
9294
- }
9295
- .modal-dialog__inner__block {
9296
- position: relative;
9297
- }
9298
-
9299
9217
  .modal-dialog #dialog-title {
9300
9218
  margin-top: 0;
9301
9219
  }
@@ -9364,7 +9282,6 @@ dialog[open] + .backdrop, dialog[open]::backdrop {
9364
9282
  font-size: 1.125rem;
9365
9283
  line-height: 1.1111111111;
9366
9284
  display: inline-block;
9367
- margin: 5px;
9368
9285
  }
9369
9286
  @media print {
9370
9287
  .dialog-exit-link {
@@ -9394,7 +9311,6 @@ dialog[open] + .backdrop, dialog[open]::backdrop {
9394
9311
  font-size: 1rem;
9395
9312
  line-height: 1.25;
9396
9313
  position: relative;
9397
- top: 2px;
9398
9314
  padding: 0.526315em 0.789473em 0.263157em;
9399
9315
  line-height: 1.5;
9400
9316
  }
package/sandbox/server.js CHANGED
@@ -17,7 +17,7 @@ bootstrap({
17
17
  }
18
18
  },
19
19
  getAccessibility: true,
20
- sessionTimeoutWarningContent: false,
21
- exitFormContent: false,
20
+ sessionTimeoutWarningContent: true,
21
+ exitFormContent: true,
22
22
  "port": 8082
23
23
  });