You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cards show change status in a footer band, as graph cards do - #292
↑ The new status-bands check fails the 7 card scenarios (github-actions, agentic-workflows, gallery) on main's styling and passes all 90 built-in scenarios with the band; status-bands, centred-pixels, label-centring and frame-edges pass on all 90. ↑ Built-in checks for the three card renderers pass in chromium-desktop, webkit-desktop and chromium-mobile, including the scaled canvases that first failed centred-pixels; the craft spec has loose, banded and header fixtures; testing unit tests (28) pass. ↑ At emphasis 0 the band's tint and rule are transparent and its height is reserved as before (8px gap plus the 18px band), so endpoints stay neutral and nothing moves. ↑ The band turns neutral wherever the card does (pk-holds-changes, or changed parts inside it, as nesting.css decides), per Copilot's review; checked on the modified agentic-workflows cards. A card renamed and changed is marked pk-mixed-change and drawn neutral, as graph cards are. ↑ status-bands counts SVG text and graphics as a card's content, so a header status above a diagram isn't taken for a footer (fixture in the craft spec); status-bands, centred-pixels, label-centring, frame-edges, nested-accents and palette pass on all 90 scenarios. ↓ Cards that show status are now pk-frames (clipped, isolated); the full checks suite for every renderer runs in CI, not locally.
Diagnosis confidence
9/10
↑ EntityCard already owned the footer (ChangeFooter), but the kit's HTML styling only centred its words: no band, rule or tint, unlike the SVG CardChangeMarks. Every HTML card renderer inherited the loose text.
Evidence fit
9.5/10
↑ The reported cards (GitHub Actions deploy-worker, agentic-workflows "Added" under "Loads") are EntityCards, and the screenshots below show them before and after.
What
A card-level change status should be a footer band, as the SVG graph cards draw it (the README's e2e card): a strip across the card's bottom, ruled off from the body in the change's edge color, tinted, with the words centred. HTML cards (EntityCard) drew only the centred words, so the GitHub Actions and agentic-workflows cards showed "Added" as loose text under their body.
Kit:EntityCard draws the band itself whenever it gets change. A foot wrapper (pk-entity-card-foot) keeps an 8px gap and sits at the card's bottom. The band (pk-change-footer) is 18px like the SVG one, tinted with the change's highlight, and ruled in its border color (dashed 5/3 when removed). Both fade with --emphasis, so at either endpoint the band is invisible but its space stays reserved. A card that holds changes (pk-holds-changes, or changed parts inside it) or is renamed and changed (pk-mixed-change) keeps a neutral band (recessed fill, emphasis border), as SVG cards do. A card that shows status is a pk-frame, so its edge is drawn over the band's corners.
Renderers: github-actions, agentic-workflows and gallery all go through EntityCard, so they need no changes.
Check:status-bands (fails). Status words centred at a card's foot, below everything else it shows, must sit in an element that paints a surface or rule reaching the card's inner sides and bottom. Status in a header, beside a row or in SVG is left out.
centred-pixels: gaps are now measured in the holder's own CSS pixels, with ancestor transforms taken out. A canvas scaled to fit (the GitHub Actions view at WebKit desktop or phone width) can't land on whole device pixels, so the band's icon read as 2.51px either side; unscaled, it sits exactly 3px either side.
Guidance: SKILL.md tells authors to pass change to EntityCard rather than placing status text themselves. The kit guides and the testing README are updated too. Changelog fragment: card-status-band.md.
Before / after
GitHub Actions deploy-worker (added), light and dark:
agentic-workflows docs-bot-digest (added), the card's foot, light and dark:
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The footer band remains amber on cards with nested value changes but no explicit holdsChanges, leaving it inconsistent with their neutral body, edge, and status text.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Mixed HTML cards retain misleading colored bands, and the status-band check can falsely reject valid cards by ignoring SVG body text.
No open issues 🎉
2 previously missed issues
In code that hasn't changed since last review
Render mixed HTML cards with neutral change bands
packages/renderers/kit/styles/layout.css:299
For a card with change={{status: 'modified', renamed: true}} and no marked descendants, the new band stays amber in diff mode (violet in progress mode), surrounding the differently colored “Renamed” and “Modified” statuses. Graph cards explicitly keep this case neutral via mixedChange/pk-mixed-change (emphasis.ts:33–38, nesting.css:27–33). Please mark mixed HTML cards too and include them in the neutral-band override so the new band matches that treatment.
Include SVG text when detecting loose footer statuses
A centred header status above an SVG diagram is incorrectly reported as a loose footer when the diagram contains the remaining text: this skips all SVG text, so textBottom() sees nothing below the header. Since status-bands is a failing check, valid cards can fail validation. Include SVG body text when locating the card's last content; SVG status candidates are already excluded separately in looseStatuses().
Addressed the two items Copilot flagged as previously missed, in 9a1a64d:
Mixed cards:EntityCard marks a card that is renamed and changed pk-mixed-change. Its body, edge and band are drawn neutral, as a graph card's are, and each status word keeps its own hue. A kit test covers it.
SVG content:status-bands now counts SVG text and graphics (svg, img, canvas, video) as a card's content. A centred header status above a diagram therefore isn't treated as a footer. A craft-spec fixture covers it.
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
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.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
9a1a64d6e263a3d54e0654605f684fe8b93c9e59status-bandscheck fails the 7 card scenarios (github-actions, agentic-workflows, gallery) on main's styling and passes all 90 built-in scenarios with the band;status-bands,centred-pixels,label-centringandframe-edgespass on all 90.↑ Built-in checks for the three card renderers pass in chromium-desktop, webkit-desktop and chromium-mobile, including the scaled canvases that first failed
centred-pixels; the craft spec has loose, banded and header fixtures; testing unit tests (28) pass.↑ At emphasis 0 the band's tint and rule are transparent and its height is reserved as before (8px gap plus the 18px band), so endpoints stay neutral and nothing moves.
↑ The band turns neutral wherever the card does (
pk-holds-changes, or changed parts inside it, asnesting.cssdecides), per Copilot's review; checked on the modified agentic-workflows cards. A card renamed and changed is markedpk-mixed-changeand drawn neutral, as graph cards are.↑
status-bandscounts SVG text and graphics as a card's content, so a header status above a diagram isn't taken for a footer (fixture in the craft spec);status-bands,centred-pixels,label-centring,frame-edges,nested-accentsandpalettepass on all 90 scenarios.↓ Cards that show status are now
pk-frames (clipped, isolated); the full checks suite for every renderer runs in CI, not locally.EntityCardalready owned the footer (ChangeFooter), but the kit's HTML styling only centred its words: no band, rule or tint, unlike the SVGCardChangeMarks. Every HTML card renderer inherited the loose text.deploy-worker, agentic-workflows "Added" under "Loads") areEntityCards, and the screenshots below show them before and after.What
A card-level change status should be a footer band, as the SVG graph cards draw it (the README's
e2ecard): a strip across the card's bottom, ruled off from the body in the change's edge color, tinted, with the words centred. HTML cards (EntityCard) drew only the centred words, so the GitHub Actions and agentic-workflows cards showed "Added" as loose text under their body.EntityCarddraws the band itself whenever it getschange. A foot wrapper (pk-entity-card-foot) keeps an 8px gap and sits at the card's bottom. The band (pk-change-footer) is 18px like the SVG one, tinted with the change's highlight, and ruled in its border color (dashed 5/3 when removed). Both fade with--emphasis, so at either endpoint the band is invisible but its space stays reserved. A card that holds changes (pk-holds-changes, or changed parts inside it) or is renamed and changed (pk-mixed-change) keeps a neutral band (recessed fill, emphasis border), as SVG cards do. A card that shows status is apk-frame, so its edge is drawn over the band's corners.EntityCard, so they need no changes.status-bands(fails). Status words centred at a card's foot, below everything else it shows, must sit in an element that paints a surface or rule reaching the card's inner sides and bottom. Status in a header, beside a row or in SVG is left out.centred-pixels: gaps are now measured in the holder's own CSS pixels, with ancestor transforms taken out. A canvas scaled to fit (the GitHub Actions view at WebKit desktop or phone width) can't land on whole device pixels, so the band's icon read as 2.51px either side; unscaled, it sits exactly 3px either side.changetoEntityCardrather than placing status text themselves. The kit guides and the testing README are updated too. Changelog fragment:card-status-band.md.Before / after
GitHub Actions
deploy-worker(added), light and dark:agentic-workflows
docs-bot-digest(added), the card's foot, light and dark: