Skip to content

fix(builder): say the editor needs more width, not a wider screen - #887

Merged
mobeenabdullah merged 3 commits into
mainfrom
fix/shell-width-copy
Aug 17, 2026
Merged

mobeenabdullah merged 3 commits into
mainfrom
fix/shell-width-copy

Conversation

@mobeenabdullah

Copy link
Copy Markdown
Collaborator

Restores a commit that #884 lost, and it is user-facing.

Why this exists

47951929d was pushed while GitHub was computing #884's merge, so it never landed. Verified by content rather than by ancestry: the marker The page editor needs more width is present at the branch tip and absent from merge commit 737f6c87a, with zero history-rewrite events on the timeline. This is the second stranded tail on this lane today and, per another lane, the fifth in the repository.

What main currently does

Measured on origin/main just now:

  • setFits(fitsFullShell(entry.contentRect.width)) — present. The shell measures its CONTAINER.
  • The page editor needs a wider screen — present. The notice still names the WINDOW.

Those two together are the defect. An editor embedded in a narrow column on a large display now correctly refuses to compress, and then tells the author their screen is too small — which is untrue, and widening the window does nothing because the column is what constrains it. The body carried the same wrong cause: "On a smaller screen you can still edit this page's content from the admin."

The change

  • heading: "The page editor needs more width"
  • body: "Editing a layout needs at least 1280px of width. In a narrower space you can still edit this page's content from the admin."
  • the no-exit body: "Editing a layout needs at least 1280px of width."

Matchers in packages/builder/src/builder-shell.test.tsx and e2e/tests/shell/shell.spec.ts move with it, along with three prose comments in shell-state.ts and builder-shell.tsx that explained the refuse-rather-than-compress decision in terms of a screen.

It also carries a comment repair that #884 lost. e2e/tests/shell/shell.spec.ts opened with "THE DEADLOCK, and the reason the observer follows the VISIBLE root" — a design replaced before #884 merged, so main currently documents an implementation that does not exist. It now states the property the test pins: the decision has to be reversible, which is what an always-rendered measured element buys.

Verification

Stub-verified rather than asserted: restoring the old heading fails four notice tests in the unit suite, so the matchers are bound to the rendered text rather than passing vacuously.

  • packages/builder: 370/370, typecheck, lint clean
  • packages/plugin-page-builder: 828/828
  • e2e/tests/shell/shell.spec.ts: 20/20 in Chromium
  • npx sherif: 0 errors
  • changeset generated from the workspace and checked with scripts/release/check-changesets.mjs (all 24 lockstep packages)

The notice named the wrong cause once the shell started measuring its
container. An editor embedded in a narrow column on a large display told the
author their screen was too small, which is both untrue and unactionable:
widening the window changes nothing when the column is what constrains it.

The heading and both bodies now talk about width and about the space the
editor was given, which is accurate whether the window or the column is what
is narrow.

Comments describing the measurement are rewritten to state the current
invariants rather than the readings that preceded them. One in the e2e spec
described the observer as following whichever root is visible, which stopped
being true when the always-rendered wrapper replaced that design.
@mobeenabdullah

Copy link
Copy Markdown
Collaborator Author

@codex please review this PR

@github-actions github-actions Bot added the type: docs Documentation only label Aug 17, 2026
@mobeenabdullah

Copy link
Copy Markdown
Collaborator Author

@nextly-bot review

@coderabbitai

coderabbitai Bot commented Aug 17, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@mobeenabdullah, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 10 minutes

Limit details: You’ve used all 1 included review currently available under your plan.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: be5d259b-a0b4-4335-9083-6ea5142c1105

📥 Commits

Reviewing files that changed from the base of the PR and between 737f6c8 and 3b66af2.

⛔ Files ignored due to path filters (2)
  • .changeset/shell-measures-its-container.md is excluded by !.changeset/**
  • .changeset/shell-width-copy.md is excluded by !.changeset/**
📒 Files selected for processing (5)
  • e2e/tests/shell/shell.spec.ts
  • packages/builder/src/builder-shell.test.tsx
  • packages/builder/src/builder-shell.tsx
  • packages/builder/src/shell-state.ts
  • packages/plugin-page-builder/src/admin/controls/MediaControl.tsx

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 29m 6s —— View job


Review in progress

Reviewing PR #887 at f5a5cf9...

  • Pre-flight (PR state, head SHA)
  • Load repo law (AGENTS.md, ARCHITECTURE.md, rules, skills)
  • Round awareness (prior bot rounds, all threads)
  • Read full diff + surrounding code
  • Hunt + adversarial verification
  • Post review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f5a5c9cfd1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/builder/src/builder-shell.tsx
@pkg-pr-new

pkg-pr-new Bot commented Aug 17, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@nextlyhq/adapter-drizzle

npm i https://pkg.pr.new/@nextlyhq/adapter-drizzle@3b66af2

@nextlyhq/adapter-mysql

npm i https://pkg.pr.new/@nextlyhq/adapter-mysql@3b66af2

@nextlyhq/adapter-postgres

npm i https://pkg.pr.new/@nextlyhq/adapter-postgres@3b66af2

@nextlyhq/adapter-sqlite

npm i https://pkg.pr.new/@nextlyhq/adapter-sqlite@3b66af2

@nextlyhq/admin

npm i https://pkg.pr.new/@nextlyhq/admin@3b66af2

@nextlyhq/admin-css

npm i https://pkg.pr.new/@nextlyhq/admin-css@3b66af2

@nextlyhq/blocks-engine

npm i https://pkg.pr.new/@nextlyhq/blocks-engine@3b66af2

@nextlyhq/blocks-react

npm i https://pkg.pr.new/@nextlyhq/blocks-react@3b66af2

@nextlyhq/builder

npm i https://pkg.pr.new/@nextlyhq/builder@3b66af2

create-nextly-app

npm i https://pkg.pr.new/create-nextly-app@3b66af2

nextly

npm i https://pkg.pr.new/nextly@3b66af2

@nextlyhq/plugin-form-builder

npm i https://pkg.pr.new/@nextlyhq/plugin-form-builder@3b66af2

@nextlyhq/plugin-page-builder

npm i https://pkg.pr.new/@nextlyhq/plugin-page-builder@3b66af2

@nextlyhq/plugin-sdk

npm i https://pkg.pr.new/@nextlyhq/plugin-sdk@3b66af2

@nextlyhq/plugin-seo

npm i https://pkg.pr.new/@nextlyhq/plugin-seo@3b66af2

@nextlyhq/storage-s3

npm i https://pkg.pr.new/@nextlyhq/storage-s3@3b66af2

@nextlyhq/storage-uploadthing

npm i https://pkg.pr.new/@nextlyhq/storage-uploadthing@3b66af2

@nextlyhq/storage-vercel-blob

npm i https://pkg.pr.new/@nextlyhq/storage-vercel-blob@3b66af2

@nextlyhq/ui

npm i https://pkg.pr.new/@nextlyhq/ui@3b66af2

commit: 3b66af2

MediaControl explained why the picker consumes the shell's active state by
quoting a notice that no longer says that, and by attributing the narrow
state to the viewport and to the width of the window. The shell measures the
space it was given, so all three references described a model it had already
stopped using.

The unconsumed changeset for the measurement change quoted the same retired
string, which would have shipped it into the changelog, and its body carried
an em dash that does not belong in released copy.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions github-actions Bot added the scope: plugin @nextlyhq/plugin-* packages label Aug 17, 2026
@mobeenabdullah

Copy link
Copy Markdown
Collaborator Author

@codex please review this PR

@mobeenabdullah

Copy link
Copy Markdown
Collaborator Author

@nextly-bot review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

github-actions Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 1s —— View job


I'll analyze this and get back to you.

@mobeenabdullah
mobeenabdullah merged commit 8eabd8d into main Aug 17, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: plugin @nextlyhq/plugin-* packages type: docs Documentation only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant