-
Notifications
You must be signed in to change notification settings - Fork 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
Editor: updating layout and design #11536
Conversation
@@ -125,7 +125,7 @@ export default React.createClass( { | |||
} ); | |||
break; | |||
case 'draft': | |||
label = this.translate( '{{strong}}Draft saved{{/strong}} %(relativeTimeFromNow)s', { | |||
label = this.translate( '{{strong}}Saved{{/strong}} %(relativeTimeFromNow)s', { |
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.
Hi! I've found a possible matching string that has already been translated 22 times:
translate( '{{strong}}Scheduled{{/strong}} %(relativeTimeFromNow)s' )
ES Score: 19.25
See 1 additional suggestion in the PR translation status page
Help me improve these suggestions: react with 👎 if the suggestion doesn't make any sense, or with 👍 if it's a particularly good one (even if not implemented).
Wow! This is quite an impressive change. I'm testing things out now - hoping we can get lots of 👀 and devices on this PR since it is a big change. I'm going to just drop notes here as I find them in-lieu of doing one big comment at the end. First up - When the chrome sidebar is exposed, an 'X' is shown which I assumed would toggle the sidebar to a closed state. Instead the draft drawer is exposed. The author selector also feels kind of crowded near the top. The auto-save indicator, and sticky, visibility and trash gridicons appear to have a uniform padding between them and the top of the pane, but the user gravatar is almost touching the top: |
In b125814 I updated the location and featured media buttons to be |
Thanks @timmyc, very helpful!
Your assumption is right, it's the missing task above "hook up the sidebar close button". The proper way would be to have an action in
I've been going back and forth with the values for the inner margin of the content next to the fixed header. For some reason it varies depending on the site you are in or content you are editing.
Yes, we need to lower the font-size of the large version of the category selector. We use Example: the category selector when you are creating a new category is fine to have bigger fonts, but the ones in the accordion should match the smaller font.
There's an
I switched the error message to use a compact notice and the proper notice-action sub-component. It seems we've had some regressions in how we present the action there. cc @rickybanister
Agreed, didn't get to them yet.
We need to adjust a bunch of the tooltips to go to the left. Also the schedule popover is displayed correctly but it's set to open to the right.
Smaller view needs a bunch of work at the code level because of the recent refactor we did to the mobile view :) The changes now should be aligning the expectations better (top level bar that contains site and main actions, etc). |
I'll try to take a look, I think my narrow styles for regular notices bled into the compact one. Not sure how easy it will be to sequester that stuff. |
After a great round of iterations and brainstorming with @mtias and @jasmussen we polished a few rough edges with the mock above. Guiding principles:
So here a quick rundown of the changes:
There isn't a specific mobile mock, but the overall structure isn't radically different from what we have now, thus we can reuse the same idea of the icons without label in the same way across desktop and mobile sizes. |
Seeing the sidebar on the right was a little shocking at first. But I'm sure I'll get used to it after a day or two.This proximity of "Post" and "Publish" caught my eye — they're almost synonyms, and putting the so close together made me question which one is which. -- If I open and close the sidebar, then click the back arrow below My Sites, it doesn't do anything. -- There's been a lot of work around getting a consistent and always available help button in Calypso. Its nice to see it still in the sidebar, but now its on the right — and its hidden by default. Any thoughts on trying to keep it always visible *or* on the left? |
I like @shaunandrews's idea about the help button. At first I felt like its location made sense (mirrored from the regular sidebar), but I could see it on top of the white 'paper' on the left in its normal location. |
Obviously still really early, but I really like the direction. I would consider having one of the accordions already expanded (the top one) when the user opens the settings sidebar. It would reveal the most important info in the top accordion while reducing a click to see it. |
Maybe when the sidebar is closed the ? icon can stay on screen? |
The "post" is meant to be the noun — it changes based on post type (page, post, portfolio). Post is not a great noun, though. |
This was my initial struggle as well. I was hesitant to click "Post" in fear that it would post my draft. It wasn't until I realized I was on my test site, that I said, "What the hell" and clicked it. |
I like moving the sidebar to the right. As @jasmussen points out, it's aligning nicely with the direction in Core. It's also fairly predictable that left sidebars are often for navigation, while right sidebars are used for in-page editing or other tasks related to the content. |
Ahhh I really don't want to sound like a naysayer. I haven't been following the back story on why we're moving things around, but I do follow users a lot. Based on my interactions with them:
Personally I'd rather see the sidebar available (preferably on the left) by default, but give folks an option to hide it. A little collapse button like the one we have in the customizer might work. :) |
Great to see all the discussion here, and a large number of design 👀 on this! In particular, @folletto thanks for the voicing the why behind these changes in the iteration design:
I'm still a bit concerned about how this change will be accepted by wpcom users. Recent experiences with editor changes ( i/o editor, and calypso editor launch - though that went much smoother ), always cause me to pause when considering a visual overhaul to this key flow for our users. Inevitably, there will likely be a group of users that will be disturbed by any change ( Moving 🧀 sort of thing ) - but I'm wondering if this change can be communicated/framed for wpcom users as a positive enhancment for the editing experience. One old issue that @jasmussen opened after the Calypso editor was launched could possibly be addressed here too #1265 - maybe expanding the editor area given the increased horizontal space. |
I lost some sleep over this one. The button was initially labelled "Document", but in the long game, we're thinking about an inspector that can take up this space. So the more contextual the sidebar is to the document you're looking at, the better. And so by being labelled Post when you're editing a post, or Page when you're editing that, the contents of the sidebar become 100% contextual. When you then select a block, we would replace the contents of the sidebar with controls for that specific block, and there would be a breadcrumb in the top: That's still speculative, but I like it showing the document type moreso than just saying "Document". Any other ideas?
Agreed. In addition to this, can we cache which accordions the user opens themselves so they stay open?
Responding to these three as a group, as they all touch a little on the same — "moved my cheese" and "options shown by default". Sidebar open by default We can simply show the sidebar as being open by default — the ability to toggle off the sidebar is then simply the immersive mode. Any thoughts on this? CC: @folletto @mtias Sidebar on the right Showing the metadata on the right makes sense from a UX perspective — we read from the left to the right, and so it makes sense in most of Calypso that navigation is to the left, and then the content. On the Post editing page, it makes the most sense that meta data, which is a subset of the content, is on the right. Moved my cheese It seems true that users are likely going to need some time getting used to the change, no matter what we do and no matter how good a change it is, which Timmy also referred to. There's an old article about design changes and how to best do them. The most relevant bits here:
The best way I can think of, to alleviate this, is to have both editors running for a period. The new editor then has a button that says "Temporarily switch back to the old editor", or something in that vein. Is this technically possible at all? Is this something we want to do? |
Yes. I think that since the approach we have is a toggle, we're very very flexible on taking this decision as it's just how we set the initial state. That said, I'd probably start with the open sidebar, as it's the current default for both Calypso and WP Admin. :)
...what about the boring but clear options like: "Settings" or "Inspect"?
It think it's a fair concern, however that's a concern with any design change. This design specifically has some goals that achieves, not just having a cleaner interface, but also better labeling and better guidance (I recall issues with the hidden cog settings and sticky). I'll try to be even more specific here on the benefits of this design:
Also I know it matters little in terms cheese moved, but the right sidebar is also better in terms of visual hierarchy, as the focus is shifted more on the content. In the future we'll also move away the TinyMCE toolbar that we're currently stuck with (not really stuck, just requires a lot of work to be independennt) and that will make the main editing area really clutter free. :) I hope it helps. :) |
The right sidebar was on the original scope for the Calypso editor if we could split the site / publish combo card, so this is just the culmination of that effort. We have done a few significant iterations already, like the app-style design going full width and white for the whole content area that @jasmussen mentioned. |
I just did some testing on HTML being stripped after reading a comment from a rather distraught user: "Can you not remove all the evil and wickedness from the visual editor?" The new chrome has the same issue. To test:
|
@supernovia by chance did you test the same flow in wp-admin? |
@supernovia I confirmed the same thing happens in wp-admin and a .org install - so should likely be raised upstream in .org instead of calypso. |
I noticed last night that on Safari in mobile view the settings sections become inaccessible as you open them with this redesign. Raised here: #12212 |
I raised a new bug for small screens: #14882 — I think it could affect anyone using the Press This bookmarklet. |
**Simplify step**: the `EditorStatusLabel` is only a shadow of its former self, showing just a simple label that's not interactive at all. It used to be more than that: it was clickable and could open a popover with post status. That was changed by @mtias in #11536, where he moved the post status to the sidebar accordion. This PR removes the dead code related to `onClick` and `advancedStatus` props, which are no longer used. **Reduxify step**: retrieve the edited post (the saved version, not the modified one) from Redux instead of passing the `savedPost` prop from Flux store.
**Simplify step**: the `EditorStatusLabel` is only a shadow of its former self, showing just a simple label that's not interactive at all. It used to be more than that: it was clickable and could open a popover with post status. That was changed by @mtias in #11536, where he moved the post status to the sidebar accordion. This PR removes the dead code related to `onClick` and `advancedStatus` props, which are no longer used. **Reduxify step**: retrieve the edited post (the saved version, not the modified one) from Redux instead of passing the `savedPost` prop from Flux store.
It was never visible anyway because of `showIcon=false` prop and `display: none` style. It was added a long time ago in #8679. You can see on the screenshots that the editor looked very differently back then. Then the editor was redesigned to the current look in #11536, where `PostStatus` was hidden, but not completely removed.
…ks (#30963) * PostTime block: migrate CSS to webpack, use withLocalizedMoment * Post Status block: migrate CSS and fix ESLint warning in the docs example * Remove usage of PostStatus block in EditorPostType It was never visible anyway because of `showIcon=false` prop and `display: none` style. It was added a long time ago in #8679. You can see on the screenshots that the editor looked very differently back then. Then the editor was redesigned to the current look in #11536, where `PostStatus` was hidden, but not completely removed.
This work seeks to simplify the interface of the editor, provide a "distraction free" mode by toggling the sidebar off, clarify some of the UI elements around statuses, and overall reduction of the visual weight of the editor favoring the content:
(Snapshot of the editor before this PR)
To-do:
x
. 85da460<Site>
.