app screens: scoped styles still render artboard-scale type (S1 list reported) — sweep to product scale #258
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#258
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What happened
On the Create a community screen (S1, What will happen), the 5-step list renders at ~10px — Ben flagged it as too small in the Phase A rehearsal. The kit's screen vocabulary was rescaled to product type scale (body 1rem/14px — ADR 0122 amendment), but screens' scoped style blocks still carry their own sizes copied from the wireframes' artboard miniatures, and those were not rescaled.
What I expected
Every screen renders at product type scale: body copy ~1rem, micro-labels ≥0.75rem — the wireframes' ratios, never their raw artboard values (ADR 0122 amendment records the rule).
Steps to reproduce
Additional context
The S1 list is the reported symptom; the fix is the sweep, not the one rule. Scoped screen styles should hold only layout, and type sizes should come from the kit vocabulary classes wherever one fits; where a screen genuinely needs a local size, it uses a product-scale value per the ADR 0122 amendment mapping.
Reported during the #183 Phase A rehearsal.
Fixed in
8fecef5(on origin/main).The app rendered at artboard scale because
matou-wireframe.cssis a miniature — its component classes carry sub-1rem sizes — and the #183 Phase A vocabulary port carried those raw values into the kit AND the screens copied them into scoped<style>blocks. The wireframes are the ratios, not the raw values.Sweep (ADR 0122 amendment — product type scale, body ~1rem, micro-labels ≥0.75rem):
baseLayer.css+ every Oc primitive (OcButton/OcField/OcInput/OcPill/OcPanel/NavChrome/CodesLedgerScreen). Titles 1.35rem, body 1rem, buttons 0.9rem, secondary 0.85rem, micro-labels 0.8rem.1rem. The dashboard consumes the same kit and follows; its own scoped styles are a separate slice.STATUS.mdupdated.Guard:
app/tests/unit/productTypeScale.test.ts(the #233 boot-guard shape) pins the invariant — no app-screen or kitfont-sizebelow0.75rem(rem) /0.85em(em). Red before, green after.Verified: guard 2/2, ui-kit 100/100, app 567 pass (
boot.test.tsfails only becausegois not on the sandbox PATH — an environment issue, passes undernix develop .#go-ci).seam), not workflow (ci) #1045.oc-system-alerttype breaks the #258 product-type-scale guard (0.72em / 0.82em under ADR 0122's 0.85em floor) #1446.oc-system-alerttype breaks the #258 product-type-scale guard (0.72em / 0.82em under ADR 0122's 0.85em floor) #1446