-
Notifications
You must be signed in to change notification settings - Fork 32
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
PCH Smart Linking: Update UI #2268
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.
Excellent work! Let's merge this as-is!
@dabowman, some notes for our patch iteration:
|
This was exactly why I decided to keep the notice despite of the Snackbar. While testing, I found myself missing the Snackbar multiple times despite being looking out for it. For errors, I think the Notice is better suited to display the error message than the Snackbar. |
Yeah, the snackbar is a but subtle. Is there a way to make the notice dismissible? or make it disappear after a few seconds? That might be nice if we're going to include the notice in the sidebar. I wish there was a less visual way to give a confirmation. The notice component is just a bit much, visually. But it does it's job. I'm torn on the hint for smart linking. I don't love not being able to click the selected block option without recieving any feedback. I think there are a couple ways we could do it and we might need to try it a couple ways and test a bit. I think we can let the user select "selected blocks" but then give a hint when they try to hit submit if a block isn't selected. That's how I designed it in Figma. I think the other option is to place the hint under the toggle group when the user tries to click "selected blocks" without any blocks selected. So the behavior is the same as it is currently with the addition of a hint if they don't have a selected block. After using things a bit I think this is what i like more. |
Should be. The |
I consider the patch iteration comments in this thread as addressed. |
Description
Update the UI in the Smart Linking panels of the Editor Sidebar.
There's a minor deviation from the proposed design, as the Snackbars do not have icons. Unfortunately, I wasn't able to place them in the correct position, and without the ability to edit their CSS, they it's basically unfixable.
Motivation and context
How has this been tested?
Tested locally with all the new changes validated.