-
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
Meta actions on details view #50379
Comments
I'm a little bit concerned about the scalability of the approach we've taken with the save dock. This is something we've discussed in the past, and we landed where we are to be able to push 6.2, but given how site editor admin is expanding I think it's worth reconsidering. The issue stems from mixing global changes with local. Make a change to a page (e.g. post excerpt/slug, or posts per page), do you expect the "save" button to save all changes you've made across your site or just the change to the current page? We've received similar feedback like this across the community (e.g. see The issue is less pronounced in the editor because of the stable toolbar at the top. As soon as you switch to site view / admin the toolbar goes away and you're in a space that allows for navigating in/out of different contexts. I don't have any proposals other than prompting to save when leading edit mode and ensuring all save actions within site view / admin are localised. I agree though that the footer of the sidebar is a decent spot for secondary links. |
We need to be able to display more than one thing. For styles, revisions are very important while more styles is more discovery / theme browsing related. Also, like you mention, we don't have more styles today, so we cannot add it. I'd also like to see us settle on what belong to the ellipsis menu next to the section title (where we can have delete, duplicate, etc) and what at the save areas. For example, access to history / revisions could work in either. Can we also include examples of individual resources? (A page, a template.) Where the published date, status (pending review, scheduled) are more important. |
What's the value of the "1 unsaved change" text? |
The value isn't that high compared with the quick links, especially as the save modal includes the same information. I wouldn't be opposed to removing it as a part of this work. |
save-page-detail.mp4Here's a potential iteration. I don't think the actual "Save dock" should contain any actions/links that aren't related to the act of saving. I'd separate the two more groupings clearly with save dock always fixed to the bottom, and related links/shortcuts stuck above but still pushed down by the section content. Ignore the "manage pages" link, just an example of positioning, I actually don't think we need any for pages right now. In the example above, showing a page detail, you can start to see how the global saving model we've adopted breaks down. Do we show change info pertaining to the current context? What if there are site changes but not to the page, do we still show a save action? If we do still show a save action, does it still make sense to show info relating to the current context? (e.g. when page was last modified) Since we can't make any larger changes for 6.3, what I would suggest is the following:
A general rule might be
|
I think the value is that it's a reminder that some work may be lost because it's a change that stays in a background "memory", which the computer has but maybe the user has not. The site editor allows one to quicky move in a sort of multi dimensional "space" of focuses so it's not easy to keep track of all the stuff. The fact that the save button is active and blue is a good affordance for the same thing, but this text may be reassuring for when say your internet sattleite falls down and you know that the computer knows you made changes and keeps them there, until you get your sattelite back on orbit. I also like the "Saved" status for the same reason, when autosave works, to tell the user that their stuff is safe. There may be other better ways rather than crowding the "save dock" for what I am saying above, but there is definitely value in these UI details for an app that runs across the internet in the browser I think. |
I put together a somewhat experimental PR that makes a couple changes to the save dock. #50567. Note that this only touches saving and does not include changes to the sidebar (adding links, actions etc) |
Updated the main description with a more fine grained breakdown of tasks and elements. |
The ellipsis menu is fairly trivial in terms of visual design, though it would be nice to update the underlying components for the dark context. There's some nuance in terms of which actions should appear, based on the active panel. Template
Template part
Page
For pages, we can display the status in the panel header. To begin with this may be read-only, but in the future it could be a button that opens a status-switching UI. The save portion of this work is underway in #50567. Above the save dock appears the date the active item was last modified, who modified it (via Gravatar), and a link to view revisions. Currently revisions are accessible for Pages, Templates, and Styles. The revisions button could be a text link as above, or a button: There is already a proposal for the Style Book link in the Styles panel (#50393). In the interest of consistency it could make sense for other contextual links/actions to occupy the same space. The "Browse themes" button would link to For the Pages, Templates, and Template Parts panels, a segmented control allows the user to toggle between 'browsing' and 'managing': The template management panel looks a little empty, but eventually it could be possible to filter by template type here (related: #48651). For template parts, we might already offer filtering options based on area, but it's not high priority. There is no management view for pages in the site editor yet, so for now the manage button must link to the Pages list in wp-admin. It's quite tricky to come up with good icons for these buttons, and those above should be considered WIP until we come up with something better. |
Thanks for the energy on this one! |
@jameskoster the only thing I've been waffling on is this part: Especially in some sections we'll have the back button, the title, plus button, and ellipsis already, and we're very likely going to run into space issues with translations. I wonder, did you have any good alternatives there? If yes, then perhaps we should tentatively update this one and mark it ready for dev, because that contextual link seems like such a small thing that we can always move to another place if need be. What do you think? |
The buttons look good enough, I think we can do without the icon. But I can't help but feel like the buttons are still fairly large down there, and there could be a more compact use of space. Perhaps it's just a matter of massaging the margins, and I wonder if we actually need that separating border if the Browse Themes button can sit above it but still be bottom aligned. The spacing on this one feels a bit better. |
The spacing in that latest one feels slightly better. I wouldn't object to trying that, though I still feel like it could be more of a unit and more compact. Nothing to block things. |
Lovely work on this and all the detail pages @jameskoster ! +1 on secondary actions/info at the bottom. It sounds like we've honed in on the following structure for sidebar panels (disregard alignment and other details). I feel comfortable moving forward with this approach and iterating if needed. We still have to work to do refining UI details around editable details vs read vs drill-down but that can be treated separately. |
Agreed, it might be worth adding that template to the library in Figma? |
I think we're ready to move on this one?
All that remains are the "Contextual navigation" items that we've gone back and forth on a bit:
For manage templates (and template parts), this toggle feels solid: Here are options for the other two: What do you think @SaxonF @jasmussen? |
Looks good to me @jameskoster . We will need some indicator the |
I think it can work. Not sure if the 404 and Search are right for this area, but happy to iterate that. I mentioned in a few otheres, I personally miss a bit of the previous whitespace between site hub and detail title, and don't think we need the border separator. But other than that, this is coming together. |
Yes we really need to nail down all of these metrics, once and for all. There's some recent discussion in Figma here. I'll update the OP with the latest designs. It feels like we're at a stage where details can be refined in PRs. |
I was thinking of trying this with the new edit: |
I think we are good with this. Follow ups to be treated separately. |
We need to outline all the contextual functions and map the design elements for the various meta functions that can be performed in the details view, and improve upon the anemic "saved" state.
Section header
Here we have the ellipsis button, the main "edit" (where appropriate) and the beginning of high level status info. Styles can include visualizing style book here, for example — #50393
Ellipsis menu
To include the following actions:
Template
Category
.Template part
Current template part (copy)
. Or we could ask the user to supply one.Page
Status
Mockup
Footer
This is the save and revisions area.
Contextual navigation
The text was updated successfully, but these errors were encountered: