Skip to content

Commit d30ca71

Browse files
Add FilterKey type
1 parent 0ee090b commit d30ca71

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

extensions/ql-vscode/src/pure/variant-analysis-filter-sort.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import {
44
} from "../variant-analysis/shared/repository";
55
import { parseDate } from "./date";
66

7+
export enum FilterKey {
8+
All = "all",
9+
WithResults = "withResults",
10+
}
11+
712
export enum SortKey {
813
Name = "name",
914
Stars = "stars",
@@ -13,6 +18,7 @@ export enum SortKey {
1318

1419
export type RepositoriesFilterSortState = {
1520
searchValue: string;
21+
filterKey: FilterKey;
1622
sortKey: SortKey;
1723
};
1824

@@ -22,6 +28,7 @@ export type RepositoriesFilterSortStateWithIds = RepositoriesFilterSortState & {
2228

2329
export const defaultFilterSortState: RepositoriesFilterSortState = {
2430
searchValue: "",
31+
filterKey: FilterKey.All,
2532
sortKey: SortKey.Name,
2633
};
2734

0 commit comments

Comments
 (0)