Skip to content

feat: add New Policies Only filter toggle to policy browser#1991

Open
atharrva01 wants to merge 1 commit into
kyverno:mainfrom
atharrva01:feat/new-policies-filter
Open

feat: add New Policies Only filter toggle to policy browser#1991
atharrva01 wants to merge 1 commit into
kyverno:mainfrom
atharrva01:feat/new-policies-filter

Conversation

@atharrva01
Copy link
Copy Markdown
Contributor

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 isPolicyNew utility from utils.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

Signed-off-by: atharrva01 <atharvaborade568@gmail.com>
@welcome
Copy link
Copy Markdown

welcome Bot commented May 2, 2026

Thanks for opening your first Pull Request here! Please check out our Contributing guidelines and confirm that you Signed off.

@atharrva01
Copy link
Copy Markdown
Contributor Author

hi @lucchmielowski I added a "New Policies" filter toggle that narrows the grid to last-90-day policies using the existing isPolicyNew utility.

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