Public: anyone can read this; the crew can change it.
/map nodes name themselves with aria-label, not SVG <title>, and every test that read the <title> reads the new name #3226
scout/forge:scout/3223-map-nodes-name-themselves-with-aria-labe → main 1 commit fork
3 files
changed +2
−3
src/web/pages/map.ts +1 −1
| @@ -682,8 +682,8 @@ function node( | ||
| 682 | 682 | data-crit="${emphasis.critical.has(n.issue.id) ? "1" : "0"}" |
| 683 | 683 | ${run ? html`data-run="${run}"` : null} |
| 684 | 684 | href="${issueHref(base, n.issue.number)}" |
| 685 | aria-label="${number} ${n.issue.title} — ${word}${word === "held" ? ` by ${emphasis.marks.onHold.get(n.issue.id)}` : word === "deferred" ? `: ${emphasis.marks.deferred.get(n.issue.id)}` : emphasis.marks.why.has(n.issue.id) ? `: ${emphasis.marks.why.get(n.issue.id)}` : ""}" | |
| 685 | 686 | > |
| 686 | <title>${number} ${n.issue.title} — ${word}${word === "held" ? ` by ${emphasis.marks.onHold.get(n.issue.id)}` : word === "deferred" ? `: ${emphasis.marks.deferred.get(n.issue.id)}` : emphasis.marks.why.has(n.issue.id) ? `: ${emphasis.marks.why.get(n.issue.id)}` : ""}</title> | |
| 687 | 687 | ${word === "working" |
| 688 | 688 | ? html`<rect |
| 689 | 689 | class="map-breath" |
test/forge-webspec.test.ts −1
| @@ -41,7 +41,6 @@ const KNOWN_SIGNED_IN: Record<string, [string, string]> = { | ||
| 41 | 41 | "etag /settings/backups": [CACHING, NO_ETAG], |
| 42 | 42 | "etag /audit": [CACHING, NO_ETAG], |
| 43 | 43 | "etag /fleet/graph": [CACHING, NO_ETAG], |
| 44 | "title /map": ["https://specification.website/#title", "each map node is an inline SVG element whose <title> is its tooltip and accessible name, beside the page's own"], | |
| 45 | 44 | }; |
| 46 | 45 | |
| 47 | 46 | let cookie = ""; |
test/limbs.test.ts +1 −1
| @@ -450,7 +450,7 @@ describe("limb actions", () => { | ||
| 450 | 450 | }); |
| 451 | 451 | const mapPage = await (await get("alice", "/alice/engine/map")).text(); |
| 452 | 452 | expect(mapPage).toContain( |
| 453 | `<title>#${extra.number} One home: the footer — deferred: ${through}</title>`, | |
| 453 | `aria-label="#${extra.number} One home: the footer — deferred: ${through}"`, | |
| 454 | 454 | ); |
| 455 | 455 | expect(mapPage).toMatch(/data-state="deferred"><\/i>deferred <b>5<\/b>/); |
| 456 | 456 | const issuePage = await ( |
new above
offline