We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 579493e commit 489b9e1Copy full SHA for 489b9e1
1 file changed
apps/webapp/app/components/runs/v3/SharedFilters.tsx
@@ -651,6 +651,20 @@ export function TimeDropdown({
651
setSelectedQuickDate("lastWeekend");
652
}}
653
/>
654
+ <QuickDateButton
655
+ label="Last weekdays"
656
+ isActive={selectedQuickDate === "lastWeekdays"}
657
+ onClick={() => {
658
+ const lastWeek = subWeeks(new Date(), 1);
659
+ const monday = startOfWeek(lastWeek, { weekStartsOn: 1 });
660
+ const friday = endOfDay(subDays(monday, -4)); // Monday + 4 days = Friday
661
+ setFromValue(startOfDay(monday));
662
+ setToValue(friday);
663
+ setActiveSection("dateRange");
664
+ setValidationError(null);
665
+ setSelectedQuickDate("lastWeekdays");
666
+ }}
667
+ />
668
<QuickDateButton
669
label="This month"
670
isActive={selectedQuickDate === "thisMonth"}
0 commit comments