Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Warnings improvements #171

Merged
merged 2 commits into from
Apr 6, 2021
Merged

Conversation

nataliemt
Copy link
Contributor

  • Display in the tab the number of warnings
  • Remove duplicate warnings (message + selector)

… Remove duplicate warnings (message + selector)
@pestevez pestevez self-assigned this Apr 6, 2021
@pestevez pestevez self-requested a review April 6, 2021 14:24
Copy link
Contributor

@pestevez pestevez left a comment

Choose a reason for hiding this comment

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

This is a great addition! I was constantly switching to the warnings tab to see if I had any of them. Thanks for adding it :)

Not a deal breaker, but would it be hard to return no warnings when the web server takes the path of an invalid IA? Right now what happens as soon as we load a web page with blank rules is that it shows a single warning, which could be deceiving.

src/js/components/Preview.react.js Outdated Show resolved Hide resolved
@nataliemt
Copy link
Contributor Author

@pestevez Updated the PR, so now the warnings will be listed only if it has a preview.

  • No url or no required fields connected:

Screen Shot 2021-04-06 at 16 28 23

Screen Shot 2021-04-06 at 16 28 32

  • With a preview available:

Screen Shot 2021-04-06 at 16 13 58

Screen Shot 2021-04-06 at 16 14 06

@pestevez pestevez self-requested a review April 6, 2021 19:50
Copy link
Contributor

@pestevez pestevez left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@nataliemt nataliemt merged commit 34ea4a2 into master Apr 6, 2021
@nataliemt nataliemt deleted the feature/warning-small-improvements branch April 6, 2021 20:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants