Repository navigation
feat(lab,cli): LogStream component + logs-explorer and deployment-detail templates - #3330
Conversation
…templates - New experimental LogStream (packages/lab): mono grid rows with token-derived level accents, expandable detail rows, follow-scroll live tail with a "Jump to latest" affordance, @starting-style fade-in for appended entries, and an always-dark terminal variant. content-visibility for offscreen rows; no virtualization (documented limit). - New logs-explorer page template (Dashboard - Monitoring): facet rail, PowerSearch over level/service/message, scripted 1200ms live tail. - New deployment-detail page template (new Tools - Deployment Detail category): status header, metadata grid, streaming terminal build log with Redeploy replay. - Changeset covers cli + core only: @astryxdesign/lab is private/canary-only and check-changesets rejects it in frontmatter.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…er styled The sandbox never loaded lab's compiled StyleX CSS — existing lab chart templates masked this because charts style via SVG attributes. LogStream (and any class-styled lab component) rendered unstyled: stacked block rows, no terminal chrome. Verified via Playwright render pass.
|
Follow-up commit 982330c: a Playwright render pass caught LogStream rendering unstyled in the sandbox (stacked rows, no terminal chrome). Root cause was pre-existing: the sandbox's globals.css never imported |
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR No new or modified components detected. Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
cixzhang
left a comment
There was a problem hiding this comment.
Thanks for starting this. I'm pretty amenable to new things in lab but we should move the examples and templates for the new component out of the public packages for the time being until we have a chance to review and harden the component.
| @@ -0,0 +1,8 @@ | |||
| --- | |||
| '@astryxdesign/cli': patch | |||
| @@ -0,0 +1,354 @@ | |||
| // Copyright (c) Meta Platforms, Inc. and affiliates. | |||
There was a problem hiding this comment.
For lab components we should put the examples in storybook for the time being since the templates get published through the CLI and docsite.
… released via changesets)
Why
Log/terminal surfaces were a top hand-rolled gap in the product-scale demo apps built on the design system: the Datadog-style clone built expandable log rows + live tail from scratch, and the Vercel-style clone built both a runtime log grid and a terminal build-log viewer. Nothing in core/lab covered streaming, log-level rows, or terminal chrome.
What
LogStream(packages/lab/src/LogStream/, experimental):color-mixrow washes,light-dark()-corrected warn text), expandable detail rows as real<button aria-expanded>elementsisFollowingvariant="terminal"always-dark chrome;renderEntryescape hatch;role="log"scroller;content-visibility: autorows (virtualization documented as a known limit);@starting-stylefade-in for tailed lines, reduced-motion safeTemplates:
logs-explorer(Dashboard - Monitoring, previously empty): facet rail (LayoutPanel start slot, CheckboxList facets with counts, hides ≤768px) + PowerSearch + LogStream with live-tail Switch and pulsing StatusDot — rows, zero cardsdeployment-detail(newTools - Deployment Detailcategory): status header (mono id, env Token, StatusDot, Visit/Redeploy/Promote) + MetadataList +LogStream variant="terminal"streaming a fixed staged build script on RedeployNote: the changeset covers cli + core only — the repo's changeset gate rejects
@astryxdesign/lab(canary-only), noted in the commit message.Testing
10/10 LogStream tests, 117/117 lab suite; core + lab builds clean;
typecheck:template-docsclean; sandbox sync +tsc --noEmitzero new errors; both--skeletonrenders verified.