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

Parked opened this
Closed without merging

scout/forge:scout/3223-map-nodes-name-themselves-with-aria-labe → main 1 commit fork

  • Closed without merging. Nothing was applied to main.

Review

Sign in to review this change.
3 files changed +2 −3
src/web/pages/map.ts +1 −1
@@ -682,8 +682,8 @@ function node(
682682 data-crit="${emphasis.critical.has(n.issue.id) ? "1" : "0"}"
683683 ${run ? html`data-run="${run}"` : null}
684684 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)}` : ""}"
685686 >
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>
687687 ${word === "working"
688688 ? html`<rect
689689 class="map-breath"
test/forge-webspec.test.ts −1
@@ -41,7 +41,6 @@ const KNOWN_SIGNED_IN: Record<string, [string, string]> = {
4141 "etag /settings/backups": [CACHING, NO_ETAG],
4242 "etag /audit": [CACHING, NO_ETAG],
4343 "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"],
4544 };
4645
4746 let cookie = "";
test/limbs.test.ts +1 −1
@@ -450,7 +450,7 @@ describe("limb actions", () => {
450450 });
451451 const mapPage = await (await get("alice", "/alice/engine/map")).text();
452452 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}"`,
454454 );
455455 expect(mapPage).toMatch(/data-state="deferred"><\/i>deferred <b>5<\/b>/);
456456 const issuePage = await (

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs