Skip to content

Commit cf475c8

Browse files
os-zhuangclaude
andauthored
fix(showcase): command-center throughput bars render — native div grid + width:100% (ADR-0065) (#2497)
Browser verification of the command-center html page on a real objectstack serve console showed the Weekly Throughput bars rendering empty. Two html-tier nuances: - <grid columns={7}> emits responsive classes (grid-cols-1 sm:grid-cols-2 md:grid-cols-7) that collapse to 1 column inside the narrow card → use a native <div style={{display:'grid', gridTemplateColumns:'repeat(7,1fr)'}}> for a fixed 7-track grid; - the bar <flex> items (display:flex, no children) collapsed to width:0 and the grid container (a flex-column child) didn't stretch → native block <div> bars + width:100% on the container. Verified in a live console: header typography, KPI cards, the primary-bg card, the 7 throughput bars (now visible), and the activity dots all render correctly. Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent d50b28e commit cf475c8

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

examples/app-showcase/src/pages/command-center-jsx.page.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ export const CommandCenterJsxPage = definePage({
5454
<grid columns={3} gap={5}>
5555
<flex direction="col" gap={6} style={{"gridColumn":"span 2","background":"hsl(var(--card))","border":"1px solid hsl(var(--border))","borderRadius":"var(--radius)","padding":"24px"}}>
5656
<div style={{"fontSize":"16px","fontWeight":"600","color":"hsl(var(--foreground))"}}>Weekly Throughput</div>
57-
<grid columns={7} gap={4} style={{"height":"140px","alignItems":"end"}}>
58-
<flex style={{"height":"48px","borderRadius":"8px","background":"hsl(var(--primary) / 0.55)"}} />
59-
<flex style={{"height":"86px","borderRadius":"8px","background":"hsl(var(--primary) / 0.7)"}} />
60-
<flex style={{"height":"64px","borderRadius":"8px","background":"hsl(var(--primary) / 0.55)"}} />
61-
<flex style={{"height":"120px","borderRadius":"8px","background":"hsl(var(--primary))"}} />
62-
<flex style={{"height":"58px","borderRadius":"8px","background":"hsl(var(--primary) / 0.55)"}} />
63-
<flex style={{"height":"100px","borderRadius":"8px","background":"hsl(var(--primary) / 0.7)"}} />
64-
<flex style={{"height":"40px","borderRadius":"8px","background":"hsl(var(--primary) / 0.4)"}} />
65-
</grid>
57+
<div style={{"display":"grid","gridTemplateColumns":"repeat(7, 1fr)","gap":"16px","height":"140px","width":"100%","alignItems":"end"}}>
58+
<div style={{"height":"48px","borderRadius":"8px","background":"hsl(var(--primary) / 0.55)"}} />
59+
<div style={{"height":"86px","borderRadius":"8px","background":"hsl(var(--primary) / 0.7)"}} />
60+
<div style={{"height":"64px","borderRadius":"8px","background":"hsl(var(--primary) / 0.55)"}} />
61+
<div style={{"height":"120px","borderRadius":"8px","background":"hsl(var(--primary))"}} />
62+
<div style={{"height":"58px","borderRadius":"8px","background":"hsl(var(--primary) / 0.55)"}} />
63+
<div style={{"height":"100px","borderRadius":"8px","background":"hsl(var(--primary) / 0.7)"}} />
64+
<div style={{"height":"40px","borderRadius":"8px","background":"hsl(var(--primary) / 0.4)"}} />
65+
</div>
6666
</flex>
6767
<flex direction="col" gap={4} style={{"background":"hsl(var(--card))","border":"1px solid hsl(var(--border))","borderRadius":"var(--radius)","padding":"24px"}}>
6868
<div style={{"fontSize":"16px","fontWeight":"600","color":"hsl(var(--foreground))"}}>Recent Activity</div>

0 commit comments

Comments
 (0)