-
Notifications
You must be signed in to change notification settings - Fork 2
Add date time support to Editorial Metadata #40
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
Conversation
|
@ingeniumed This works great! I'm close to approval, but have a handful of UI suggestions for polish. These range from most to least important to me, so feel free to push back if you think we should save this for another pass.
|
|
Great feedback, and I've made all those changes. As for the inconsistent arrows, it seems to have fixed itself by adding in the AM/PM toggles. What I did extra:
In case there's a better fix than what I did, lemme know. Otherwise, this should be good to go. |
|
Love all the suggestions here. Great job, folks! These small changes will undoubtedly improve the editing UX. From the UI point of view, I wonder if we could try to make the metafields even more integrated than they're now. Here's what I have in mind:
This way the metafields would be extremely easy to find and interact with because they'd use interfaces the users are already familiar with. Furthermore, should Gutenberg ever update that UI, we'd automatically benefit from it and upgrade the editing UX in Workflow. StatusCheckboxInputSelectDatePlease let me know what you think! There's probably nuance I'm missing, but I think we should aim for aligning with core as much as possible. |
|
Thanks for the wonderful suggestions, and the mocks for each of em @jarekmorawski!
This was something that we left in place from Edit Flow, as custom status support in WP isn't 100%. This field is likely going to go away, once we finish implementing role based status restrictions. There'd be a way for admins to bypass that restriction. If we do decide to keep it, we can do some experimentation to see if we can inject into that existing status field.
Agreed with all this. It would def make the appearance of everything a lot cleaner, and would provide a consistent appearance across versions.
100%! That is our goal - do it the way core does it as much as possible. |
… the textbox to be a popover
…o everything makes more sense
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.
@ingeniumed I love the design updates and pop-outs for data! It works really well. I did notice a few UI issues (mostly alignment) other than the text on the sidebar, and I just wanted to note those for posterity with the understanding that they'll be addressed in another PR. Here are the main issues I saw:
-
The "text"-type pop-out seems like it's a textarea where a regular text input might fit better. For example, here's the "Author" pop-out from native WordPress:
Compare this with the "Word Count" pop-out:
A textarea-sized input doesn't feel right here, especially for something like a word count. I'd suggest we make these all one-line inputs, as we don't really have a lot of space to store paragraphs of text in the UI. Alternatively, we could have a separate input type for short and long inputs. I'd prefer we just use short everywhere though.
-
The alignment of text labels seems a little off. Here's "Assignment" versus "Word Count":

"Word Count" seems squeezed into the corner. This is probably just a flex issue that we can fix so that it's center-aligned and uses the available horizontal space.
-
Even on a large-sized screen, it's easy to show scrollbars on the calendar component. It's dependent on the current scroll, but always seems to happen if the sidebar is scrolled to the bottom:
Ideally we can render the component so that scrollbars appear in fewer circumstances as they make the calendar very awkward to use. Also, note the date string escaping the button on the sidebar as well:
As mentioned above, we can get these in the next pass. Thanks Gopal!
|
Thanks for pointing all those issues out, it's good to note em down so they can be fixed in another PR. Before I merge this, I'll switch the textareControl with a textControl as you are right about that. I had gone back and forth on that, and settled on textareaControl just in the interest of the space available. But, all good we can revisit the alignment, etc on that later. |
Is there anything we can do to make it happen in core? Would it make sense to set aside time to solve this problem there and unlock a better UX for our plugin? I know the issue has been there for years and it's high time to do something about it (knowing WP, there's probably a PR already but didn't get enough traction to be merged).
Some user roles should be able to bypass and edit statuses. One I can think of is the role that can create and edit custom statuses in the plugin. Did we specify what role that would be? Should we let site admins decide? |




















Description
Steps to Test
vw_editorial_metadata_optionsoption from your local env