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

Make ribbon block error indicators more obvious #5145

Closed
wants to merge 2 commits into from

Conversation

julieg18
Copy link
Contributor

@julieg18 julieg18 commented Dec 22, 2023

Demo

Screenshot 2023-12-21 at 6 25 37 PM

Part of #5087

@julieg18 julieg18 added the product PR that affects product label Dec 22, 2023
@julieg18 julieg18 self-assigned this Dec 22, 2023
@@ -48,14 +53,14 @@ export const RibbonBlock: React.FC<RibbonBlockProps> = ({
</div>
</>
) : (
<div className={styles.title}>
<div className={cx(styles.title, hasError && styles.errorIndicator)}>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we think making the titles red is too noisy, we could just update the icons:

image

width={14}
height={14}
className={cx(styles.blockIcon, styles.error)}
aria-label="Error Icon"
Copy link
Contributor Author

@julieg18 julieg18 Dec 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, you can label svgs but we don't really do this in the extension. I added labels for testing but there might be a better way of handling this.

@@ -49,6 +49,7 @@ import {
toggleDragAndDropMode as toggleCustomPlotsDragAndDropMode
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Next steps after this would be updating section title tooltips to include an error. Full design ideas list is in #5087 (comment)

Copy link

codeclimate bot commented Dec 22, 2023

Code Climate has analyzed commit 9f5356a and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 95.2% (0.0% change).

View more on Code Climate.

@julieg18 julieg18 marked this pull request as ready for review December 22, 2023 15:38
@julieg18 julieg18 requested a review from shcheklein December 22, 2023 15:38
@shcheklein
Copy link
Member

On this demo, what does red exactly mean? I feel ribbon alone is not enough, and if we do something else (see below, and you also suggested it in the ticket) we won't need the ribbon changes.

Can we take the idea from Studio (@sroy3 is working on errors / warnings now) - show errors in the header of the section, show a sign (yellow, green, red) nearby the section title (similar to setup screen). If we do this I think we don't need any changes in the ribbon, wdyt?

@julieg18
Copy link
Contributor Author

On this demo, what does red exactly mean? I feel ribbon alone is not enough, and if we do something else (see below, and you also suggested it in the ticket) we won't need the ribbon changes.

Can we take the idea from Studio (@sroy3 is working on errors / warnings now) - show errors in the header of the section, show a sign (yellow, green, red) nearby the section title (similar to setup screen). If we do this I think we don't need any changes in the ribbon, wdyt?

Makes sense! I'll close this pr and work on showing errors in the header of the section.

@julieg18 julieg18 closed this Dec 22, 2023
@mattseddon mattseddon deleted the update-plots-ribbon-errors branch March 12, 2024 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product PR that affects product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants