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

Solve some unexpected situations with frontend highlighter when rules are filtered off #525

Merged

Conversation

pattonwebz
Copy link
Member

@pattonwebz pattonwebz commented Mar 8, 2024

When someone filters out a certain rule after a page is scanned, the Ajax call still returns those rules to the highlighter in a 'null' state without any information. This PR seeks to not return null data to the highlighter so they are not shown on the frontend when inspecting the page issues.

  • Prevent filtered out rule issues being passed down to the highlighter.
  • Also disable the buttons in the highlighter until we know we have issues to display.
Widget when loading doesn't show nav buttons anymore

Screenshot from 2024-03-08 21-35-49

Show buttons only after we know there are issues to display

Screenshot from 2024-03-08 21-36-08

Show no buttons when no issues were returned from ajax call

Screenshot from 2024-03-08 21-36-55

Fixes #524

@pattonwebz pattonwebz requested a review from SteveJonesDev March 8, 2024 22:04
@pattonwebz pattonwebz changed the base branch from develop to main March 10, 2024 22:41
Copy link
Member

@SteveJonesDev SteveJonesDev left a comment

Choose a reason for hiding this comment

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

Looks good @pattonwebz! I will update the version and readme file, merge, and release this minor version.

@SteveJonesDev SteveJonesDev merged commit 428da3c into main Mar 11, 2024
16 checks passed
@SteveJonesDev SteveJonesDev deleted the william/hotfix/frontend-highter-handle-filtered-rules branch March 11, 2024 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Null" issues reported for checks that are being disabled by a filter
2 participants