Repository navigation
Diagrams: motion on the lines, and service marks (DECISIONS 291 to 293) - #124
Merged
Merged
Conversation
…group, the bead and flow lengths, and the arrival roles Eleven duration-diagram-* durations and four speed-diagram-* speeds (a new speed group of plain numbers), size-diagram-bead and size-diagram-flow, and two colour aliases: diagram-hit (text-secondary, stepping to text-primary under more contrast) and diagram-focal-hit (action-primary-hover). No new colour. The contrast tests gain the pairs; Tokens.swift is regenerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…their owners' own files Each owner's file as fetched on 22 Nov 2026 (AWS's Architecture Icons package 07312026, 21 resource icons and ten general icons; Temporal, SonarQube, GitHub, CodeRabbit, Greptile and Blacksmith from their own pages), recorded in packages/react/marks/manifest.json with its source, terms, hashes, forms, inks, the view box fitted to its artwork, and departures. fit.mjs works the view boxes out once in Chromium; generate.mjs checks every hash, refuses an unlisted file, and writes one module a mark (src/marks/<id>.ts, at @srasyndicate/basalt/marks/<id>, never from the index), the HTML skill's marks.json and THIRD-PARTY-MARKS.md, which ships in the package. Nothing is done to a file but stripping what does not draw, fitting the view box and, for Greptile and Blacksmith, swapping their one fill for white for dark grounds. Jenkins, ServiceNow, BlazeMeter, Bedrock, Aurora, RDS, ElastiCache and SNS ship no mark; the manifest says why. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d 2)
diagram-core.ts reads motion, flow, pulse, packet, run and a card's mark (a bundled id or
{ onLight, onDark }); draws the mark as an empty span in the card's top end corner, the form a
background image chosen by the ground (--_dkm, the theme's switch; the focal card takes the
other theme's form); counts the first line's space-6 in a track's minimum outside forced
colours; and marks an animated figure pending in the frame its lines are first drawn
(entranceDrawn), with settleEntrance for what the reader does. data-motion joins the root's
managed attributes.
diagram-motion-core.ts is the motion engine, framework-free, loaded only by an animated figure:
the trace (each line revealed on its own mask, from one clock, the stagger shrunk to end inside
duration-diagram-limit), the sequence's entrance (labels lift, arrows draw), what settles it,
carrying a running entrance across a re-measure, flow cuts, the pulse's bead, the packet's
dot on offset-path, one mover a figure, the arrival step, the run (colour only under reduced
motion), the hold, tracing, view and the tab, and the development errors of 4.1. One set of
observers serves a page.
components.css: the mark's seat, its forced-colours and print rules (print-color-adjust in both
forms on the lines, the key, the mark and a focal node that carries a mark), the foot's gap,
and a Diagram motion section (pending, the overlays, the dot, the arrival step, the buttons on
touch, forced colours, and print with !important).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ECISIONS 292, 4.1)
motion ("still" by default) on every diagram; flow on an architecture's and a data flow's
edges; pulse and packet on those two; run on a sequence; mark on an architecture node. The
motion code is its own module (diagram-motion.tsx), imported on demand the first time a
figure is animated, with the foot's run button and "Pause animations" (the page's hold, via
useLoops). DiagramFigure marks a figure pending before the first paint, settles it on a hover,
focus, key or the list's button, throws the development errors once the module has loaded,
re-measures a figure with marks when forced colours change, and passes a new send value on.
DiagramMark, DiagramPacket, DiagramFlowEdge and DiagramMotion are exported types.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…am's still-path changes (DECISIONS 292, 2.6, 4.2) diagram.js writes a figure's ink only when it differs from what it last wrote, marks an animated figure pending in the frame its lines are first drawn, settles on what the reader does, and re-measures a figure with marks when forced colours change. The new diagram-motion module bundles React's motion engine and builds the foot's run button and the hold's "Pause animations" (a data-loops-toggle the loops module wires); its stylesheet is the Diagram motion section of components.css with the motion tokens, so neither is in a still page. compose.mjs adds it (with loops) only when a diagram's JSON says "motion": "animated"; writes one rule a mark a page names (in a card, or <!-- basalt:marks ... --> for a figure drawn from script), however many cards use it; reads a page's own mark files into the page; and notes a card whose words do not say what its mark stands for. The usage text gains the decision's four lines and the list of ids. Budgets: skillMd 12550 to 12650 (one module line), diagram 87200 to 91000, its usage 2600 to 4300, diagram-motion 26200. The animated CIMIP examples and the kit are a fixture (test/fixtures/diagram-motion.json) on top of the still one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rest is an animation on the figure The run button took .basalt-diagram-run, which an identifier's runs already use, so on touch every mono run of a card's detail took the 44px minimum. It is .basalt-diagram-play now. A mover's rest and the entrance's own end are animations of nothing on the figure (not on no target), so they pause out of view with the rest of the loop and a test or the walkthrough can seek them like any other. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
foundations: the diagram's idea names the mark's exception; "Keyboard, tracing and motion" says a diagram is still unless its author asks; new sections "Motion in a diagram" and "Service marks"; the print bullet; the motion tokens' table; three kinds of thing loop; the diagram's entrance and travel beside the page's; the app tile's "no company's picture for a tile"; the icons' sentence; more contrast's arrival rim. docs/motion.md gains a diagram's motion. AGENTS.md: monochrome, more contrast, the loop sentence (main's list kept whole) and the diagrams bullet. The docs test holds the two loop sentences. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, written and not run packages/react/test/diagram-motion.test.mjs follows section 7: still untouched, nothing ever missing (print with and without script, print-color-adjust on marks and a marked focal node, the stacked sequence and schema, no word under opacity 1), settling on each of its twelve triggers, measured again with the faces held back and released, the hold and the reader, then one mover, geometry, timing as numbers, tracing, the modes, and the marks (pixels against the owner's file, no mark reachable from the index, contrast from the manifest's inks with the four recorded exceptions, the form on each ground, the seat, the manifest, axe). tools/html-skill/test/diagram-motion.test.mjs: what compose writes (the module only when animated, one rule a mark, a page's own mark read in, basalt:marks, an unknown id refused) and the module in a page. The packed-package check requires a mark module and the notice. Time is driven by seeking the figure's animations. The owner paused test runs (DECISIONS 271): none of this has run. The motion engine's IntersectionObserver thresholds are made inside its first use, not at module scope. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…4.5%, inside the gate npm run sizes: ArchitectureDiagram 67,486 to 70,507 bytes (+4.5%; the gate is 70,861), DataFlowDiagram 70,524, FlowchartDiagram 70,473, SequenceDiagram 70,469, SchemaDiagram 70,421 (each +4.4 to 4.5%). The motion code is not in them: it is imported on demand. On its own the module an animated figure loads is 39.8 KB minified (14.4 KB gzipped) with its buttons and the hold, the engine 19.5 KB; one mark is 4.6 KB. styles.css 377,206 to 382,410 (+1.4%); the whole package up front +0.5%. The other movements are a few bytes each. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A step for each animated type (architecture with flow, the pulse and marks; the data flow's repeating packet; the sequence's entrance and run; the flowchart; the schema), the kit with the six brands and three cards with none, and a sheet of every mark on a card and on the focal card. Each still of motion is a pose: the demo lets the motion run, then pauses the figure's own animations at a chosen point (the entrance part-way, a bead or dot half along a line, a card in its arrival step), so a shot is the same each time. Reduced motion, forced colours, more contrast and print are the build's emulations. reviewed: false. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t survives a render, loops that resume, sends that queue From Neon's code review and Fable's pixel review of 7f2d3e9 (round 65): - The motion module is built on its own (build.mjs), as command-panel and glyph-flight are, so nothing it imports lands in another export's static graph (Neon 2). Its copy of the hold's state stays in step through the root's data-loops attribute: loops.ts now tells its subscribers from a MutationObserver on it (useLoops 1,050 to 1,145 bytes, +9%; importing ./loops.js from the lazy file instead put 1 KB in every graph). - DiagramFigure hands React one ink object per ink string, so a render no longer rewrites the HTML and drops the masks, overlays and packet (Neon 1, Fable B3); a measure that changes nothing sets no state; the motion module follows the drawn element itself, so a reveal is built again whenever the ink is written (Fable B1). - Loops resume after a trace: the pause's timer ends the pause itself (Neon 3, Fable B2); an overlay the host wrote over is made again. - A send during a repeating packet is queued: at once in its rest, after the dot in flight lands otherwise (Fable's answer 3). - The generated mark modules carry `says` and write onDark only when it differs; DiagramMark has `says` (Neon 5). - LoopsToggle's button form takes a `size` ("md" or "sm"); the foot's pause uses it at sm, the same pixels (Fable's answer 1). Sizes: a still diagram 70,763 bytes (main 67,486, +4.86%; the gate 70,861). Every limit in bundle.test.mjs holds (measured with a copy of its graph() and bundle(), not by running it). Tests not run or edited (the owner skipped test work). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a send that keeps the dot in flight, and a safe compose - diagram-motion requires and builds `toggle`, so "Pause animations" has its check seat, the pressed plate and forced colours' Highlight on any page (Neon 4); it builds `loops` too, so its usage text no longer teaches hand-wiring the button. - Basalt.diagram(figure, spec) with only a new packet.send sends on the figure as it is: the dot in flight is not cut short, one send waits and further ones drop (Neon 6). - compose.mjs (Neon 7): a page's own mark must be inside the body's folder (checked before reading, and again through links) with an image extension; every < in a mark's URL is \3c inside <style>, and every < in a rewritten diagram JSON is < inside <script>; bundled ids and their words are looked up as own keys only (toString, constructor are unknown). - The motion section's CSS (shared with React, committed with it): neither motion button prints (Fable P1). Probed in Chromium; tests not run or edited (the owner skipped test work). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The walkthrough poses its figures only in a shot (?shot=1): opened normally every figure plays, loops and pauses (Fable B4). The held state's hold is set in an effect and taken off when the step goes (Neon polish 4). Live, the schema, the data flow and the flowchart get the shots' 1104px and scroll, so they are drawn and their motion can be seen. - Its words say the round was reviewed once and fixed, and the fixes were not reviewed again. - foundations.md: the foot's pause is LoopsToggle's Button form at size sm; loops resume duration-diagram-pause after a trace; neither motion button prints. LoopsToggle's `size` in the foundations and the package README. - The data flow's intro gives the measured repeat (4.55s after a landing, Fable P2). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ECISIONS 297) The owner on #124: "these should still have a mark - even if its not an official logo". This overrides DECISIONS 292's drop of the four. - Jenkins and BlazeMeter: Simple Icons 16.38.1's drawings; ServiceNow: Devicon's ring (MIT, develop at 38195963), its green set to black. Each is one-colour, black on light grounds and white on dark by the existing swap. - Bedrock: AWS's service icon from Release 24-2026.07.31 with its tile removed and its glyph in the tile's teal (#01A88D). - The manifest marks each unofficial, with its source, terms as stated, the fetched file and the edited file (both hashed) and every edit; generate.mjs refuses an unofficial entry without them, and the modules and THIRD-PARTY-MARKS.md say "unofficial". - The vocabulary lint allows "servicenow" in the generated mark files only: there it is a vendor's mark, like GitHub's, not an app's noun. - The kit and the architecture's Bedrock card carry them; round 65's words, the skill's usage and foundations say so; the manifest test counts 41. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ONS 298) print-color-adjust: exact and the -webkit- form now apply to every focal node, not only one that carries a mark, in components.css and so in the skill's diagram part. Checked by Chromium's print with backgrounds off from both themes (the cimip service, no mark, prints filled). Foundations' print line and the print test say so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…wn clock The owner lifted the test skip for diagrams. Each file run by name, alone: React diagrams 44/44, diagram-motion 65/65, bundle 103/103; the skill's diagrams 15/15, diagram-motion 11/11, compose 112/112; the six token files 243/243; the packed consumer passes. Code: - An entrance drawn again while its animations are paused (seeked, or posed) is rebuilt paused at the same moment, and "whole" is read on its own clock, not the page's (Neon's finding 8.2: a seeked figure narrowed restarted its lines). - The skill writes a one-form mark's image once (no --_md copy); the focal card's dark form falls back to the light one. No pixel change. Tests: - #122's half-finished patch applied where it still fit; its crossing fixture crosses once, not twice, so it says so. Two harness fixes: a pixel read scrolls its element into view; a line count leaves out the key's swatches. - Motion: the uncomposed skill page composed; the seek-and-narrow test reads the clock that paused animations keep; the print test really stops script (the painted page reopened with script off); the hydration test really server-renders and hydrates; the frames test checks every word at 4.5:1; the narrow test starts a run and checks it stays on its message; development errors run in a development build; the mark pixel test frames the owner's file in the same SVG (it caught a shifted box and a colour change). - Added: all 17 motion tokens, the mark-words warning, a 40-message sequence, traced ink and the pause before loops resume, the run's dot in forced colours, and each print's mark form by its ground. Budgets: diagram 91000 to 91250 and diagram-motion 26200 to 26850. Fix round 1 had already taken them over (91205, 26621, unrun); this round added 1 and 180 bytes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lines that move and service marks on the cards, for all five diagram types.
What it adds
Motion. It's opt-in with
motion="animated". Still stays exactly as merged in #122 and loads no motion code.The owner's Slow timing is the default, as tokens.
"Pause animations" is the page's own hold, shown in each figure's foot. Under reduced motion and in forced colours a figure is still. Print shows every line, every mark, and the fill of a focal card that carries a mark.
Marks. 41 ship: 31 AWS Resource icons and CodeRabbit, Greptile, Blacksmith, GitHub, SonarQube and Temporal. Each is its owner's own file, at 16px in the card's top end corner.
@srasyndicate/basalt/marks/*, loaded only when used. The HTML skill writes in only the marks a page names.THIRD-PARTY-MARKS.mdships with the package.9bc75847, DECISIONS 297). The owner overrode DECISIONS 292's drop: "these should still have a mark - even if its not an official logo - people will still understand what they are."Who decided what
Review
Fixed in the last round (
41438961,2a6ced49,defa89af):says. A secondBasalt.diagram()keeps the dot in flight.compose.mjsno longer allows path traversal or tag breakout in mark files, styles and JSON.That round, and the three commits after it (the four marks, the print fix and the tests), were not re-reviewed by a seat. The owner wants less waiting. The lead checked lint, both typechecks and the build, and looked at the round 65 screenshots and the three clips.
Sizes
bundle.test.mjshold. The builder measured them with that file's own code, without running the test.useLoops(+9%) anduseNow(+5.9%). The hold now syncs through the page'sdata-loopsattribute across the lazy build. The size table records both.Tests
The owner lifted the skip for diagrams (DECISIONS 298), and the tests are fixed and run (
6fdc5ab8). Each file was run by name, one at a time, on a free machine:diagrams.test.mjsdiagram-motion.test.mjsbundle.test.mjsdiagrams.test.mjsdiagram-motion.test.mjscompose.test.mjsWhere a test was right, the code was fixed. A seeked entrance that was then narrowed redrew from the start; it now keeps its own clock.
Some of Neon's suggested additional checks are not yet written: the send queue, the flow cut's clearance, three totals, more contrast under a toggled theme, React-against-skill parity and a module-load failure.
This is not a full
ci:local.Skill budgets raised again: the diagram module from 91,000 to 91,250, and diagram-motion from 26,200 to 26,850. Both were already over after fix round 1, which was never run.
For the owner
7594c029, DECISIONS 298). This changes what main's still diagrams print, at the owner's word.Review round 65:
npm run review -- 65.Final position, as written
Neon: object (all three revised by Fable)
object
The decision resolves the review's fifteen blocking and seven polish findings cleanly, and I accept its reasoned calls on detached Trace labels, per-figure scope for loops, unmodified filled owner marks, and the four recorded dark-focal mark contrast exceptions. Three specific parts of the decision are wrong as written and need fixing before building:
Sections 1.2, 1.12, 5.7, and 7 —
diagram-hitunderprefers-contrast: morefails Section 7's own 3:1 test.diagram-hittotext-secondary, Section 1.12 leaves it unchanged under more contrast (text-secondaryover a rim the mode draws asborder-input), and Section 7 requires: "More contrast: the arrival step is 3:1 against the rim's own value." Oncf46912b's OKLCH tokens,text-secondaryagainstborder-inputcomposited on each surface is 2.92:1 (dark L1), 2.74:1 (dark L2), 2.59:1 (dark L3), and 2.52:1 (light L1–L3; 2.43:1 on L0) — below 3:1 on every card level in both themes. Sections 1.12 and 7 contradict each other and cannot both pass.diagram-hittotext-primaryunderprefers-contrast: more(one entry inMORE_CONTRASTinpackages/tokens/build.mjs, no new colour, matching howborder-hoversteps totext-secondary). Againstborder-input,text-primaryholds 5.12 / 4.80 / 4.54:1 on dark L1–L3 and 5.35:1 on light L1–L3, passing 3:1 on every level in both themes. Record this in 1.12 and 5.7.Sections 1.5, 5.2, and 7 — Settling on any redraw "before or during" an entrance kills entrances on
document.fonts.ready.cf46912b, bothpackages/react/src/diagram-figure.tsx:129(document.fonts?.ready.then(() => { if (live) measure(); })) andtools/html-skill/src/modules/diagram.js:159(document.fonts.ready.then(function () { if (live) layout(); }), which unconditionally rewritesink.innerHTMLat line 96) run an async re-measure right after synchronous initial draw (document.fonts.readyis always a Promise, resolving on the next microtask when cached/inlined or when Geist arrives overGeist Fallbackand shifts line coordinates). Settling on a redraw before an entrance starts permanently cancels every pending off-screen figure before the reader scrolls to it; settling on a no-opfonts.readyredraw kills an in-view entrance on the next microtask.document.fonts.readyor a resize keeps the figure pending on the newly drawn lines, unless the new layout has no lines (e.g. stacked sequence or schema), which drops pending and leaves it still. While running, settle only when layout or drawn geometry actually changes (skip rewritinginkwhenmeasured.inkis unchanged so a cached/inlinedfonts.readymicrotask does not abort a running entrance). A re-measure after settling still never replays an entrance.Sections 1.12, 2.6, and 7 —
background-imagemarks vanish in default print, contradicting "Marks print".<span>with a CSSbackground-image, and Section 1.12 states "Marks print (2.5)" (2.5 does not mention print). Under defaultprint-color-adjust: economy, Chrome, Safari, and Firefox strip CSSbackground-imagewhen printing;components.css:4833only setsprint-color-adjust: exacton.basalt-diagram-svg,.basalt-diagram-swatch, and.basalt-diagram-arrow, and Safari 17.5 (the browser floor) requires-webkit-print-color-adjust: exact. Section 7's print test does not check marks.background-imageapproach, require-webkit-print-color-adjust: exact; print-color-adjust: exacton the mark element in@media print(fixing 1.12's(2.5)reference), and assert marks in Section 7's print test.(Minor editorial note for 5.9:
cf46912b'sAGENTS.mdMotion bullet listsa busy TextButton's underlineanda written field's fillas 5.3 does forfoundations.md; keep those two in 5.9 soAGENTS.mddoes not lose them.)🤖 Generated with Claude Code