Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec f8ad635 |
There was a problem hiding this comment.
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.tsxunmounts 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'sDialogHeaderShowcase, 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]
| return isOpen ? ( | ||
| <Dialog isOpen isInline onOpenChange={setIsOpen}> |
There was a problem hiding this comment.
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.
9a05f56 to
71eff45
Compare
f8ad635 to
853fdc2
Compare
|
/approve-spec 853fdc2 |
There was a problem hiding this comment.
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) saysastryx discovernow lists the DialogHeroHeader component, but that entry moved into #10108 when its branch was rebuilt, so word this changeset for theDialogHeroHeaderShowcasetemplate alone and give the component line its own@astryxdesign/clichangeset 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) |
There was a problem hiding this comment.
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.
71eff45 to
786ed9e
Compare
853fdc2 to
33bc8cb
Compare
|
/approve-spec 33bc8cb |
786ed9e to
25a3e5d
Compare
33bc8cb to
2672f94
Compare
|
/approve-spec 2672f94 |
There was a problem hiding this comment.
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]
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-bytrailer.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.tsxand 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/clifor the discover entries (credits jiunshinn).Authority
Lab under the design owner's Lab grant.
Testing
pnpm check:changesets; eslint on the showcase.