You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f6cab8e
Browse filesBrowse the repository at this point in the historyBrowse files
Record the overlay audit as unfinished, with what was measured
overlay-audit was widened with the rest and is reverted. At 150 screens it
never returned, and four attempts to speed it up changed nothing material.
The reason is a measurement I skipped: the nine-page version takes 525 seconds
too, about 58 a page. The audit has always been slow and nobody had timed it,
so I spent four rounds fixing a widening that was never the problem. Make it
fast, then widen it.
What is known is in its header so the next attempt starts from evidence:
navigation is 203ms a screen and not the cost, checkDialogs on /organization
alone is 31 seconds, axe was being injected per dialog rather than per page
but fixing that changed nothing, and a Promise.race budget resolves the race
while leaving the slow work running behind it.
It is the only audit still carrying a hardcoded page list. The README says so
rather than letting "no audit hardcodes its pages" stand at 95% true.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: bin/design/README.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -293,6 +293,28 @@ screens that a single-role pass had never visited.
293
293
One definition of each check, with the scope as an argument: a second script for the thorough run
294
294
would be a copy, and a copy drifts.
295
295
296
+
**Almost no audit here carries a list of pages any more.** Three exceptions: `audit.js` takes a path
297
+
on the command line, `audit-selftest.js` uses one fixture page because it is testing the checks
298
+
rather than the app, and **`overlay-audit.js` is unfinished** — it was widened and reverted, because
299
+
it takes 58 seconds a page and would need over two hours. That is not a consequence of the widening:
300
+
its nine-page version takes 525 seconds too, and nobody had ever measured it. Make it fast, then
301
+
widen it; the evidence is in its header comment.
302
+
303
+
Getting there widened seven audits and found four things:
304
+
305
+
|||
306
+
| --- | --- |
307
+
|`button-audit`| Six real violations on show pages its list of index pages never visited. `/donations/1` and `/purchases/1` emitted the primary action second; `/requests/1` gave the last slot to the destructive Cancel — the fault reported for `/product_drives` and fixed there but not here |
308
+
|`route-targets.rb`|**The enumerator itself was missing a screen.**`SKIP_ACTION` matches on the action name alone, so `inventory` — there to skip a storage-locations partial — also skipped `items#inventory`, a full screen in the item catalogue's tab strip. Every audit built on the file was blind to it |
309
+
|`sweep.js`| Deleted. `route-sweep.js` performs every one of its checks, so keeping it was keeping a hardcoded list beside the thing built to replace it |
310
+
|`table-audit`| Its list still named `/users`, deleted in August |
311
+
312
+
And three findings that were the audits' fault rather than the app's, each confirmed by measuring
313
+
before changing anything: a disclosure trigger inside a collapsed accordion has a zero-size rect and
314
+
so matches no grid column; a page can display a tab strip without being one of its tabs; and
315
+
`/partners/1/approve_application` redirects to `/partners` carrying a flash bar, which puts the strip
316
+
72px lower.
317
+
296
318
`targets.js` is the seam between the audits and the application, and the only file that knows this
297
319
is a Rails app. It supplies the list of screens, the three roles, `signIn` and `visit`.
0 commit comments