Open History to see the last commit
1import type { PullRequestInvolvement, PullRequestListState } from "@t3tools/contracts";
2import {
3 CalendarArrowDownIcon,
4 CalendarArrowUpIcon,
5 ClockIcon,
6 EyeIcon,
7 LayersIcon,
8 ListChecksIcon,
9 Maximize2Icon,
10 Minimize2Icon,
11 PenLineIcon,
12 UserLockIcon,
13} from "lucide-react";
14
15import type { PullRequestFilterOption } from "./PullRequestListFilters";
16import type { PullRequestListSort } from "./pullRequestListPreferences";
17import { PullRequestGlyph } from "./pullRequestIcons";
18
19export const INVOLVEMENT_TABS = [
20 { value: "all", label: "All", Icon: LayersIcon },
21 { value: "reviewing", label: "Reviewing", Icon: EyeIcon },
22 { value: "authored", label: "Authored", Icon: PenLineIcon },
23] as const satisfies ReadonlyArray<PullRequestFilterOption<PullRequestInvolvement>>;
24
25export const STATE_TABS = [
26 { value: "all", label: "All", Icon: LayersIcon },
27 { value: "open", label: "Open", Icon: PullRequestGlyph.pullRequest },
28 { value: "closed", label: "Closed", Icon: PullRequestGlyph.closed },
29 { value: "merged", label: "Merged", Icon: PullRequestGlyph.merged },
30] as const satisfies ReadonlyArray<PullRequestFilterOption<PullRequestListState>>;
31
32export const SORT_OPTIONS = [
33 { value: "ready", label: "Merge readiness", Icon: ListChecksIcon },
34 { value: "blocked", label: "Blocked on me", Icon: UserLockIcon },
35 { value: "updated", label: "Recently updated", Icon: ClockIcon },
36 { value: "newest", label: "Newest shown", Icon: CalendarArrowDownIcon },
37 { value: "oldest", label: "Oldest shown", Icon: CalendarArrowUpIcon },
38 { value: "largest", label: "Largest shown", Icon: Maximize2Icon },
39 { value: "smallest", label: "Smallest shown", Icon: Minimize2Icon },
40] as const satisfies ReadonlyArray<PullRequestFilterOption<PullRequestListSort>>;