From a1057fd7769334ae2cf9557818d128dedab9605b Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Tue, 9 Jun 2026 11:28:48 -0400 Subject: [PATCH] =?UTF-8?q?fix(badges):=20throughput=20=E2=80=94=20weekday?= =?UTF-8?q?-first=20date=20header,=20keyed=20each=20block?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Separators now read "Tuesday · June 9 — EDT" so day-of-week is the lead identifier, matching how conference staff refer to the schedule. Added key (sz) to the window-size each block. Co-Authored-By: Claude Sonnet 4.6 --- .../reports/reports_badge_print_throughput.svelte | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/routes/events/[event_id]/(badges)/badges/reports/reports_badge_print_throughput.svelte b/src/routes/events/[event_id]/(badges)/badges/reports/reports_badge_print_throughput.svelte index ebd013a7..58f746bb 100644 --- a/src/routes/events/[event_id]/(badges)/badges/reports/reports_badge_print_throughput.svelte +++ b/src/routes/events/[event_id]/(badges)/badges/reports/reports_badge_print_throughput.svelte @@ -40,12 +40,9 @@ const tz_abbr: string = .find((p) => p.type === 'timeZoneName')?.value ?? ''; function fmt_date_header(ms: number): string { - const date_part = new Intl.DateTimeFormat('en-US', { - weekday: 'long', - month: 'long', - day: 'numeric' - }).format(ms); - return tz_abbr ? `${date_part} — ${tz_abbr}` : date_part; + const weekday = new Intl.DateTimeFormat('en-US', { weekday: 'long' }).format(ms); + const date_part = new Intl.DateTimeFormat('en-US', { month: 'long', day: 'numeric' }).format(ms); + return tz_abbr ? `${weekday} · ${date_part} — ${tz_abbr}` : `${weekday} · ${date_part}`; } // Naive UTC strings from the backend have no timezone indicator — append Z so @@ -125,7 +122,7 @@ function get_effective_name(badge: any): string {
Window: - {#each ([5, 15, 30, 60] as BucketMin[]) as sz} + {#each ([5, 15, 30, 60] as BucketMin[]) as sz (sz)}