Repository navigation
Diagrams: app actions in the foot, one column at most 480, and a refused PNG explained - #143
Merged
Merged
Conversation
…ect a figure with no box The export lifts hidden from the viewer's sizer for the synchronous read and puts it back before it returns, so an action or the skill's Download SVG pressed with the list open writes the same drawing. A figure that is not displayed rejects with an error that says so, and no file is made (the foot decision, 2.2). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…oot does not print The end group gains flex-wrap and min-width: 0 and its auto margin moves to the zoom group's end, so it stays at the row's end while it shares the row and starts on the start edge on a row of its own (3.1). In print the whole foot is display: none, so "View as list" no longer prints (3.2). React and the skill; the print test asserts every control in the foot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e viewer `actions` on all five diagrams (DiagramAction, DiagramActionContext with layout; our own types): Basalt's secondary small Button, after Basalt's controls and before "Clear highlight", and in the viewer's end group after "View as list" unless inViewer is false. The diagram-actions module loads only for a figure that has some and is handed to the viewer as a prop: a figure with none is +499 to +505 B over main, no Base UI in a diagram's static graph, no new import in diagram-viewer. A page press settles a running entrance before onSelect. The viewer's figure takes the source and reports its layout. The foot decision's eleven tests are written and not run (DECISIONS 359). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…int and the export of a hidden figure The foot decision's section 5 words, verbatim, and the usage line for actions with the viewer's 52px. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A drawn layout of one column (architecture, flowchart, data flow, schema; not a sequence) is capped at size-breakpoint-container on the start edge, or at its column's least width where that is more. The engine writes the column's least width with the layout (--_one), so the cap is in place before the drawing is measured; before script the same cap holds at the token. The viewer fits and scrolls the drawing's own box (drawnSize), and its sizer clips the empty layer. React and the skill; foundations, AGENTS.md and the skill's usage take the ruling's words. The ruling is the decider's alone (diagrams-cimip ruling 1: no draft, no check); its tests are written and not run (DECISIONS 359). +173 B on each diagram. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… switched off When diagramToPng rejects because the page's content policy refuses every way (the export now names that error DiagramPolicyError), the foot gets one line under its buttons, "This page's security policy blocks the PNG. Download SVG still works.", and "Download PNG" takes aria-disabled and aria-describedby the note, keeping its seat and focus. After the first refusal no figure tries again; each Download PNG answers its own first press at once. Any other failure says "The PNG could not be made." or "The SVG could not be made." and the next press clears it. Spoken once (announce on the page, the viewer's status in the viewer); in the viewer the note is last in the controls' row on the end edge. The console keeps the developer's error. Clear highlight mounts before the note. React draws nothing new. The ruling is the decider's alone (diagrams-cimip ruling 2: no draft, no check); its tests are written and not run (DECISIONS 359). text-secondary on level 1 is already in the contrast tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… the reasons in modules.json diagram 148000 to 148700 (main was already 148204 after #142), diagram-zoom 17800 to 18000, diagram-export 10450 to 12850 (main was already 11147), and the usage caps diagram 5050 to 5100 and diagram-export 700 to 760. The diagram usage line on one column is shortened to the ruling's words. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bmjcoding
marked this pull request as ready for review
November 25, 2026 00:49
bmjcoding
added a commit
that referenced
this pull request
Nov 25, 2026
…e regenerated 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.
A seat for an app's own actions in a diagram's foot, the single column's width, and a refused PNG download. CIMIP's lead found all three while adopting main (relayed by the Basalt gaps thread). The foot seat was decided in a light council round on diagrams; the other two were ruled by the decider.
What it does
actionson all five diagrams (DiagramActionandDiagramActionContext, our own types).Buttons with words only,space-2apart, wrapping from the start edge. A development warning past three actions or a 24-character label.inViewer: falseleaves one out), and are handed the viewer's drawing and layout at 100%. At 390 each row of actions takes 52px from the stage.diagram-actionson demand, so a figure with none is at most 512 bytes over main (+499 to +505 measured), with no Base UI in any diagram's static graph.settle()runs beforeonSelect.size-breakpoint-container) on the start edge, or its track's least width where that is more. The viewer's Fit and scroll take the drawing's own box.text-xs, in secondary ink.aria-disabledandaria-describedby.For the owner's eye
.review/council/diagrams-cimip/foot-build/shots/:Council
Checks
Lint (5 of 5 steps), both typechecks,
npm run buildandnpm run sizespass. No tests were run (DECISIONS 330, 359). Written, not run:diagram-actions.test.mjsanddiagram-foot.test.mjs(the decision's eleven);diagram-one-column.test.mjs;content-policy.test.mjs.Five skill budgets are raised with their reasons: diagram, diagram-zoom, diagram-export and two usage caps. Two of them were already over on main.
🤖 Generated with Claude Code