Repository navigation
fix(templates): CommandPaletteGroup basic, CommandPaletteList and DropdownMenuGroup showcase examples respond when picked - #12046
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec 44850e0 |
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
Changes requested: two claim fixes are needed, while the demo-toast direction itself is settled by the engineering owner's /approve-spec for this head.
- The changeset (
.changeset/block-controls-menus.md:5) and the title say every command palette and dropdown menu example now responds, but 13 picks inCommandPaletteItemBasic,DropdownMenuShowcase,DropdownMenuItemBasicandDropdownMenuItemShowcasestill do nothing, so name only the CommandPaletteGroup and CommandPaletteList blocks and the DropdownMenuGroup showcase, or wire the rest. - The description's "(Copy really copies)" names a control this change does not have, since "Compare with current" shows a toast like the others, so drop the parenthetical.
Non-blocking: picking the same item twice stacks two identical toasts; passing the item's value as uniqueID makes a repeat replace the card, as the messaging shell template does.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim: in the command palette group and list examples and the dropdown menu group showcase, picking an item shows a "Demo: … would … here" toast instead of doing nothing. Verified for all 13 handlers, and in a browser for one pick per block.
- Claim: disabled items stay disabled. Verified: the disabled item's handler is unchanged and a click on it shows nothing.
- Claim: no props, API, layout or styling change. Verified: only the handlers, the toast import and one hook call change, and the blocks at rest are pixel-identical to the base.
- Claim: pixel-identical at rest at 390 and 1280 px with script on and off, and the toast appears only after a click. Partly verified: identical at 800 px with script on, and the toast appears only after a pick; the other widths and script off were not reproduced.
- Claim: each changed control shows its note (Copy really copies). The first part is verified; the parenthetical is false.
- Claim: a build replay shows no start, alternatives list or block list change. Not reproduced; consistent with unchanged block metadata and an identical template list.
- Claim: typecheck (strict, no unused locals), lint and prettier pass. Verified for the four changed blocks.
- Claim: example blocks only, with no component or API change. Verified.
- Claim: public text contains no internal context. Verified.
- Changeset: command palette and dropdown menu example blocks respond when picked. False in scope: four other such blocks still have empty handlers.
.changeset/block-controls-menus.md: finding (scope).CommandPaletteGroupBasic.tsx: clear.CommandPaletteListBasic.tsx: clear.CommandPaletteListShowcase.tsx: clear.DropdownMenuGroupShowcase.tsx: clear (non-blocking toast stacking note).
|
/approve-spec ba6a053 |
There was a problem hiding this comment.
This needs an engineering owner's decision before it can be approved, and one wording fix remains.
No current spec record says what picking an item in a template block does, and the earlier /approve-spec names the previous commit, so an engineering owner needs to record the demo-toast decision for this head by commenting /approve-spec <full head SHA> (the author can do this as an engineering owner) or point to the record that governs it.
- The changeset (
.changeset/block-controls-menus.md:5) and the title still say the command palette group examples respond, but the CommandPaletteGroup showcase block is unchanged and a pick there still shows nothing, so name only the CommandPaletteGroup basic block (for example "The CommandPaletteGroup basic block, both CommandPaletteList blocks and the DropdownMenuGroup showcase: picking an item shows a short demo note instead of doing nothing.") or wire the showcase too; the wording suggested in the previous review had the same gap.
Both claim fixes from the previous review are done. Non-blocking: picking the same item twice stacks two identical toasts, and passing the item's value as uniqueID makes a repeat replace the card.
Claims and files checked
Review mode: incremental; reason: none
- Changed rules (0): none.
- Changeset: the command palette group and list example blocks and the dropdown menu group showcase show a demo note when an item is picked, and other examples are unchanged. Partly false: the CommandPaletteGroup showcase is unchanged and a pick there shows nothing; the rest is verified.
- Description: picking an item in the CommandPaletteGroup basic block, both CommandPaletteList blocks and the dropdown menu group showcase shows a demo toast instead of doing nothing. Verified for all 13 picks in a browser.
- Description: disabled items stay disabled. Verified: the disabled item's handler is unchanged and a click on it shows nothing.
- Description: other command palette and dropdown menu examples, and other controls, are unchanged. Verified: only four block files and the changeset change.
- Description: no props, API, layout or styling change. Verified.
- Description: pixel-identical at rest at 390 and 1280 px with script on and off, and the toast appears only after a click. Verified at 390, 800 and 1280 px with script on; script off was not reproduced.
- Description: a browser check shows each changed control's note. Verified.
- Description: a build replay shows no start, alternatives list or block list change. Not reproduced; consistent with unchanged block metadata and an identical template list.
- Description: strict typecheck with no unused locals, lint and prettier pass. Verified for the four blocks and the changeset.
- Description: example blocks only, with no component or API change, and no internal context in public text. Verified.
.changeset/block-controls-menus.md: finding (scope).CommandPaletteGroupBasic.tsx: clear (non-blocking repeated-toast note).CommandPaletteListBasic.tsx: clear (non-blocking repeated-toast note).CommandPaletteListShowcase.tsx: clear (non-blocking repeated-toast note).DropdownMenuGroupShowcase.tsx: clear (non-blocking repeated-toast note).
|
/approve-spec 5329bfa |
There was a problem hiding this comment.
Changes requested: one title fix remains. The demo-toast direction is settled by the engineering owner's /approve-spec for this head, and the changeset now names exactly the changed blocks.
- The title's "command palette basic/list … examples respond when picked" also covers the CommandPaletteItem basic block, whose picks still do nothing (
CommandPaletteItemBasic.tsx:13,:16,:19), so retitle to match the changeset, for example "fix(templates): CommandPaletteGroup basic, CommandPaletteList and DropdownMenuGroup showcase examples respond when picked".
Editing the title adds no commit, so the owner decision for this head still applies. Non-blocking: picking the same item twice stacks two identical toasts, and passing the item's value as uniqueID makes a repeat replace the card.
Claims and files checked
Review mode: incremental; reason: none
- Changed rules (0): none.
- Title: the command palette basic and list examples and the dropdown menu group examples respond when picked. False for the CommandPaletteItem basic block, whose picks still do nothing; the rest is verified.
- Changeset: the CommandPaletteGroup basic block, both CommandPaletteList blocks and the DropdownMenuGroup showcase show a demo note when an item is picked, and other command palette and dropdown menu examples are unchanged. Verified against the four changed block files.
- Description: picking an item in the CommandPaletteGroup basic block, both CommandPaletteList blocks and the dropdown menu group showcase shows a demo toast instead of doing nothing. Verified for all 13 picks.
- Description: disabled items stay disabled. Verified: the disabled item keeps its empty handler and a click on it shows nothing.
- Description: other command palette and dropdown menu examples, and other controls, are unchanged. Verified: only four block files and the changeset change.
- Description: no props, API, layout or styling change. Verified.
- Description: pixel-identical at rest at 390 and 1280 px with script on and off, and the toast appears only after a click. Verified at 390, 800 and 1280 px with script on; script off was not reproduced.
- Description: a browser check shows each changed control's note. Verified.
- Description: a build replay shows no start, alternatives list or block list change. Not reproduced; consistent with unchanged block metadata and an unchanged template list.
- Description: strict typecheck with no unused locals, lint and prettier pass. Verified for the four blocks and the changeset.
- Description: example blocks only, with no component or API change, and no internal context in public text. Verified.
.changeset/block-controls-menus.md: clear.CommandPaletteGroupBasic.tsx: clear (non-blocking repeated-toast note).CommandPaletteListBasic.tsx: clear (non-blocking repeated-toast note).CommandPaletteListShowcase.tsx: clear (non-blocking repeated-toast note).DropdownMenuGroupShowcase.tsx: clear (non-blocking repeated-toast note).
|
/approve-spec 5583986 |
There was a problem hiding this comment.
Approved pending CI: Lint, the CLI smoke test and the Storybook build passed on this head, but the CI run was cancelled because CI had no free capacity ("CI is full"), so its jobs need a re-run and merging waits for the required checks to pass. The demo-toast direction is settled by the engineering owner's /approve-spec for this head, and the retitle fixed the last open point: the title now names exactly the four changed blocks.
Non-blocking: picking the same item twice stacks two identical toasts; passing the item's value as uniqueID would make a repeat replace the card.
Claims and files checked
Review mode: incremental; reason: none
- Changed rules (0): none.
- Title: the CommandPaletteGroup basic, CommandPaletteList and DropdownMenuGroup showcase examples respond when picked. Verified: those are exactly the four changed blocks.
- Changeset: the CommandPaletteGroup basic block, both CommandPaletteList blocks and the DropdownMenuGroup showcase show a short demo note when an item is picked, and other command palette and dropdown menu examples are unchanged. Verified against the four changed block files.
- Description: picking an item in those blocks shows a demo toast instead of doing nothing. Verified for all 13 handlers in the source and one pick per block in the browser.
- Description: disabled items stay disabled. Verified: the disabled item keeps its empty handler, and a click on it shows nothing.
- Description: other command palette and dropdown menu examples, and other controls in these blocks, are unchanged. Verified: only the four block files and the changeset change.
- Description: no props, API, layout or styling change. Verified.
- Description: pixel-identical at rest at 390 and 1280 px with script on and off, and the toast appears only after a click. Verified at 390 and 900 px with script on; 1280 px and script off were not reproduced.
- Description: a browser check shows each changed control's note. Verified for one pick per block; every handler checked in the source.
- Description: a build replay shows no start, alternatives list or block list change. Not reproduced; consistent with an identical template list and unchanged block metadata.
- Description: strict typecheck with no unused locals, lint and prettier pass. Verified for the four blocks and the changeset.
- Description: example blocks only, with no component or API change, and no internal context in public text. Verified.
.changeset/block-controls-menus.md: clear.CommandPaletteGroupBasic.tsx: clear (non-blocking repeated-toast note).CommandPaletteListBasic.tsx: clear (non-blocking repeated-toast note).CommandPaletteListShowcase.tsx: clear (non-blocking repeated-toast note).DropdownMenuGroupShowcase.tsx: clear (non-blocking repeated-toast note).
What
In the command palette group and list examples (CommandPaletteGroup basic, CommandPaletteList basic and showcase) and the dropdown menu group showcase, picking an item shows an honest "Demo: ... would ... here" toast instead of doing nothing. Disabled items stay disabled. Other command palette and dropdown menu examples are unchanged.
Why
Some controls in these example blocks did nothing when used. The controls listed above now do what they say or say plainly that the example stops there. Other controls in these blocks and in other blocks are unchanged. No props, API, layout or styling change.
Evidence
Scope