feat: add New Policies Only filter toggle to policy browser#1991
Open
atharrva01 wants to merge 1 commit into
Open
feat: add New Policies Only filter toggle to policy browser#1991atharrva01 wants to merge 1 commit into
atharrva01 wants to merge 1 commit into
Conversation
Signed-off-by: atharrva01 <atharvaborade568@gmail.com>
|
Thanks for opening your first Pull Request here! Please check out our Contributing guidelines and confirm that you Signed off. |
Contributor
Author
|
hi @lucchmielowski I added a "New Policies" filter toggle that narrows the grid to last-90-day policies using the existing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The policy library already badges recently added policies, but finding them meant scrolling through 640+ cards hunting for purple dots. This adds a New Policies toggle to the filter sidebar that narrows the grid to policies from the last 90 days (~166 currently).
It plays nicely with existing filters (severity, category, tags), shows up as a removable chip in the active filters bar, and clears with "Clear all". Wired up the existing
isPolicyNewutility fromutils.ts, it was already powering the badges, just never hooked into the browser itself.Before
feature.2.before.3.mp4
After
feature.2.after.mp4