Repository navigation
Releases
v1.5.0 — usability review: layout, runtime, a11y, evals, UI regression suite
Usability and polish release: a second full review (runtime, visual UI, UX/a11y,
agent usability, docs, security) with every finding reproduced in headless
Chrome and independently re-verified after the fix. Plus the project's first
evals and a committed UI regression suite. Regenerate a diagram from
the updated template.html to pick everything up.
Fixed — layout & rendering
- Phones no longer scroll sideways. A long payload line widened the
single-column grid past the viewport, pushing the canvas, player and side
panel off-screen (grid-template-columns: minmax(0,1fr)). - No more overlapping or clipped nodes at laptop widths (1180–1366px) and on
tablets. The stage keeps a 680px floor and scrolls inside the canvas when
narrower; phones use slightly slimmer tiles. At ≥1440px nothing changes. - Stray packet dot gone. After every load, resize, fullscreen toggle, drag
or layout reset the active packet sat glowing in the stage's top-left corner,
and the first step's flight was cut short at boot. The packet now rests on
its wire's target end, and size-neutral ResizeObserver callbacks are ignored. - Self-step loops on a top-row node were clipped by the SVG; they now flip below
the node when there is no room above. - Wire number labels between close nodes no longer sit on the arrowheads, and
are drawn above the packet. - Long unbroken tokens (topics, ARNs, image tags) wrap inside the tile instead of
spilling into the neighbour. - Fullscreen below ~1280px: the top bar stays one row (theme/exit always
visible), flow tabs no longer wrap over the canvas; below ~1140px the side
panel and legend give way to the one-line step summary. - Theme / reset / fullscreen buttons stay together at the right end of the
controls bar instead of being flung to opposite edges when it wraps.
Fixed — runtime
- Saved layouts no longer override the author. Only the nodes a viewer
actually moved are stored, each with the position it was moved from; if the
author has moved that node since, the author wins. One-time effect: layouts
saved by v1.4.0 and earlier (a full snapshot of every node) are discarded. - Mode-specific node text was path-dependent with 3+ modes and partial
data-label-*overrides; a mode without an override now shows the authored text. - Mode colors follow button order, not the literal keys
offline/online,
so dev/prod, v1/v2, staging/prod get the same two-tone pill and panel badge. - Drag no longer gets stuck after a chorded mouse release (node following the
cursor with no button held); capture loss ends the drag. - Shift+Arrow nudges no longer drift upward; nudging back onto the authored spot
clears the saved position. Drag snapping now lines up with the visible grid. - A node that appears only in mode-hidden steps is dimmed (it used to look
clickable, then shake). The progress bar reaches 100% on the last playable
step. Saved positions can no longer park a tile mostly off-canvas. - Flow-tab number badges are rendered from tab order, so authors never renumber them.
Accessibility
- Step announcements keep working in fullscreen on narrow screens (the live
region moved out of the side panel) and now include the flow name and mode
switches; re-renders (resize, drag) no longer repeat them. - AA contrast: participant node text, light-theme ports, active wire numbers,
step badges, focus rings, inactive tab/mode chips. - Focus is no longer dropped to
<body>when Next/Prev becomes disabled at the
end/start of a flow. - Nodes activate through a real
click, soelement.click(), voice control and
other assistive tech work; dimmed nodes no longer claim "jump to its step";
the current step's node carriesaria-current="step". - Play / fullscreen / shortcuts toggles keep a constant name with
aria-pressed
(no more contradictory "Pause, pressed"). - The payload panel is focusable and Left/Right scroll it instead of changing step.
- Controls and shortcut note sit in labelled landmarks; on touch devices the
keyboard-shortcut paragraph is replaced with a one-line tap hint.
Security / robustness
- The
descsanitizer drops SVG/MathML subtrees whole (their children were
being unwrapped into the panel). - The self-lint now also catches: undefined step color variables, roles without
a color rule, duplicate flow tabs, leftover per-mode keys from renamed modes
(payloadOnlinein a dev/prod diagram), steps that can never play, and a raw
<!--in the script (which, followed by<script, silently kills the page).
Skill & docs
- New
extrole (slate, "External") for third-party / SaaS systems —
Stripe, Twilio, hosted IdPs no longer have to borrowseedorcompute. The
orchlegend label is now "API / Service" and covers ordinary services. - Step 1 no longer forces clarifying questions when the request or a design doc
already specifies the system — the agent proceeds and lists its assumptions. - New
references/validation.md: a static check that needs onlynode, the
screenshot run, and a browser-console fallback. - Pitfalls rewritten around the three strings that kill a diagram:
</script>,
<!--+<script, and${…}in backtick payloads (e.g. GitHub Actions
${{ secrets.X }}ran as JavaScript and blanked the page — write\${). - Layout guidance replaced with a grid that is proven not to overlap at 1280px;
component snippets no longer place nodes off the bottom of the stage. - Examples: roles aligned with the role table,
event-driven.jsonreworked so
every mode's outline maps onto the template, stale wire-curving and
onlyModedescriptions corrected, fullscreen panel behavior documented. - Searching a filled diagram for
{{[A-Z]now finds only real leftovers (the
template's own comments and lint messages no longer contain placeholder text).
Tooling
references/screenshot.jsresolvespuppeteer-corefrom the current
directory first (the documented workflow used to fail when run from the
installed skill), builds properfile://URLs (paths with#,?,%),
takes full-page captures (plus a scrolled phone capture), and has explicit
exit codes. Changed:1= page error or the script never ran,2= lint
warnings (was:2on a page error,0on warnings).- Evals (
evals/, run withclaude plugin eval): 8 cases — core
dev/prod request, grounding from a SOLUTION.md (no invented infrastructure),
Polish trigger, self-steps +${{ }}escaping, mode-exclusive flow,
</script>in a payload, and two negative triggers. - UI regression suite (
tests/ui.test.js, 19 headless-Chrome tests) now
runs in CI next toscripts/check.js. scripts/check.jsadditionally checks roles, duplicate ids,->typos and
undefined color variables in the examples, raw<!--in the template script,
and thatassets/css-tokens.cssmatches the template's tokens.- The marketplace entry now points at the repo root, so
plugin.json
(version, license, homepage) ships with the plugin.
v1.4.0 — full system review: rendering, runtime, security, a11y, UX
Full system review release (security, architecture, data integrity, UI/UX, accessibility). Every finding was reproduced in headless Chrome against the v1.3.0 template before being fixed and verified again afterwards. No breaking changes — regenerate your diagram from the updated template.html to pick everything up. Plugin users: claude plugin update architecture-diagram (or reinstall from the marketplace).
Fixed — rendering
- Request/response wires no longer overlap. The curve-side math cancelled out for an A→B step followed by B→A, so both wires and their number labels were painted on top of each other (visible in the template's own flows). Wires now bend to the right of their direction of travel; repeated same-direction wires between one pair get progressively wider lanes.
- Self-steps (
from === to) such as "CI → CI: lint, test, build" render as a loop above the node instead of a zero-length wire. - Wire number labels sit on the curve instead of floating at the Bézier control point.
- Fullscreen actually works. The fixed canvas was trapped under the page header by a stacking context, the side panel was hidden, and the exit button was unreachable on touch. Fullscreen now pins the controls bar to the top and the flow tabs to the bottom, keeps the side panel as an overlay, locks body scroll, uses the native Fullscreen API when allowed, and restores focus on exit.
- Phone widths no longer clip the right-most node or overlap the first two: the stage keeps a 640px minimum and scrolls sideways inside the canvas. The mode picker wraps; the canvas echoes the current step title since the panel is below the fold.
- Drag styling was overridden by
:hover; dragging / nudging now clamps to the node's size so tiles can't be parked half outside the stage.
Fixed — runtime correctness
- A wrong
state.flow/state.modekey no longer throws at boot and blanks the diagram; the runtime falls back to the first tab/button and logs a warning. - Payload and chips use one precedence rule — the mode-specific key (
payloadOnline,chipsOnline) wins over the generic one. Previously the two had opposite rules. - A step without
descrendered the literal text "undefined"; object payloads are now pretty-printed as JSON. - Play at the last step restarts the flow instead of just flipping the icon.
- Dead steps (an endpoint hidden in the current mode) are handled everywhere: tab/mode switches land on the first playable step, Prev/Next enablement is based on playable steps, and an unavailable step says so instead of half-lighting one node.
pointerupis gated on button 0 and on the originating pointer, so middle-click, a stray release, or a second finger can no longer trigger a jump.- The packet animation only restarts when the step actually changes; wires redraw on any stage size change (ResizeObserver).
Security / data integrity
- Content Security Policy meta: nothing loads from the network except Google Fonts; no fetch, frames, or forms.
descis sanitized to inline formatting (em,strong,code,kbd,br,a[href=https|mailto|#], …); scripts/iframes are dropped, attributes stripped.- Step
coloris validated as a CSS custom-property name before being interpolated into styles. - Saved layouts are validated when read back from localStorage.
- Built-in integrity lint at boot (
window.archValidate()): duplicate/missing node ids, steps referencing unknown nodes, tabs without flows and vice versa, unknownonlyMode/data-modes, missingtitle/color, leftover{{PLACEHOLDERS}}. Printed byreferences/screenshot.jstoo.
Accessibility
- Live region announces step changes (and "not part of this flow" on a dimmed-node click, which was shake-only and invisible under reduced motion).
- Theme and fullscreen buttons expose
aria-pressed; hidden nodes getaria-hidden; node labels include the tech line; the panel title is anh2. - Keyboard alternative to dragging: focus a node and press Shift+Arrows (WCAG 2.5.7).
- Touch: nodes are tap-to-jump; swiping over a node scrolls the page again.
- Single-key shortcuts can be switched off (link under the flow tabs, remembered per browser) — WCAG 2.1.4.
- Contrast:
--dimraised to ≥ 4.5:1 in both themes; the light-theme "online" pill (1.8:1) and mint-as-text usages now use dedicated--accent-fg/--mode-*-fgtokens that pass AA.color-schemedeclared; theme honoursprefers-color-schemewhen nothing is saved.
Changed
- Keyboard digits and the
Omode cycle are derived from the.flowtabs/.modepickbuttons;CONFIG.keyboardFlowOrderandCONFIG.toggleModesare gone and three or more modes cycle correctly. - The panel's mode badge shows the mode button's label instead of the raw key; an empty payload no longer renders an empty box;
<noscript>message added. references/screenshot.js: finds Chrome on macOS/Windows/Linux (orPUPPETEER_EXECUTABLE_PATH), prints integrity warnings and page errors, exits non-zero on JavaScript errors, adds a phone-width capture, closes the browser on failure, and only passes--no-sandboxwhen running as root or explicitly asked.- Examples:
auth-oauth2.jsonstep count matched its outline;event-driven.jsongained the Stripe node its billing flow referenced; model names updated.
Added
scripts/check.js(no dependencies) + GitHub Actions CI: validates example specs, SKILL.md frontmatter limits, template script syntax, tab/flow/node consistency, and version consistency across manifests.
Full changelog: v1.3.0...v1.4.0
v1.3.0 — full review: keyboard/nav/boot fixes, a11y, docs
Full code & architecture review pass. No breaking changes — regenerate your diagram from the updated template.html to pick up the fixes.
Fixed
- Keyboard shortcuts ignore
Cmd/Ctrl/Alt, soCmd+R/Cmd+T/Alt+←→no longer reset the layout or toggle the theme. - Space on a focused node/button no longer double-fires (jump-to-step + play toggle).
- Empty or missing flows no longer crash at boot and blank the diagram.
- Stepping/autoplay skips "dead" steps whose endpoints are hidden in the current mode.
- Switching flow or mode stops autoplay (no stale-timer resume).
note/onlineNoteflow fields now actually render under the player.- Consistent HTML escaping for step
routeandchips.
Added
prefers-reduced-motionsupport (packet hidden, transitions collapse).- Node button semantics:
role="button"+ per-modearia-label, click focuses the node. CHANGELOG.md.
Changed
- Theme toggle no longer rebuilds the SVG (colors are live CSS variables).
- Removed a dead layout read in
startDrag.
Docs
- Fixed the Claude Code / OpenCode manual-clone install commands, which nested
SKILL.mdone level too deep so it was never discovered.
Verified with a JS syntax check and 7 functional assertions in headless Chrome.