Skip to content

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

Draft
cixzhang wants to merge 3 commits into
carry/dialog-hero-headerfrom
carry/dialog-hero-header-showcase
Draft

cixzhang wants to merge 3 commits into
carry/dialog-hero-headerfrom
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). It stacks on #10108 (the Lab component), which stacks on #10105 (Core). 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 6, 2026 5:19am 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 6, 2026, 5:30 AM 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]

Comment on lines +30 to +31
return isOpen ? (
<Dialog isOpen isInline onOpenChange={setIsOpen}>

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.

Each transition here unmounts the button that holds focus: Close (line 57), Get started (line 73) and Preview welcome dialog (line 83). In Chromium, after pressing Enter on any of them, focus is on the page body, so a keyboard user loses their place. Core's DialogHeaderShowcase keeps a static preview with a no-op onOpenChange. Alternatively, keep the toggle, have the click handler mark that focus should move, and focus the replacing control from its callback ref.

@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]

'@astryxdesign/cli': patch
---

[feat] `astryx discover` lists the Lab DialogHeroHeader component and its DialogHeroHeaderShowcase template from `@astryxdesign/lab`. (#4182)

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.

Regression: this pull request now adds only the DialogHeroHeaderShowcase template entry to official-packages.json; the DialogHeroHeader component entry moved into #10108 when its branch was rebuilt. Word this note for the template alone, for example "astryx discover lists DialogHeroHeaderShowcase, the showcase template for the Lab DialogHeroHeader, from @astryxdesign/lab.", and give the component line its own @astryxdesign/cli changeset in #10108.

@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: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]

This branch was successfully deployed

1 active deployment
Preview — 2672f941 Deployed Nov 6, 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