mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 22:14:29 +09:00
## Problem and result A page without a Content Block leaves the Navigator blank in Content mode. The approved warning now explains how a designer can make page areas editable. Closes #6600 ## Checklist - [x] Show the warning only when a selected page has no visible Content Block in Content mode. - [x] Keep the warning out of Design mode, loading states, and pages with a Content Block. - [x] Add a focused regression test; it failed on the missing warning before the fix and passed afterward. - [x] Keep the regression test independent of incidental warning copy. - [x] Run the relevant Builder tests, typecheck, lint, formatting, and diff review after the test update. - [x] Review the authoritative `docs/` content. The Content Block guide already explains how designers set up editable areas, so no documentation change is needed. - [x] Verify required CI checks to completion after the test update. ## Implementation notes The Navigator uses its existing visible tree state and a warning PanelBanner. No data model, migration, fixture, or generated output changed. The shared Webstudio `AGENTS.md` was also updated locally to discourage matching incidental UI copy in tests; that file is outside this Git repository and is not part of this PR. ## Verification - The revised test failed with the warning temporarily disabled and passed when it was restored. - Navigator browser tests: 22 passed. - Builder typecheck, repository lint, changed-file formatting, and `git diff --check`: passed. - CI for commit `127344428a4f562a9d7e505088365b26517ed2f3`: 29 checks passed, 7 skipped, none failed. - Storybook screenshots were not run; they require separate permission under the repository testing guide. - No fixture input or output is affected. CI fixture checks passed on Linux and Windows.