Repository navigation
fix(templates): toolbar, selector, table, tab and popover example buttons respond - #12048
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec c6dd8c7 |
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
Changes requested. The demo toasts work as described, but three things need fixing first.
ToolbarThreeSlot.tsx:25: the Back arrow (ArrowLeftIcon) does not mirror in right-to-left layouts, so it points forward there; use<Icon icon={ArrowLeftIcon} xstyle={rtlStyles.mirror} />withrtlStylesfrom@astryxdesign/core/utils.- The changeset says every toolbar block's action buttons now show a demo note, but New item in Toolbar — Tab Navigation, Delete and Archive in Toolbar — Bulk Actions, and Back in Toolbar — Three Slot still do nothing, so name the nine changed blocks instead.
- The description mentions a Copy control and menu items that this change does not touch, and says every button now responds although Back in the three slot toolbar does not, so please correct it.
Non-blocking: TabList — With Actions keeps its existing raw <div>, inline SVG icons and inline styles, which this change does not touch. CI did not run on this head because CI was full, so it needs a re-run.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim: the toolbar card header, sizes and three slot examples, the selector and multi-selector toolbars, option descriptions, table Export, tab list actions and popover quick actions show a demo toast instead of doing nothing. Verified in Chromium: each tested button shows its note on this branch and nothing on main.
- Claim: Delete and Archive in the bulk-actions toolbar are not changed. Verified:
ToolbarBulkActions.tsxis not in the change. - Claim: these blocks rendered buttons and menu items that did nothing. False for menu items: no menu item in these blocks changes.
- Claim: each control now does what it says or says plainly that the example stops there. False: Back in
ToolbarThreeSlot.tsx:22-27still does nothing. - Claim: no props, API, layout or styling change. Verified from the diff.
- Claim: pixel-identical at rest. Verified at 1280 px with script on for all nine blocks; 390 px and script-off were not retaken.
- Claim: the toast appears only after a press. Verified.
- Claim: each changed control shows its note, and Copy really copies. The notes are verified; false for Copy, since no Copy control is in this change.
- Claim: a build replay shows no recommendation changes. Not rechecked; no template doc, keyword or description changed.
- Claim: typecheck, lint and Prettier pass. Verified: strict TypeScript with no unused locals reports nothing in the nine blocks, ESLint and Prettier pass, and the CI lint job passed.
- Changeset: toolbar, selector, table, tab list and popover example blocks' action buttons show a demo note. Overbroad: four toolbar buttons still do nothing.
- File
.changeset/block-controls-toolbars.md: overbroad claim, as above. - File
packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorGhostToolbar.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Popover/PopoverHookUsage.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Selector/SelectorGhostToolbar.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Selector/SelectorOptionDescriptions.tsx: clear. - File
packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithActions.tsx: clear for this change; existing rubric deductions noted. - File
packages/cli/assets/templates/blocks/components/Table/TableBulkActionsTable.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Toolbar/ToolbarCardHeader.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Toolbar/ToolbarSizes.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Toolbar/ToolbarThreeSlot.tsx: the Back arrow does not mirror in right-to-left, as above.
…o-left; name the changed blocks
|
/approve-spec d705be9 |
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about the demo-toast notes in the nine blocks, which no current record covers. The earlier /approve-spec named the previous commit, so an engineering owner records the decision for this head by commenting /approve-spec d705be9814795ed97f8c53815c4afd6a082b84d9 on this pull request; the author may do so as an engineering owner.
- The description still mentions menu items and a Copy control that this change does not touch, says each control now does what it says although Back in the three-slot toolbar still does nothing, and says nothing changes styling although the Back icon now mirrors in right-to-left, so please correct it.
The right-to-left Back arrow and the changeset wording from the last review are fixed, and CI needs a re-run because it found no room on this head. Non-blocking: TabList — With Actions keeps its existing raw <div>, inline SVG icons and inline styles, and the changeset could say Back "still does nothing on press" instead of "unchanged".
Claims and files checked
Review mode: incremental; reason: none
- Claim: the toolbar (card header, sizes, three slot), selector and multi-selector toolbar, option descriptions, table Export, tab list and popover examples show a demo toast instead of doing nothing. Verified: 16 handlers across the nine files; in Chromium, Save and Filter show their notes on this branch and nothing on main.
- Claim: Delete and Archive in the bulk-actions toolbar are not changed. Verified:
ToolbarBulkActions.tsxis not in the change. - Claim: these blocks rendered buttons and menu items that did nothing. False for menu items: no menu item changes.
- Claim: each control now does what it says or says plainly that the example stops there. False: Back in
ToolbarThreeSlot.tsx:23-28still does nothing. - Claim: no props, API, layout or styling change. Props, API and layout verified; false for styling, since the Back icon mirrors in right-to-left (
ToolbarThreeSlot.tsx:26). - Claim: pixel-identical at rest at 390 and 1280 px, with script on and off. Verified at 1280 px left-to-right with script on; 390 px and script-off were not retaken; right-to-left now differs on purpose.
- Claim: the toast appears only after a press. Verified.
- Claim: each changed control shows its note, and Copy really copies. Notes verified; false for Copy, which is not in this change.
- Claim: a build replay shows no change to starts, alternatives or block lists. Not rechecked; no template doc, keyword or description changed.
- Claim: strict typecheck with no unused locals, lint and Prettier pass. Verified for the nine blocks; the CI lint job passed.
- Claim: example blocks only, no component or API change. Verified.
- Claim: public text carries no internal context. Verified.
- Changeset: the nine named blocks' action buttons show a demo note, and the three-slot Back arrow mirrors in right-to-left. Verified in Chromium: the arrow flips only under right-to-left.
- Changeset: the three-slot Back, the bulk-actions Delete and Archive, and other blocks' controls are unchanged. Verified for what they do on press; the wording reads as if Back's icon did not change either (non-blocking).
- File
.changeset/block-controls-toolbars.md: clear; wording note on Back. - File
packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorGhostToolbar.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Popover/PopoverHookUsage.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Selector/SelectorGhostToolbar.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Selector/SelectorOptionDescriptions.tsx: clear. - File
packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithActions.tsx: clear for this change; existing template deductions noted. - File
packages/cli/assets/templates/blocks/components/Table/TableBulkActionsTable.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Toolbar/ToolbarCardHeader.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Toolbar/ToolbarSizes.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Toolbar/ToolbarThreeSlot.tsx: clear; the Back arrow now mirrors in right-to-left.
|
/approve-spec fb69d7b |
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about the demo-toast notes in the nine blocks, which no current record covers. The /approve-spec posted for the previous commit no longer counts after the changeset rewording, so an engineering owner records the decision for this head by commenting /approve-spec fb69d7b478bef4a92be7686ecca85b70239ca053 on this pull request; the author may do so as an engineering owner.
The description and changeset wording from the last review are fixed, and nothing else blocks approval. CI needs a re-run because it found no room on this head. Non-blocking: TabList — With Actions keeps its existing raw <div>, inline SVG icons and inline styles.
Claims and files checked
Review mode: incremental; reason: none
- Title: the toolbar, selector, table, tab and popover example buttons respond. Verified: 16 handlers across the nine blocks.
- Description: in the listed examples each action button shows a demo toast instead of doing nothing. Verified: in Chromium, Save, Create task and New item show their notes on this branch and nothing on main; the other handlers have the same shape.
- Description: the three-slot Back arrow mirrors in right-to-left and gets no toast. Verified: the arrow flips only under right-to-left, and Back has no handler (
ToolbarThreeSlot.tsx:23-28). - Description: Back still does nothing on press, and the bulk-actions toolbar's Delete and Archive and controls in other toolbar blocks are not changed. Verified:
ToolbarBulkActions.tsxandToolbarWithTabs.tsxare not in the change. - Description: the listed controls now do what they say or say plainly that the example stops there, and other controls are unchanged. Verified.
- Description: no props, API or layout change, and the only style change is the Back arrow mirror. 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 1280 px left-to-right with script on and after a press; 390 px and script-off were not retaken.
- Description: a browser check shows each changed control's note. Verified for Save, Create task and New item.
- Description: a build replay shows no change to starts, alternatives or block lists. Not rechecked; no template doc, keyword or description changed.
- Description: strict typecheck, lint and Prettier pass. Lint and Prettier verified, and the CI lint job passed; typecheck did not run on this head because CI found no room.
- Description: example blocks only, no component or API change, and no internal context in public text. Verified.
- Changeset: the nine named blocks' action buttons show a demo note, and the three-slot Back arrow mirrors in right-to-left. Verified.
- Changeset: the three-slot Back still does nothing on press; the bulk-actions Delete and Archive and other blocks' controls are unchanged. Verified.
- File
.changeset/block-controls-toolbars.md: clear. - File
packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorGhostToolbar.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Popover/PopoverHookUsage.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Selector/SelectorGhostToolbar.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Selector/SelectorOptionDescriptions.tsx: clear. - File
packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithActions.tsx: clear for this change; existing template deductions noted. - File
packages/cli/assets/templates/blocks/components/Table/TableBulkActionsTable.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Toolbar/ToolbarCardHeader.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Toolbar/ToolbarSizes.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Toolbar/ToolbarThreeSlot.tsx: clear.
|
/approve-spec 09018f1 |
There was a problem hiding this comment.
Approved pending CI: CI found no room on this head and ran none of its build and test jobs, so all jobs need a re-run, and the required checks must pass before merge.
The 16 example buttons in the nine blocks now show their demo note on press, the three-slot toolbar's Back arrow mirrors in right-to-left, and an engineering owner approved the demo-toast direction for this head.
- Non-blocking: TabList — With Actions still scores below the template rubric's 75 because of its raw
<div>action row, inline SVG icons and inline styles; anHStackwithgapand heroicons throughIconwould fix that in a later change.
Claims and files checked
Review mode: incremental; reason: none
- Claim: The changeset releases the CLI as a patch: verified (changeset front matter).
- Claim: The changeset says the action buttons in the nine named blocks show a short demo note instead of doing nothing: verified (16 press handlers across the nine files; on the base each had no handler, or an empty one for the table Export).
- Claim: The changeset and description say the three-slot toolbar's Back arrow mirrors in right-to-left: verified (
ToolbarThreeSlot.tsx:26; a right-to-left browser probe shows the arrow flipped on the head and not on the base). - Claim: The changeset and description say Back still does nothing on press: verified (
ToolbarThreeSlot.tsx:23-28has no handler; a press shows no note). - Claim: The changeset and description say the bulk-actions toolbar's Delete and Archive and other blocks' controls, such as the toolbar-with-tabs New item, are unchanged: verified (those blocks are not in the diff; the table block's Delete keeps clearing the selection).
- Claim: The description says no props, API or layout change, and the only style change is the Back mirror: verified (diff; left-to-right frames are pixel-identical).
- Claim: The description says the blocks are pixel-identical at rest and the note appears only after a click: verified at 1280 px in left-to-right by capture, and at 390 px from the code, which adds only press handlers and a right-to-left-only transform.
- Claim: The description says each changed control shows its note in a browser: verified for five controls by capture and for the rest from the code.
- Claim: The description says a build replay shows no change to the start, alternatives or block lists: verified from the code (no template doc changed, and block search reads only the authored doc fields).
- Claim: The description says typecheck, lint and prettier pass: verified (strict typecheck with no unused locals reports no error in the nine templates; eslint and prettier pass; the Lint workflow passed).
- Claim: The description says the change is example blocks only with no component or API change, and its public text holds no internal context: verified.
- Claim: The title says the toolbar, selector, table, tab and popover example buttons respond: verified.
- File:
.changeset/block-controls-toolbars.md: clear - File:
MultiSelector/MultiSelectorGhostToolbar.tsx: clear - File:
Popover/PopoverHookUsage.tsx: clear - File:
Selector/SelectorGhostToolbar.tsx: clear - File:
Selector/SelectorOptionDescriptions.tsx: clear - File:
TabList/TabListTabsWithActions.tsx: non-blocking rubric note (existing deductions, not lowered) - File:
Table/TableBulkActionsTable.tsx: clear - File:
Toolbar/ToolbarCardHeader.tsx: clear - File:
Toolbar/ToolbarSizes.tsx: clear - File:
Toolbar/ToolbarThreeSlot.tsx: clear
What
In the toolbar examples (card header, sizes, three slots), the selector and multi-selector toolbars, the selector with option descriptions, the table with bulk actions (Export), the tab list with actions and the popover hook example, each action button shows an honest "Demo: ... would ... here" toast instead of doing nothing.
The three-slot toolbar's Back arrow now mirrors in right-to-left (it is navigation, so it does not get a toast).
Not changed: Back still does nothing on press; the bulk-actions toolbar's Delete and Archive (destructive, no confirm step in that example), and controls in other toolbar blocks.
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 or layout change; the only style change is the Back arrow mirroring in right-to-left.
Evidence
Scope