From 959dda08feea812ca26a2c9a49866b73fb527fcf Mon Sep 17 00:00:00 2001 From: Arthur Bassi Date: Thu, 20 Aug 2026 09:40:02 -0300 Subject: [PATCH] fix(work-orders): stack week selector with day tabs in the filter bar Keep SH-240 nav grouped under the type row and coerce the Live badge for JSX &&. --- .../_components/list/filter-bar/day-tabs.tsx | 6 +---- .../list/filter-bar/week-selector.tsx | 2 +- .../filter-bar/work-orders-filter-bar.tsx | 27 ++++++++++++------- 3 files changed, 19 insertions(+), 16 deletions(-) diff --git a/src/app/(protected)/workorders/_components/list/filter-bar/day-tabs.tsx b/src/app/(protected)/workorders/_components/list/filter-bar/day-tabs.tsx index 94308b41..1745af5a 100644 --- a/src/app/(protected)/workorders/_components/list/filter-bar/day-tabs.tsx +++ b/src/app/(protected)/workorders/_components/list/filter-bar/day-tabs.tsx @@ -12,11 +12,7 @@ export function DayTabs({ weekMonday, selectedDayIso, onChange, disabled = false const days = weekdaysMonFri(weekMonday); return ( -
+
{days.map((iso) => { const label = formatDayTabLabel(iso); const active = iso === selectedDayIso; diff --git a/src/app/(protected)/workorders/_components/list/filter-bar/week-selector.tsx b/src/app/(protected)/workorders/_components/list/filter-bar/week-selector.tsx index b7403964..49f985f4 100644 --- a/src/app/(protected)/workorders/_components/list/filter-bar/week-selector.tsx +++ b/src/app/(protected)/workorders/_components/list/filter-bar/week-selector.tsx @@ -62,7 +62,7 @@ export function WeekSelector({ weekMonday, onChange, disabled = false }: WeekSel )} > {label} - {live && } + {Boolean(live) && } -
+
- -
- {resultLabel} + + {resultLabel} + +
+
+ + +
+
+
-
); }