Skip to content

Commit 949abe5

Browse files
adityathebemoshloop
authored andcommitted
fix(jobs-history): default logs to actionable statuses
Job history logs included successful, stale, and skipped runs by default, making it harder to focus on runs that need attention.\n\nAdd stale and skipped to the status filter options and default the Logs tab to exclude success, stale, and skipped statuses.
1 parent db40c25 commit 949abe5

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

src/components/JobsHistory/Filters/JobHistoryStatusDropdown.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ const statusOptions: Record<string, TriStateOptions> = {
2323
id: "4",
2424
label: "Failed",
2525
value: "FAILED"
26+
},
27+
stale: {
28+
id: "5",
29+
label: "Stale",
30+
value: "STALE"
31+
},
32+
skipped: {
33+
id: "6",
34+
label: "Skipped",
35+
value: "SKIPPED"
2636
}
2737
};
2838

src/components/JobsHistory/JobsHistoryLogsTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function JobsHistoryLogsTab({
2424

2525
return (
2626
<>
27-
<JobHistoryFilters defaultStatusFilter={null} />
27+
<JobHistoryFilters defaultStatusFilter="SUCCESS:-1,STALE:-1,SKIPPED:-1" />
2828

2929
<JobsHistoryTable
3030
jobs={jobs ?? []}

0 commit comments

Comments
 (0)