Skip to content

fix(templates): toolbar, selector, table, tab and popover example buttons respond - #12048

Merged
josephfarina merged 4 commits into
mainfrom
josephfarina/block-controls-toolbars
Nov 16, 2026
Merged

josephfarina merged 4 commits into
mainfrom
josephfarina/block-controls-toolbars

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Pixel-identical at rest at 390 and 1280 px, with script on and off (full-page screenshots before and after, zero changed pixels); the toast appears only after a click.
  • Browser check: each changed control shows its note.
  • Build replay over real build requests: no start, alternatives list or block list changes.
  • Typecheck (strict, no unused locals), lint and prettier pass.

Scope

  • Example blocks only; no component or API change.
  • Public text contains no internal context.

@vercel

vercel Bot commented Nov 16, 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 16, 2026 10:48am UTC

Request Review

@github-actions github-actions Bot added the needs:design-review Affects visuals — Design should review label Nov 16, 2026
@astracat-bot

astracat-bot Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 16, 2026, 11:02 AM UTC

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

Copy link
Copy Markdown
Contributor Author

/approve-spec c6dd8c7

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 09018f1

Storybook · Sandbox · built from this PR's head

Current run: The current CI run concluded cancelled. Current analysis is unavailable.


Generated by PR Enrichment workflow | View current CI run

@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 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} /> with rtlStyles from @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.tsx is 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-27 still 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.

Automated review (maintainer link)

Comment thread .changeset/block-controls-toolbars.md Resolved
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec d705be9

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

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.tsx is 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-28 still 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.

Automated review (maintainer link)

Comment thread .changeset/block-controls-toolbars.md Resolved
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec fb69d7b

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

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.tsx and ToolbarWithTabs.tsx are 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.

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 09018f1

@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 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; an HStack with gap and heroicons through Icon would 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-28 has 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

Automated review (maintainer link)

@josephfarina
josephfarina merged commit 047f1a9 into main Nov 16, 2026
194 of 237 checks passed
@github-actions
github-actions Bot deleted the josephfarina/block-controls-toolbars branch November 17, 2026 06:03

This branch was successfully deployed

1 active deployment
Preview — 09018f15 Deployed Nov 16, 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. needs:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant