diff --git a/docs/design.md b/docs/design.md index b26f276..98c72bb 100644 --- a/docs/design.md +++ b/docs/design.md @@ -250,7 +250,7 @@ package of the redesign that builds it. Anything not in this table does not anim | M1 | Every page | Cross-document view transition, root crossfade 220ms | continuity | none (as today) | WP2 | | M2 | Home → `/mcp/`, `/standards/` → spec, `/explorer/` → scenario | Shared `view-transition-name` on the data view (matrix plate from `MatrixThumb.astro` as `matrix`, map; on the explorer, the scenario title into the page h1) so it morphs instead of crossfading | "this is the same object, larger" | none | WP3, WP5, WP6 | | M3 | Home facts, server page facts, spec page facts (`Facts.astro`) | Count-up from 0 to the value, 600ms, once, when 50% in view, tabular figures | "these are live numbers" | value rendered at once | WP3 | -| M4 | Standards map, decorative plate | Highlighted path draws in (`stroke-dashoffset`), 1200ms, halo fades after, once on load | "follow this path" | path shown complete | WP5, WP8 | +| M4 | Decorative plate | Highlighted path draws in (`stroke-dashoffset`), 1200ms, halo fades after, once on load. The standards map dropped it in R-12: its spine is two or three short edges, so the draw read as a glitch, not a path; the spine is drawn complete at full strength | "follow this path" | path shown complete | WP8 | | M5 | Explorer chain | Per step: the sender and receiver light up in the actor head, the current arrow draws in (300ms, ease-out), the body fades up 8px (220ms); earlier steps keep a quieter arrow and later ones a hairline, in colour, not opacity, so text keeps its contrast | "you are here" | arrow and body shown, highlight and dimming applied without transition | WP6, R-08 | | M6 | Explorer chain | One scene clock (a Web Animations API timeline) holds the playhead; Play, Pause, Previous, Next, the scrub bar, a click on a step or a log line and the arrow keys all move it. Steps advance every 2.5 s. Auto-advance (amended by review follow-up 8): armed once per page, it starts when the chain has sat in view for 1 s with no input, and stops for good on hover, touch, focus, scroll or any key; it never restarts by itself and never starts with a step in the URL. Play, once pressed, pauses on any click, key or scroll | guided reading | Play button hidden, no auto-advance; the scrub bar and the step buttons still seek | WP6, R-08 | | M7 | Explorer token view | On step change, claims that differ from the previous hop get a 2px `--signal` rail that fades to `--rule` over 480ms, starting when the message has drawn (300ms) and 40ms apart | "this is what changed in the token" | rail shown without fade | WP6, R-08 | @@ -265,6 +265,7 @@ package of the redesign that builds it. Anything not in this table does not anim | M16 | Theme toggle | Icon swap only; no rotation | n/a | n/a | WP2 | | M17 | Explorer toggles | A toggle link swaps the chain in place (crumbs, toggles, notice, steps) through a same-document view transition, 220ms; steps the two chains share morph, the rest fade, and M8 runs on the new rails. The toggle stays its own static page for a reload, a new tab or no JS | "the same chain, with one thing changed" | ordinary navigation | R-08 | | M18 | Explorer chain | A quiet decision log under the chain gains one line per step reached (number, sender → receiver, message), the newest fading in over 220ms; a line seeks back to its step | "what has happened so far" | lines appear | R-08 | +| M19 | Standards map | Hovering or focusing a node fades the documents and lines outside its neighbourhood to 22% over 220ms, and its own lines to full colour. The highlight holds for 280ms while the pointer crosses the gap to the next node, so moving across the map changes the highlight once per node instead of flashing back to full strength in every gap | "these are its relations" | applied and lifted at once | R-12 | Removed from the site by the redesign: the pulsing dot in the work-in-progress banner (it loops), the hover lifts on cards, buttons and the hero thumbnail, the rotating theme toggle, the ambient diff --git a/specs/016-visual-redesign/tasks.md b/specs/016-visual-redesign/tasks.md index cdf87ac..9399b34 100644 --- a/specs/016-visual-redesign/tasks.md +++ b/specs/016-visual-redesign/tasks.md @@ -205,3 +205,4 @@ Items from the redesign review, one pull request each, in order. - [x] R-09 Content pass (WP9 above): section-root headlines under 24 characters, the title suffix and footer statement, an accessibility statement that lists every motion with its reduced-motion form, `check:prose` as a gate, and the about, contribute, made-in-Europe, legal and 404 pages in plain English - [x] R-10 Decorative plate (WP8 above): a deterministic miniature delegation chain in the head of the explorer and breach indexes and every spec page, beside the title on wide screens, drawn in once (M4) and complete under reduced motion, with social cards for the two section roots from the same generator - [x] R-11 Spec page composition: under the head, relations and features take the wide column and a panel beside them holds the figures (revisions, relations, features, counting up as M3) and the revision timeline (its rail drawing in as M13, the entries still so their contrast holds), sticky as on a breach page; below 60rem the panel follows the relations. Relation groups and feature topics pack into columns (`columns: 19rem`) instead of one long list; a group heading is the verb phrase alone ("Builds on", "Is built on by") and the source link follows the note. Features group by topic under a bar of how many carry each level, named in words beside it. A spec with no recorded features shows a sentence in the panel, not a zero and not an empty section. The withdrawn or expired notice moves into the main column. Baselines through the `refresh-screenshots` label +- [x] R-12 Standards map polish (asked by Jan): `layoutGraph` lays out each group of specs joined by dependencies on its own and packs the small groups and the standalone specs (one stack per body) into the columns where they sit highest, under the OAuth tree's short columns, instead of hanging them below its long second column; the drawing is about 40% shorter and the empty lower right is gone. A same-column curve in the last column bows left, inside the frame. The hover highlight no longer flashes: the island delegates pointer events on the drawing, holds the neighbourhood for 280ms while the pointer crosses a gap, redraws only when the node changes, and nodes fade with their lines over `--dur` (M19, new). The spine draw-in and halo on the map are gone (M4 keeps the plate); the spine stays drawn at full strength. Baselines through the `refresh-screenshots` label diff --git a/src/components/StandardsMap.astro b/src/components/StandardsMap.astro index edfacf3..0fcc526 100644 --- a/src/components/StandardsMap.astro +++ b/src/components/StandardsMap.astro @@ -2,6 +2,7 @@ import { type Layout, PAD, wrapLabel } from "@/lib/graph"; import { BODY_LABEL, + BODY_SHORT, MATURITY_LABEL, MATURITY_ORDER, MATURITY_TAG, @@ -32,12 +33,15 @@ const usedMaturities = MATURITY_ORDER.filter((m) => specs.some((s) => s.maturity // references are the most and the least telling lines, so the map opens without them const shownByDefault = (t: RelationType) => t !== "references"; -// M4: the longest builds-on chain draws in from the oldest document to the newest +// the longest builds-on chain, drawn at full strength as the map's one emphasised path const spine = buildsOnSpine(specs, relations); -const spineStep = new Map(spine.map((r, i) => [`${r.from}|${r.type}|${r.to}`, i])); +const spineKeys = new Set(spine.map((r) => `${r.from}|${r.type}|${r.to}`)); const spineFirst = spine[0] ? byId.get(spine[0].to) : undefined; const spineLast = spine.at(-1) ? byId.get(spine.at(-1)?.from ?? "") : undefined; +// the body toggles sit two to a row; a long name takes its short form so each stays one line +const railLabel = (b: SpecBody) => (BODY_LABEL[b].length > 12 ? BODY_SHORT[b] : BODY_LABEL[b]); + const draft = new Set(["individual-draft", "working-group-draft", "candidate"]); // 13px Geist at weight 500 averages a little under 7px a character const chipWidth = (text: string) => Math.round(text.length * 7 + 16); @@ -61,10 +65,10 @@ const unchecked = (name: string, value: string) => const filterCss = [ ...usedTypes.map( (t) => - `${unchecked("type", t)} :is(#map .edge-${t}, #map .spine-halo[data-type="${t}"]) { visibility: hidden }\n` + + `${unchecked("type", t)} #map .edge-${t} { visibility: hidden }\n` + `${unchecked("type", t)} #spec-list .xl[data-type="${t}"] { display: none }`, ), - `${scope}:has(input[name="view"][value="recent"]:checked) :is(#map .node:not([data-recent]), #map .band, #map .edge, #map .spine-halo) { opacity: 0.2 }`, + `${scope}:has(input[name="view"][value="recent"]:checked) :is(#map .node:not([data-recent]), #map .band, #map .edge) { opacity: 0.2 }`, `${scope}:has(input[name="view"][value="recent"]:checked) #spec-list li:not([data-recent]) > .row { opacity: 0.35 }`, ...bodies.map( (b) => @@ -98,7 +102,9 @@ const filterCss = [ bodies.map((b) => ( )) } @@ -182,34 +188,15 @@ const filterCss = [ class="band-box" aria-hidden="true" /> - - {BODY_LABEL[band.body]} - )) }