Skip to content

Commit

Permalink
feat(cve): add filter by published date (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
kahboom authored Nov 14, 2024
1 parent e101660 commit 8a4eee4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/app/pages/search/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export const Search: React.FC = () => {
eventKey={2}
title={
<TabTitleText>
Vulnerabilities{" "}
CVEs{" "}
<Badge screenReaderText="Search Result Count">
{vulnerabilityTotalCount}
</Badge>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface IVulnerabilitySearchContext {
VulnerabilitySummary,
"identifier" | "title" | "severity" | "published" | "sboms",
"published" | "severity",
"" | "average_severity",
"" | "average_severity" | "published",
string
>;

Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 8a4eee4

Please sign in to comment.