Gutenberg: Use Pre-Publish Panel for Tags and Post Format

Created on 21 Jun 2018  路  8Comments  路  Source: WordPress/gutenberg

One of the points of the pre-publish panel was to surface things you might have missed to do before publishing. The panel is already extensible so plugins can make use of it.

It'd be nice to also use it for the following simple cases:

  • When detecting a post format suggestion (based on the block configuration) expose the suggestion here.
  • When detecting no tags have been added, render the tags module in the panel.
[Feature] Writing Flow [Type] Enhancement [Type] Task

Most helpful comment

Some general improvements I think we could make with this panel, before diving in here:

  • The copy is a bit too verbose (#7873)
  • There's no space between the text and the label, making it confusing (#7842)
  • It looks as though the calendar is misaligned at larger screen sizes (#7863)
  • Borders have been removed from the component panels, making it inconsistent with other sidebar pullout panels (#7878)

I've filed these all as separate issues (with PRs, for the most part), but I think they'll all go toward improving the overall publishing flow in #7602 and I've used them as a baseline for my approach here as well.

Because this panel is extensible and potentially will be made use of by plugins, it probably makes sense to keep any additional checks here relatively simple.

One approach would be to follow the existing pattern of pull-down sections:

screenshot 2018-07-10 21 14 38

I think this could confuse people if these panels would display in some situations, but not in others. It may help to make things more obvious if we were to use alerty icons instead:

screenshot 2018-07-10 21 28 20

...but I could see that inducing a bit of unnecessary panic in people. 馃槣

Instead, it may make sense to make the prompt a bit more conversational when it appears鈥攍ess a warning, and more a gentle attempt to help users get the most mileage out of their post:

screenshot 2018-07-10 22 23 45

All 8 comments

We discussed in the past that it would be nice to add call for action which disables the publish button until some criteria are met. Should it be included in this issue or should we open another one?

I have this related issue open - https://github.com/WordPress/gutenberg/issues/7020

Some general improvements I think we could make with this panel, before diving in here:

  • The copy is a bit too verbose (#7873)
  • There's no space between the text and the label, making it confusing (#7842)
  • It looks as though the calendar is misaligned at larger screen sizes (#7863)
  • Borders have been removed from the component panels, making it inconsistent with other sidebar pullout panels (#7878)

I've filed these all as separate issues (with PRs, for the most part), but I think they'll all go toward improving the overall publishing flow in #7602 and I've used them as a baseline for my approach here as well.

Because this panel is extensible and potentially will be made use of by plugins, it probably makes sense to keep any additional checks here relatively simple.

One approach would be to follow the existing pattern of pull-down sections:

screenshot 2018-07-10 21 14 38

I think this could confuse people if these panels would display in some situations, but not in others. It may help to make things more obvious if we were to use alerty icons instead:

screenshot 2018-07-10 21 28 20

...but I could see that inducing a bit of unnecessary panic in people. 馃槣

Instead, it may make sense to make the prompt a bit more conversational when it appears鈥攍ess a warning, and more a gentle attempt to help users get the most mileage out of their post:

screenshot 2018-07-10 22 23 45

The lightbulb/tip notion is aces.

Only thing to add is it'd be really great to see a "don't show this again鈥搄ust publish my post next time" option, as I find this panel just gets in my way鈥搘hen I click "publish" I just want my post to go live. WordPress.com's editor has a similar checkbox; we should have one too.

I've started working on tag suggestions within the PrePublishPanel at https://github.com/WordPress/gutenberg/pull/8235

It would be really nice if these tips could be disabled, modified, or added to as well. I think it's fair for Gutenberg to try to make some general recommendations, but more complex/unique sites may have other use-cases that conflict with the general recommendations.

https://github.com/WordPress/gutenberg/pull/8235 also includes the PostFormat now.

This issue was closed some time ago via #8235; feel free to re-open if there's any remaining actionable to-dos here! 馃檪

Was this page helpful?
0 / 5 - 0 ratings