From 8a4eee467596ba5318e7abd98865e4e2a4b25b71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rachel=20Yord=C3=A1n?= Date: Thu, 14 Nov 2024 11:27:17 +0000 Subject: [PATCH] feat(cve): add filter by published date (#242) --- client/src/app/pages/search/search.tsx | 2 +- .../app/pages/vulnerability-list/vulnerability-context.tsx | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/client/src/app/pages/search/search.tsx b/client/src/app/pages/search/search.tsx index c4f2684..1fa780a 100644 --- a/client/src/app/pages/search/search.tsx +++ b/client/src/app/pages/search/search.tsx @@ -248,7 +248,7 @@ export const Search: React.FC = () => { eventKey={2} title={ - Vulnerabilities{" "} + CVEs{" "} {vulnerabilityTotalCount} diff --git a/client/src/app/pages/vulnerability-list/vulnerability-context.tsx b/client/src/app/pages/vulnerability-list/vulnerability-context.tsx index 1c58cb8..ec2eb92 100644 --- a/client/src/app/pages/vulnerability-list/vulnerability-context.tsx +++ b/client/src/app/pages/vulnerability-list/vulnerability-context.tsx @@ -19,7 +19,7 @@ export interface IVulnerabilitySearchContext { VulnerabilitySummary, "identifier" | "title" | "severity" | "published" | "sboms", "published" | "severity", - "" | "average_severity", + "" | "average_severity" | "published", string >; @@ -74,6 +74,11 @@ export const VulnerabilitySearchProvider: React.FunctionComponent< { value: "critical", label: "Critical" }, ], }, + { + categoryKey: "published", + title: "Created on", + type: FilterType.dateRange, + }, ], isExpansionEnabled: true, expandableVariant: "compound",