Skip to content

fix(templates): reset, reply, send and go-into icons mirror in right-to-left pages - #12114

Closed
josephfarina wants to merge 2 commits into
mainfrom
josephfarina/rtl-directional-icons
Closed

josephfarina wants to merge 2 commits into
mainfrom
josephfarina/rtl-directional-icons

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

What

In right-to-left pages, a few icons that mean a direction in the reading order did not mirror:

  • settings-dialog: the two Reset buttons (one per changed shortcut, and "Reset all to defaults") use an undo arrow, which means "back".
  • table-inbox: Reply, in the detail pane and as a row action. The row actions are a shared list, so the reply entry is marked as directional and only that icon mirrors. The composer's Send button (a paper airplane, which points along the reading direction) mirrors too.
  • TreeListInteractiveSettings block: the "Documentation" item's end chevron (go into).

Each now uses Core's existing mirroring style, as the other directional icons in these templates already do. The rule is the bidirectionality design record's DR4 (icons that mean previous, next, back or forward mirror once), with DR1 (preserve meaning).

Left unmirrored on purpose, because they show something physical rather than a reading direction: the bottom sheet example's turn-by-turn arrows ("Turn right onto…"), the scorecard's flat-trend arrow (it sits on a chart's time axis, and charts keep their axes), and the canvas editor's width-axis icon.

Evidence

  • Left-to-right unchanged: full-page screenshots of both pages at 390 and 1280 px are pixel-identical before and after.
  • Right-to-left: the inbox's Reply icon now points the mirrored way. With the composer open, the Send icon mirrors and nothing else on the page changes (only its 14 px icon box differs, at 390 and 1280 px); left-to-right with the composer open is pixel-identical. The settings dialog's Reset buttons appear only after a shortcut is changed; they use the same mirroring as the dialog's other directional icon.
  • Build replay over real build requests: no start, alternatives list or block list changes.
  • Lint and prettier pass.

Scope

  • Two page templates and one block; no component or API change.
  • Public text contains no internal context.

preflight: pass 8924328 (env-only fails excused: G59 global-local rows-40-59, packed-gather-cache.records, release/handoff.e2e; each fails identically without the change or passes alone)

@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 19, 2026 2:59am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. 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 19, 2026, 3:07 AM UTC

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

Copy link
Copy Markdown
Contributor Author

/approve-spec 5ed028f

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 0f3299b

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.

Approved pending CI: the CI workflow was cancelled for capacity on this head, so build, test and typecheck have not run yet; re-run its jobs before merging. Reset, Reply and the Documentation chevron now mirror once in right-to-left pages, and left-to-right output is unchanged.

  • Non-blocking: the inbox composer's Send button still shows a rightward paper airplane in right-to-left pages; consider mirroring it like Reply, or say why it stays physical.
  • Non-blocking: both page templates are far past the ~1,000-line page guideline (about 2,790 lines each); simplifying toward one page layout would help, though this change adds only a few lines.
Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claim (release note): the settings dialog's Reset buttons mirror in right-to-left pages. Verified: settings-dialog/page.tsx:1763-1767, :1889-1893.
  • Claim (release note): the inbox's Reply action mirrors. Verified: table-inbox/page.tsx:792, :1018-1024, :1578-1584, and a right-to-left render.
  • Claim (release note): the tree list settings example's Documentation chevron mirrors. Verified: TreeListInteractiveSettings.tsx:36-38, and a right-to-left render.
  • Claim (release note): left-to-right pages look the same. Verified: the mirror applies only under a right-to-left ancestor, and left-to-right renders are pixel-identical before and after.
  • Claim (release note): a patch release of the CLI package. Verified: the templates ship in that package's assets.
  • Claim (description): Reset uses an undo arrow, one per changed shortcut plus Reset all, shown only after a shortcut changes. Verified: settings-dialog/page.tsx:1759, :1878.
  • Claim (description): Reply mirrors in the detail pane and as a row action, and only Reply mirrors through a flag on the shared action list. Verified: table-inbox/page.tsx:784-792, :1018-1024.
  • Claim (description): the same Core mirroring style the other directional icons in these templates already use. Verified: settings-dialog/page.tsx:2403-2408, table-inbox/page.tsx:1436-1438.
  • Claim (description): some icons in other templates stay unmirrored on purpose. Outside this pull request; the named glyphs exist and are untouched.
  • Claim (description): left-to-right screenshots are pixel-identical. Verified at 1280 px for the inbox and the tree list block; 390 px was not re-run.
  • Claim (description): the build replay is unchanged. Consistent: no template metadata changed; the replay was not re-run.
  • Claim (description): lint and formatting pass. Verified: the Lint workflow passed on this head.
  • Claim (description): two page templates and one block, with no component or API change. Verified.
  • Claim (description): public text carries no internal context. Verified.
  • File .changeset/rtl-directional-icons.md: clear.
  • File TreeListInteractiveSettings.tsx: clear.
  • File settings-dialog/page.tsx: non-blocking page-size note.
  • File table-inbox/page.tsx: non-blocking Send icon and page-size notes.

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/rtl-directional-icons branch from 5ed028f to 0f3299b Compare November 17, 2026 03:04
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 0f3299b

@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: the CI workflow was cancelled for capacity on this head, so build, test and typecheck have not run yet; re-run all of its jobs before merging. The settings dialog's Reset arrows, the inbox's Reply and the tree list example's Documentation chevron now mirror once in right-to-left pages, and left-to-right output is unchanged.

  • Non-blocking: the inbox composer's Send button still shows a rightward paper airplane in right-to-left pages; consider mirroring it like Reply, or say why it stays physical.
  • Non-blocking: both page templates are far past the ~1,000-line page guideline (about 2,800 lines each); simplifying toward one page layout would help, though this change adds only a few lines.
Claims and files checked

Review mode: full; reason: rebase

  • Claim (release note): the settings dialog's Reset buttons mirror in right-to-left pages. Verified: settings-dialog/page.tsx:1762-1768, :1888-1894, and a right-to-left render after rebinding a shortcut.
  • Claim (release note): the inbox's Reply action mirrors. Verified: table-inbox/page.tsx:804, :1033-1035, :1611-1618, and a right-to-left render of the pane and every row.
  • Claim (release note): the tree list settings example's Documentation chevron mirrors. Verified: TreeListInteractiveSettings.tsx:36-38, and a right-to-left render.
  • Claim (release note): left-to-right pages look the same. Verified: the mirror applies only under a right-to-left ancestor, and left-to-right renders are pixel-identical before and after.
  • Claim (release note): a patch release of the CLI package. Verified: the templates ship in that package's assets.
  • Claim (description): Reset uses an undo arrow, one per changed shortcut plus Reset all, shown only after a shortcut changes. Verified: settings-dialog/page.tsx:1759, :1878.
  • Claim (description): Reply mirrors in the detail pane and as a row action, and only Reply mirrors through a flag on the shared action list. Verified: table-inbox/page.tsx:792-805, :1024-1036.
  • Claim (description): the same Core mirroring style the other directional icons in these templates already use. Verified: settings-dialog/page.tsx:2404-2407, table-inbox/page.tsx:1471-1473.
  • Claim (description): some icons in other templates stay unmirrored on purpose. Outside this pull request; the named glyphs exist and are untouched.
  • Claim (description): left-to-right screenshots at two widths are pixel-identical. Verified at 1280 px; the narrow width follows because the mirror emits nothing outside right-to-left.
  • Claim (description): the Reset buttons use the same mirroring as the dialog's other directional icon. Verified by a right-to-left render.
  • Claim (description): the build replay is unchanged. Consistent: no template metadata changed; the replay was not re-run.
  • Claim (description): lint and formatting pass. Verified: the Lint workflow, including its changed-file formatting check, passed on this head.
  • Claim (description): two page templates and one block, with no component or API change. Verified.
  • Claim (description): public text carries no internal context. Verified.
  • File .changeset/rtl-directional-icons.md: clear.
  • File TreeListInteractiveSettings.tsx: clear.
  • File settings-dialog/page.tsx: non-blocking page-size note.
  • File table-inbox/page.tsx: non-blocking Send icon and page-size notes.

Automated review (maintainer link)

@josephfarina josephfarina changed the title fix(templates): reset, reply and go-into icons mirror in right-to-left pages fix(templates): reset, reply, send and go-into icons mirror in right-to-left pages Nov 19, 2026

@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: no CI run exists for this head because its commit message carries [skip ci], and the previous head's CI was cancelled for capacity, so build, test and typecheck have not run yet. Push a commit without [skip ci] so the required checks run before merging. The settings dialog's Reset arrows, the inbox's Reply and Send, and the tree list example's Documentation chevron now mirror once in right-to-left pages, and left-to-right output is unchanged; the earlier note about the Send icon is addressed.

  • Non-blocking: both page templates remain far past the ~1,000-line page guideline (about 2,800 lines each); simplifying toward one page layout would help, though this change adds only a few lines.
Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none
  • Claim (release note): the settings dialog's Reset buttons mirror in right-to-left pages. Verified: settings-dialog/page.tsx:1762-1768, :1888-1894, and a right-to-left render at the previous head; those lines are unchanged since.
  • Claim (release note): the inbox's Reply action mirrors. Verified: table-inbox/page.tsx:804, :1031-1037, :1613-1619, and a right-to-left probe at this head.
  • Claim (release note): the inbox's Send button mirrors. Verified: table-inbox/page.tsx:2027-2033, and a right-to-left probe at this head showing one mirror.
  • Claim (release note): the tree list settings example's Documentation chevron mirrors. Verified: TreeListInteractiveSettings.tsx:36-38.
  • Claim (release note): left-to-right pages look the same. Verified: the mirror applies only under a right-to-left ancestor, and left-to-right composer renders are pixel-identical before and after.
  • Claim (release note): a patch release of the CLI package. Verified: the templates ship in that package's assets.
  • Claim (description): Reset uses an undo arrow, one per changed shortcut plus Reset all. Verified: settings-dialog/page.tsx:1759-1768, :1884-1894.
  • Claim (description): Reply mirrors in the detail pane and as a row action, and only Reply mirrors through a flag on the shared action list. Verified: table-inbox/page.tsx:792-805, :1031-1037, :2593-2611.
  • Claim (description): the composer's Send airplane points along the reading direction and mirrors. Verified: left to right it points at its label; right to left at this head it does too.
  • Claim (description): the same Core mirroring style the other directional icons in these templates use. Verified: settings-dialog/page.tsx:2407, table-inbox/page.tsx:1471-1473.
  • Claim (description): some icons in other templates stay unmirrored on purpose. Outside this pull request; those files are untouched.
  • Claim (description): left-to-right screenshots at two widths are pixel-identical. Verified at 1280 px; the narrow width follows because the mirror emits nothing outside right-to-left.
  • Claim (description): with the composer open in right-to-left, only the Send icon's box changes. Verified: the before and after frames differ only in a 14 by 13 px box around that icon.
  • Claim (description): the build replay is unchanged. Consistent: no template metadata changed; the replay was not re-run.
  • Claim (description): lint and formatting pass. Verified at this head: Prettier and ESLint pass on the changed files; CI's lint did not run here.
  • Claim (description): the author's local preflight passes at this head. Not reproducible here; CI has not run on this head.
  • Claim (description): two page templates and one block, with no component or API change. Verified.
  • Claim (description): public text carries no internal context. Verified.
  • File .changeset/rtl-directional-icons.md: clear.
  • File TreeListInteractiveSettings.tsx: clear.
  • File settings-dialog/page.tsx: non-blocking page-size note.
  • File table-inbox/page.tsx: non-blocking page-size note.

Automated review (maintainer link)

josephfarina added a commit that referenced this pull request Nov 19, 2026
- #12694 fix(cli): the Order Detail template's discount uses a minus sign held to its amount
  Author: @josephfarina
- #12114 fix(templates): reset, reply, send and go-into icons mirror in right-to-left pages
  Author: @josephfarina
- #12143 refactor(templates): example blocks lay out with HStack and VStack instead of flex wrappers
  Author: @josephfarina
- #12158 fix(core): ChatComposer keeps its send action inside the composer on a narrow screen
  Author: @josephfarina
- #12242 fix(cli): the npm commands the CLI runs for itself use npm's own noproxy setting
  Author: @josephfarina
- #12283 fix(core): dark secondary text meets 4.5:1 on the neutral fill over the page and cards
  Author: @josephfarina
- #12290 fix(Markdown): keep bulleted and numbered lists inside their column
  Author: @josephfarina
- #12372 [fix] Heading: a missing level renders an h2 and warns, instead of crashing
  Author: @josephfarina
- #12447 spec(AST-057): the swipe codemod's paths match it in any lifecycle folder
  Author: @josephfarina
- #12475 fix(templates): on a phone the settings search moves under the title
  Author: @josephfarina
- #12530 fix(cli): the contact-form template fits a phone; its section fills the width up to 800px
  Author: @josephfarina
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed in #12812.

@github-actions
github-actions Bot deleted the josephfarina/rtl-directional-icons branch November 19, 2026 06:05

This branch was successfully deployed

1 active deployment
Preview — 8924328d Deployed Nov 19, 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