-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gutenlypso: add convert to blocks dialog #29790
Conversation
I took the liberty of adding an Adding a Classic block even as first thing, it would make the post dirty, automatically preventing the dialog to show. |
@Automattic/editorial I've pinged you for suggestions regarding the message of this dialog:
|
Suggested update -- I'd also recommend adding a little instruction to help people get started:
(The instruction could be something like "click the X to get started" or "try adding a text block" or whatever makes the most sense given what's on the screen.) |
@michelleweber For context we want them to click the CTA button which looks like this: |
I wonder if we should help preview what the convert looks like, or make it really easy to undo changes. I'm going to ask for more design feedback and testing. Waiting on feedback in p7jreA-22i-p2 |
Got it. That's super clear, thanks. So: Ready to try blocks? This post contains content you created using the older editor. For the best editing experience, we recommend converting this content to blocks. |
I've updated the copy (and the screen in the PR description as well). @gwwar re: your comment in p7jreA-22i-p2
This already is the case: the conversion consist of a single action, so folks can just hit the undo button (once) to fully restore the Classic block. Though, I've added a little enhancement so that clicking on Convert too dismisses the dialog (as opposed to just closing it temporarily). The dismissal is not stored, so reopening the editor on the same post will display the dialog again, which imho is the correct behaviour. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
This will display convert to block dialog for old posts created in the Classic editor, once they are opened in Gutenlypso.
4ffcd37
to
345f2a9
Compare
Sounds like folks think this is a good idea 👍 Let's maybe try getting this in, and following up in other PRs on:
|
…sh-2019 * origin/master: Disable select when only one domain exiists (#29873) Tiled galleries: Disable captions (#29776) Prevent scrolling up when opening a dialog (#29832) Gutenberg: Move Shortlinks to production (#29883) Gutenlypso: add convert to blocks dialog (#29790) Gutenberg: Move Related Posts to production blocks (#29650) Analytics: fix ad-tracking issue on signup for non-gdpr countries (#29741) Update mobile phone validation module (used for 2fa) (#29740) Gutenlypso: make sure titles load on second edit (#29877) Site Picker: Change wording of /page and /block-editor to match /post (#29859) Gutenberg: update copy link in page list to be editor aware Gutenberg: use core approach of initialEdits over overridePost Gutenberg: when duplicating a post, override post content Gutenberg: update duplicate url when Gutenlypso is enabled Refactor: Replace use of key-mirror with inline code (#29857) Fixes wrong selected domain name (#29824) Turn off prettier for SASS, use stylelint instead (#29697) Gutenberg: Add copy button to Shortlinks (#29556) add a section name to the body class (#29563)
Changes proposed in this Pull Request
This will display convert to block dialog for old posts created in the Classic editor, once they are opened in Gutenlypso.
Testing instructions
Cancel
and verify that the dialog is no longer showing.Convert to Blocks
and verify that Classic block content has been properly converted.Note 1: One known issue is that if you start writing a new post in Gutenberg and you add the Classic block first, the dialog will pop up. This won't happen if some other block is inserted first (e.g. paragraph).Note 2: We might want to request editorial review if you think the messages could be improved.
Note 3: Since I'll be AFK in the following period, feel free to update this PR and land it as you see fit.
Fixes #26594