-
Notifications
You must be signed in to change notification settings - Fork 4.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
WIP: Try new publishing flow #9398
Conversation
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.
Cool. I like the increase in size; the old one felt cramped/small and it didn't get my attention because of that.
Just a few passing thoughts; I know this isn't complete.
color: $blue-dark-900; | ||
font-weight: 400; | ||
padding-left: 4px; | ||
//text-decoration: underline; |
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.
🔥
|
||
<div className="editor-post-publish-panel__disable-check"> | ||
<CheckboxControl | ||
label={ __( 'Don’t show this again' ) } |
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.
"Don’t show this panel again" might be better; I'm often wary about an unclear "this".
@@ -61,22 +61,21 @@ class PostPublishPanel extends Component { | |||
this.setState( { loading: true } ); | |||
} | |||
|
|||
onUpdateDisableToggle() { | |||
// There should be a setting to allow users to skip the pre-publish step forever. |
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.
That'll need to be a user setting, I'd think. I don't know how we set those in Gutenberg, but this should dispatch an action that makes an API request to toggle said setting.
03ad36d
to
d3e03b9
Compare
I've got a couple of questions about the "Don't show this again" checkbox that affects implementation
One potential solution would be to leverage the fact that the pre-publish panel only shows settings that can be modified elsewhere. What if we do the same for this one? I can think of two places for this:
I think it conceptually fits within the "Tools" section. Thoughts?
That'd be more in line with the intent of adding dots to the Publish text (convey that it's more than just publish...), but wanted to check first. |
For the user setting, I was thinking it'd make most sense to have it under the "Tools" section, since that's where other user settings are. It's pretty similar conceptually to the "Show tips" option that appears here as well. So, basically, your instincts here are bang-on and exactly what I was thinking (but didn't put in the mockup). 💯
Yes please! |
Sarah, #9760 adds the ability to skip the publish sidebar on publishing (work in progress). It may be worth removing the changes to make the sidebar dismissable in this PR. |
Yep, makes sense! Once that PR is finished I'll rebase this one on master and clean things up a bit, and then we can loop back to this. |
d3e03b9
to
2976a21
Compare
I've now rebased this to take into account other changes, and it's working a bit better. Here's what's left that I need help with in order for this to be merge-ready!
|
Just one point on this, can we right align the publish button please? |
It looks like this one was abandoned, what is the plan moving forward with those changes proposed? Do you plan to refresh this PR? I'm labeling it as |
I'm going to go ahead and close this. To implement the changes suggested in #7602, I'd need development help—this PR was as far as I could get with it. If it's a priority to implement these changes, I'm happy to revisit in a new PR, but I would need help addressing the technical issues outlined above. |
This is my attempt to start implementing publishing flow changes in #7602. I've done some of the cosmetic changes, but some of the more heavy-lifting will need a friendly developer, especially since some of the code in here I'm finding a bit hard to follow.
I've tried some bigger changes here, with respect to adding a lot more spacing between elements and adding some typographic hierarchy. It may be a bit much here, since it's inconsistent with styling used elsewhere, but we can always dial it back if it feels too disjointed.
Before:
After:
What's missing?
- [ ] clicking "private" toggle immediately publishes the post (Setting post visibility to "private" forces immediate publishing of post #9396)Next phase
I've only dealt with the pre-publish panel right now, mostly due to technical limitations. Here's what I'd like for the post-publish phase:
There should be one state for "publishing" and one for "published" (both of which currently exist), and then, once the post has published, we should redirect to show the post, with a modal overlay giving some next-step advise as per the mockup.
I can adjust the styling of the "publishing..." and the "published!" states, but it would help to be able to get them to display temporarily, which I'm having troubles making happen. (Setting
submitted: true
onPostPublishPanel
brings up the published state, but I'm having troubles getting the publishing state to stay on the screen for any length of time, making it super difficult to style or adjust since it disappears quite quickly!)