Repository navigation
fix(templates): header, footer and toolbar rows wrap for longer translated labels - #12168
josephfarina wants to merge 7 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec b3baeb9 |
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
Requesting changes. The wrapping fixes the rows it targets, but one footer still truncates, and the changeset does not describe the change accurately.
- The form wizard footer's new
wrap="wrap"(form-wizard/page.tsx:826) can never break, because both end zones have a zero flex basis, so on the last step the primary button ("Create workspace") still truncates at 390 px when labels are about 40% longer. - The changeset says the badge and stack direction examples "keep their buttons in full" through wrapping header, footer and toolbar rows, though they have no buttons or such rows; it files the canvas editor under rows that wrap, though its fix is a non-shrinking trail; and it says "English looks the same", though the form wizard's last step at 390 px changes in English (Back and Create workspace were truncated and now stack).
Non-blocking: in canvas-editor/page.tsx the new headerTrail style sits between artboardFrame and its comment, so that comment now reads as the reason for flexShrink: 0. Move the style above the comment.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim, changeset: the six page templates keep their buttons in full at phone width with longer labels. Verified, except the form wizard's last-step primary button (
form-wizard/page.tsx:826). - Claim, changeset: the badge and stack direction examples keep their buttons in full because header, footer and toolbar rows wrap. False: they render only Badges and Tokens (
BadgeShowcase.tsx,StackDirections.tsx). - Claim, changeset: the rows wrap. False for the canvas editor, whose trail stops shrinking instead (
canvas-editor/page.tsx:738). - Claim, changeset and description: English looks the same and nothing wraps in English. False for the form wizard's last step at 390 px.
- Claim: the form wizard header (title and Cancel) wraps. Verified (
form-wizard/page.tsx:395, 390 px capture). - Claim: the form wizard footer (step count, Back, Next) wraps, so Back and Next keep full labels. Partly false: the step count never wraps, and the last-step label still truncates; step 1 is verified.
- Claim: the vertical wizard header wraps. Verified (
form-wizard-vertical/page.tsx:723; Cancel and Save & exit show in full). - Claim: the technical documentation AI row wraps so Copy prompt keeps its label. Verified in source (
documentation-technical/page.tsx:89); not rendered. - Claim: the table header wraps. Verified (
table/page.tsx:497; Invite member shows in full). - Claim: the scorecard period control and Export wrap. Verified (
dashboard-scorecard/page.tsx:790; Export moves under the control). - Claim: the canvas editor keeps the save note and Export at full width and the tab strip gives up room. Verified in source (
canvas-editor/page.tsx:738,:2042); not rendered. - Claim: both blocks wrap and no longer overflow. Verified (both fit a 360 px column).
- Claim: English pages are pixel-identical at 390 and 1280 px. Verified for the first screen of the four pages rendered; false on the form wizard's last step at 390 px.
- Claim: both blocks are identical in English. Verified in a 360 px column.
- Claim: template choice does not change. Consistent: no template doc, keyword or category changed.
- Claim: lint and formatting pass. Verified: the Lint workflow passed on this commit.
- Claim: no component or API change. Verified: no package API row changes.
- File
.changeset/text-expansion-wraps.md: finding (changeset claims). - File
packages/cli/assets/templates/blocks/components/Badge/BadgeShowcase.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Stack/StackDirections.tsx: clear. - File
packages/cli/assets/templates/pages/canvas-editor/page.tsx: non-blocking (comment placement; page size; existing template-quality deductions). - File
packages/cli/assets/templates/pages/dashboard-scorecard/page.tsx: clear. - File
packages/cli/assets/templates/pages/documentation-technical/page.tsx: clear. - File
packages/cli/assets/templates/pages/form-wizard-vertical/page.tsx: non-blocking (page size). - File
packages/cli/assets/templates/pages/form-wizard/page.tsx: finding (footer wrap). - File
packages/cli/assets/templates/pages/table/page.tsx: clear.
|
/approve-spec 51a7596 |
There was a problem hiding this comment.
Requesting changes. The actions zone now fixes the form wizard's last step at 390 px, but its new minimum width pushes the primary button off a 320 px screen, and the changeset's English claim reaches further than it holds.
footerActionsZone'sminWidth: 'max-content'(form-wizard/page.tsx:179) keeps Back and the primary button on one line even when that line is wider than the footer, so at 320 px with labels about 40% longer "Create workspace" ends 12 px past the screen and the page scrolls sideways (the base truncated it in place);minWidth: 'fit-content'withwrap="wrap"restored on the inner row (:853) stacks them inside the footer and leaves the 390 and 1280 px layouts as they are.- The changeset (
.changeset/text-expansion-wraps.md:5) and the description say that in English only the form wizard's last step changes at phone width, but at 320 px step 1's Cancel, Back and Next, which the base cuts, now show in full, so scope that sentence to the widths you checked or name the 320 px change.
The earlier points are fixed: the footer's actions move to their own line at 390 px, the changeset describes each surface, and the canvas comment sits above its own rule.
Claims and files checked
Review mode: incremental; reason: none
- Changeset: the five page templates keep their buttons in full at phone width with longer labels because their rows wrap. Verified at 390 px; false at 320 px for the form wizard's last-step primary button (
form-wizard/page.tsx:179). - Changeset and description: the canvas editor header keeps its save note and Export at full width while the tab strip gives up room. Verified in source (
canvas-editor/page.tsx:731,:2042); not rendered. - Changeset and description: the badge and stack direction examples wrap their rows. Verified (
BadgeShowcase.tsx:11,:18;StackDirections.tsx:10; both fit a 360 px column). - Changeset and description: in English the form wizard's last step at phone width now shows "Create workspace" in full. Verified at 390 and 320 px.
- Changeset and description: in English everything else looks the same. Verified at 390 and 1280 px; false at 320 px (form wizard step 1).
- Description: the form wizard header wraps. Verified (
form-wizard/page.tsx:401). - Description: the form wizard footer's actions zone keeps its full width and moves to its own line instead of cutting labels. Verified at 390 px; at 320 px it overflows the footer (
:179). - Description: the vertical wizard header wraps. Verified (
form-wizard-vertical/page.tsx:723). - Description: the technical documentation AI row wraps so Copy prompt keeps its label. Verified in source (
documentation-technical/page.tsx:89); not rendered. - Description: the table header wraps. Verified (
table/page.tsx:497). - Description: the scorecard period control and Export wrap. Verified (
dashboard-scorecard/page.tsx:790). - Description: English full-page captures at 390 and 1280 px are identical except the form wizard's last step at 390 px. Verified for the form wizard; the other pages are unchanged since they were checked earlier.
- Description: the two blocks look the same in English in narrow and wide columns. Verified at 360 px; wide columns not checked.
- Description: with longer labels at 390 px, Cancel, Back, Next, Save & exit, Copy prompt, Export and Invite member show in full and nothing overflows. Verified, except Copy prompt (not rendered).
- Description: template choice does not change. Consistent: no template doc, keyword or category changed.
- Description: lint and formatting pass. Verified: the Lint workflow passed on this commit.
- Description: templates and example blocks only, with no component or API change. Verified: no package API row changes.
- Description: public text has no internal context. Verified.
- File
.changeset/text-expansion-wraps.md: finding (English claim at 320 px). - File
packages/cli/assets/templates/blocks/components/Badge/BadgeShowcase.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Stack/StackDirections.tsx: clear. - File
packages/cli/assets/templates/pages/canvas-editor/page.tsx: non-blocking (existing template-rubric deductions, page size). - File
packages/cli/assets/templates/pages/dashboard-scorecard/page.tsx: clear. - File
packages/cli/assets/templates/pages/documentation-technical/page.tsx: clear. - File
packages/cli/assets/templates/pages/form-wizard-vertical/page.tsx: non-blocking (page size). - File
packages/cli/assets/templates/pages/form-wizard/page.tsx: finding (actions-zone overflow at 320 px). - File
packages/cli/assets/templates/pages/table/page.tsx: clear.
|
/approve-spec f28de6e |
There was a problem hiding this comment.
Requesting changes. Both earlier points are fixed: the form wizard's actions now stack inside the footer at 320 px, and the changeset names the 320 px English change. One claim still needs correcting.
- Miss:
.changeset/text-expansion-wraps.md(line 5) and the description say that in English at 390 and 1280 px only the form wizard's last step changes, but at 390 px the technical documentation's AI assistance row changes too: the base cuts "Copy prompt" and this branch shows it in full with the collapse chevron on a second line, so name that change in both places.
The canvas editor's existing template-rubric deductions and the size of the canvas editor and vertical wizard pages are non-blocking notes for a later rework.
Claims and files checked
Review mode: incremental; reason: none
- Changeset: with longer labels at phone width, the five page templates keep their buttons in full because their rows wrap. Verified for the form wizard at 320, 360 and 390 px and the technical documentation at 390 px; the vertical wizard, table and scorecard keep the earlier result (unchanged since).
- Changeset and description: the canvas editor's header keeps its save note and Export at full width while the tab strip gives up room. Verified in source (
canvas-editor/page.tsx:731,:2042); not rendered. - Changeset and description: the badge and stack direction examples wrap their rows. Verified earlier (
BadgeShowcase.tsx:11,:18;StackDirections.tsx:10); unchanged since. - Changeset: in English at 390 and 1280 px only the form wizard's last step changes, and "Create workspace" now shows in full. False: the technical documentation's Copy prompt row also changes at 390 px.
- Changeset: in English at 320 px the form wizard's Cancel, Back and Next, which were cut, now show in full. Verified.
- Description: the form wizard header wraps. Verified (
form-wizard/page.tsx:402). - Description: the form wizard's actions zone moves to its own line when it no longer fits beside the step count, and on the narrowest screens Back and Next stack inside it, with no sideways scroll. Verified at 320, 360 and 390 px.
- Description: the vertical wizard header wraps. Verified (
form-wizard-vertical/page.tsx:723). - Description: the technical documentation AI row wraps, so Copy prompt keeps its label. Verified at 390 px.
- Description: the table header wraps. Verified (
table/page.tsx:497). - Description: the scorecard period control and Export wrap. Verified (
dashboard-scorecard/page.tsx:790). - Description: English full-page captures of each changed page at 390 and 1280 px are identical except the form wizard's last step at 390 px. False for the technical documentation at 390 px; holds for the form wizard and at 1280 px.
- Description: the two blocks look the same in English in narrow and wide columns. Verified at 360 px earlier; a row that fits lays out the same with or without wrapping, so wide columns hold.
- Description: with longer labels at 390 px, Cancel, Back, Next, Save & exit, Copy prompt, Export and Invite member show in full and nothing overflows. Verified (Copy prompt and the form wizard in this pass; the rest unchanged since the earlier check).
- Description: template choice does not change. Consistent: no template doc, keyword or category changed.
- Description: lint and formatting pass. Verified: the Lint workflow passed on this commit.
- Description: templates and example blocks only, with no component or API change. Verified: no package API changes.
- Description: public text has no internal context. Verified.
- File
.changeset/text-expansion-wraps.md: finding (English claim at 390 px). - File
packages/cli/assets/templates/blocks/components/Badge/BadgeShowcase.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Stack/StackDirections.tsx: clear. - File
packages/cli/assets/templates/pages/canvas-editor/page.tsx: non-blocking (existing template-rubric deductions, page size). - File
packages/cli/assets/templates/pages/dashboard-scorecard/page.tsx: clear. - File
packages/cli/assets/templates/pages/documentation-technical/page.tsx: clear (its English change is the changeset finding). - File
packages/cli/assets/templates/pages/form-wizard-vertical/page.tsx: non-blocking (page size). - File
packages/cli/assets/templates/pages/form-wizard/page.tsx: clear. - File
packages/cli/assets/templates/pages/table/page.tsx: clear.
|
/approve-spec 7d29464 |
There was a problem hiding this comment.
Requesting changes. The layout works: with longer labels every changed row keeps its buttons whole at 320 to 390 px, and English is unchanged at 1280 px. One sentence in the release note still needs correcting, and the wording suggested for it in the previous review was wrong.
- Miss:
.changeset/text-expansion-wraps.md(line 5) and the description say that in English the technical documentation's "Copy prompt" was cut at 390 px and the form wizard's Cancel at 320 px, but with the page at the full screen width the base shows both in full there (Copy prompt is cut from about 366 px and its row changes from about 375 px down; Cancel is cut from about 310 px down), so state those two changes at the widths where they happen.
Non-blocking: the scorecard's subtitle row still makes the page scroll sideways with longer strings, and the canvas editor's template-rubric deductions and the size of two pages are notes for a later rework.
Claims and files checked
Review mode: incremental; reason: none
- Changeset: with longer labels at phone width, the form wizard, vertical wizard, technical documentation, table and scorecard keep their buttons whole because their rows wrap. Verified at 320, 360 and 390 px.
- Changeset and description: the canvas editor's header keeps its save note and Export whole while the tab strip gives up room. Verified at 390 px with longer labels.
- Changeset and description: the badge and stack direction examples wrap their rows. Verified in a narrow column and with longer labels.
- Changeset: in English at 1280 px nothing changes. Verified: every changed page is pixel-identical.
- Changeset and description: in English at 390 px the form wizard's last-step "Create workspace", cut before, shows in full. Verified.
- Changeset and description: in English at 390 px the technical documentation's "Copy prompt", cut before, shows in full and its collapse button moves to a second line. False: the page is identical at 390 px; this happens from about 375 px down.
- Changeset and description: in English at 320 px the form wizard's Cancel, Back and Next, cut before, show in full. Partly false: Back and Next verified; Cancel is whole on the base at 320 px and cut only from about 310 px down.
- Description: the form wizard header wraps, and its actions move to their own line and stack on the narrowest screens with no sideways scroll. Verified at 320 and 390 px with longer labels.
- Description: the vertical wizard header wraps. Verified at 390 px with longer labels.
- Description: the technical documentation's AI assistance row wraps, so Copy prompt keeps its label. Verified at 390 px with longer labels.
- Description: the table header wraps. Verified at 320 px with longer labels.
- Description: the scorecard's period control and Export wrap, so Export is no longer pushed off a phone screen. Verified at 320, 360 and 390 px with longer labels.
- Description: English full-page captures at 390 and 1280 px are identical apart from the stated exceptions. False for the technical documentation at 390 px, as above; otherwise verified.
- Description: the two blocks are identical in English in 360 and 1200 px columns. Verified.
- Description: with longer strings at 390 px, Cancel, Back, Next, Save & exit, Copy prompt, Export and Invite member show in full, and the scorecard and blocks no longer overflow. Buttons verified; the scorecard page still overflows slightly from its subtitle row (non-blocking).
- Description: template choice for build requests does not change. Consistent: no template doc, keyword or category changed.
- Description: lint and formatting pass. Verified: the Lint workflow passed on this commit.
- Description: page templates and example blocks only, with no component or API change. Verified.
- Description: public text contains no internal context. Verified.
- File
.changeset/text-expansion-wraps.md: finding (English widths). - File
packages/cli/assets/templates/blocks/components/Badge/BadgeShowcase.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Stack/StackDirections.tsx: clear. - File
packages/cli/assets/templates/pages/canvas-editor/page.tsx: non-blocking (existing template-rubric deductions, page size). - File
packages/cli/assets/templates/pages/dashboard-scorecard/page.tsx: non-blocking (subtitle row overflow, outside the change). - File
packages/cli/assets/templates/pages/documentation-technical/page.tsx: clear (its English change is the changeset finding). - File
packages/cli/assets/templates/pages/form-wizard-vertical/page.tsx: non-blocking (page size). - File
packages/cli/assets/templates/pages/form-wizard/page.tsx: clear (its 320 px Cancel claim is the changeset finding). - File
packages/cli/assets/templates/pages/table/page.tsx: clear.
|
/approve-spec 1a1511e |
There was a problem hiding this comment.
Requesting changes. The layout works: with longer labels every changed row keeps its buttons whole at 320 and 390 px, and the English widths corrected since the last review now match the page. The English notes still leave out a few rows that change on narrow phones.
- Miss: the description says nothing else wraps or moves in English and
.changeset/text-expansion-wraps.md(line 5) lists three cases, but at 320 px the vertical form wizard's header (Cancel and Save & exit, cut before, now show in full with Save & exit on a second line) and the scorecard's Export (now on its own line) also change, as do the badge and stack direction examples in narrow columns, so name them in both places, for example with the wording suggested on the changeset line.
Non-blocking: the scorecard's subtitle row still makes the page scroll sideways at 320 px with longer strings, and the canvas editor's template-rubric deductions and the size of two pages are notes for a later rework.
Claims and files checked
Review mode: incremental; reason: none
- Description: the opening hold note waits on a docs check for this head. A process note, not a claim about the code.
- Changeset: with longer labels at phone width, the form wizard, vertical wizard, technical documentation, table and scorecard keep their buttons whole because their rows wrap. Verified at 320 and 390 px.
- Changeset and description: the canvas editor's header keeps its save note and Export whole while the tab strip gives up room. Verified at 390 px with longer labels.
- Changeset and description: the badge and stack direction examples wrap their rows. Verified in narrow columns, in English and with longer labels.
- Changeset: in English at 1280 px nothing changes. Verified: every changed page is pixel-identical.
- Changeset and description: in English the form wizard's last-step "Create workspace", cut before, shows in full at 390 px. Verified.
- Changeset and description: in English the technical documentation's "Copy prompt" shows in full below about 370 px, and its collapse button moves to a second line from about 375 px. Verified: cut on the base from about 374 px; identical at 378 px.
- Changeset and description: in English the form wizard's Back and Next show in full at 320 px, and its Cancel below about 310 px. Verified; on this branch Cancel also moves to a second line from about 318 px.
- Description: in English every row fits, so nothing wraps or moves apart from those exceptions, and the other narrow-width changes are listed. False: the vertical wizard's header (from about 330 px; Cancel and Save & exit cut at 320 px on the base), the scorecard's Export (from about 329 px) and both blocks in narrow columns also change.
- Description: the form wizard header wraps, and its actions move to their own line and stack on the narrowest screens with no sideways scroll. Verified at 320 and 390 px with longer labels.
- Description: the vertical wizard header wraps. Verified at 320 and 390 px with longer labels.
- Description: the technical documentation's AI assistance row wraps, so Copy prompt keeps its label. Verified at 320 and 390 px with longer labels.
- Description: the table header wraps. Verified at 320 px with longer labels.
- Description: the scorecard's period control and Export wrap, so Export is no longer pushed off a phone screen. Verified at 320 and 390 px with longer labels.
- Description: English full-page captures at 390 and 1280 px are identical apart from the form wizard's last step at 390 px. Verified.
- Description: the two blocks are identical in English in 360 and 1200 px columns. Verified (360 px in this review, 1200 px in the previous one; the blocks are unchanged since).
- Description: with longer strings at 390 px, Cancel, Back, Next, Save & exit, Copy prompt, Export and Invite member show in full, and the scorecard and the blocks no longer overflow. Verified.
- Description: template choice for build requests does not change. Consistent: no template doc, keyword or category changed.
- Description: lint and formatting pass. Verified: the Lint workflow passed on this head.
- Description: page templates and example blocks only, with no component or API change. Verified.
- Description: public text contains no internal context. Verified.
- File
.changeset/text-expansion-wraps.md: finding (English cases left out). - File
packages/cli/assets/templates/blocks/components/Badge/BadgeShowcase.tsx: clear (its English change is part of the finding). - File
packages/cli/assets/templates/blocks/components/Stack/StackDirections.tsx: clear (its English change is part of the finding). - File
packages/cli/assets/templates/pages/canvas-editor/page.tsx: non-blocking (existing template-rubric deductions, page size). - File
packages/cli/assets/templates/pages/dashboard-scorecard/page.tsx: non-blocking (subtitle row overflow, outside the change); its English change is part of the finding. - File
packages/cli/assets/templates/pages/documentation-technical/page.tsx: clear. - File
packages/cli/assets/templates/pages/form-wizard-vertical/page.tsx: non-blocking (page size); its English change is part of the finding. - File
packages/cli/assets/templates/pages/form-wizard/page.tsx: clear. - File
packages/cli/assets/templates/pages/table/page.tsx: clear.
|
/approve-spec 370bba7 |
There was a problem hiding this comment.
Approved pending CI: the CI run for this head was not admitted because CI was full, so its build and test jobs have not run yet, and a re-run needs to pass before merge. The layout works: with labels about 40% longer every changed row keeps its buttons whole at 390 and 320 px, and the English notes now name every row that changes on narrow phones.
Non-blocking:
- The form wizard's step-1 Back and Next already change in English from about 335 px (the base cuts them at 330 px), so "at 320 px" in the changeset and description could read "from about 335 px".
- The canvas editor's existing template-rubric deductions and the size of the canvas editor and vertical form wizard pages are notes for a later rework.
Claims and files checked
Review mode: incremental; reason: none
- Changeset and description: with longer labels at phone width, the form wizard, vertical wizard, technical documentation, table and scorecard keep their buttons whole because their header, footer and toolbar rows wrap. Verified at 390 and 320 px.
- Description: the form wizard header wraps, and its actions move to their own line and stack on the narrowest screens, with nothing cut and no sideways scroll. Verified: at 390 px the actions take their own line; at 320 px Back and Create workspace stack and the page stays 320 px wide.
- Description: the vertical wizard header wraps. Verified at 390 and 320 px.
- Description: the technical documentation's AI assistance row wraps, so Copy prompt keeps its label. Verified at 390 and 320 px.
- Description: the table header wraps. Verified at 390 and 320 px.
- Description: the scorecard's period control and Export wrap, so Export is no longer pushed off a phone screen. Verified: the base runs 6 px past a 390 px screen; the head fits.
- Changeset and description: the canvas editor's header keeps its save note and Export whole while the tab strip gives up room. Verified at 390 px.
- Changeset and description: the badge and stack direction examples wrap their rows. Verified in 360 and 320 px columns.
- Changeset: in English at 390 and 1280 px only the form wizard's last step changes, where Back and Create workspace were cut. Verified: every other changed page is pixel-identical at both widths.
- Changeset and description: in English the technical documentation's AI assistance row wraps from about 375 px, with its collapse button on a second line. Verified: identical at 376 px, changed from 375 px.
- Changeset and description: in English the vertical wizard's header wraps from about 330 px, with Save & exit on a second line. Verified: identical at 330 px, changed from 328 px.
- Changeset and description: in English the scorecard's Export moves to its own line from about 330 px. Verified: identical at 330 px, changed from 329 px.
- Changeset and description: in English the form wizard's Back and Next show in full at 320 px, and its Cancel moves to a second line just below 320 px. Verified (Cancel moves at 318 px); the footer already changes from about 335 px (non-blocking note above).
- Changeset and description: the badge and stack direction examples wrap in columns narrower than about 295 and 335 px. Verified: identical at 294 and 334 px, changed at 290 and 330 px.
- Description: in English nothing else wraps or moves. Verified for every row: the table and canvas editor are identical at every width measured from 320 to 1280 px, and every row that changes is named.
- Description: full-page English captures at 390 and 1280 px are identical apart from the form wizard's last step, and the two blocks are identical in 360 and 1200 px columns. Verified.
- Description: with longer strings at 390 px, Cancel, Back, Next, Save & exit, Copy prompt, Export and Invite member show in full, and the scorecard and blocks no longer overflow. Verified.
- Description: template choice for build requests does not change. Consistent: no template doc, keyword or category changed.
- Description: lint and formatting pass. Verified: the Lint workflow passed on this head, and Prettier and ESLint pass on the changed files.
- Description: page templates and example blocks only, with no component or API change. Verified.
- Description: public text contains no internal context. Verified.
- File
.changeset/text-expansion-wraps.md: non-blocking (form wizard step-1 English width). - File
packages/cli/assets/templates/blocks/components/Badge/BadgeShowcase.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Stack/StackDirections.tsx: clear. - File
packages/cli/assets/templates/pages/canvas-editor/page.tsx: non-blocking (existing template-rubric deductions, page size). - File
packages/cli/assets/templates/pages/dashboard-scorecard/page.tsx: clear. - File
packages/cli/assets/templates/pages/documentation-technical/page.tsx: clear. - File
packages/cli/assets/templates/pages/form-wizard-vertical/page.tsx: non-blocking (page size). - File
packages/cli/assets/templates/pages/form-wizard/page.tsx: clear. - File
packages/cli/assets/templates/pages/table/page.tsx: clear.
… longer translated labels
… longer translated labels
…; changeset names each fix
…the narrowest screens; scope the English note to the widths checked
…menu button; the scorecard's wrap is already on main [skip ci]
370bba7 to
ff72819
Compare
There was a problem hiding this comment.
Approved pending CI: this head's commit message carries [skip ci], so the CI and Lint workflows have not run on it. Push a commit without that marker so they run before merge.
The layout works: with labels about 40% longer, every changed row keeps its buttons whole at 390 and 320 px. In English, the only change at 390 and 1280 px is the form wizard's last step, and the narrower rows change at the widths the release note gives.
Non-blocking:
- The form wizard's step-1 Back and Next already change in English from about 335 px (the base cuts them at 330 px), so "at 320 px" in the release note and description could read "from about 335 px".
- The canvas editor's
headerTrail: {flexShrink: 0}could be aStackItem size="static"around the trail. The template's existing rubric deductions, and the size of the canvas editor and vertical wizard pages, are notes for a later rework.
Claims and files checked
Review mode: full; reason: rebase
- Release note and description: with longer labels at phone width, the form wizard, vertical wizard, technical documentation and table keep their buttons whole because their header, footer and toolbar rows wrap. Verified at 390 and 320 px.
- Description: the form wizard header wraps, and its actions move to their own line and stack on the narrowest screens, with nothing cut and no sideways scroll. Verified: at 390 px the actions take their own line; at 320 px Back and Create workspace stack and the page stays 320 px wide.
- Description: the vertical wizard header wraps. Verified at 390 and 320 px.
- Description: the technical documentation's AI assistance row wraps, so Copy prompt keeps its label. Verified at 390 and 320 px.
- Description: the table header wraps. Verified: at 320 px Invite member takes its own line instead of being cut.
- Release note and description: the canvas editor's header keeps its save note and Export whole while the tab strip gives up room. Verified at 390 px.
- Release note and description: the badge and stack direction examples wrap their rows. Verified in a 360 px column.
- Release note: in English at 390 and 1280 px only the form wizard's last step changes, where Back and Create workspace were cut. Verified: every other changed page is pixel-identical at both widths.
- Release note and description: in English the technical documentation's AI assistance row wraps from about 375 px, with its More options menu button on a second line. Verified: identical at 376 px, changed at 375 px.
- Release note and description: in English the vertical wizard's header wraps from about 330 px, with Save & exit on a second line. Verified: identical at 330 px, changed at 328 px.
- Release note and description: in English the form wizard's Back and Next show in full at 320 px, and its Cancel moves to a second line just below 320 px. Verified (Cancel moves at 318 px); the footer already changes from about 335 px (non-blocking note above).
- Release note and description: the badge and stack direction examples wrap in columns narrower than about 295 and 335 px. Verified: identical at 294 and 334 px, changed at 290 and 330 px.
- Description: in English nothing else wraps or moves. Verified: the table and canvas editor are identical at every width measured from 320 to 1280 px.
- Description: English captures at 390 and 1280 px are identical apart from the form wizard's last step, and the two blocks are identical in 360 and 1200 px columns. Verified.
- Description: with longer strings at 390 px, Cancel, Back, Next, Save & exit, Copy prompt, Export and Invite member show in full, and the blocks no longer overflow. Verified.
- Description: the scorecard's period control and Export row already wraps on main. Verified: main sets
wrap="wrap"on that row. - Description: template choice for build requests does not change. Consistent: no template doc, keyword or category changed.
- Description: lint and formatting pass. Verified: Prettier and ESLint pass on the changed files; CI has not run on this head.
- Description: a local preflight passed. Not checkable here; CI has not run on this head.
- Description: page templates and example blocks only, with no component or API change. Verified.
- Description: public text contains no internal context. Verified.
- File
.changeset/text-expansion-wraps.md: non-blocking (form wizard step-1 English width). - File
packages/cli/assets/templates/blocks/components/Badge/BadgeShowcase.tsx: clear. - File
packages/cli/assets/templates/blocks/components/Stack/StackDirections.tsx: clear. - File
packages/cli/assets/templates/pages/canvas-editor/page.tsx: non-blocking (existing template-rubric deductions,headerTrailalternative, page size). - File
packages/cli/assets/templates/pages/documentation-technical/page.tsx: clear. - File
packages/cli/assets/templates/pages/form-wizard-vertical/page.tsx: non-blocking (page size). - File
packages/cli/assets/templates/pages/form-wizard/page.tsx: clear. - File
packages/cli/assets/templates/pages/table/page.tsx: clear.
- #12635 fix(cli): export loads and gives back a page whose modules import TypeScript files by .js names Author: @josephfarina - #12727 fix(cli): export loads a served package's subpath exported only to imports Author: @josephfarina - #12224 fix(cli): a {@link} in a template description resolves as astryx docs resolves it Author: @josephfarina - #12278 fix(core): a Theme given a value that is not a theme keeps the page running Author: @josephfarina - #12751 feat(Layout): LayoutContent names its container, so a theme styles a dialog's body apart from its header and footer Author: @josephfarina - #12168 fix(templates): header, footer and toolbar rows wrap for longer translated labels Author: @josephfarina - #12399 [experimental] export: the dropped-text warning checks Core's docs, and text not drawn yet inside Core components that take children no longer warns Author: @josephfarina - #12541 [docs] Core: list the props ComplexSelector, Selector, Toast and ContextMenuItem take Author: @josephfarina - #12676 docs(cli): a short form keeps its own 640 column inside a wide template frame Author: @josephfarina - #12458 fix(core): Field labels use the primary text colour Author: @josephfarina - #12373 [experimental] export: a link to a place in the page stays in the file in a srcdoc viewer frame Author: @josephfarina
|
Landed in #12827. |
What
Page templates and example blocks were checked with every UI string made about 40% longer, with accented and tall letters, as a translation would. Where a row did not wrap, a longer label was cut short or pushed a control past the edge at a phone width. These rows now wrap, and one header keeps its actions at full width:
form-wizard: the header (title and Cancel) wraps, and the footer's actions zone (Back, Next) keeps its labels whole: when it no longer fits beside the step count it moves to its own line, and on the narrowest screens Back and Next stack inside it, so nothing is cut and the page never scrolls sideways.form-wizard-vertical: the header (title, Cancel, Save & exit) wraps.documentation-technical: the AI assistance header row wraps, so Copy prompt keeps its label.table: the page header (title and Invite member) wraps.Two more changes are not row wrapping:
canvas-editor: the save note and Export keep their width in the header; the document tab strip beside them gives up the room.Blocks:
BadgeShowcase(both badge rows) andStackDirectionswrap their rows, so their badges and tokens no longer run past a narrow column.In English every one of these fits, so nothing wraps and nothing moves, with these exceptions, where English rows were already tight and now wrap instead of cutting a label or running past the edge: at 390 px, the form wizard's last step (Back and "Create workspace" now show in full); the technical documentation's AI assistance row from about 375 px (its More options menu button moves to a second line); the vertical form wizard's header from about 330 px (Cancel and Save & exit show in full, Save & exit on a second line); at 320 px, the form wizard's Back and Next (its Cancel moves to a second line just below 320 px); and the badge and stack direction examples in columns narrower than about 295 and 335 px.
Evidence
Scope
preflight: pass ff72819 (env-only fails excused: G59 global-local rows-40-59, packed-gather-cache.records, release/handoff.e2e, setup-workspace, experimental-isolation; each fails identically without the change or passes alone)