Skip to content

StartPageOptionsModal should not render if content was added to a page #54227

@richtabor

Description

@richtabor

Currently the StartPageOptionsModal renders when you add a new post/page, but also when you remove all the content on a page. This makes for a disorienting experience, as a modal pops up out unexpectedly.

I think the modal should only render when creating a new page.

If any content has been added to the page, then removed, the StartPageOptionsModal should not render again.

If we want to still provide a mechanism for users to view the modal, we can add a snackbar notification "Choose a starter pattern." that renders in this scenario (after content has been added and the content is removed) which provides an action "View patterns" for viewing the starter patterns.

Current experience

I delete the last top-level block on my page and the modal pops up unexpectedly.

CleanShot.2023-09-06.at.14.01.26.mp4

Metadata

Metadata

Assignees

Labels

[Feature] PatternsA collection of blocks that can be synced (previously reusable blocks) or unsynced[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions