Skip to content
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

Improve the design of the post locking modal #37725

Closed
javierarce opened this issue Jan 5, 2022 · 14 comments · Fixed by #37979
Closed

Improve the design of the post locking modal #37725

javierarce opened this issue Jan 5, 2022 · 14 comments · Fixed by #37979
Labels
[Feature] Real-time Collaboration Phase 3 of the Gutenberg roadmap around real-time collaboration [Feature] Saving Related to saving functionality [Status] In Progress Tracking issues with work in progress

Comments

@javierarce
Copy link
Contributor

javierarce commented Jan 5, 2022

I've noticed that the post locking modal presents some design problems we could address.

image

  1. There's a big empty space before the message.
  2. The username of the locked post is difficult to read. Highlighting it would improve its readability.
  3. The action buttons don't have a clear hierarchy (the tertiary action is sandwiched between the primary and the secondary ones).
  4. We could explain what happens if the user decides to take over the post.
  5. The modal that shows the other user's avatar doesn't show the username.

Here's a design proposal for this popover:

image

Besides addressing the problems I've mentioned earlier, I've made some other changes:

  1. I got rid of the dot at the end of the title and the redundant "User", and removed the title case of the "take over" button.
  2. Since "taking over" is disruptive, I de-emphasize it and transformed it into a secondary action.
  3. I right-aligned the actions and fixed the paddings.

Figma file

@javierarce javierarce added Good First Issue An issue that's suitable for someone looking to contribute for the first time Needs Design Feedback Needs general design feedback. [Feature] Saving Related to saving functionality [Feature] Real-time Collaboration Phase 3 of the Gutenberg roadmap around real-time collaboration labels Jan 5, 2022
@javierarce javierarce changed the title Improve design of the post locking modal Improve the design of the post locking modal Jan 5, 2022
@karmatosed
Copy link
Member

First, I love that this is getting some attention @javierarce so ✨ there.

I wonder though, could we go further? The bit that really gets me is the 2 actions on the same level. I understand they are a primary, secondary and tertiary style but they just feel so not great together. What could be the option to soothe that line of 'preview/take over/ exit the editor'?

@jasmussen
Copy link
Contributor

Vast improvements. To echo Tammie a bit, I'd use at most two styles of buttons, for example primary and tertiary, or just three tertiary buttons.

Good call unifying the case of "Take over", as we don't use titlecase in the editor. In that vein, should "Editor" be lowercase? Can it be simplified to "Exit editor" or perhaps even to just "Exit"?

@javierarce
Copy link
Contributor Author

Thanks, @karmatosed & @jasmussen! I've refined the design using your feedback:

image

  • To simplify the action row, I integrated the preview link inside the description.
  • I changed "Exit the Editor" to "Exit editor" (I think writing just "Exit" could be confused with closing the modal)

From the two options on the bottom, I think the one on the left side (a tertiary plus a primary button) looks better and makes a better distinction between the options.

@jasmussen
Copy link
Contributor

That looks great, I especially like the primary + tertiary one. I wonder, instead of linking "on this post" we could just output "(preview)" in parenthesis after?

As a note to self mostly, it looks like the external link icon needs a figma update to become fill instead of outlines, as when scaled down the stroke should become a bit thinner as well.

@javierarce
Copy link
Contributor Author

That looks great, I especially like the primary + tertiary one. I wonder, instead of linking "on this post" we could just output "(preview)" in parenthesis after?

Good idea, let's try that, it'll be more clear.

image

As a note to self mostly, it looks like the external link icon needs a figma update to become fill instead of outlines, as when scaled down the stroke should become a bit thinner as well.

True. Momentarily, I've updated the line weight on my Figma file.

@karmatosed
Copy link
Member

@javierarce that's vastly better, thank you for taking the critique and running with it. I'd say :shipit: because it's so much better now and we can always build up.

@karmatosed karmatosed added Needs Dev Ready for, and needs developer efforts and removed Needs Design Feedback Needs general design feedback. labels Jan 10, 2022
@jasmussen
Copy link
Contributor

I've started work in #37821, but note that many of the important details shown in the mockups above are not yet implemented, as some of the localization work can get gnarly. I'd appreciate help from anyone with skill in this area: feel free to push directly to the branch if you like.

@Mamaduka
Copy link
Member

I created another follow-up PR to fix user avatar and display name issues.

What are the remaining items to close this issue?

@jasmussen
Copy link
Contributor

I'll let Javier catch any details I missed, but it looks like there's an added paragraph: "If you take over, the other user will lose editing control to the post, but their changes will be saved."

@spacedmonkey
Copy link
Member

Related: #37789

@javierarce
Copy link
Contributor Author

javierarce commented Jan 13, 2022

I'll let Javier catch any details I missed, but it looks like there's an added paragraph: "If you take over, the other user will lose editing control to the post, but their changes will be saved."

Yes, I think that is the only thing left to close this issue.

@Mamaduka
Copy link
Member

I will create the last PR for design changes shortly. We #37914 can merge separately.

@Mamaduka
Copy link
Member

@javierarce this is how modal looks after applying remaining changes, including @jasmussen suggestion for avatar on top of the latest fixes.

CleanShot 2022-01-13 at 17 02 29

@javierarce
Copy link
Contributor Author

javierarce commented Jan 13, 2022

@Mamaduka would it be possible to place all the text on the same column? It would look cleaner.

image

@Mamaduka Mamaduka added [Status] In Progress Tracking issues with work in progress and removed Good First Issue An issue that's suitable for someone looking to contribute for the first time Needs Dev Ready for, and needs developer efforts labels Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Real-time Collaboration Phase 3 of the Gutenberg roadmap around real-time collaboration [Feature] Saving Related to saving functionality [Status] In Progress Tracking issues with work in progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants