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

feat: See which rules are affecting a particular SERP entry #522

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

aug-dev
Copy link
Contributor

@aug-dev aug-dev commented Aug 10, 2024

Summary

This PR implements a feature requested on issue #469 that allows the user to inspect which rules are having and effect on a particular search result.

This can be really useful in situations where you have multiple subscriptions that are very long and you don't know which exact rule might be causing an undesired effect.

Demo

matching-rules-demo.mp4

Technical Summary

This implementation consists basically of an expansion of the InteractiveRuleset module, leveraging already existing functions like testRawWithURLParts in order to query all rules that are affecting a particular SerpEntry.

In order to accomplish this, subscriptions names are now tracked by the aforementioned class.

After this, the information is stored in a particular format and passed to the block-dialog React component, which shows it in the newly added interface.

Both English and Brazilian Portuguese localizations are implemented.

Side Note

There seems to be an issue with the popup interface for the browser action (toolbar button) in the Firefox version of extension, but after checking into it, the bug already existed prior to the changes in this PR. (I'll probably look into it later.)

aug-dev added 9 commits August 5, 2024 18:02
This is being added in order to allow the user of the class to query
not only the rules that are matching a certain SerpEntry, but also the
subscriptions that those rules originate from.
This was done by extending the InteractiveRuleset class.
This is the first implementation of an interface change that will allow
the user to see rules matching a particular entry in the SERP page
"Block this site" dialog.
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.

1 participant