Skip to content

feat(lab): DialogHeroHeader showcase, and astryx discover lists it - #10109

Merged
cixzhang merged 7 commits into
mainfrom
carry/dialog-hero-header-showcase
Nov 8, 2026
Merged

cixzhang merged 7 commits into
mainfrom
carry/dialog-hero-header-showcase

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Part 3 of 3 of the carry that supersedes #5105 (jiunshinn's DialogHeroHeader). Its two bases have merged: #10105 (Core) and #10108 (the Lab component). This PR now targets main and holds only the showcase and discover entries. It carries jiunshinn's showcase and discover entries on a team branch, with a Co-authored-by trailer.

User impact

A builder browsing the Lab showcases, or running astryx discover, finds DialogHeroHeader and a working example to copy.

What is in this PR

  • packages/lab/blocks/DialogHeroHeaderShowcase.tsx and its .doc.mjs.
  • packages/cli/assets/discover/official-packages.json: the DialogHeroHeader and showcase entries.
  • internal/shadcn-registry/routes.lock.json: the showcase route.
  • .changeset/…dhhr.md: names @astryxdesign/cli for the discover entries (credits jiunshinn).

Authority

Lab under the design owner's Lab grant.

Testing

  • pnpm check:changesets; eslint on the showcase.
  • Size: 5 files, +134.

@vercel

vercel Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 8, 2026 3:58pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 5, 2026
@astracat-bot

astracat-bot Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 8, 2026, 6:44 PM UTC

@cixzhang

cixzhang commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec f8ad635

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the showcase block, the discover entries and the route-lock entry line up with what the generators produce, but the new block loses keyboard focus.

  • packages/lab/blocks/DialogHeroHeaderShowcase.tsx unmounts the focused button on Close (line 57), Get started (line 73) and Preview welcome dialog (line 83), so keyboard focus falls to the page body each time; keep the preview static like Core's DialogHeaderShowcase, or have the click handler mark that focus should move and focus the replacing control from a callback ref.

The discover list matches its generator, the block clears the Lab package's missing-example note for DialogHeroHeader, and the route-lock entry matches the registry's derived name.

[Automated review]

@cixzhang
cixzhang force-pushed the carry/dialog-hero-header branch from 9a05f56 to 71eff45 Compare November 5, 2026 21:37
@cixzhang
cixzhang force-pushed the carry/dialog-hero-header-showcase branch from f8ad635 to 853fdc2 Compare November 5, 2026 21:38
@cixzhang

cixzhang commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec 853fdc2

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the showcase now stays open, so keyboard focus stays on the pressed button, and the discover and route-lock entries match what the generators derive. One wording fix is left.

  • Regression: the changeset (.changeset/astryx-discover-lists-the-lab-dialogheroheader-c-dhhr.md, line 5) says astryx discover now lists the DialogHeroHeader component, but that entry moved into #10108 when its branch was rebuilt, so word this changeset for the DialogHeroHeaderShowcase template alone and give the component line its own @astryxdesign/cli changeset in #10108, as the CircleCheckIndicator change did.

The description's file list and size still describe the earlier revision and need the same update.

[Automated review]

@cixzhang
cixzhang force-pushed the carry/dialog-hero-header branch from 71eff45 to 786ed9e Compare November 6, 2026 05:02
@cixzhang
cixzhang force-pushed the carry/dialog-hero-header-showcase branch from 853fdc2 to 33bc8cb Compare November 6, 2026 05:03
@cixzhang

cixzhang commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec 33bc8cb

cixzhang and others added 3 commits November 5, 2026 21:11
A hero-style Dialog header for Lab: media above a title,
composed inside an Astryx Dialog, naming the dialog and requesting title
focus through the internal Dialog context. Carries jiunshinn's component,
tests, doc and story from #5105, as of its handshake fix (the rendered
heading drives the handshake, so a re-render keeps focus and a late
heading still names the dialog).

Co-authored-by: jiunshinn <jiun.dev@gmail.com>
@cixzhang
cixzhang force-pushed the carry/dialog-hero-header branch from 786ed9e to 25a3e5d Compare November 6, 2026 05:12
cixzhang and others added 3 commits November 5, 2026 21:12
Carries jiunshinn's showcase block and doc, the official package index
entries, and the CLI changeset from #5105.

Co-authored-by: jiunshinn <jiun.dev@gmail.com>
…lls to the page; the Showcase story comes with its block
@cixzhang
cixzhang force-pushed the carry/dialog-hero-header-showcase branch from 33bc8cb to 2672f94 Compare November 6, 2026 05:12
@cixzhang

cixzhang commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec 2672f94

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: CI has not run on this head yet, because a draft pull request on this branch runs no CI workflow.

The changeset now describes only the DialogHeroHeaderShowcase template this pull request adds, the showcase keeps keyboard focus on the pressed button, and the discover and route-lock entries match what their generators derive.

  • Non-blocking: the description still lists "the DialogHeroHeader and showcase entries" for the discover file and "5 files, +134"; this pull request now adds only the showcase entry, across 6 files (+127) including the Storybook story.

[Automated review]

@cixzhang
cixzhang changed the base branch from carry/dialog-hero-header to main November 8, 2026 15:26
# Conflicts:
#	apps/storybook/stories/DialogHeroHeader.stories.tsx
@cixzhang

cixzhang commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec d8dd1b2

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · d8dd1b2

Storybook · Sandbox · built from this PR's head

Package size: @astryxdesign/cli 3.52 MB packed (+6 B); no new dependencies.

API changes: none in this pull request

Committed API report behind this build: cli 29 rows, core 35 rows, theme-butter 1 row, theme-y2k 1 row; run pnpm api:report.

Not run on this PR: add ci:run-visual, ci:run-a11y or ci:run-rtl to run them.


Generated by PR Enrichment workflow | View full report

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved: the required checks have run on this revision and pass.

The showcase block, its story, the discover entry and the route-lock entry match what their generators derive, the changeset names only the template this pull request adds, and the preview keeps keyboard focus on the pressed button.

  • Non-blocking: the description still lists "the DialogHeroHeader and showcase entries" for the discover file and "5 files, +134"; this pull request adds only the showcase entry, across 6 files (+127) including the Storybook story.

[Automated review]

@cixzhang
cixzhang merged commit f9cd81f into main Nov 8, 2026
177 checks passed
@cixzhang cixzhang mentioned this pull request Nov 8, 2026
4 tasks done
@cixzhang
cixzhang deleted the carry/dialog-hero-header-showcase branch November 8, 2026 19:46

This branch was successfully deployed

1 active deployment
Preview — d8dd1b22 Deployed Nov 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant