@radicaltools/cli 0.4.0 → 0.6.0

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.
Files changed (65) hide show
  1. package/README.md +54 -27
  2. package/dist/{chunk-3H4ISGOV.js → chunk-CWKX2ULF.js} +1 -1
  3. package/dist/{dist-5ZBGYT7R.js → dist-KTTOUFHF.js} +2 -2
  4. package/dist/hub-catalogue/concern/concern-accessibility.radical +871 -0
  5. package/dist/hub-catalogue/concern/concern-api-collections.radical +24 -12
  6. package/dist/hub-catalogue/concern/concern-api-errors.radical +26 -13
  7. package/dist/hub-catalogue/concern/concern-api-evolution.radical +26 -13
  8. package/dist/hub-catalogue/concern/concern-api-idempotency.radical +28 -14
  9. package/dist/hub-catalogue/concern/concern-api-resource-design.radical +24 -12
  10. package/dist/hub-catalogue/concern/concern-api-style-guide.radical +26 -13
  11. package/dist/hub-catalogue/concern/concern-architecture-style.radical +26 -13
  12. package/dist/hub-catalogue/concern/concern-audit-trail.radical +26 -13
  13. package/dist/hub-catalogue/concern/concern-authentication.radical +18 -9
  14. package/dist/hub-catalogue/concern/concern-authorization.radical +34 -17
  15. package/dist/hub-catalogue/concern/concern-availability.radical +20 -10
  16. package/dist/hub-catalogue/concern/concern-backend-stack.radical +16 -8
  17. package/dist/hub-catalogue/concern/concern-backup-recovery.radical +30 -15
  18. package/dist/hub-catalogue/concern/concern-caching.radical +28 -14
  19. package/dist/hub-catalogue/concern/concern-capacity.radical +18 -9
  20. package/dist/hub-catalogue/concern/concern-ci-cd-pipeline.radical +975 -0
  21. package/dist/hub-catalogue/concern/concern-code-documentation.radical +32 -16
  22. package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +30 -15
  23. package/dist/hub-catalogue/concern/concern-code-review-branching.radical +32 -16
  24. package/dist/hub-catalogue/concern/concern-code-style.radical +24 -12
  25. package/dist/hub-catalogue/concern/concern-communication-style.radical +28 -14
  26. package/dist/hub-catalogue/concern/concern-data-classification.radical +20 -10
  27. package/dist/hub-catalogue/concern/concern-data-consistency.radical +20 -10
  28. package/dist/hub-catalogue/concern/concern-data-store.radical +24 -12
  29. package/dist/hub-catalogue/concern/concern-decomposition.radical +28 -14
  30. package/dist/hub-catalogue/concern/concern-definition-of-done.radical +26 -13
  31. package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +22 -11
  32. package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +28 -14
  33. package/dist/hub-catalogue/concern/concern-deployment.radical +24 -12
  34. package/dist/hub-catalogue/concern/concern-encryption.radical +28 -14
  35. package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +28 -14
  36. package/dist/hub-catalogue/concern/concern-eu-dora.radical +26 -13
  37. package/dist/hub-catalogue/concern/concern-frontend-stack.radical +96 -309
  38. package/dist/hub-catalogue/concern/concern-incident-management.radical +26 -13
  39. package/dist/hub-catalogue/concern/concern-infrastructure.radical +34 -17
  40. package/dist/hub-catalogue/concern/concern-integration-resilience.radical +26 -13
  41. package/dist/hub-catalogue/concern/concern-messaging.radical +18 -9
  42. package/dist/hub-catalogue/concern/concern-mobile-performance.radical +710 -0
  43. package/dist/hub-catalogue/concern/concern-module-boundaries.radical +18 -9
  44. package/dist/hub-catalogue/concern/concern-observability.radical +22 -11
  45. package/dist/hub-catalogue/concern/concern-operational-readiness.radical +28 -14
  46. package/dist/hub-catalogue/concern/concern-personal-data.radical +42 -21
  47. package/dist/hub-catalogue/concern/concern-quality-priorities.radical +24 -12
  48. package/dist/hub-catalogue/concern/concern-rate-limiting.radical +30 -15
  49. package/dist/hub-catalogue/concern/concern-release-versioning.radical +308 -57
  50. package/dist/hub-catalogue/concern/concern-retention.radical +28 -14
  51. package/dist/hub-catalogue/concern/concern-secrets.radical +32 -16
  52. package/dist/hub-catalogue/concern/concern-secure-coding.radical +28 -14
  53. package/dist/hub-catalogue/concern/concern-secure-development.radical +26 -13
  54. package/dist/hub-catalogue/concern/concern-security-detection.radical +22 -11
  55. package/dist/hub-catalogue/concern/concern-supply-chain.radical +28 -14
  56. package/dist/hub-catalogue/concern/concern-technical-debt.radical +30 -15
  57. package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +26 -13
  58. package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +26 -13
  59. package/dist/hub-catalogue/concern/concern-test-strategy.radical +27 -14
  60. package/dist/hub-catalogue/concern/concern-threat-modelling.radical +26 -13
  61. package/dist/hub-catalogue/concern/concern-usability.radical +1266 -0
  62. package/dist/index.js +2563 -463
  63. package/dist/{pdfjs-I4NKVZXV.js → pdfjs-ABY3IR7F.js} +1 -1
  64. package/dist/{undici-4Q3DBBHR.js → undici-7Z7ZFI7Q.js} +1 -1
  65. package/package.json +1 -1
@@ -0,0 +1,1266 @@
1
+ {
2
+ "hub": {
3
+ "id": "concern-usability",
4
+ "category": "concern",
5
+ "name": "Usability",
6
+ "description": "How easy the web front end is to use, held to ISO 9241-110 and Nielsen's heuristics: consistent navigation, links that are neither repeated nor vague, form errors people can recover from, empty views that explain themselves, and a heuristic review on a schedule.",
7
+ "tags": [
8
+ "ux",
9
+ "usability",
10
+ "navigation",
11
+ "links",
12
+ "forms",
13
+ "errors",
14
+ "empty states",
15
+ "heuristic evaluation",
16
+ "iso 9241-110"
17
+ ],
18
+ "requiredMetamodel": "c4-ddd-governance-builtin",
19
+ "concern": {
20
+ "id": "usability",
21
+ "trigger": "LIST RELATIONS WHERE source.type = \"person\" AND target.type = \"webapp\" AND target.external != true",
22
+ "applyTo": "target",
23
+ "why": "people use these web front ends, so how navigation, links, form errors and empty views behave, and how usability is reviewed, has to be decided.",
24
+ "group": "ux"
25
+ },
26
+ "sources": [
27
+ {
28
+ "title": "ISO 9241-110:2020, Ergonomics of human-system interaction, Part 110: Interaction principles",
29
+ "url": "https://www.iso.org/standard/75258.html"
30
+ },
31
+ {
32
+ "title": "Nielsen Norman Group: 10 Usability Heuristics for User Interface Design",
33
+ "url": "https://www.nngroup.com/articles/ten-usability-heuristics/"
34
+ },
35
+ {
36
+ "title": "Nielsen Norman Group: How to Conduct a Heuristic Evaluation",
37
+ "url": "https://www.nngroup.com/articles/how-to-conduct-a-heuristic-evaluation/"
38
+ },
39
+ {
40
+ "title": "Nielsen Norman Group: Severity Ratings for Usability Problems",
41
+ "url": "https://www.nngroup.com/articles/how-to-rate-the-severity-of-usability-problems/"
42
+ },
43
+ {
44
+ "title": "Nielsen Norman Group: Designing Empty States in Complex Applications",
45
+ "url": "https://www.nngroup.com/articles/empty-state-interface-design/"
46
+ },
47
+ {
48
+ "title": "Nielsen Norman Group: Error-Message Guidelines",
49
+ "url": "https://www.nngroup.com/articles/error-message-guidelines/"
50
+ },
51
+ {
52
+ "title": "GOV.UK publishing guidance: Add links",
53
+ "url": "https://guidance.publishing.service.gov.uk/writing-to-gov-uk-standards/writing-guidelines/add-links/"
54
+ },
55
+ {
56
+ "title": "GOV.UK Design System: Error summary",
57
+ "url": "https://design-system.service.gov.uk/components/error-summary/"
58
+ },
59
+ {
60
+ "title": "GOV.UK Design System: Validation pattern",
61
+ "url": "https://design-system.service.gov.uk/patterns/validation/"
62
+ },
63
+ {
64
+ "title": "GOV.UK Design System: Service navigation",
65
+ "url": "https://design-system.service.gov.uk/components/service-navigation/"
66
+ },
67
+ {
68
+ "title": "GOV.UK Design System: Back link",
69
+ "url": "https://design-system.service.gov.uk/components/back-link/"
70
+ },
71
+ {
72
+ "title": "W3C: Understanding SC 2.4.4 Link Purpose (In Context)",
73
+ "url": "https://www.w3.org/WAI/WCAG22/Understanding/link-purpose-in-context.html"
74
+ },
75
+ {
76
+ "title": "W3C: Understanding SC 2.4.9 Link Purpose (Link Only)",
77
+ "url": "https://www.w3.org/WAI/WCAG22/Understanding/link-purpose-link-only.html"
78
+ },
79
+ {
80
+ "title": "W3C: Understanding SC 3.2.3 Consistent Navigation",
81
+ "url": "https://www.w3.org/WAI/WCAG22/Understanding/consistent-navigation.html"
82
+ },
83
+ {
84
+ "title": "W3C: Understanding SC 3.2.4 Consistent Identification",
85
+ "url": "https://www.w3.org/WAI/WCAG22/Understanding/consistent-identification.html"
86
+ },
87
+ {
88
+ "title": "W3C: Technique H2, Combining adjacent image and text links for the same resource",
89
+ "url": "https://www.w3.org/WAI/WCAG22/Techniques/html/H2"
90
+ }
91
+ ],
92
+ "templateParams": [
93
+ {
94
+ "key": "NAVIGATION",
95
+ "title": "Navigation",
96
+ "label": "How do people move around the front end?",
97
+ "hint": "Navigation that stays the same from page to page is learned once; navigation that differs between pages is learned again on each (WCAG 3.2.3, Nielsen's consistency and standards).",
98
+ "defaultValue": "shared",
99
+ "options": [
100
+ {
101
+ "value": "shared",
102
+ "label": "one shared navigation on every page",
103
+ "description": "One navigation component, rendered from one source, with the same links in the same order on every page. Pick it for most applications and sites of up to a few dozen destinations."
104
+ },
105
+ {
106
+ "value": "sections",
107
+ "label": "a shared global navigation with a navigation per section",
108
+ "description": "The same global navigation everywhere, and in each section a local navigation that is the same on every page of that section. Pick it for large sites or applications with distinct areas (orders, catalogue, settings), each with several pages of its own."
109
+ },
110
+ {
111
+ "value": "task",
112
+ "label": "no navigation: a linear journey with a Back link",
113
+ "description": "A transactional service that takes people through one task a question at a time: the same header on every page, no site navigation, and a Back link to the previous page, as GOV.UK services do. Pick it for forms-based services such as applying, registering or paying."
114
+ }
115
+ ]
116
+ },
117
+ {
118
+ "key": "LINK_REPEAT",
119
+ "title": "Repeated links",
120
+ "label": "How often may one link target appear in a page's main content, outside the navigation and the footer?",
121
+ "hint": "Every repeat is another tab stop and another announcement for screen-reader users, and readers wonder whether two links go to different places. The same page linked five times is the usual symptom.",
122
+ "defaultValue": "once",
123
+ "options": [
124
+ {
125
+ "value": "once",
126
+ "label": "at most once",
127
+ "description": "Each target is linked once in the main content; a card, list item or table row with an image, a title and a button is one link, and links to different sections of one page count as links to that page. Pick it for applications and most pages."
128
+ },
129
+ {
130
+ "value": "limit",
131
+ "label": "up to a set limit",
132
+ "description": "A target may repeat up to the limit set below (for instance a call to action at the top and at the end of a long page). Links to different sections of one page count as links to that page. Pick it for long content or marketing pages, and keep the limit small."
133
+ }
134
+ ]
135
+ },
136
+ {
137
+ "key": "LINK_TEXT",
138
+ "title": "Link names",
139
+ "label": "How must a link's name say where it goes?",
140
+ "hint": "Screen-reader users often list a page's links on their own, and everyone scans links: \"Read more\" five times says nothing (WCAG 2.4.4 and 2.4.9, GOV.UK link guidance).",
141
+ "defaultValue": "unique",
142
+ "options": [
143
+ {
144
+ "value": "unique",
145
+ "label": "a link name that says where it goes on its own",
146
+ "description": "On a page, one link name never leads to two different targets, and no link is named \"click here\", \"read more\" or \"more\". The level of WCAG 2.4.9 (AAA) and GOV.UK's guidance. Pick it for new front ends: it costs nothing when written that way from the start."
147
+ },
148
+ {
149
+ "value": "context",
150
+ "label": "a link name that says where it goes together with its context",
151
+ "description": "A name may repeat when its list item, table row, paragraph or card tells the links apart, with the context in visually hidden text where the visible text repeats (\"Change\" in each row). The level of WCAG 2.4.4 (A). Pick it for dense tables and lists with an action per row."
152
+ }
153
+ ]
154
+ },
155
+ {
156
+ "key": "ERRORS",
157
+ "title": "Form errors",
158
+ "label": "How do forms show what is wrong?",
159
+ "hint": "Forms are where people give up. An error shown late, vaguely or out of sight costs the whole form; one shown while people are still typing interrupts them (GOV.UK validation pattern, WCAG 3.3.1 and 3.3.3).",
160
+ "defaultValue": "summary",
161
+ "options": [
162
+ {
163
+ "value": "summary",
164
+ "label": "an error summary and a message at each field, on submit (GOV.UK)",
165
+ "description": "Nothing is checked before the user submits; then the page shows \"Error: \" in its title, a focused error summary at the top linking to each field in error, and a message at each field. Pick it for forms of more than two or three fields and for public services."
166
+ },
167
+ {
168
+ "value": "field",
169
+ "label": "a message at each field, on submit",
170
+ "description": "On submit each field in error shows its message and focus moves to the first of them; no summary. Pick it for short forms (sign-in, search, a single setting) where every field is in view."
171
+ },
172
+ {
173
+ "value": "live",
174
+ "label": "a message at each field once it is left, and a summary on submit",
175
+ "description": "A field with a format to check (an IBAN, a password rule) is checked when the user leaves it, never while typing, and on submit the summary appears as well. GOV.UK advises against checking on leaving a field; pick it only where user research shows early feedback saves rework in long or complex forms."
176
+ }
177
+ ]
178
+ },
179
+ {
180
+ "key": "EMPTY",
181
+ "title": "Empty states",
182
+ "label": "What does a list, table or search with nothing to show say?",
183
+ "hint": "An empty view with no word of explanation looks broken, and a new account sees empty views first (Nielsen's visibility of system status; NN/g on empty states).",
184
+ "defaultValue": "guided",
185
+ "options": [
186
+ {
187
+ "value": "guided",
188
+ "label": "an explanation and the next step",
189
+ "description": "Each empty view says why it is empty and offers the next step as a link or button: create the first item, clear the filters, change the search. Pick it for applications people learn by using, and for anything a new account sees first."
190
+ },
191
+ {
192
+ "value": "plain",
193
+ "label": "a plain message",
194
+ "description": "Each empty view says in plain words that there is nothing to show yet, without guidance. Pick it for internal tools whose users know the task and where the next step is always in the same place."
195
+ }
196
+ ]
197
+ },
198
+ {
199
+ "key": "MAX_LINK_REPEATS",
200
+ "label": "With a set limit: at most how many times may one target be linked in a page's main content?",
201
+ "defaultValue": "2",
202
+ "type": "number"
203
+ },
204
+ {
205
+ "key": "REVIEW_DAYS",
206
+ "label": "How often is the heuristic review held (days)?",
207
+ "defaultValue": "180",
208
+ "type": "number"
209
+ }
210
+ ]
211
+ },
212
+ "nodes": [
213
+ {
214
+ "id": "need",
215
+ "type": "need",
216
+ "label": "People find their way and recover from mistakes",
217
+ "x": 0,
218
+ "y": 0,
219
+ "kind": "brief",
220
+ "source": "Hub concern pack: Usability",
221
+ "description": "People use this front end to get their tasks done, most without training. They must find their way with navigation that stays the same from page to page, links that are neither repeated nor vague (not the same link five times on one page, not five links named \"Read more\"), forms that say what went wrong and where, and empty views that say why they are empty; and the usability of the whole must be reviewed against recognised principles on a schedule, not only after users complain. The checks assume Playwright tests under tests/ux with tests/ux/journeys.ts listing the main journeys' pages in the order a user walks them (PAGES: path, and the section where sections have their own navigation), their forms (FORMS: path, the submit button's name, the label of one field with a format to check) and the views that start empty for a new account (EMPTY_VIEWS: path); playwright.config sets the baseURL and, for pages behind sign-in, a storageState. Each test fails on its own in a plain run and, run by radical sense playwright, writes what it measured as a radical-metrics/1 file into RADICAL_METRICS_DIR."
222
+ },
223
+ {
224
+ "id": "req-nav-shared",
225
+ "type": "requirement",
226
+ "label": "One navigation on every page",
227
+ "x": 260,
228
+ "y": 0,
229
+ "ears_type": "ubiquitous",
230
+ "action": "show on every page the same header, navigation and footer, rendered by one shared component, with the same links in the same order under the same names; only the mark of the current page (aria-current=\"page\") differs from page to page",
231
+ "rationale": "Navigation repeated on many pages must come in the same relative order (WCAG 3.2.3, AA) and the same functions must be named the same (3.2.4); it is the first of Nielsen's consistency and standards and ISO 9241-110's conformity with user expectations.",
232
+ "hubWhen": {
233
+ "NAVIGATION": [
234
+ "shared"
235
+ ]
236
+ }
237
+ },
238
+ {
239
+ "id": "req-nav-sections",
240
+ "type": "requirement",
241
+ "label": "Global and section navigation consistent",
242
+ "x": 260,
243
+ "y": 130,
244
+ "ears_type": "ubiquitous",
245
+ "action": "show on every page the same header, global navigation and footer, and on every page of a section the same section navigation, each with the same links in the same order under the same names; only the mark of the current page (aria-current=\"page\") differs",
246
+ "rationale": "A section's own navigation helps in large sites only if it, too, stays put within its section (WCAG 3.2.3 and 3.2.4; Nielsen's consistency and standards).",
247
+ "hubWhen": {
248
+ "NAVIGATION": [
249
+ "sections"
250
+ ]
251
+ }
252
+ },
253
+ {
254
+ "id": "req-nav-task",
255
+ "type": "requirement",
256
+ "label": "Same header and a way back",
257
+ "x": 260,
258
+ "y": 260,
259
+ "ears_type": "ubiquitous",
260
+ "action": "show the same header on every page of the journey, and on every page after the first a Back link to the page before",
261
+ "rationale": "A linear service keeps people on one task, so it needs no site navigation, but people must always be able to step back (GOV.UK back link; Nielsen's user control and freedom; ISO 9241-110 controllability).",
262
+ "hubWhen": {
263
+ "NAVIGATION": [
264
+ "task"
265
+ ]
266
+ }
267
+ },
268
+ {
269
+ "id": "req-link-repeat-once",
270
+ "type": "requirement",
271
+ "label": "Each target linked once",
272
+ "x": 260,
273
+ "y": 390,
274
+ "ears_type": "ubiquitous",
275
+ "action": "link to each target at most once in a page's main content outside its navigation, a card, list item or table row with several clickable parts being one link",
276
+ "rationale": "GOV.UK: do not \"link to the same place constantly throughout your page\"; WCAG technique H2 combines an image and a text link to the same place into one. Each repeat adds a tab stop and a screen-reader announcement and makes readers wonder whether the links differ (Nielsen's aesthetic and minimalist design).",
277
+ "hubWhen": {
278
+ "LINK_REPEAT": [
279
+ "once"
280
+ ]
281
+ }
282
+ },
283
+ {
284
+ "id": "req-link-repeat-limit",
285
+ "type": "requirement",
286
+ "label": "Repeated links within the limit",
287
+ "x": 260,
288
+ "y": 520,
289
+ "ears_type": "ubiquitous",
290
+ "action": "link to each target at most {{MAX_LINK_REPEATS}} times in a page's main content outside its navigation, a card, list item or table row with several clickable parts being one link",
291
+ "rationale": "A call to action may come back at the end of a long page, but GOV.UK advises against linking \"to the same place constantly throughout your page\", and each repeat adds a tab stop and a screen-reader announcement (WCAG technique H2).",
292
+ "hubWhen": {
293
+ "LINK_REPEAT": [
294
+ "limit"
295
+ ]
296
+ }
297
+ },
298
+ {
299
+ "id": "req-link-text-unique",
300
+ "type": "requirement",
301
+ "label": "Link names say where they go",
302
+ "x": 260,
303
+ "y": 650,
304
+ "ears_type": "ubiquitous",
305
+ "action": "give every link a name that says where it goes on its own: on one page no link name leads to two different targets, and no link is named only \"click here\", \"read more\", \"more\" or the like",
306
+ "rationale": "GOV.UK: \"do not reuse the same link text to link to different pages\" and avoid \"generic text like 'click here' or 'more'\"; WCAG 2.4.9 (AAA) asks for the purpose from the link alone, which screen-reader users rely on when they list a page's links.",
307
+ "hubWhen": {
308
+ "LINK_TEXT": [
309
+ "unique"
310
+ ]
311
+ }
312
+ },
313
+ {
314
+ "id": "req-link-text-context",
315
+ "type": "requirement",
316
+ "label": "Link names clear in their context",
317
+ "x": 260,
318
+ "y": 780,
319
+ "ears_type": "ubiquitous",
320
+ "action": "give every link a name that, with its list item, table row, paragraph or card, says where it goes, so that no two links with the same name in the same context lead to different targets, adding the context in visually hidden text where the visible text repeats",
321
+ "rationale": "WCAG 2.4.4 (A) accepts a link whose purpose is clear from its programmatically determined context; GOV.UK's summary lists add visually hidden text to each \"Change\" link so that it also reads well on its own.",
322
+ "hubWhen": {
323
+ "LINK_TEXT": [
324
+ "context"
325
+ ]
326
+ }
327
+ },
328
+ {
329
+ "id": "req-errors-summary",
330
+ "type": "requirement",
331
+ "label": "Errors summarised and shown at each field",
332
+ "x": 260,
333
+ "y": 910,
334
+ "ears_type": "event-driven",
335
+ "trigger": "a submitted form has answers that are missing or invalid",
336
+ "action": "show the page again with \"Error: \" before its title, a focused error summary at the top of the main content linking to each field in error, and at each such field, marked aria-invalid=\"true\", a message tied to it with aria-describedby that says what went wrong and how to fix it; nothing is checked before the user submits",
337
+ "rationale": "The GOV.UK error summary and validation pattern; WCAG 3.3.1 Error Identification and 3.3.3 Error Suggestion; Nielsen's help users recognise, diagnose and recover from errors.",
338
+ "hubWhen": {
339
+ "ERRORS": [
340
+ "summary"
341
+ ]
342
+ }
343
+ },
344
+ {
345
+ "id": "req-errors-field",
346
+ "type": "requirement",
347
+ "label": "Errors shown at each field",
348
+ "x": 260,
349
+ "y": 1040,
350
+ "ears_type": "event-driven",
351
+ "trigger": "a submitted form has answers that are missing or invalid",
352
+ "action": "mark each field in error aria-invalid=\"true\", show at it a message tied to it with aria-describedby that says what went wrong and how to fix it, and move focus to the first field in error",
353
+ "rationale": "In a short form every field is in view, so the message at the field and the focus on the first one are enough (WCAG 3.3.1 and 3.3.3; NN/g error-message guidelines: visible, near the problem, constructive).",
354
+ "hubWhen": {
355
+ "ERRORS": [
356
+ "field"
357
+ ]
358
+ }
359
+ },
360
+ {
361
+ "id": "req-errors-live",
362
+ "type": "requirement",
363
+ "label": "Errors shown once a field is left",
364
+ "x": 260,
365
+ "y": 1170,
366
+ "ears_type": "event-driven",
367
+ "trigger": "the user leaves a field whose answer has a format to check, or submits the form",
368
+ "action": "show at the field, marked aria-invalid=\"true\", a message tied to it with aria-describedby once the user has left it and never while they are still typing in it, and on submit also show \"Error: \" before the title and a focused error summary linking to each field in error",
369
+ "rationale": "Early feedback saves rework in long forms only if it never interrupts typing (GOV.UK validation pattern: \"avoid validating the information in a field before the user has finished entering it\"; WCAG 3.3.1 and 3.3.3).",
370
+ "hubWhen": {
371
+ "ERRORS": [
372
+ "live"
373
+ ]
374
+ }
375
+ },
376
+ {
377
+ "id": "req-empty-guided",
378
+ "type": "requirement",
379
+ "label": "Empty views explain and offer the next step",
380
+ "x": 260,
381
+ "y": 1300,
382
+ "ears_type": "event-driven",
383
+ "trigger": "a list, table, search result or dashboard has nothing to show",
384
+ "action": "say in its place why it is empty and offer the next step as a link or button: create the first item, clear the filters or change the search",
385
+ "rationale": "An empty state is where a new user learns what the view is for; one that explains and offers the next step turns a dead end into a start (NN/g, Designing Empty States in Complex Applications; Nielsen's visibility of system status).",
386
+ "hubWhen": {
387
+ "EMPTY": [
388
+ "guided"
389
+ ]
390
+ }
391
+ },
392
+ {
393
+ "id": "req-empty-plain",
394
+ "type": "requirement",
395
+ "label": "Empty views say so",
396
+ "x": 260,
397
+ "y": 1430,
398
+ "ears_type": "event-driven",
399
+ "trigger": "a list, table, search result or dashboard has nothing to show",
400
+ "action": "say in its place, in plain words, that there is nothing to show yet and why, instead of an empty area or a table of headers only",
401
+ "rationale": "A blank area looks like a failure to load; a sentence tells the user the system works and the view is empty (Nielsen's visibility of system status).",
402
+ "hubWhen": {
403
+ "EMPTY": [
404
+ "plain"
405
+ ]
406
+ }
407
+ },
408
+ {
409
+ "id": "req-heuristic-review",
410
+ "type": "requirement",
411
+ "label": "Heuristic review on a schedule",
412
+ "x": 260,
413
+ "y": 1560,
414
+ "ears_type": "event-driven",
415
+ "trigger": "{{REVIEW_DAYS}} days have passed since the last heuristic review, or a major release is planned",
416
+ "action": "have three evaluators each review the main journeys alone against Nielsen's ten heuristics and the seven interaction principles of ISO 9241-110, rate each finding on Nielsen's severity scale from 0 to 4, and fix every finding rated 3 or 4 before the next release",
417
+ "rationale": "Automated checks cover what can be counted; most usability problems cannot. Three to five evaluators find most of them cheaply (NN/g, How to Conduct a Heuristic Evaluation), and the severity scale decides what must be fixed before release."
418
+ },
419
+ {
420
+ "id": "sc-nav-shared",
421
+ "type": "scenario",
422
+ "label": "Navigation the same everywhere",
423
+ "x": 520,
424
+ "y": 0,
425
+ "given": "the pages of the main journeys",
426
+ "when": "the navigation test reads the header, navigation and footer of each",
427
+ "then": "every page shows the same set, and a page whose navigation differs is named",
428
+ "hubWhen": {
429
+ "NAVIGATION": [
430
+ "shared"
431
+ ]
432
+ }
433
+ },
434
+ {
435
+ "id": "sc-nav-sections",
436
+ "type": "scenario",
437
+ "label": "Section navigation consistent",
438
+ "x": 520,
439
+ "y": 130,
440
+ "given": "the pages of the main journeys, each with its section",
441
+ "when": "the navigation test reads the global navigation of every page and the section navigation of each section's pages",
442
+ "then": "the global navigation is the same everywhere and each section's navigation is the same on all its pages",
443
+ "hubWhen": {
444
+ "NAVIGATION": [
445
+ "sections"
446
+ ]
447
+ }
448
+ },
449
+ {
450
+ "id": "sc-nav-task",
451
+ "type": "scenario",
452
+ "label": "Back on every step",
453
+ "x": 520,
454
+ "y": 260,
455
+ "given": "the pages of the journey in order",
456
+ "when": "the journey test opens each",
457
+ "then": "the header is the same on all, and every page after the first has a Back link",
458
+ "hubWhen": {
459
+ "NAVIGATION": [
460
+ "task"
461
+ ]
462
+ }
463
+ },
464
+ {
465
+ "id": "sc-link-repeat-once",
466
+ "type": "scenario",
467
+ "label": "Same link five times caught",
468
+ "x": 520,
469
+ "y": 390,
470
+ "given": "a page whose main content links to the same page in 5 places",
471
+ "when": "the repeated-links test runs",
472
+ "then": "it measures ux.links.repeated.max = 5 and fails, naming the page and the target",
473
+ "hubWhen": {
474
+ "LINK_REPEAT": [
475
+ "once"
476
+ ]
477
+ }
478
+ },
479
+ {
480
+ "id": "sc-link-repeat-limit",
481
+ "type": "scenario",
482
+ "label": "Same link five times caught",
483
+ "x": 520,
484
+ "y": 520,
485
+ "given": "a page whose main content links to the same page in 5 places",
486
+ "when": "the repeated-links test runs",
487
+ "then": "it measures ux.links.repeated.max = 5 and fails, since the limit is {{MAX_LINK_REPEATS}}",
488
+ "hubWhen": {
489
+ "LINK_REPEAT": [
490
+ "limit"
491
+ ]
492
+ }
493
+ },
494
+ {
495
+ "id": "sc-link-text-unique",
496
+ "type": "scenario",
497
+ "label": "Vague and ambiguous links caught",
498
+ "x": 520,
499
+ "y": 650,
500
+ "given": "a page with three links named \"Read more\" to three articles",
501
+ "when": "the link-names test runs",
502
+ "then": "it counts one ambiguous name and three vague links and fails",
503
+ "hubWhen": {
504
+ "LINK_TEXT": [
505
+ "unique"
506
+ ]
507
+ }
508
+ },
509
+ {
510
+ "id": "sc-link-text-context",
511
+ "type": "scenario",
512
+ "label": "Same name in one context caught",
513
+ "x": 520,
514
+ "y": 780,
515
+ "given": "a table row with two links named \"View\" to different pages",
516
+ "when": "the link-names test runs",
517
+ "then": "it counts one name ambiguous in its context and fails",
518
+ "hubWhen": {
519
+ "LINK_TEXT": [
520
+ "context"
521
+ ]
522
+ }
523
+ },
524
+ {
525
+ "id": "sc-errors-summary",
526
+ "type": "scenario",
527
+ "label": "Empty submit summarised",
528
+ "x": 520,
529
+ "y": 910,
530
+ "given": "a form of the main journeys",
531
+ "when": "it is submitted empty",
532
+ "then": "the title starts with \"Error: \", focus is on a summary linking every field in error, and each of those fields has its message",
533
+ "hubWhen": {
534
+ "ERRORS": [
535
+ "summary"
536
+ ]
537
+ }
538
+ },
539
+ {
540
+ "id": "sc-errors-field",
541
+ "type": "scenario",
542
+ "label": "Empty submit points at the field",
543
+ "x": 520,
544
+ "y": 1040,
545
+ "given": "a short form of the main journeys",
546
+ "when": "it is submitted empty",
547
+ "then": "each field in error has its message and focus is on the first of them",
548
+ "hubWhen": {
549
+ "ERRORS": [
550
+ "field"
551
+ ]
552
+ }
553
+ },
554
+ {
555
+ "id": "sc-errors-live",
556
+ "type": "scenario",
557
+ "label": "Checked on leaving, not while typing",
558
+ "x": 520,
559
+ "y": 1170,
560
+ "given": "a field with a format to check",
561
+ "when": "one character is typed, then the field is left, then the form is submitted",
562
+ "then": "no error while typing, the field's message after leaving it, and the focused summary after submit",
563
+ "hubWhen": {
564
+ "ERRORS": [
565
+ "live"
566
+ ]
567
+ }
568
+ },
569
+ {
570
+ "id": "sc-empty-guided",
571
+ "type": "scenario",
572
+ "label": "New account sees guidance",
573
+ "x": 520,
574
+ "y": 1300,
575
+ "given": "a freshly registered account with no data",
576
+ "when": "it opens each view that starts empty",
577
+ "then": "each says why it is empty and offers a link or button to the next step",
578
+ "hubWhen": {
579
+ "EMPTY": [
580
+ "guided"
581
+ ]
582
+ }
583
+ },
584
+ {
585
+ "id": "sc-empty-plain",
586
+ "type": "scenario",
587
+ "label": "New account sees a message",
588
+ "x": 520,
589
+ "y": 1430,
590
+ "given": "a freshly registered account with no data",
591
+ "when": "it opens each view that starts empty",
592
+ "then": "each says in words that there is nothing to show yet",
593
+ "hubWhen": {
594
+ "EMPTY": [
595
+ "plain"
596
+ ]
597
+ }
598
+ },
599
+ {
600
+ "id": "sc-heuristic-review",
601
+ "type": "scenario",
602
+ "label": "Review held and acted on",
603
+ "x": 520,
604
+ "y": 1560,
605
+ "given": "the date of the last review record",
606
+ "when": "{{REVIEW_DAYS}} days have passed or a major release is planned",
607
+ "then": "a new record names three evaluators and rates each finding, and every finding rated 3 or 4 has an issue fixed before the release"
608
+ },
609
+ {
610
+ "id": "adr-usability",
611
+ "type": "adr",
612
+ "label": "Usability held to ISO 9241-110 and Nielsen's heuristics",
613
+ "x": 780,
614
+ "y": 0,
615
+ "concern": "usability",
616
+ "status": "accepted",
617
+ "date": "",
618
+ "context": "People use this web front end to get their tasks done, most of them without training and many on a small screen. The forces: every page added by a different person or team drifts a little from the others, until the same thing is named, placed and linked differently on each; a link repeated \"to be safe\" adds tab stops, screen-reader noise and the doubt whether two links lead to the same place; link names such as \"Read more\" say nothing out of context, and screen-reader users often list the links of a page on their own; forms are where people give up, and an error that is shown late, vaguely or out of sight costs the whole form; an empty list with no word of explanation looks broken; and usability problems are cheap to find with a few evaluators and a checklist, and expensive once users have learned to work around them.",
619
+ "decision": "The front end is held to the seven interaction principles of ISO 9241-110:2020 (suitability for the user's tasks, self-descriptiveness, conformity with user expectations, learnability, controllability, use error robustness, user engagement) and to Nielsen's ten usability heuristics. What can be counted is measured by Playwright tests over the main journeys on every pull request (navigation, repeated links, link names, form errors, empty views) and written as radical-metrics/1, so the numbers show in the model as well as in the build. What cannot be counted is found by a heuristic review every {{REVIEW_DAYS}} days and before each major release: three evaluators, alone first, findings rated 0 to 4, every 3 or 4 fixed before the release. Empty views: {{EMPTY}}. Navigation, links and form errors are decided in the records below. Accessibility (WCAG 2.2, assistive technology) is decided in the Accessibility pack, and phones and perceived speed in the Mobile and perceived performance pack; this pack refers to them and does not repeat their checks.",
620
+ "consequences": "• Consistency becomes a test result, not a matter of taste: a page that drifts fails its pull request.\n• tests/ux/journeys.ts must list the main journeys' pages, forms and empty views, and be kept up to date as pages are added.\n• The review costs three people about half a day each per cycle; it finds what no test describes.\n• The checks measure markup (landmarks, accessible names, aria-invalid), so they push the front end towards semantic HTML as a side effect.",
621
+ "alternatives": "1. Usability testing with users only: finds the real problems, but rarely and expensively; the review and the tests keep the basics between rounds.\n2. A design review on each pull request without measures: depends on who reviews, and nothing shows a drift over time.\n3. Analytics only (drop-off, rage clicks): shows where people struggle, not why, and only after they have."
622
+ },
623
+ {
624
+ "id": "adr-nav-shared",
625
+ "type": "adr",
626
+ "label": "One shared navigation on every page",
627
+ "x": 780,
628
+ "y": 130,
629
+ "concern": "usability",
630
+ "status": "accepted",
631
+ "date": "",
632
+ "context": "People use this web front end to get their tasks done, most of them without training and many on a small screen. The forces: every page added by a different person or team drifts a little from the others, until the same thing is named, placed and linked differently on each; a link repeated \"to be safe\" adds tab stops, screen-reader noise and the doubt whether two links lead to the same place; link names such as \"Read more\" say nothing out of context, and screen-reader users often list the links of a page on their own; forms are where people give up, and an error that is shown late, vaguely or out of sight costs the whole form; an empty list with no word of explanation looks broken; and usability problems are cheap to find with a few evaluators and a checklist, and expensive once users have learned to work around them.",
633
+ "decision": "Every page renders its header, navigation and footer from one shared layout component; pages do not build their own. The navigation is a nav landmark named \"Main\" (aria-label), lists the top destinations in a fixed order, and marks the current page with aria-current=\"page\". Parts that change on purpose (a basket count, the signed-in name) carry data-ux-varies so the navigation test leaves them out. Links in the main content: decided in the links record ({{LINK_REPEAT}}; {{LINK_TEXT}}).",
634
+ "consequences": "• Navigation is learned once and found in the same place on every page (WCAG 3.2.3).\n• A new destination is one change in one component, reviewed with the navigation test.\n• Destinations beyond about seven need grouping or a second level; past that, a navigation per section serves better.",
635
+ "alternatives": "1. A shared global navigation with a navigation per section: for large sites with distinct areas.\n2. No navigation, a linear journey: for transactional services.\n3. Navigation built per page: fastest to start, and the drift this record prevents.",
636
+ "hubWhen": {
637
+ "NAVIGATION": [
638
+ "shared"
639
+ ]
640
+ }
641
+ },
642
+ {
643
+ "id": "adr-nav-sections",
644
+ "type": "adr",
645
+ "label": "A global navigation and a navigation per section",
646
+ "x": 780,
647
+ "y": 260,
648
+ "concern": "usability",
649
+ "status": "accepted",
650
+ "date": "",
651
+ "context": "People use this web front end to get their tasks done, most of them without training and many on a small screen. The forces: every page added by a different person or team drifts a little from the others, until the same thing is named, placed and linked differently on each; a link repeated \"to be safe\" adds tab stops, screen-reader noise and the doubt whether two links lead to the same place; link names such as \"Read more\" say nothing out of context, and screen-reader users often list the links of a page on their own; forms are where people give up, and an error that is shown late, vaguely or out of sight costs the whole form; an empty list with no word of explanation looks broken; and usability problems are cheap to find with a few evaluators and a checklist, and expensive once users have learned to work around them.",
652
+ "decision": "Every page renders its header, global navigation (a nav landmark named \"Main\") and footer from one shared layout component. Each section (as listed in tests/ux/journeys.ts) has its own navigation, a nav landmark named \"Section\", rendered by one component per section, kept outside the header and the same on every page of the section. Both mark the current page with aria-current=\"page\"; parts that change on purpose carry data-ux-varies. Links in the main content: decided in the links record ({{LINK_REPEAT}}; {{LINK_TEXT}}).",
653
+ "consequences": "• Large sites stay navigable: the global navigation stays short, each section shows its own pages.\n• Two levels to keep consistent instead of one; the test checks both.\n• Pages that belong to no section show no section navigation, which the test accepts.",
654
+ "alternatives": "1. One shared navigation: simpler, enough up to a few dozen destinations.\n2. A mega menu holding every page: one component, but long and hard to use with a keyboard and on phones.\n3. Navigation built per page: the drift this record prevents.",
655
+ "hubWhen": {
656
+ "NAVIGATION": [
657
+ "sections"
658
+ ]
659
+ }
660
+ },
661
+ {
662
+ "id": "adr-nav-task",
663
+ "type": "adr",
664
+ "label": "A linear journey with a Back link",
665
+ "x": 780,
666
+ "y": 390,
667
+ "concern": "usability",
668
+ "status": "accepted",
669
+ "date": "",
670
+ "context": "People use this web front end to get their tasks done, most of them without training and many on a small screen. The forces: every page added by a different person or team drifts a little from the others, until the same thing is named, placed and linked differently on each; a link repeated \"to be safe\" adds tab stops, screen-reader noise and the doubt whether two links lead to the same place; link names such as \"Read more\" say nothing out of context, and screen-reader users often list the links of a page on their own; forms are where people give up, and an error that is shown late, vaguely or out of sight costs the whole form; an empty list with no word of explanation looks broken; and usability problems are cheap to find with a few evaluators and a checklist, and expensive once users have learned to work around them.",
671
+ "decision": "The service takes people through one task, one question or step a page. Every page shows the same header (the service name and, when signed in, a sign-out link) from one shared layout component and no site navigation; every page after the first starts with a Back link (the GOV.UK back link component or its equivalent) to the page before, which keeps what the user entered. A check-your-answers page before the final submit lets people change any answer. Links in the main content: decided in the links record ({{LINK_REPEAT}}; {{LINK_TEXT}}).",
672
+ "consequences": "• People are not drawn away from the task, and always have a way back.\n• Moving between parts of the service outside the journey needs a start page or the header, not a navigation.\n• Back must keep the answers, which the journey's state handling has to support.",
673
+ "alternatives": "1. One shared navigation: for applications people move around freely.\n2. The browser's back button only: works, but not every user trusts it in a form, and it may resubmit.",
674
+ "hubWhen": {
675
+ "NAVIGATION": [
676
+ "task"
677
+ ]
678
+ }
679
+ },
680
+ {
681
+ "id": "adr-links-once",
682
+ "type": "adr",
683
+ "label": "Each link target once in the main content",
684
+ "x": 780,
685
+ "y": 520,
686
+ "concern": "usability",
687
+ "status": "accepted",
688
+ "date": "",
689
+ "context": "People use this web front end to get their tasks done, most of them without training and many on a small screen. The forces: every page added by a different person or team drifts a little from the others, until the same thing is named, placed and linked differently on each; a link repeated \"to be safe\" adds tab stops, screen-reader noise and the doubt whether two links lead to the same place; link names such as \"Read more\" say nothing out of context, and screen-reader users often list the links of a page on their own; forms are where people give up, and an error that is shown late, vaguely or out of sight costs the whole form; an empty list with no word of explanation looks broken; and usability problems are cheap to find with a few evaluators and a checklist, and expensive once users have learned to work around them.",
690
+ "decision": "In a page's main content each target is linked at most once, outside its navigation (breadcrumbs and tables of contents are navigation). A card, list item or table row whose image, title and button go to the same place is one link: the title is the link, and the whole card may be made clickable from it (a pseudo-element stretched over the card), never by wrapping each part in its own link. Link names: {{LINK_TEXT}}. Measured as ux.links.repeated.max on every pull request.",
691
+ "consequences": "• Fewer tab stops and announcements; the page reads as it looks.\n• Cards and list items need the stretched-link pattern, written once in the design system.\n• A call to action wanted again at the end of a long page is a button to the same place only if the decision is changed to a set limit.",
692
+ "alternatives": "1. Up to a set limit: allows a repeated call to action on long pages.\n2. No rule: the same link five times on one page, which is how this record came about.",
693
+ "hubWhen": {
694
+ "LINK_REPEAT": [
695
+ "once"
696
+ ]
697
+ }
698
+ },
699
+ {
700
+ "id": "adr-links-limit",
701
+ "type": "adr",
702
+ "label": "Link targets repeated at most a set number of times",
703
+ "x": 780,
704
+ "y": 650,
705
+ "concern": "usability",
706
+ "status": "accepted",
707
+ "date": "",
708
+ "context": "People use this web front end to get their tasks done, most of them without training and many on a small screen. The forces: every page added by a different person or team drifts a little from the others, until the same thing is named, placed and linked differently on each; a link repeated \"to be safe\" adds tab stops, screen-reader noise and the doubt whether two links lead to the same place; link names such as \"Read more\" say nothing out of context, and screen-reader users often list the links of a page on their own; forms are where people give up, and an error that is shown late, vaguely or out of sight costs the whole form; an empty list with no word of explanation looks broken; and usability problems are cheap to find with a few evaluators and a checklist, and expensive once users have learned to work around them.",
709
+ "decision": "In a page's main content each target is linked at most {{MAX_LINK_REPEATS}} times, outside its navigation (breadcrumbs and tables of contents are navigation). A card, list item or table row whose image, title and button go to the same place counts as one link and is built as one (the title is the link, stretched over the card). Repeats are for a call to action at the top and the end of a long page, not for every mention. Link names: {{LINK_TEXT}}. Measured as ux.links.repeated.max on every pull request.",
710
+ "consequences": "• Long pages may offer their main action again where the reader ends.\n• Each repeat still costs a tab stop; the limit keeps it at {{MAX_LINK_REPEATS}}.\n• Cards and list items need the stretched-link pattern, written once in the design system.",
711
+ "alternatives": "1. At most once: the simplest rule, enough for applications.\n2. No rule: the same link five times on one page.",
712
+ "hubWhen": {
713
+ "LINK_REPEAT": [
714
+ "limit"
715
+ ]
716
+ }
717
+ },
718
+ {
719
+ "id": "adr-forms-summary",
720
+ "type": "adr",
721
+ "label": "Form errors: a summary and a message at each field",
722
+ "x": 780,
723
+ "y": 780,
724
+ "concern": "usability",
725
+ "status": "accepted",
726
+ "date": "",
727
+ "context": "People use this web front end to get their tasks done, most of them without training and many on a small screen. The forces: every page added by a different person or team drifts a little from the others, until the same thing is named, placed and linked differently on each; a link repeated \"to be safe\" adds tab stops, screen-reader noise and the doubt whether two links lead to the same place; link names such as \"Read more\" say nothing out of context, and screen-reader users often list the links of a page on their own; forms are where people give up, and an error that is shown late, vaguely or out of sight costs the whole form; an empty list with no word of explanation looks broken; and usability problems are cheap to find with a few evaluators and a checklist, and expensive once users have learned to work around them.",
728
+ "decision": "Forms follow the GOV.UK validation pattern: no check before the user submits (novalidate on the form, no live checks); after a failed submit the page shows \"Error: \" before its title, an error summary at the top of the main content that receives focus and links (#id) to each field in error, and at each such field a message that says what went wrong and how to fix it, tied with aria-describedby, the field marked aria-invalid=\"true\". The server checks every answer; the browser may check the same rules first. Messages are written per field, never \"Invalid input\".",
729
+ "consequences": "• People see all their errors at once, reach each with one link, and screen readers announce the summary.\n• Each form needs a summary component and per-field messages, written once in the design system.\n• Errors appear only on submit, so a long form may hold several at once; the summary is what makes that bearable.",
730
+ "alternatives": "1. A message at each field only: enough for short forms.\n2. Checks as each field is left: earlier feedback, at the cost of interrupting people (GOV.UK advises against it).\n3. Native browser validation bubbles: inconsistent across browsers, poorly announced, and gone when the user moves on.",
731
+ "hubWhen": {
732
+ "ERRORS": [
733
+ "summary"
734
+ ]
735
+ }
736
+ },
737
+ {
738
+ "id": "adr-forms-field",
739
+ "type": "adr",
740
+ "label": "Form errors: a message at each field",
741
+ "x": 780,
742
+ "y": 910,
743
+ "concern": "usability",
744
+ "status": "accepted",
745
+ "date": "",
746
+ "context": "People use this web front end to get their tasks done, most of them without training and many on a small screen. The forces: every page added by a different person or team drifts a little from the others, until the same thing is named, placed and linked differently on each; a link repeated \"to be safe\" adds tab stops, screen-reader noise and the doubt whether two links lead to the same place; link names such as \"Read more\" say nothing out of context, and screen-reader users often list the links of a page on their own; forms are where people give up, and an error that is shown late, vaguely or out of sight costs the whole form; an empty list with no word of explanation looks broken; and usability problems are cheap to find with a few evaluators and a checklist, and expensive once users have learned to work around them.",
747
+ "decision": "After a failed submit each field in error is marked aria-invalid=\"true\" and shows a message that says what went wrong and how to fix it, tied with aria-describedby, and focus moves to the first field in error. There is no error summary: this holds for forms of up to three fields that are all in view; a longer form follows the GOV.UK summary pattern and needs this record superseded. Nothing is checked before the user submits. The server checks every answer.",
748
+ "consequences": "• Short forms stay short: no summary block above two fields.\n• Errors out of view in a longer form would go unnoticed, hence the three-field limit.\n• Each field needs its message slot, written once in the design system.",
749
+ "alternatives": "1. A summary and a message at each field: for longer forms.\n2. Checks as each field is left: earlier feedback, more interruptions.",
750
+ "hubWhen": {
751
+ "ERRORS": [
752
+ "field"
753
+ ]
754
+ }
755
+ },
756
+ {
757
+ "id": "adr-forms-live",
758
+ "type": "adr",
759
+ "label": "Form errors: checked when a field is left, summarised on submit",
760
+ "x": 780,
761
+ "y": 1040,
762
+ "concern": "usability",
763
+ "status": "accepted",
764
+ "date": "",
765
+ "context": "People use this web front end to get their tasks done, most of them without training and many on a small screen. The forces: every page added by a different person or team drifts a little from the others, until the same thing is named, placed and linked differently on each; a link repeated \"to be safe\" adds tab stops, screen-reader noise and the doubt whether two links lead to the same place; link names such as \"Read more\" say nothing out of context, and screen-reader users often list the links of a page on their own; forms are where people give up, and an error that is shown late, vaguely or out of sight costs the whole form; an empty list with no word of explanation looks broken; and usability problems are cheap to find with a few evaluators and a checklist, and expensive once users have learned to work around them.",
766
+ "decision": "Fields with a format to check (an IBAN, a postcode, a password rule) are checked when the user leaves them, never while typing; the message appears at the field, tied with aria-describedby, the field marked aria-invalid=\"true\", and goes away as soon as the answer is valid. On submit every field is checked and the page shows \"Error: \" before its title and a focused error summary linking to each field in error, as in the GOV.UK pattern. The reason for checking early is recorded from user research on the form; without it this record is superseded by the summary on submit.",
767
+ "consequences": "• People fix a format error while the field is still in mind.\n• Checking on leaving a field interrupts people who skip ahead or come back later; GOV.UK advises against it, so the research that justifies it is kept.\n• Two moments of checking to build and test instead of one.",
768
+ "alternatives": "1. A summary and a message at each field, on submit only (GOV.UK).\n2. Checks while typing: the earliest feedback and the most interruptions.",
769
+ "hubWhen": {
770
+ "ERRORS": [
771
+ "live"
772
+ ]
773
+ }
774
+ },
775
+ {
776
+ "id": "ff-nav-shared",
777
+ "type": "fitness-fn",
778
+ "label": "Navigation the same on every page",
779
+ "x": 1040,
780
+ "y": 0,
781
+ "characteristic": "interaction-capability",
782
+ "scope": "holistic",
783
+ "cadence": "triggered",
784
+ "trigger": "pull-request",
785
+ "invocation": "automated",
786
+ "description": "A Playwright test opens each page of the main journeys and reads, in order, the links and buttons of the banner landmark, of the navigation named \"Main\" and of the contentinfo landmark: element, name and target path. The current page's mark (aria-current) is not part of it, and neither is anything inside an element marked data-ux-varies, for what changes on purpose (a basket count, the signed-in name). It writes ux.nav.variants{nav=global}, the number of different sets seen (1 when every page shows the same), and fails above 1, listing the pages of each set. Bind it with radical sense playwright tests/ux/navigation.spec.ts and the condition ux.nav.variants <= 1.\n\nThreshold: ux.nav.variants{nav=global} = 1: every page of the main journeys shows one and the same header, navigation and footer: the same links and buttons in the same order under the same names\n\nTool: Playwright (@playwright/test), measured by radical sense playwright\n\n```ts\n// tests/ux/navigation.spec.ts: a plain Playwright test (1.50 or later), or measured with\n// radical sense playwright tests/ux/navigation.spec.ts\nimport { mkdirSync, writeFileSync } from 'node:fs'\nimport { join } from 'node:path'\nimport { expect, test, type Locator } from '@playwright/test'\nimport { PAGES } from './journeys' // [{ path: '/orders' }, …]\n\nconst MAIN_NAV = 'Main' // the aria-label of the shared navigation\n\ntype Measurement = { metric: string; value: number; labels?: Record<string, string> }\n/** Writes what the test measured where radical sense playwright reads it; a plain run writes nothing. */\nfunction writeMetrics(file: string, measurements: Measurement[]): void {\n const dir = process.env.RADICAL_METRICS_DIR\n if (!dir) return\n mkdirSync(dir, { recursive: true })\n writeFileSync(join(dir, file), JSON.stringify({ format: 'radical-metrics', version: 1, source: file, at: new Date().toISOString(), measurements }, null, 1))\n}\n\n/** The links and buttons of a part, in order, by element, name and target path. */\nasync function itemsOf(part: Locator): Promise<string> {\n if (!(await part.count())) return '(none)'\n return part.first().evaluate((el) => [...el.querySelectorAll<HTMLElement>('a[href], button')]\n .filter((x) => x.checkVisibility() && !x.closest('[data-ux-varies]'))\n .map((x) => [x.tagName, (x.getAttribute('aria-label') ?? x.textContent ?? '').replace(/\\s+/g, ' ').trim(), x instanceof HTMLAnchorElement ? new URL(x.href).pathname : ''].join(' '))\n .join('\\n'))\n}\n\n/** Adds a page to the set it shows. */\nconst add = (sets: Map<string, string[]>, items: string, path: string) => sets.set(items, [...(sets.get(items) ?? []), path])\n\ntest('every page shows the same navigation', async ({ page }) => {\n const global = new Map<string, string[]>()\n for (const { path } of PAGES) {\n await page.goto(path)\n const parts = [page.getByRole('banner'), page.getByRole('navigation', { name: MAIN_NAV, exact: true }), page.getByRole('contentinfo')]\n add(global, (await Promise.all(parts.map(itemsOf))).join('\\n|\\n'), path)\n }\n writeMetrics('navigation.json', [\n { metric: 'ux.nav.variants', value: global.size, labels: { nav: 'global' } },\n ])\n expect.soft(global.size, `pages per navigation: ${JSON.stringify([...global.values()])}`).toBe(1)\n})\n```",
787
+ "hubWhen": {
788
+ "NAVIGATION": [
789
+ "shared"
790
+ ]
791
+ }
792
+ },
793
+ {
794
+ "id": "ff-nav-sections",
795
+ "type": "fitness-fn",
796
+ "label": "Navigation the same on every page",
797
+ "x": 1040,
798
+ "y": 130,
799
+ "characteristic": "interaction-capability",
800
+ "scope": "holistic",
801
+ "cadence": "triggered",
802
+ "trigger": "pull-request",
803
+ "invocation": "automated",
804
+ "description": "A Playwright test opens each page of the main journeys and reads, in order, the links and buttons of the banner landmark, of the navigation named \"Main\" and of the contentinfo landmark: element, name and target path. The current page's mark (aria-current) is not part of it, and neither is anything inside an element marked data-ux-varies, for what changes on purpose (a basket count, the signed-in name). It writes ux.nav.variants{nav=global}, the number of different sets seen (1 when every page shows the same), and ux.nav.variants{nav=<section>} for the navigation named \"Section\" on the pages of each section (PAGES give each page its section; keep a section's navigation out of the header), and fails above 1, listing the pages of each set. Bind it with radical sense playwright tests/ux/navigation.spec.ts and the condition ux.nav.variants <= 1.\n\nThreshold: ux.nav.variants <= 1: every page of the main journeys shows one and the same header, global navigation and footer (ux.nav.variants{nav=global} = 1), and every page of a section the same section navigation (ux.nav.variants{nav=<section>} = 1)\n\nTool: Playwright (@playwright/test), measured by radical sense playwright\n\n```ts\n// tests/ux/navigation.spec.ts: a plain Playwright test (1.50 or later), or measured with\n// radical sense playwright tests/ux/navigation.spec.ts\nimport { mkdirSync, writeFileSync } from 'node:fs'\nimport { join } from 'node:path'\nimport { expect, test, type Locator } from '@playwright/test'\nimport { PAGES } from './journeys' // [{ path: '/orders', section: 'Orders' }, …]\n\nconst MAIN_NAV = 'Main' // the aria-label of the shared navigation\nconst SECTION_NAV = 'Section' // the aria-label of a section's own navigation\n\ntype Measurement = { metric: string; value: number; labels?: Record<string, string> }\n/** Writes what the test measured where radical sense playwright reads it; a plain run writes nothing. */\nfunction writeMetrics(file: string, measurements: Measurement[]): void {\n const dir = process.env.RADICAL_METRICS_DIR\n if (!dir) return\n mkdirSync(dir, { recursive: true })\n writeFileSync(join(dir, file), JSON.stringify({ format: 'radical-metrics', version: 1, source: file, at: new Date().toISOString(), measurements }, null, 1))\n}\n\n/** The links and buttons of a part, in order, by element, name and target path. */\nasync function itemsOf(part: Locator): Promise<string> {\n if (!(await part.count())) return '(none)'\n return part.first().evaluate((el) => [...el.querySelectorAll<HTMLElement>('a[href], button')]\n .filter((x) => x.checkVisibility() && !x.closest('[data-ux-varies]'))\n .map((x) => [x.tagName, (x.getAttribute('aria-label') ?? x.textContent ?? '').replace(/\\s+/g, ' ').trim(), x instanceof HTMLAnchorElement ? new URL(x.href).pathname : ''].join(' '))\n .join('\\n'))\n}\n\n/** Adds a page to the set it shows. */\nconst add = (sets: Map<string, string[]>, items: string, path: string) => sets.set(items, [...(sets.get(items) ?? []), path])\n\ntest('every page shows the same navigation', async ({ page }) => {\n const global = new Map<string, string[]>()\n const bySection = new Map<string, Map<string, string[]>>()\n for (const { path, section } of PAGES) {\n await page.goto(path)\n const parts = [page.getByRole('banner'), page.getByRole('navigation', { name: MAIN_NAV, exact: true }), page.getByRole('contentinfo')]\n add(global, (await Promise.all(parts.map(itemsOf))).join('\\n|\\n'), path)\n if (section) {\n const own = bySection.get(section) ?? new Map<string, string[]>()\n add(own, await itemsOf(page.getByRole('navigation', { name: SECTION_NAV, exact: true })), path)\n bySection.set(section, own)\n }\n }\n writeMetrics('navigation.json', [\n { metric: 'ux.nav.variants', value: global.size, labels: { nav: 'global' } },\n ...[...bySection].map(([section, sets]) => ({ metric: 'ux.nav.variants', value: sets.size, labels: { nav: section } })),\n ])\n expect.soft(global.size, `pages per navigation: ${JSON.stringify([...global.values()])}`).toBe(1)\n for (const [section, sets] of bySection) expect.soft(sets.size, `${section}: ${JSON.stringify([...sets.values()])}`).toBe(1)\n})\n```",
805
+ "hubWhen": {
806
+ "NAVIGATION": [
807
+ "sections"
808
+ ]
809
+ }
810
+ },
811
+ {
812
+ "id": "ff-nav-task",
813
+ "type": "fitness-fn",
814
+ "label": "Same header and a way back",
815
+ "x": 1040,
816
+ "y": 260,
817
+ "characteristic": "interaction-capability",
818
+ "scope": "holistic",
819
+ "cadence": "triggered",
820
+ "trigger": "pull-request",
821
+ "invocation": "automated",
822
+ "description": "A Playwright test opens the pages of the journey in order (PAGES in tests/ux/journeys.ts) and reads the links and buttons of the banner landmark of each (element, name, target path; parts marked data-ux-varies left out). It writes ux.nav.variants{nav=header}, the number of different headers seen, and ux.back.missing, the pages after the first without a visible link named \"Back\", and fails on either. Bind it with radical sense playwright tests/ux/journey.spec.ts and the conditions ux.nav.variants <= 1 and ux.back.missing <= 0.\n\nThreshold: ux.nav.variants{nav=header} = 1 and ux.back.missing = 0: every page of the journey shows the same header, and every page after the first a visible link named \"Back\"\n\nTool: Playwright (@playwright/test), measured by radical sense playwright\n\n```ts\n// tests/ux/journey.spec.ts: a plain Playwright test (1.50 or later), or measured with\n// radical sense playwright tests/ux/journey.spec.ts\nimport { mkdirSync, writeFileSync } from 'node:fs'\nimport { join } from 'node:path'\nimport { expect, test, type Locator } from '@playwright/test'\nimport { PAGES } from './journeys' // the journey's pages in order: [{ path: '/start' }, { path: '/name' }, …]\n\ntype Measurement = { metric: string; value: number; labels?: Record<string, string> }\n/** Writes what the test measured where radical sense playwright reads it; a plain run writes nothing. */\nfunction writeMetrics(file: string, measurements: Measurement[]): void {\n const dir = process.env.RADICAL_METRICS_DIR\n if (!dir) return\n mkdirSync(dir, { recursive: true })\n writeFileSync(join(dir, file), JSON.stringify({ format: 'radical-metrics', version: 1, source: file, at: new Date().toISOString(), measurements }, null, 1))\n}\n\n/** The links and buttons of a part, in order, by element, name and target path. */\nasync function itemsOf(part: Locator): Promise<string> {\n if (!(await part.count())) return '(none)'\n return part.first().evaluate((el) => [...el.querySelectorAll<HTMLElement>('a[href], button')]\n .filter((x) => x.checkVisibility() && !x.closest('[data-ux-varies]'))\n .map((x) => [x.tagName, (x.getAttribute('aria-label') ?? x.textContent ?? '').replace(/\\s+/g, ' ').trim(), x instanceof HTMLAnchorElement ? new URL(x.href).pathname : ''].join(' '))\n .join('\\n'))\n}\n\ntest('every step has the same header and a way back', async ({ page }) => {\n const headers = new Map<string, string[]>()\n const noBack: string[] = []\n for (const [i, { path }] of PAGES.entries()) {\n await page.goto(path)\n const header = await itemsOf(page.getByRole('banner'))\n headers.set(header, [...(headers.get(header) ?? []), path])\n if (i > 0 && !(await page.getByRole('link', { name: 'Back', exact: true }).first().isVisible())) noBack.push(path)\n }\n writeMetrics('journey.json', [\n { metric: 'ux.nav.variants', value: headers.size, labels: { nav: 'header' } },\n { metric: 'ux.back.missing', value: noBack.length },\n ])\n expect.soft(headers.size, `pages per header: ${JSON.stringify([...headers.values()])}`).toBe(1)\n expect.soft(noBack, 'steps without a Back link').toEqual([])\n})\n```",
823
+ "hubWhen": {
824
+ "NAVIGATION": [
825
+ "task"
826
+ ]
827
+ }
828
+ },
829
+ {
830
+ "id": "ff-links-repeated-once",
831
+ "type": "fitness-fn",
832
+ "label": "No link target repeated",
833
+ "x": 1040,
834
+ "y": 390,
835
+ "characteristic": "interaction-capability",
836
+ "scope": "holistic",
837
+ "cadence": "triggered",
838
+ "trigger": "pull-request",
839
+ "invocation": "automated",
840
+ "description": "A Playwright test opens each page of the main journeys (PAGES in tests/ux/journeys.ts) and counts, inside the main landmark, the visible links to each target, SVG links included. A target is a page: origin, path and query, a folder and its index.html being one page, and the #fragment left out, so links to different sections of one long page (a manual, a reference) count as one target; that is the point: each is another tab stop to the same page, and a page that needs many is better served by its own table of contents. In-page links (skip links, an error summary's) are left out, and so are links inside a nav: breadcrumbs, a table of contents. It writes the largest count of each page as ux.links.repeated{page=…} and the largest of all as ux.links.repeated.max, and fails on a page over the limit, naming the target. The header, navigation and footer are left out on purpose: the same link in the navigation and once in the text is expected. Bind it with the sensor radical sense playwright tests/ux/links-repeated.spec.ts and the condition ux.links.repeated.max <= 1.\n\nThreshold: ux.links.repeated.max <= 1: on every page of the main journeys, no link target appears more than once in the main content outside its navigation (the same link 5 times on a page measures 5 and fails)\n\nTool: Playwright (@playwright/test), measured by radical sense playwright\n\n```ts\n// tests/ux/links-repeated.spec.ts: a plain Playwright test (1.50 or later), or measured with\n// radical sense playwright tests/ux/links-repeated.spec.ts\nimport { mkdirSync, writeFileSync } from 'node:fs'\nimport { join } from 'node:path'\nimport { expect, test } from '@playwright/test'\nimport { PAGES } from './journeys' // [{ path: '/' }, { path: '/pricing' }, …]: the main journeys' pages\n\nconst LIMIT = 1 // the decision: how often one target may be linked in a page's main content\n\ntype Measurement = { metric: string; value: number; labels?: Record<string, string> }\n/** Writes what the test measured where radical sense playwright reads it; a plain run writes nothing. */\nfunction writeMetrics(file: string, measurements: Measurement[]): void {\n const dir = process.env.RADICAL_METRICS_DIR\n if (!dir) return\n mkdirSync(dir, { recursive: true })\n writeFileSync(join(dir, file), JSON.stringify({ format: 'radical-metrics', version: 1, source: file, at: new Date().toISOString(), measurements }, null, 1))\n}\n\ntest('no link target repeats in the main content', async ({ page }) => {\n const found: Array<{ path: string; href: string; times: number }> = []\n for (const { path } of PAGES) {\n await page.goto(path)\n const counts = await page.locator('main').first().evaluate((main) => {\n const times: Record<string, number> = {}\n for (const a of main.querySelectorAll<HTMLAnchorElement | SVGAElement>('a[href]')) {\n if (a.closest('nav, [role=\"navigation\"]') || !a.checkVisibility()) continue // breadcrumbs, tables of contents, hidden links\n // an SVG link's href is an SVGAnimatedString (links in diagrams)\n const url = new URL(a instanceof SVGAElement ? a.href.baseVal : a.href, document.baseURI)\n if (url.origin + url.pathname === location.origin + location.pathname && url.hash) continue // skip links, error summaries\n // a target is a page: its #fragment is left out, and a folder and its index.html are one page\n const target = url.origin + url.pathname.replace(/\\/(index\\.html)?$/, '') + url.search\n times[target] = (times[target] ?? 0) + 1\n }\n return times\n })\n const [href, times] = Object.entries(counts).sort((a, b) => b[1] - a[1])[0] ?? ['', 0]\n found.push({ path, href, times })\n }\n writeMetrics('links-repeated.json', [\n ...found.map((p) => ({ metric: 'ux.links.repeated', value: p.times, labels: { page: p.path } })),\n { metric: 'ux.links.repeated.max', value: Math.max(0, ...found.map((p) => p.times)) },\n ])\n for (const p of found) expect.soft(p.times, `${p.path} links to ${p.href} ${p.times} times`).toBeLessThanOrEqual(LIMIT)\n})\n```",
841
+ "hubWhen": {
842
+ "LINK_REPEAT": [
843
+ "once"
844
+ ]
845
+ }
846
+ },
847
+ {
848
+ "id": "ff-links-repeated-limit",
849
+ "type": "fitness-fn",
850
+ "label": "No link target repeated",
851
+ "x": 1040,
852
+ "y": 520,
853
+ "characteristic": "interaction-capability",
854
+ "scope": "holistic",
855
+ "cadence": "triggered",
856
+ "trigger": "pull-request",
857
+ "invocation": "automated",
858
+ "description": "A Playwright test opens each page of the main journeys (PAGES in tests/ux/journeys.ts) and counts, inside the main landmark, the visible links to each target, SVG links included. A target is a page: origin, path and query, a folder and its index.html being one page, and the #fragment left out, so links to different sections of one long page (a manual, a reference) count as one target; that is the point: each is another tab stop to the same page, and a page that needs many is better served by its own table of contents. In-page links (skip links, an error summary's) are left out, and so are links inside a nav: breadcrumbs, a table of contents. It writes the largest count of each page as ux.links.repeated{page=…} and the largest of all as ux.links.repeated.max, and fails on a page over the limit, naming the target. The header, navigation and footer are left out on purpose: the same link in the navigation and once in the text is expected. Bind it with the sensor radical sense playwright tests/ux/links-repeated.spec.ts and the condition ux.links.repeated.max <= {{MAX_LINK_REPEATS}}.\n\nThreshold: ux.links.repeated.max <= {{MAX_LINK_REPEATS}}: on every page of the main journeys, no link target appears more than {{MAX_LINK_REPEATS}} times in the main content outside its navigation (the same link 5 times on a page measures 5 and fails)\n\nTool: Playwright (@playwright/test), measured by radical sense playwright\n\n```ts\n// tests/ux/links-repeated.spec.ts: a plain Playwright test (1.50 or later), or measured with\n// radical sense playwright tests/ux/links-repeated.spec.ts\nimport { mkdirSync, writeFileSync } from 'node:fs'\nimport { join } from 'node:path'\nimport { expect, test } from '@playwright/test'\nimport { PAGES } from './journeys' // [{ path: '/' }, { path: '/pricing' }, …]: the main journeys' pages\n\nconst LIMIT = {{MAX_LINK_REPEATS}} // the decision: how often one target may be linked in a page's main content\n\ntype Measurement = { metric: string; value: number; labels?: Record<string, string> }\n/** Writes what the test measured where radical sense playwright reads it; a plain run writes nothing. */\nfunction writeMetrics(file: string, measurements: Measurement[]): void {\n const dir = process.env.RADICAL_METRICS_DIR\n if (!dir) return\n mkdirSync(dir, { recursive: true })\n writeFileSync(join(dir, file), JSON.stringify({ format: 'radical-metrics', version: 1, source: file, at: new Date().toISOString(), measurements }, null, 1))\n}\n\ntest('no link target repeats in the main content', async ({ page }) => {\n const found: Array<{ path: string; href: string; times: number }> = []\n for (const { path } of PAGES) {\n await page.goto(path)\n const counts = await page.locator('main').first().evaluate((main) => {\n const times: Record<string, number> = {}\n for (const a of main.querySelectorAll<HTMLAnchorElement | SVGAElement>('a[href]')) {\n if (a.closest('nav, [role=\"navigation\"]') || !a.checkVisibility()) continue // breadcrumbs, tables of contents, hidden links\n // an SVG link's href is an SVGAnimatedString (links in diagrams)\n const url = new URL(a instanceof SVGAElement ? a.href.baseVal : a.href, document.baseURI)\n if (url.origin + url.pathname === location.origin + location.pathname && url.hash) continue // skip links, error summaries\n // a target is a page: its #fragment is left out, and a folder and its index.html are one page\n const target = url.origin + url.pathname.replace(/\\/(index\\.html)?$/, '') + url.search\n times[target] = (times[target] ?? 0) + 1\n }\n return times\n })\n const [href, times] = Object.entries(counts).sort((a, b) => b[1] - a[1])[0] ?? ['', 0]\n found.push({ path, href, times })\n }\n writeMetrics('links-repeated.json', [\n ...found.map((p) => ({ metric: 'ux.links.repeated', value: p.times, labels: { page: p.path } })),\n { metric: 'ux.links.repeated.max', value: Math.max(0, ...found.map((p) => p.times)) },\n ])\n for (const p of found) expect.soft(p.times, `${p.path} links to ${p.href} ${p.times} times`).toBeLessThanOrEqual(LIMIT)\n})\n```",
859
+ "hubWhen": {
860
+ "LINK_REPEAT": [
861
+ "limit"
862
+ ]
863
+ }
864
+ },
865
+ {
866
+ "id": "ff-link-texts-unique",
867
+ "type": "fitness-fn",
868
+ "label": "Link names say where they go",
869
+ "x": 1040,
870
+ "y": 650,
871
+ "characteristic": "interaction-capability",
872
+ "scope": "holistic",
873
+ "cadence": "triggered",
874
+ "trigger": "pull-request",
875
+ "invocation": "automated",
876
+ "description": "A Playwright test opens each page of the main journeys and reads every visible link: its accessible name (simplified: aria-labelledby, aria-label, else its text with image alternatives, aria-hidden parts left out), its target, and its context (the text of the table row around it, else of the nearest list item, cell, paragraph, definition or article, so that two \"View\" links in one row meet). SVG links are read too. It writes ux.links.ambiguous{by=name} (names on a page that lead to more than one target), ux.links.ambiguous{by=context} (the same, counted by name and context together) and ux.links.vague (links whose whole name is a generic phrase, or empty), and fails on an ambiguous name or a vague one. Bind it with radical sense playwright tests/ux/link-texts.spec.ts and the conditions ux.links.ambiguous{by=name} <= 0 and ux.links.vague <= 0. Extend VAGUE with the generic phrases of your language.\n\nThreshold: ux.links.ambiguous{by=name} = 0 and ux.links.vague = 0: on no page of the main journeys does one link name lead to two different targets, and no link is named only \"click here\", \"read more\", \"more\" or the like (or nothing)\n\nTool: Playwright (@playwright/test), measured by radical sense playwright\n\n```ts\n// tests/ux/link-texts.spec.ts: a plain Playwright test (1.50 or later), or measured with\n// radical sense playwright tests/ux/link-texts.spec.ts\nimport { mkdirSync, writeFileSync } from 'node:fs'\nimport { join } from 'node:path'\nimport { expect, test } from '@playwright/test'\nimport { PAGES } from './journeys' // the main journeys' pages\n\nconst VAGUE = /^(click here|here|read more|more|learn more|find out more|details|link|this page|continue reading)$/\n\ntype Measurement = { metric: string; value: number; labels?: Record<string, string> }\n/** Writes what the test measured where radical sense playwright reads it; a plain run writes nothing. */\nfunction writeMetrics(file: string, measurements: Measurement[]): void {\n const dir = process.env.RADICAL_METRICS_DIR\n if (!dir) return\n mkdirSync(dir, { recursive: true })\n writeFileSync(join(dir, file), JSON.stringify({ format: 'radical-metrics', version: 1, source: file, at: new Date().toISOString(), measurements }, null, 1))\n}\n\ntest('link names say where they go', async ({ page }) => {\n const ambiguous = { name: [] as string[], context: [] as string[] }\n const vague: string[] = []\n for (const { path } of PAGES) {\n await page.goto(path)\n const links = await page.locator('body').evaluate((body) => {\n const clean = (s: string) => s.replace(/\\s+/g, ' ').trim().toLowerCase()\n // The accessible name, simplified: aria-labelledby, aria-label, else the text with image alternatives.\n const nameOf = (a: Element): string => {\n const ids = a.getAttribute('aria-labelledby')\n if (ids) return ids.split(/\\s+/).map((id) => document.getElementById(id)?.textContent ?? '').join(' ')\n const label = a.getAttribute('aria-label')\n if (label) return label\n const copy = a.cloneNode(true) as Element\n copy.querySelectorAll('[aria-hidden=\"true\"]').forEach((el) => el.remove())\n copy.querySelectorAll('img').forEach((img) => img.replaceWith(img.alt))\n return copy.textContent ?? ''\n }\n return [...body.querySelectorAll<HTMLAnchorElement | SVGAElement>('a[href]')].filter((a) => a.checkVisibility()).map((a) => {\n // an SVG link's href is an SVGAnimatedString (links in diagrams)\n const url = new URL(a instanceof SVGAElement ? a.href.baseVal : a.href, document.baseURI)\n // the context: the row the link is in, before the nearest list item, cell, paragraph, definition or card\n // (closest() alone stops at the cell, and two \"View\" links in one row would never meet)\n const context = a.closest('tr, [role=\"row\"]') ?? a.closest('li, td, p, dd, article, [role=\"listitem\"]')\n return { name: clean(nameOf(a)), target: url.origin + url.pathname.replace(/\\/(index\\.html)?$/, '') + url.search, context: clean(context?.textContent ?? '').slice(0, 200) }\n })\n })\n /** The keys that lead to more than one target. */\n const ambiguousBy = (key: (l: (typeof links)[number]) => string): string[] => {\n const targets = new Map<string, Set<string>>()\n for (const l of links) targets.set(key(l), (targets.get(key(l)) ?? new Set<string>()).add(l.target))\n return [...targets].filter(([, t]) => t.size > 1).map(([k, t]) => `${path}: \"${k}\" leads to ${[...t].join(', ')}`)\n }\n ambiguous.name.push(...ambiguousBy((l) => l.name))\n ambiguous.context.push(...ambiguousBy((l) => `${l.name} in \"${l.context}\"`))\n vague.push(...links.filter((l) => !l.name || VAGUE.test(l.name)).map((l) => `${path}: \"${l.name}\" to ${l.target}`))\n }\n writeMetrics('link-texts.json', [\n { metric: 'ux.links.ambiguous', value: ambiguous.name.length, labels: { by: 'name' } },\n { metric: 'ux.links.ambiguous', value: ambiguous.context.length, labels: { by: 'context' } },\n { metric: 'ux.links.vague', value: vague.length },\n ])\n expect.soft(ambiguous.name, 'one link name, several targets').toEqual([])\n expect.soft(vague, 'link names that say nothing on their own').toEqual([])\n})\n```",
877
+ "hubWhen": {
878
+ "LINK_TEXT": [
879
+ "unique"
880
+ ]
881
+ }
882
+ },
883
+ {
884
+ "id": "ff-link-texts-context",
885
+ "type": "fitness-fn",
886
+ "label": "Link names say where they go",
887
+ "x": 1040,
888
+ "y": 780,
889
+ "characteristic": "interaction-capability",
890
+ "scope": "holistic",
891
+ "cadence": "triggered",
892
+ "trigger": "pull-request",
893
+ "invocation": "automated",
894
+ "description": "A Playwright test opens each page of the main journeys and reads every visible link: its accessible name (simplified: aria-labelledby, aria-label, else its text with image alternatives, aria-hidden parts left out), its target, and its context (the text of the table row around it, else of the nearest list item, cell, paragraph, definition or article, so that two \"View\" links in one row meet). SVG links are read too. It writes ux.links.ambiguous{by=name} (names on a page that lead to more than one target), ux.links.ambiguous{by=context} (the same, counted by name and context together) and ux.links.vague (links whose whole name is a generic phrase, or empty), and fails on a name that is ambiguous within its context. Bind it with radical sense playwright tests/ux/link-texts.spec.ts and the condition ux.links.ambiguous{by=context} <= 0. Extend VAGUE with the generic phrases of your language.\n\nThreshold: ux.links.ambiguous{by=context} = 0: on no page of the main journeys do two links with the same name in the same list item, table row, paragraph or card lead to different targets\n\nTool: Playwright (@playwright/test), measured by radical sense playwright\n\n```ts\n// tests/ux/link-texts.spec.ts: a plain Playwright test (1.50 or later), or measured with\n// radical sense playwright tests/ux/link-texts.spec.ts\nimport { mkdirSync, writeFileSync } from 'node:fs'\nimport { join } from 'node:path'\nimport { expect, test } from '@playwright/test'\nimport { PAGES } from './journeys' // the main journeys' pages\n\nconst VAGUE = /^(click here|here|read more|more|learn more|find out more|details|link|this page|continue reading)$/\n\ntype Measurement = { metric: string; value: number; labels?: Record<string, string> }\n/** Writes what the test measured where radical sense playwright reads it; a plain run writes nothing. */\nfunction writeMetrics(file: string, measurements: Measurement[]): void {\n const dir = process.env.RADICAL_METRICS_DIR\n if (!dir) return\n mkdirSync(dir, { recursive: true })\n writeFileSync(join(dir, file), JSON.stringify({ format: 'radical-metrics', version: 1, source: file, at: new Date().toISOString(), measurements }, null, 1))\n}\n\ntest('link names say where they go', async ({ page }) => {\n const ambiguous = { name: [] as string[], context: [] as string[] }\n const vague: string[] = []\n for (const { path } of PAGES) {\n await page.goto(path)\n const links = await page.locator('body').evaluate((body) => {\n const clean = (s: string) => s.replace(/\\s+/g, ' ').trim().toLowerCase()\n // The accessible name, simplified: aria-labelledby, aria-label, else the text with image alternatives.\n const nameOf = (a: Element): string => {\n const ids = a.getAttribute('aria-labelledby')\n if (ids) return ids.split(/\\s+/).map((id) => document.getElementById(id)?.textContent ?? '').join(' ')\n const label = a.getAttribute('aria-label')\n if (label) return label\n const copy = a.cloneNode(true) as Element\n copy.querySelectorAll('[aria-hidden=\"true\"]').forEach((el) => el.remove())\n copy.querySelectorAll('img').forEach((img) => img.replaceWith(img.alt))\n return copy.textContent ?? ''\n }\n return [...body.querySelectorAll<HTMLAnchorElement | SVGAElement>('a[href]')].filter((a) => a.checkVisibility()).map((a) => {\n // an SVG link's href is an SVGAnimatedString (links in diagrams)\n const url = new URL(a instanceof SVGAElement ? a.href.baseVal : a.href, document.baseURI)\n // the context: the row the link is in, before the nearest list item, cell, paragraph, definition or card\n // (closest() alone stops at the cell, and two \"View\" links in one row would never meet)\n const context = a.closest('tr, [role=\"row\"]') ?? a.closest('li, td, p, dd, article, [role=\"listitem\"]')\n return { name: clean(nameOf(a)), target: url.origin + url.pathname.replace(/\\/(index\\.html)?$/, '') + url.search, context: clean(context?.textContent ?? '').slice(0, 200) }\n })\n })\n /** The keys that lead to more than one target. */\n const ambiguousBy = (key: (l: (typeof links)[number]) => string): string[] => {\n const targets = new Map<string, Set<string>>()\n for (const l of links) targets.set(key(l), (targets.get(key(l)) ?? new Set<string>()).add(l.target))\n return [...targets].filter(([, t]) => t.size > 1).map(([k, t]) => `${path}: \"${k}\" leads to ${[...t].join(', ')}`)\n }\n ambiguous.name.push(...ambiguousBy((l) => l.name))\n ambiguous.context.push(...ambiguousBy((l) => `${l.name} in \"${l.context}\"`))\n vague.push(...links.filter((l) => !l.name || VAGUE.test(l.name)).map((l) => `${path}: \"${l.name}\" to ${l.target}`))\n }\n writeMetrics('link-texts.json', [\n { metric: 'ux.links.ambiguous', value: ambiguous.name.length, labels: { by: 'name' } },\n { metric: 'ux.links.ambiguous', value: ambiguous.context.length, labels: { by: 'context' } },\n { metric: 'ux.links.vague', value: vague.length },\n ])\n expect.soft(ambiguous.context, 'one link name, several targets in the same context').toEqual([])\n})\n```",
895
+ "hubWhen": {
896
+ "LINK_TEXT": [
897
+ "context"
898
+ ]
899
+ }
900
+ },
901
+ {
902
+ "id": "ff-forms-summary",
903
+ "type": "fitness-fn",
904
+ "label": "Form errors shown as decided",
905
+ "x": 1040,
906
+ "y": 910,
907
+ "characteristic": "interaction-capability",
908
+ "scope": "holistic",
909
+ "cadence": "triggered",
910
+ "trigger": "pull-request",
911
+ "invocation": "automated",
912
+ "description": "A Playwright test submits each form of the main journeys empty (FORMS in tests/ux/journeys.ts) and reads what the page shows: A submit button kept disabled while the form is incomplete is clicked anyway, as a person would click it, and nothing happening counts as nothing marked. ux.forms.unmarked counts forms where no field was marked aria-invalid=\"true\"; ux.forms.unexplained counts fields so marked without a message tied to them by aria-describedby or aria-errormessage; ux.forms.summary.missing counts forms where focus did not land in a summary linking to every field in error (#id links), or the title does not start with \"Error: \". Bind it with radical sense playwright tests/ux/form-errors.spec.ts and the conditions ux.forms.unmarked <= 0, ux.forms.unexplained <= 0, ux.forms.summary.missing <= 0.\n\nThreshold: ux.forms.unmarked = 0, ux.forms.unexplained = 0, ux.forms.summary.missing = 0 over the forms of the main journeys\n\nTool: Playwright (@playwright/test), measured by radical sense playwright\n\n```ts\n// tests/ux/form-errors.spec.ts: a plain Playwright test (1.50 or later), or measured with\n// radical sense playwright tests/ux/form-errors.spec.ts\nimport { mkdirSync, writeFileSync } from 'node:fs'\nimport { join } from 'node:path'\nimport { expect, test, type Page } from '@playwright/test'\nimport { FORMS } from './journeys' // [{ path: '/register', submit: 'Continue', field: 'Email address' }, …]\n\ntype Measurement = { metric: string; value: number; labels?: Record<string, string> }\n/** Writes what the test measured where radical sense playwright reads it; a plain run writes nothing. */\nfunction writeMetrics(file: string, measurements: Measurement[]): void {\n const dir = process.env.RADICAL_METRICS_DIR\n if (!dir) return\n mkdirSync(dir, { recursive: true })\n writeFileSync(join(dir, file), JSON.stringify({ format: 'radical-metrics', version: 1, source: file, at: new Date().toISOString(), measurements }, null, 1))\n}\n\n/** What the page shows after a submit that failed. */\nconst shown = (page: Page) => page.evaluate(() => {\n const invalid = [...document.querySelectorAll<HTMLElement>('[aria-invalid=\"true\"]')]\n const explained = (f: HTMLElement) => `${f.getAttribute('aria-describedby') ?? ''} ${f.getAttribute('aria-errormessage') ?? ''}`\n .split(/\\s+/).some((id) => id && document.getElementById(id)?.textContent?.trim())\n // the summary: the nearest element around the focus that links to every field in error, and holds none of them\n let box: Element | null = document.activeElement\n while (box && box !== document.body && !invalid.every((f) => box!.querySelector(`a[href=\"#${CSS.escape(f.id)}\"]`))) box = box.parentElement\n return {\n invalid: invalid.length,\n unexplained: invalid.filter((f) => !explained(f)).length,\n summarised: Boolean(invalid.length && box && box !== document.body && !box.contains(invalid[0]) && document.title.startsWith('Error: ')),\n firstFocused: Boolean(invalid.length) && invalid[0] === document.activeElement,\n }\n})\n\ntest('failed submits say what is wrong and where', async ({ page }) => {\n const unmarked: string[] = [], missed: string[] = []\n let unexplained = 0\n for (const form of FORMS) {\n await page.goto(form.path)\n const submit = page.getByRole('button', { name: form.submit, exact: true })\n await submit.click({ force: await submit.isDisabled() }) // a disabled button takes the click and does nothing, as for a person\n await page.locator('[aria-invalid=\"true\"]').first().waitFor({ state: 'attached', timeout: 5_000 }).catch(() => undefined)\n const after = await shown(page)\n if (!after.invalid) unmarked.push(form.path)\n unexplained += after.unexplained\n if (after.invalid && !after.summarised) missed.push(form.path)\n }\n writeMetrics('form-errors.json', [\n { metric: 'ux.forms.unmarked', value: unmarked.length },\n { metric: 'ux.forms.unexplained', value: unexplained },\n { metric: 'ux.forms.summary.missing', value: missed.length },\n ])\n expect.soft(unmarked, 'forms that accepted an empty submit or marked no field').toEqual([])\n expect.soft(unexplained, 'fields marked invalid without a message tied to them').toBe(0)\n expect.soft(missed, 'forms without a focused error summary linking each field, or without \"Error: \" in the title').toEqual([])\n})\n```",
913
+ "hubWhen": {
914
+ "ERRORS": [
915
+ "summary"
916
+ ]
917
+ }
918
+ },
919
+ {
920
+ "id": "ff-forms-field",
921
+ "type": "fitness-fn",
922
+ "label": "Form errors shown as decided",
923
+ "x": 1040,
924
+ "y": 1040,
925
+ "characteristic": "interaction-capability",
926
+ "scope": "holistic",
927
+ "cadence": "triggered",
928
+ "trigger": "pull-request",
929
+ "invocation": "automated",
930
+ "description": "A Playwright test submits each form of the main journeys empty (FORMS in tests/ux/journeys.ts) and reads what the page shows: A submit button kept disabled while the form is incomplete is clicked anyway, as a person would click it, and nothing happening counts as nothing marked. ux.forms.unmarked counts forms where no field was marked aria-invalid=\"true\"; ux.forms.unexplained counts fields so marked without a message tied to them by aria-describedby or aria-errormessage; ux.forms.focus.missed counts forms where focus did not move to the first field in error. Bind it with radical sense playwright tests/ux/form-errors.spec.ts and the conditions ux.forms.unmarked <= 0, ux.forms.unexplained <= 0, ux.forms.focus.missed <= 0.\n\nThreshold: ux.forms.unmarked = 0, ux.forms.unexplained = 0, ux.forms.focus.missed = 0 over the forms of the main journeys\n\nTool: Playwright (@playwright/test), measured by radical sense playwright\n\n```ts\n// tests/ux/form-errors.spec.ts: a plain Playwright test (1.50 or later), or measured with\n// radical sense playwright tests/ux/form-errors.spec.ts\nimport { mkdirSync, writeFileSync } from 'node:fs'\nimport { join } from 'node:path'\nimport { expect, test, type Page } from '@playwright/test'\nimport { FORMS } from './journeys' // [{ path: '/register', submit: 'Continue', field: 'Email address' }, …]\n\ntype Measurement = { metric: string; value: number; labels?: Record<string, string> }\n/** Writes what the test measured where radical sense playwright reads it; a plain run writes nothing. */\nfunction writeMetrics(file: string, measurements: Measurement[]): void {\n const dir = process.env.RADICAL_METRICS_DIR\n if (!dir) return\n mkdirSync(dir, { recursive: true })\n writeFileSync(join(dir, file), JSON.stringify({ format: 'radical-metrics', version: 1, source: file, at: new Date().toISOString(), measurements }, null, 1))\n}\n\n/** What the page shows after a submit that failed. */\nconst shown = (page: Page) => page.evaluate(() => {\n const invalid = [...document.querySelectorAll<HTMLElement>('[aria-invalid=\"true\"]')]\n const explained = (f: HTMLElement) => `${f.getAttribute('aria-describedby') ?? ''} ${f.getAttribute('aria-errormessage') ?? ''}`\n .split(/\\s+/).some((id) => id && document.getElementById(id)?.textContent?.trim())\n // the summary: the nearest element around the focus that links to every field in error, and holds none of them\n let box: Element | null = document.activeElement\n while (box && box !== document.body && !invalid.every((f) => box!.querySelector(`a[href=\"#${CSS.escape(f.id)}\"]`))) box = box.parentElement\n return {\n invalid: invalid.length,\n unexplained: invalid.filter((f) => !explained(f)).length,\n summarised: Boolean(invalid.length && box && box !== document.body && !box.contains(invalid[0]) && document.title.startsWith('Error: ')),\n firstFocused: Boolean(invalid.length) && invalid[0] === document.activeElement,\n }\n})\n\ntest('failed submits say what is wrong and where', async ({ page }) => {\n const unmarked: string[] = [], missed: string[] = []\n let unexplained = 0\n for (const form of FORMS) {\n await page.goto(form.path)\n const submit = page.getByRole('button', { name: form.submit, exact: true })\n await submit.click({ force: await submit.isDisabled() }) // a disabled button takes the click and does nothing, as for a person\n await page.locator('[aria-invalid=\"true\"]').first().waitFor({ state: 'attached', timeout: 5_000 }).catch(() => undefined)\n const after = await shown(page)\n if (!after.invalid) unmarked.push(form.path)\n unexplained += after.unexplained\n if (after.invalid && !after.firstFocused) missed.push(form.path)\n }\n writeMetrics('form-errors.json', [\n { metric: 'ux.forms.unmarked', value: unmarked.length },\n { metric: 'ux.forms.unexplained', value: unexplained },\n { metric: 'ux.forms.focus.missed', value: missed.length },\n ])\n expect.soft(unmarked, 'forms that accepted an empty submit or marked no field').toEqual([])\n expect.soft(unexplained, 'fields marked invalid without a message tied to them').toBe(0)\n expect.soft(missed, 'forms where focus did not move to the first field in error').toEqual([])\n})\n```",
931
+ "hubWhen": {
932
+ "ERRORS": [
933
+ "field"
934
+ ]
935
+ }
936
+ },
937
+ {
938
+ "id": "ff-forms-live",
939
+ "type": "fitness-fn",
940
+ "label": "Form errors shown as decided",
941
+ "x": 1040,
942
+ "y": 1170,
943
+ "characteristic": "interaction-capability",
944
+ "scope": "holistic",
945
+ "cadence": "triggered",
946
+ "trigger": "pull-request",
947
+ "invocation": "automated",
948
+ "description": "A Playwright test submits each form of the main journeys empty (FORMS in tests/ux/journeys.ts) and reads what the page shows: A submit button kept disabled while the form is incomplete is clicked anyway, as a person would click it, and nothing happening counts as nothing marked. ux.forms.unmarked counts forms where no field was marked aria-invalid=\"true\"; ux.forms.unexplained counts fields so marked without a message tied to them by aria-describedby or aria-errormessage; ux.forms.summary.missing counts forms where focus did not land in a summary linking to every field in error (#id links), or the title does not start with \"Error: \". On a fresh form it then types one character into the field named in FORMS and counts ux.forms.premature when the field is marked invalid while still being typed in, and ux.forms.leave.missed when leaving it with Tab shows no error. Bind it with radical sense playwright tests/ux/form-errors.spec.ts and the conditions ux.forms.unmarked <= 0, ux.forms.unexplained <= 0, ux.forms.summary.missing <= 0, ux.forms.premature <= 0, ux.forms.leave.missed <= 0.\n\nThreshold: ux.forms.unmarked = 0, ux.forms.unexplained = 0, ux.forms.summary.missing = 0, ux.forms.premature = 0, ux.forms.leave.missed = 0 over the forms of the main journeys\n\nTool: Playwright (@playwright/test), measured by radical sense playwright\n\n```ts\n// tests/ux/form-errors.spec.ts: a plain Playwright test (1.50 or later), or measured with\n// radical sense playwright tests/ux/form-errors.spec.ts\nimport { mkdirSync, writeFileSync } from 'node:fs'\nimport { join } from 'node:path'\nimport { expect, test, type Page } from '@playwright/test'\nimport { FORMS } from './journeys' // [{ path: '/register', submit: 'Continue', field: 'Email address' }, …]\n\ntype Measurement = { metric: string; value: number; labels?: Record<string, string> }\n/** Writes what the test measured where radical sense playwright reads it; a plain run writes nothing. */\nfunction writeMetrics(file: string, measurements: Measurement[]): void {\n const dir = process.env.RADICAL_METRICS_DIR\n if (!dir) return\n mkdirSync(dir, { recursive: true })\n writeFileSync(join(dir, file), JSON.stringify({ format: 'radical-metrics', version: 1, source: file, at: new Date().toISOString(), measurements }, null, 1))\n}\n\n/** What the page shows after a submit that failed. */\nconst shown = (page: Page) => page.evaluate(() => {\n const invalid = [...document.querySelectorAll<HTMLElement>('[aria-invalid=\"true\"]')]\n const explained = (f: HTMLElement) => `${f.getAttribute('aria-describedby') ?? ''} ${f.getAttribute('aria-errormessage') ?? ''}`\n .split(/\\s+/).some((id) => id && document.getElementById(id)?.textContent?.trim())\n // the summary: the nearest element around the focus that links to every field in error, and holds none of them\n let box: Element | null = document.activeElement\n while (box && box !== document.body && !invalid.every((f) => box!.querySelector(`a[href=\"#${CSS.escape(f.id)}\"]`))) box = box.parentElement\n return {\n invalid: invalid.length,\n unexplained: invalid.filter((f) => !explained(f)).length,\n summarised: Boolean(invalid.length && box && box !== document.body && !box.contains(invalid[0]) && document.title.startsWith('Error: ')),\n firstFocused: Boolean(invalid.length) && invalid[0] === document.activeElement,\n }\n})\n\ntest('failed submits say what is wrong and where', async ({ page }) => {\n const unmarked: string[] = [], missed: string[] = [], premature: string[] = [], leaveMissed: string[] = []\n let unexplained = 0\n for (const form of FORMS) {\n await page.goto(form.path)\n const submit = page.getByRole('button', { name: form.submit, exact: true })\n await submit.click({ force: await submit.isDisabled() }) // a disabled button takes the click and does nothing, as for a person\n await page.locator('[aria-invalid=\"true\"]').first().waitFor({ state: 'attached', timeout: 5_000 }).catch(() => undefined)\n const after = await shown(page)\n if (!after.invalid) unmarked.push(form.path)\n unexplained += after.unexplained\n if (after.invalid && !after.summarised) missed.push(form.path)\n await page.goto(form.path)\n const field = page.getByLabel(form.field, { exact: true })\n await field.pressSequentially('a') // one character: the answer is not finished yet\n if ((await field.getAttribute('aria-invalid')) === 'true') premature.push(form.path)\n await page.keyboard.press('Tab') // leaving the field checks it\n if ((await field.getAttribute('aria-invalid')) !== 'true') leaveMissed.push(form.path)\n }\n writeMetrics('form-errors.json', [\n { metric: 'ux.forms.unmarked', value: unmarked.length },\n { metric: 'ux.forms.unexplained', value: unexplained },\n { metric: 'ux.forms.summary.missing', value: missed.length },\n { metric: 'ux.forms.premature', value: premature.length },\n { metric: 'ux.forms.leave.missed', value: leaveMissed.length },\n ])\n expect.soft(unmarked, 'forms that accepted an empty submit or marked no field').toEqual([])\n expect.soft(unexplained, 'fields marked invalid without a message tied to them').toBe(0)\n expect.soft(missed, 'forms without a focused error summary linking each field, or without \"Error: \" in the title').toEqual([])\n expect.soft(premature, 'fields marked invalid while still being typed in').toEqual([])\n expect.soft(leaveMissed, 'fields not checked when left').toEqual([])\n})\n```",
949
+ "hubWhen": {
950
+ "ERRORS": [
951
+ "live"
952
+ ]
953
+ }
954
+ },
955
+ {
956
+ "id": "ff-empty-guided",
957
+ "type": "fitness-fn",
958
+ "label": "Empty views explain themselves",
959
+ "x": 1040,
960
+ "y": 1300,
961
+ "characteristic": "interaction-capability",
962
+ "scope": "holistic",
963
+ "cadence": "triggered",
964
+ "trigger": "pull-request",
965
+ "invocation": "automated",
966
+ "description": "A Playwright test signs in as a freshly registered account with no data (a storageState the test setup writes) and opens each view that starts empty (EMPTY_VIEWS in tests/ux/journeys.ts: lists, tables, searches without a result, dashboards). It counts ux.empty.silent, views whose main content shows fewer than three words besides headings and table headers (visible text only, so text hidden for assistive technology or by CSS is not read, and a word has a letter: a lone \"+\" is none), and ux.empty.dead_ends, views without a visible link or button in the main content outside its navigation, and fails on either. Bind it with radical sense playwright tests/ux/empty-states.spec.ts and the conditions ux.empty.silent <= 0 and ux.empty.dead_ends <= 0.\n\nThreshold: ux.empty.silent = 0 and ux.empty.dead_ends = 0: every view that starts empty for a new account says why in at least three words besides its headings, and offers at least one link or button in its main content\n\nTool: Playwright (@playwright/test), measured by radical sense playwright\n\n```ts\n// tests/ux/empty-states.spec.ts: a plain Playwright test (1.50 or later), or measured with\n// radical sense playwright tests/ux/empty-states.spec.ts\nimport { mkdirSync, writeFileSync } from 'node:fs'\nimport { join } from 'node:path'\nimport { expect, test } from '@playwright/test'\nimport { EMPTY_VIEWS } from './journeys' // [{ path: '/orders' }, { path: '/search?q=zzzz' }, …]\n\ntest.use({ storageState: 'tests/ux/.auth/new-account.json' }) // a freshly registered account with no data\n\ntype Measurement = { metric: string; value: number; labels?: Record<string, string> }\n/** Writes what the test measured where radical sense playwright reads it; a plain run writes nothing. */\nfunction writeMetrics(file: string, measurements: Measurement[]): void {\n const dir = process.env.RADICAL_METRICS_DIR\n if (!dir) return\n mkdirSync(dir, { recursive: true })\n writeFileSync(join(dir, file), JSON.stringify({ format: 'radical-metrics', version: 1, source: file, at: new Date().toISOString(), measurements }, null, 1))\n}\n\ntest('empty views say why they are empty and what to do next', async ({ page }) => {\n const silent: string[] = [], deadEnds: string[] = []\n for (const { path } of EMPTY_VIEWS) {\n await page.goto(path)\n const view = await page.getByRole('main').evaluate((main) => {\n // the words shown besides headings and table headers: visible text only, a word has a letter (\"+\" is none)\n const skip = 'h1, h2, h3, h4, h5, h6, [role=\"heading\"], th, [role=\"columnheader\"], nav, script, style, [aria-hidden=\"true\"]'\n const words: string[] = []\n const walker = document.createTreeWalker(main, NodeFilter.SHOW_TEXT)\n for (let text = walker.nextNode(); text; text = walker.nextNode()) {\n const parent = text.parentElement\n if (!parent || parent.closest(skip) || !parent.checkVisibility()) continue\n words.push(...(text.textContent ?? '').split(/\\s+/).filter((w) => /\\p{L}/u.test(w)))\n }\n const actions = [...main.querySelectorAll<HTMLElement>('a[href], button')].filter((x) => !x.closest('nav') && x.checkVisibility())\n return { words: words.length, actions: actions.length }\n })\n if (view.words < 3) silent.push(path)\n if (!view.actions) deadEnds.push(path)\n }\n writeMetrics('empty-states.json', [\n { metric: 'ux.empty.silent', value: silent.length },\n { metric: 'ux.empty.dead_ends', value: deadEnds.length },\n ])\n expect.soft(silent, 'empty views that say nothing').toEqual([])\n expect.soft(deadEnds, 'empty views that offer no next step').toEqual([])\n})\n```",
967
+ "hubWhen": {
968
+ "EMPTY": [
969
+ "guided"
970
+ ]
971
+ }
972
+ },
973
+ {
974
+ "id": "ff-empty-plain",
975
+ "type": "fitness-fn",
976
+ "label": "Empty views explain themselves",
977
+ "x": 1040,
978
+ "y": 1430,
979
+ "characteristic": "interaction-capability",
980
+ "scope": "holistic",
981
+ "cadence": "triggered",
982
+ "trigger": "pull-request",
983
+ "invocation": "automated",
984
+ "description": "A Playwright test signs in as a freshly registered account with no data (a storageState the test setup writes) and opens each view that starts empty (EMPTY_VIEWS in tests/ux/journeys.ts: lists, tables, searches without a result, dashboards). It counts ux.empty.silent, views whose main content shows fewer than three words besides headings and table headers (visible text only, so text hidden for assistive technology or by CSS is not read, and a word has a letter: a lone \"+\" is none), and ux.empty.dead_ends, views without a visible link or button in the main content outside its navigation, and fails on a silent view. Bind it with radical sense playwright tests/ux/empty-states.spec.ts and the condition ux.empty.silent <= 0.\n\nThreshold: ux.empty.silent = 0: every view that starts empty for a new account says so in at least three words besides its headings and table headers\n\nTool: Playwright (@playwright/test), measured by radical sense playwright\n\n```ts\n// tests/ux/empty-states.spec.ts: a plain Playwright test (1.50 or later), or measured with\n// radical sense playwright tests/ux/empty-states.spec.ts\nimport { mkdirSync, writeFileSync } from 'node:fs'\nimport { join } from 'node:path'\nimport { expect, test } from '@playwright/test'\nimport { EMPTY_VIEWS } from './journeys' // [{ path: '/orders' }, { path: '/search?q=zzzz' }, …]\n\ntest.use({ storageState: 'tests/ux/.auth/new-account.json' }) // a freshly registered account with no data\n\ntype Measurement = { metric: string; value: number; labels?: Record<string, string> }\n/** Writes what the test measured where radical sense playwright reads it; a plain run writes nothing. */\nfunction writeMetrics(file: string, measurements: Measurement[]): void {\n const dir = process.env.RADICAL_METRICS_DIR\n if (!dir) return\n mkdirSync(dir, { recursive: true })\n writeFileSync(join(dir, file), JSON.stringify({ format: 'radical-metrics', version: 1, source: file, at: new Date().toISOString(), measurements }, null, 1))\n}\n\ntest('empty views say why they are empty', async ({ page }) => {\n const silent: string[] = [], deadEnds: string[] = []\n for (const { path } of EMPTY_VIEWS) {\n await page.goto(path)\n const view = await page.getByRole('main').evaluate((main) => {\n // the words shown besides headings and table headers: visible text only, a word has a letter (\"+\" is none)\n const skip = 'h1, h2, h3, h4, h5, h6, [role=\"heading\"], th, [role=\"columnheader\"], nav, script, style, [aria-hidden=\"true\"]'\n const words: string[] = []\n const walker = document.createTreeWalker(main, NodeFilter.SHOW_TEXT)\n for (let text = walker.nextNode(); text; text = walker.nextNode()) {\n const parent = text.parentElement\n if (!parent || parent.closest(skip) || !parent.checkVisibility()) continue\n words.push(...(text.textContent ?? '').split(/\\s+/).filter((w) => /\\p{L}/u.test(w)))\n }\n const actions = [...main.querySelectorAll<HTMLElement>('a[href], button')].filter((x) => !x.closest('nav') && x.checkVisibility())\n return { words: words.length, actions: actions.length }\n })\n if (view.words < 3) silent.push(path)\n if (!view.actions) deadEnds.push(path)\n }\n writeMetrics('empty-states.json', [\n { metric: 'ux.empty.silent', value: silent.length },\n { metric: 'ux.empty.dead_ends', value: deadEnds.length },\n ])\n expect.soft(silent, 'empty views that say nothing').toEqual([])\n})\n```",
985
+ "hubWhen": {
986
+ "EMPTY": [
987
+ "plain"
988
+ ]
989
+ }
990
+ },
991
+ {
992
+ "id": "ff-heuristic-review",
993
+ "type": "fitness-fn",
994
+ "label": "Heuristic review held and acted on",
995
+ "x": 1040,
996
+ "y": 1560,
997
+ "characteristic": "interaction-capability",
998
+ "scope": "holistic",
999
+ "cadence": "temporal",
1000
+ "every": "{{REVIEW_DAYS}}d",
1001
+ "invocation": "manual",
1002
+ "description": "Every {{REVIEW_DAYS}} days, and before each major release, three people (a designer, a developer and someone who knows the users' work; not the authors of the screens alone) each walk the main journeys alone against the heuristics and principles below, then merge their findings, rate each on Nielsen's severity scale (the mean of the three ratings) and file an issue for every finding rated 3 or 4. The record is committed under docs/usability/reviews/, one file per review, named by its date; the release checklist asks for the latest record and for its 3s and 4s to be closed.\n\nThreshold: A review record no older than {{REVIEW_DAYS}} days (and one since the last major release), from three evaluators, with every finding rated; 0 findings rated 3 or 4 open at a release\n\nTool: A review record in the repository (Markdown), three evaluators\n\n```md\n<!-- docs/usability/reviews/2026-11-24.md: one file per review; the next is due {{REVIEW_DAYS}} days later -->\n# Heuristic review, 2026-11-24\n\nBuild reviewed: v1.8.0 (commit abc1234)\nJourneys: sign up, place an order, change the delivery address\nEvaluators, each alone first: A. Designer, B. Developer, C. Support lead\n\n| No. | Where (page, step) | Heuristic or principle | What happens | Severity (mean of 3) | Issue | Fixed in |\n|---|---|---|---|---|---|---|\n| 1 | /checkout, address | H5 Error prevention; ISO: use error robustness | A typo in the postcode is found only after payment | 3 | #412 | |\n| 2 | /orders | H1 Visibility of system status | The list shows nothing while it loads | 2 | #413 | |\n\nHeuristics (Nielsen): H1 Visibility of system status; H2 Match between the system and the real world; H3 User control and freedom; H4 Consistency and standards; H5 Error prevention; H6 Recognition rather than recall; H7 Flexibility and efficiency of use; H8 Aesthetic and minimalist design; H9 Help users recognize, diagnose, and recover from errors; H10 Help and documentation.\nPrinciples (ISO 9241-110:2020): suitability for the user's tasks; self-descriptiveness; conformity with user expectations; learnability; controllability; use error robustness; user engagement.\nSeverity (Nielsen): 0 not a problem, 1 cosmetic, 2 minor, 3 major (fix before the release), 4 catastrophe (fix before the release).\nOutcome: findings rated 3 or 4: 1, all with an issue; release blocked until #412 is closed.\n```"
1003
+ }
1004
+ ],
1005
+ "relations": [
1006
+ {
1007
+ "id": "req-nav-shared--derives--need",
1008
+ "sourceId": "req-nav-shared",
1009
+ "targetId": "need",
1010
+ "relationType": "derives",
1011
+ "quote": "People use this front end to get their tasks done, most without training. They must find their way with navigation that stays the same from page to page, links that are neither repeated nor vague (not the same link five times on one page, not five links named \"Read more\"), forms that say what went wrong and where, and empty views that say why they are empty; and the usability of the whole must be reviewed against recognised principles on a schedule, not only after users complain. The checks assume Playwright tests under tests/ux with tests/ux/journeys.ts listing the main journeys' pages in the order a user walks them (PAGES: path, and the section where sections have their own navigation), their forms (FORMS: path, the submit button's name, the label of one field with a format to check) and the views that start empty for a new account (EMPTY_VIEWS: path); playwright.config sets the baseURL and, for pages behind sign-in, a storageState. Each test fails on its own in a plain run and, run by radical sense playwright, writes what it measured as a radical-metrics/1 file into RADICAL_METRICS_DIR."
1012
+ },
1013
+ {
1014
+ "id": "req-nav-sections--derives--need",
1015
+ "sourceId": "req-nav-sections",
1016
+ "targetId": "need",
1017
+ "relationType": "derives",
1018
+ "quote": "People use this front end to get their tasks done, most without training. They must find their way with navigation that stays the same from page to page, links that are neither repeated nor vague (not the same link five times on one page, not five links named \"Read more\"), forms that say what went wrong and where, and empty views that say why they are empty; and the usability of the whole must be reviewed against recognised principles on a schedule, not only after users complain. The checks assume Playwright tests under tests/ux with tests/ux/journeys.ts listing the main journeys' pages in the order a user walks them (PAGES: path, and the section where sections have their own navigation), their forms (FORMS: path, the submit button's name, the label of one field with a format to check) and the views that start empty for a new account (EMPTY_VIEWS: path); playwright.config sets the baseURL and, for pages behind sign-in, a storageState. Each test fails on its own in a plain run and, run by radical sense playwright, writes what it measured as a radical-metrics/1 file into RADICAL_METRICS_DIR."
1019
+ },
1020
+ {
1021
+ "id": "req-nav-task--derives--need",
1022
+ "sourceId": "req-nav-task",
1023
+ "targetId": "need",
1024
+ "relationType": "derives",
1025
+ "quote": "People use this front end to get their tasks done, most without training. They must find their way with navigation that stays the same from page to page, links that are neither repeated nor vague (not the same link five times on one page, not five links named \"Read more\"), forms that say what went wrong and where, and empty views that say why they are empty; and the usability of the whole must be reviewed against recognised principles on a schedule, not only after users complain. The checks assume Playwright tests under tests/ux with tests/ux/journeys.ts listing the main journeys' pages in the order a user walks them (PAGES: path, and the section where sections have their own navigation), their forms (FORMS: path, the submit button's name, the label of one field with a format to check) and the views that start empty for a new account (EMPTY_VIEWS: path); playwright.config sets the baseURL and, for pages behind sign-in, a storageState. Each test fails on its own in a plain run and, run by radical sense playwright, writes what it measured as a radical-metrics/1 file into RADICAL_METRICS_DIR."
1026
+ },
1027
+ {
1028
+ "id": "req-link-repeat-once--derives--need",
1029
+ "sourceId": "req-link-repeat-once",
1030
+ "targetId": "need",
1031
+ "relationType": "derives",
1032
+ "quote": "People use this front end to get their tasks done, most without training. They must find their way with navigation that stays the same from page to page, links that are neither repeated nor vague (not the same link five times on one page, not five links named \"Read more\"), forms that say what went wrong and where, and empty views that say why they are empty; and the usability of the whole must be reviewed against recognised principles on a schedule, not only after users complain. The checks assume Playwright tests under tests/ux with tests/ux/journeys.ts listing the main journeys' pages in the order a user walks them (PAGES: path, and the section where sections have their own navigation), their forms (FORMS: path, the submit button's name, the label of one field with a format to check) and the views that start empty for a new account (EMPTY_VIEWS: path); playwright.config sets the baseURL and, for pages behind sign-in, a storageState. Each test fails on its own in a plain run and, run by radical sense playwright, writes what it measured as a radical-metrics/1 file into RADICAL_METRICS_DIR."
1033
+ },
1034
+ {
1035
+ "id": "req-link-repeat-limit--derives--need",
1036
+ "sourceId": "req-link-repeat-limit",
1037
+ "targetId": "need",
1038
+ "relationType": "derives",
1039
+ "quote": "People use this front end to get their tasks done, most without training. They must find their way with navigation that stays the same from page to page, links that are neither repeated nor vague (not the same link five times on one page, not five links named \"Read more\"), forms that say what went wrong and where, and empty views that say why they are empty; and the usability of the whole must be reviewed against recognised principles on a schedule, not only after users complain. The checks assume Playwright tests under tests/ux with tests/ux/journeys.ts listing the main journeys' pages in the order a user walks them (PAGES: path, and the section where sections have their own navigation), their forms (FORMS: path, the submit button's name, the label of one field with a format to check) and the views that start empty for a new account (EMPTY_VIEWS: path); playwright.config sets the baseURL and, for pages behind sign-in, a storageState. Each test fails on its own in a plain run and, run by radical sense playwright, writes what it measured as a radical-metrics/1 file into RADICAL_METRICS_DIR."
1040
+ },
1041
+ {
1042
+ "id": "req-link-text-unique--derives--need",
1043
+ "sourceId": "req-link-text-unique",
1044
+ "targetId": "need",
1045
+ "relationType": "derives",
1046
+ "quote": "People use this front end to get their tasks done, most without training. They must find their way with navigation that stays the same from page to page, links that are neither repeated nor vague (not the same link five times on one page, not five links named \"Read more\"), forms that say what went wrong and where, and empty views that say why they are empty; and the usability of the whole must be reviewed against recognised principles on a schedule, not only after users complain. The checks assume Playwright tests under tests/ux with tests/ux/journeys.ts listing the main journeys' pages in the order a user walks them (PAGES: path, and the section where sections have their own navigation), their forms (FORMS: path, the submit button's name, the label of one field with a format to check) and the views that start empty for a new account (EMPTY_VIEWS: path); playwright.config sets the baseURL and, for pages behind sign-in, a storageState. Each test fails on its own in a plain run and, run by radical sense playwright, writes what it measured as a radical-metrics/1 file into RADICAL_METRICS_DIR."
1047
+ },
1048
+ {
1049
+ "id": "req-link-text-context--derives--need",
1050
+ "sourceId": "req-link-text-context",
1051
+ "targetId": "need",
1052
+ "relationType": "derives",
1053
+ "quote": "People use this front end to get their tasks done, most without training. They must find their way with navigation that stays the same from page to page, links that are neither repeated nor vague (not the same link five times on one page, not five links named \"Read more\"), forms that say what went wrong and where, and empty views that say why they are empty; and the usability of the whole must be reviewed against recognised principles on a schedule, not only after users complain. The checks assume Playwright tests under tests/ux with tests/ux/journeys.ts listing the main journeys' pages in the order a user walks them (PAGES: path, and the section where sections have their own navigation), their forms (FORMS: path, the submit button's name, the label of one field with a format to check) and the views that start empty for a new account (EMPTY_VIEWS: path); playwright.config sets the baseURL and, for pages behind sign-in, a storageState. Each test fails on its own in a plain run and, run by radical sense playwright, writes what it measured as a radical-metrics/1 file into RADICAL_METRICS_DIR."
1054
+ },
1055
+ {
1056
+ "id": "req-errors-summary--derives--need",
1057
+ "sourceId": "req-errors-summary",
1058
+ "targetId": "need",
1059
+ "relationType": "derives",
1060
+ "quote": "People use this front end to get their tasks done, most without training. They must find their way with navigation that stays the same from page to page, links that are neither repeated nor vague (not the same link five times on one page, not five links named \"Read more\"), forms that say what went wrong and where, and empty views that say why they are empty; and the usability of the whole must be reviewed against recognised principles on a schedule, not only after users complain. The checks assume Playwright tests under tests/ux with tests/ux/journeys.ts listing the main journeys' pages in the order a user walks them (PAGES: path, and the section where sections have their own navigation), their forms (FORMS: path, the submit button's name, the label of one field with a format to check) and the views that start empty for a new account (EMPTY_VIEWS: path); playwright.config sets the baseURL and, for pages behind sign-in, a storageState. Each test fails on its own in a plain run and, run by radical sense playwright, writes what it measured as a radical-metrics/1 file into RADICAL_METRICS_DIR."
1061
+ },
1062
+ {
1063
+ "id": "req-errors-field--derives--need",
1064
+ "sourceId": "req-errors-field",
1065
+ "targetId": "need",
1066
+ "relationType": "derives",
1067
+ "quote": "People use this front end to get their tasks done, most without training. They must find their way with navigation that stays the same from page to page, links that are neither repeated nor vague (not the same link five times on one page, not five links named \"Read more\"), forms that say what went wrong and where, and empty views that say why they are empty; and the usability of the whole must be reviewed against recognised principles on a schedule, not only after users complain. The checks assume Playwright tests under tests/ux with tests/ux/journeys.ts listing the main journeys' pages in the order a user walks them (PAGES: path, and the section where sections have their own navigation), their forms (FORMS: path, the submit button's name, the label of one field with a format to check) and the views that start empty for a new account (EMPTY_VIEWS: path); playwright.config sets the baseURL and, for pages behind sign-in, a storageState. Each test fails on its own in a plain run and, run by radical sense playwright, writes what it measured as a radical-metrics/1 file into RADICAL_METRICS_DIR."
1068
+ },
1069
+ {
1070
+ "id": "req-errors-live--derives--need",
1071
+ "sourceId": "req-errors-live",
1072
+ "targetId": "need",
1073
+ "relationType": "derives",
1074
+ "quote": "People use this front end to get their tasks done, most without training. They must find their way with navigation that stays the same from page to page, links that are neither repeated nor vague (not the same link five times on one page, not five links named \"Read more\"), forms that say what went wrong and where, and empty views that say why they are empty; and the usability of the whole must be reviewed against recognised principles on a schedule, not only after users complain. The checks assume Playwright tests under tests/ux with tests/ux/journeys.ts listing the main journeys' pages in the order a user walks them (PAGES: path, and the section where sections have their own navigation), their forms (FORMS: path, the submit button's name, the label of one field with a format to check) and the views that start empty for a new account (EMPTY_VIEWS: path); playwright.config sets the baseURL and, for pages behind sign-in, a storageState. Each test fails on its own in a plain run and, run by radical sense playwright, writes what it measured as a radical-metrics/1 file into RADICAL_METRICS_DIR."
1075
+ },
1076
+ {
1077
+ "id": "req-empty-guided--derives--need",
1078
+ "sourceId": "req-empty-guided",
1079
+ "targetId": "need",
1080
+ "relationType": "derives",
1081
+ "quote": "People use this front end to get their tasks done, most without training. They must find their way with navigation that stays the same from page to page, links that are neither repeated nor vague (not the same link five times on one page, not five links named \"Read more\"), forms that say what went wrong and where, and empty views that say why they are empty; and the usability of the whole must be reviewed against recognised principles on a schedule, not only after users complain. The checks assume Playwright tests under tests/ux with tests/ux/journeys.ts listing the main journeys' pages in the order a user walks them (PAGES: path, and the section where sections have their own navigation), their forms (FORMS: path, the submit button's name, the label of one field with a format to check) and the views that start empty for a new account (EMPTY_VIEWS: path); playwright.config sets the baseURL and, for pages behind sign-in, a storageState. Each test fails on its own in a plain run and, run by radical sense playwright, writes what it measured as a radical-metrics/1 file into RADICAL_METRICS_DIR."
1082
+ },
1083
+ {
1084
+ "id": "req-empty-plain--derives--need",
1085
+ "sourceId": "req-empty-plain",
1086
+ "targetId": "need",
1087
+ "relationType": "derives",
1088
+ "quote": "People use this front end to get their tasks done, most without training. They must find their way with navigation that stays the same from page to page, links that are neither repeated nor vague (not the same link five times on one page, not five links named \"Read more\"), forms that say what went wrong and where, and empty views that say why they are empty; and the usability of the whole must be reviewed against recognised principles on a schedule, not only after users complain. The checks assume Playwright tests under tests/ux with tests/ux/journeys.ts listing the main journeys' pages in the order a user walks them (PAGES: path, and the section where sections have their own navigation), their forms (FORMS: path, the submit button's name, the label of one field with a format to check) and the views that start empty for a new account (EMPTY_VIEWS: path); playwright.config sets the baseURL and, for pages behind sign-in, a storageState. Each test fails on its own in a plain run and, run by radical sense playwright, writes what it measured as a radical-metrics/1 file into RADICAL_METRICS_DIR."
1089
+ },
1090
+ {
1091
+ "id": "req-heuristic-review--derives--need",
1092
+ "sourceId": "req-heuristic-review",
1093
+ "targetId": "need",
1094
+ "relationType": "derives",
1095
+ "quote": "People use this front end to get their tasks done, most without training. They must find their way with navigation that stays the same from page to page, links that are neither repeated nor vague (not the same link five times on one page, not five links named \"Read more\"), forms that say what went wrong and where, and empty views that say why they are empty; and the usability of the whole must be reviewed against recognised principles on a schedule, not only after users complain. The checks assume Playwright tests under tests/ux with tests/ux/journeys.ts listing the main journeys' pages in the order a user walks them (PAGES: path, and the section where sections have their own navigation), their forms (FORMS: path, the submit button's name, the label of one field with a format to check) and the views that start empty for a new account (EMPTY_VIEWS: path); playwright.config sets the baseURL and, for pages behind sign-in, a storageState. Each test fails on its own in a plain run and, run by radical sense playwright, writes what it measured as a radical-metrics/1 file into RADICAL_METRICS_DIR."
1096
+ },
1097
+ {
1098
+ "id": "sc-nav-shared--verifies--req-nav-shared",
1099
+ "sourceId": "sc-nav-shared",
1100
+ "targetId": "req-nav-shared",
1101
+ "relationType": "verifies"
1102
+ },
1103
+ {
1104
+ "id": "sc-nav-sections--verifies--req-nav-sections",
1105
+ "sourceId": "sc-nav-sections",
1106
+ "targetId": "req-nav-sections",
1107
+ "relationType": "verifies"
1108
+ },
1109
+ {
1110
+ "id": "sc-nav-task--verifies--req-nav-task",
1111
+ "sourceId": "sc-nav-task",
1112
+ "targetId": "req-nav-task",
1113
+ "relationType": "verifies"
1114
+ },
1115
+ {
1116
+ "id": "sc-link-repeat-once--verifies--req-link-repeat-once",
1117
+ "sourceId": "sc-link-repeat-once",
1118
+ "targetId": "req-link-repeat-once",
1119
+ "relationType": "verifies"
1120
+ },
1121
+ {
1122
+ "id": "sc-link-repeat-limit--verifies--req-link-repeat-limit",
1123
+ "sourceId": "sc-link-repeat-limit",
1124
+ "targetId": "req-link-repeat-limit",
1125
+ "relationType": "verifies"
1126
+ },
1127
+ {
1128
+ "id": "sc-link-text-unique--verifies--req-link-text-unique",
1129
+ "sourceId": "sc-link-text-unique",
1130
+ "targetId": "req-link-text-unique",
1131
+ "relationType": "verifies"
1132
+ },
1133
+ {
1134
+ "id": "sc-link-text-context--verifies--req-link-text-context",
1135
+ "sourceId": "sc-link-text-context",
1136
+ "targetId": "req-link-text-context",
1137
+ "relationType": "verifies"
1138
+ },
1139
+ {
1140
+ "id": "sc-errors-summary--verifies--req-errors-summary",
1141
+ "sourceId": "sc-errors-summary",
1142
+ "targetId": "req-errors-summary",
1143
+ "relationType": "verifies"
1144
+ },
1145
+ {
1146
+ "id": "sc-errors-field--verifies--req-errors-field",
1147
+ "sourceId": "sc-errors-field",
1148
+ "targetId": "req-errors-field",
1149
+ "relationType": "verifies"
1150
+ },
1151
+ {
1152
+ "id": "sc-errors-live--verifies--req-errors-live",
1153
+ "sourceId": "sc-errors-live",
1154
+ "targetId": "req-errors-live",
1155
+ "relationType": "verifies"
1156
+ },
1157
+ {
1158
+ "id": "sc-empty-guided--verifies--req-empty-guided",
1159
+ "sourceId": "sc-empty-guided",
1160
+ "targetId": "req-empty-guided",
1161
+ "relationType": "verifies"
1162
+ },
1163
+ {
1164
+ "id": "sc-empty-plain--verifies--req-empty-plain",
1165
+ "sourceId": "sc-empty-plain",
1166
+ "targetId": "req-empty-plain",
1167
+ "relationType": "verifies"
1168
+ },
1169
+ {
1170
+ "id": "sc-heuristic-review--verifies--req-heuristic-review",
1171
+ "sourceId": "sc-heuristic-review",
1172
+ "targetId": "req-heuristic-review",
1173
+ "relationType": "verifies"
1174
+ },
1175
+ {
1176
+ "id": "ff-nav-shared--implements--adr-nav-shared",
1177
+ "sourceId": "ff-nav-shared",
1178
+ "targetId": "adr-nav-shared",
1179
+ "relationType": "implements"
1180
+ },
1181
+ {
1182
+ "id": "ff-nav-sections--implements--adr-nav-sections",
1183
+ "sourceId": "ff-nav-sections",
1184
+ "targetId": "adr-nav-sections",
1185
+ "relationType": "implements"
1186
+ },
1187
+ {
1188
+ "id": "ff-nav-task--implements--adr-nav-task",
1189
+ "sourceId": "ff-nav-task",
1190
+ "targetId": "adr-nav-task",
1191
+ "relationType": "implements"
1192
+ },
1193
+ {
1194
+ "id": "ff-links-repeated-once--implements--adr-links-once",
1195
+ "sourceId": "ff-links-repeated-once",
1196
+ "targetId": "adr-links-once",
1197
+ "relationType": "implements"
1198
+ },
1199
+ {
1200
+ "id": "ff-links-repeated-limit--implements--adr-links-limit",
1201
+ "sourceId": "ff-links-repeated-limit",
1202
+ "targetId": "adr-links-limit",
1203
+ "relationType": "implements"
1204
+ },
1205
+ {
1206
+ "id": "ff-link-texts-unique--implements--adr-links-once",
1207
+ "sourceId": "ff-link-texts-unique",
1208
+ "targetId": "adr-links-once",
1209
+ "relationType": "implements"
1210
+ },
1211
+ {
1212
+ "id": "ff-link-texts-unique--implements--adr-links-limit",
1213
+ "sourceId": "ff-link-texts-unique",
1214
+ "targetId": "adr-links-limit",
1215
+ "relationType": "implements"
1216
+ },
1217
+ {
1218
+ "id": "ff-link-texts-context--implements--adr-links-once",
1219
+ "sourceId": "ff-link-texts-context",
1220
+ "targetId": "adr-links-once",
1221
+ "relationType": "implements"
1222
+ },
1223
+ {
1224
+ "id": "ff-link-texts-context--implements--adr-links-limit",
1225
+ "sourceId": "ff-link-texts-context",
1226
+ "targetId": "adr-links-limit",
1227
+ "relationType": "implements"
1228
+ },
1229
+ {
1230
+ "id": "ff-forms-summary--implements--adr-forms-summary",
1231
+ "sourceId": "ff-forms-summary",
1232
+ "targetId": "adr-forms-summary",
1233
+ "relationType": "implements"
1234
+ },
1235
+ {
1236
+ "id": "ff-forms-field--implements--adr-forms-field",
1237
+ "sourceId": "ff-forms-field",
1238
+ "targetId": "adr-forms-field",
1239
+ "relationType": "implements"
1240
+ },
1241
+ {
1242
+ "id": "ff-forms-live--implements--adr-forms-live",
1243
+ "sourceId": "ff-forms-live",
1244
+ "targetId": "adr-forms-live",
1245
+ "relationType": "implements"
1246
+ },
1247
+ {
1248
+ "id": "ff-empty-guided--implements--adr-usability",
1249
+ "sourceId": "ff-empty-guided",
1250
+ "targetId": "adr-usability",
1251
+ "relationType": "implements"
1252
+ },
1253
+ {
1254
+ "id": "ff-empty-plain--implements--adr-usability",
1255
+ "sourceId": "ff-empty-plain",
1256
+ "targetId": "adr-usability",
1257
+ "relationType": "implements"
1258
+ },
1259
+ {
1260
+ "id": "ff-heuristic-review--implements--adr-usability",
1261
+ "sourceId": "ff-heuristic-review",
1262
+ "targetId": "adr-usability",
1263
+ "relationType": "implements"
1264
+ }
1265
+ ]
1266
+ }