Skip to content

chore(templates): editor sizes its sidebar with LayoutPanel's width prop - #12027

Merged
josephfarina merged 1 commit into
mainfrom
josephfarina/cleanup-editor
Nov 16, 2026
Merged

josephfarina merged 1 commit into
mainfrom
josephfarina/cleanup-editor

Conversation

@josephfarina

Copy link
Copy Markdown
Contributor

What

The editor page template's sidebar uses LayoutPanel's width prop instead of an inline style with a width and flex-shrink.

Why

Cleaner template code: the page uses the Core piece that already does this job instead of a hand-written version. No design or behavior change.

Evidence

  • Pixel-identical at 390 and 1280 px, with script on and off (full-page screenshots before and after, zero changed pixels).
  • Behavior unchanged in a browser check.
  • Build replay over real build requests: no start, alternatives list or block list changes.
  • Typecheck (strict, no unused locals), lint and prettier pass.

Scope

  • One change, in one page template.
  • 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 8:02am UTC

Request Review

@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, 8:11 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

@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 has not finished on this head yet; its first run was refused because CI was full, and a re-run is in progress.

The editor template now sizes its sidebar with LayoutPanel's width prop, which LayoutPanel's contract already defines: the panel does not shrink, and width sets its inline size in pixels. Renders of the page before and after, at 1280 px and 390 px, are pixel-identical, and the CLI's build recommendations and template skeleton are unchanged. Nothing else is needed from you.

Claims and files checked

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

  • Changeset: the editor template sizes its sidebar with LayoutPanel's width prop instead of an inline style. Verified at page.tsx:817.
  • Changeset: pages look the same. Verified: renders at 1280 px and 390 px are pixel-identical.
  • Description: the width prop replaces an inline style with a width and flex-shrink. Verified; LayoutPanel already sets flex-shrink to 0.
  • Description: no design or behavior change. Verified: the same computed width and flex-shrink, and the same markup apart from the panel root's style attribute.
  • Description: pixel-identical at 390 px and 1280 px, with script on and off. Verified with script on; script-off was not rendered again.
  • Description: behavior unchanged in a browser check. Verified.
  • Description: build replay shows no change to the start, alternatives or block lists. Verified for three build requests with identical output.
  • Description: typecheck, lint and prettier pass. Lint is green on this head and prettier passes; the width value fits the prop's number-or-string type.
  • Description: one change, in one page template. Verified.
  • Description: public text contains no internal context. Verified.
  • .changeset/cleanup-editor.md: clear.
  • packages/cli/assets/templates/pages/editor/page.tsx: clear.

Automated review (maintainer link)

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 0608c34

Storybook · Sandbox · built from this PR's head

Package size: @astryxdesign/cli 5.12 MB packed (−9 B); no new dependencies.

Not run on this PR: add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.


Generated by PR Enrichment workflow | View full report

@josephfarina
josephfarina merged commit 4ea41ce into main Nov 16, 2026
146 of 183 checks passed
@github-actions
github-actions Bot deleted the josephfarina/cleanup-editor branch November 17, 2026 06:03

This branch was successfully deployed

1 active deployment
Preview — 0608c34a 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant