WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.34k stars 4.13k forks source link

Add indicator for modified post meta in pre-publish flow #62329

Open artemiomorales opened 3 months ago

artemiomorales commented 3 months ago

What problem does this address?

Follow up to https://github.com/WordPress/gutenberg/pull/61811

While we are now indicating to users when metadata has changed to published posts, we do not yet do so when a post is still in pre-published state.

We should determine what this UX should be and any revisions that would be needed to accommodate this in the pre-publish flow.

What is your proposed solution?

One idea: We can consider integrating information about the post meta in the pre-publish check as another collapsed panel next to suggestions related to tags and categories, as observed in this comment.

334820578-ad6c39a2-e222-4540-8feb-fb8d5cba5311

We should also consider surfacing this information whenever a draft is saved.

artemiomorales commented 2 months ago

If we were to show the meta changes in the pre-publish flow as a panel, what would we put in it? This is what two of the other panels look like expanded:

Screenshot 2024-07-10 at 5 24 45 PM

We could just include the modified meta shown in the following Posts panel from https://github.com/WordPress/gutenberg/pull/62982:

344239912-c89418c1-285b-4521-93fe-1135ec912ea6

I don't believe the "Posts" heading would work in this case. Perhaps it should say "Meta"? Other aspects of the panel would also need to change, including:

Maybe it could look something like this:

post-meta-design2
jasmussen commented 2 months ago

@jarekmorawski I feel like you had some good instincts in past conversations around bindings and such. Since some of the work I've provided here has not sailed through smoothly, I wonder if you would have time at some point in the 6.7 phase to revisit something like this issue with a fresh perspective? Past Figma work.

SantosGuillamot commented 2 months ago

I've opened this new issue trying to gather all the context related to the save workflows and post-meta/post-data. I think it is important to take one step back and think about it more broadly.