Skip to content

fix(showcase): command-center html page off Tailwind (ADR-0065)#2496

Merged
os-zhuang merged 1 commit into
mainfrom
fix/command-center-html-no-tailwind
Jun 30, 2026
Merged

fix(showcase): command-center html page off Tailwind (ADR-0065)#2496
os-zhuang merged 1 commit into
mainfrom
fix/command-center-html-no-tailwind

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

Completes the "no Tailwind in page source" conversion (#2494 did the react pages; the guardrail + guidance landed in #2495). This is the last page — the kind:'html' Command Center, which still had 48 Tailwind classNames the new guardrail flags.

Change

Rewritten with the html tier's real primitives (no Tailwind):

  • Layout via the components' own structured props — <flex direction gap>, <grid columns>.
  • Color/size via inline JSON style objects with hsl(var(--token)) theme colors.
  • Text via native <div style> — the <text> renderer only applies style when a className/designer-id is also present (a real html-tier limitation worth noting), so styled text uses native passthrough tags.
  • Throughput bars via <grid columns={7}> — a nested <flex> bar with flex:1 collapsed to width:0; a grid track gives each bar width.

Verification

  • os validate passes: the ADR-0080 parse gate and the new ADR-0065 styling guardrail are both clean (0 className).
  • The html-tier <flex>/grid/card/color rendering was browser-verified earlier in the session (cards, the primary-bg card, grid layout, and colored status dots all render correctly via <flex style>).
  • The two remaining tweaks (native-<div> text + grid bars) use the same confirmed style-passthrough path and pass the gates. Note: the final pixel re-check of those two tweaks was blocked by a local dev-serve login glitch (the dev login's password autofill didn't populate after repeated serve restarts), so a quick glance on a normally-authed console is worth it post-merge.

Finding (follow-up candidate)

The <text> renderer dropping style unless a className/dataObjId is present is a genuine html-tier styling gap — worth fixing in objectui so <text style> works without the className escape hatch.

🤖 Generated with Claude Code

…ps + style objects (ADR-0065)

The last kind:'html' showcase page still used Tailwind className (48 of them),
which the new ADR-0065 guardrail flags: page source is runtime metadata the
build never scans, so the classes silently no-op (and the light-theme slate/indigo
palette was wrong for the dark console anyway).

Rewrite with the html tier's real primitives:
- layout via the components' own structured props (<flex direction gap>, <grid columns>);
- color/size via inline JSON `style` objects with hsl(var(--token)) theme colors;
- text via native <div style> (the <text> renderer only applies `style` when a
  className/designer-id is also present — a real html-tier limitation — so styled
  text uses native passthrough tags instead);
- the throughput bars via <grid columns={7}> (a nested <flex> bar with flex:1
  collapsed to width:0; a grid track gives each bar width).

os validate passes (ADR-0080 parse gate + the ADR-0065 guardrail both clean).
The <flex>/grid/card/color rendering was browser-verified in the html tier; the
native-div text + grid bars use the same confirmed style-passthrough path.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Jun 30, 2026 4:10pm

Request Review

@os-zhuang os-zhuang merged commit 941d6c4 into main Jun 30, 2026
15 checks passed
@os-zhuang os-zhuang deleted the fix/command-center-html-no-tailwind branch June 30, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant