From 16a7097fa2facdafc9849d93ac22f8dd98a1ab85 Mon Sep 17 00:00:00 2001 From: repo-worker-tmp-code-b Date: Sat, 21 Nov 2026 02:07:27 -0600 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9A=A1=20Bolt:=20cache=20notification=20?= =?UTF-8?q?timezone=20formatters?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pm-stack/aggregator/src/notifications.ts | 25 +++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/pm-stack/aggregator/src/notifications.ts b/pm-stack/aggregator/src/notifications.ts index 667358dd6b..c6b1d31e3c 100644 --- a/pm-stack/aggregator/src/notifications.ts +++ b/pm-stack/aggregator/src/notifications.ts @@ -225,16 +225,23 @@ interface LocalClock { minute: number; } +// ⚡ Bolt: formatter construction (~29µs) dominated repeated digest clock +// conversions. Reuse the immutable formatter for each timezone. +const LOCAL_CLOCK_FORMATTERS = new Map(); +function localClockFormatter(timeZone: string): Intl.DateTimeFormat { + let fmt = LOCAL_CLOCK_FORMATTERS.get(timeZone); + if (!fmt) { + fmt = new Intl.DateTimeFormat("en-US", { + timeZone, year: "numeric", month: "2-digit", day: "2-digit", + hour: "2-digit", minute: "2-digit", hourCycle: "h23", + }); + LOCAL_CLOCK_FORMATTERS.set(timeZone, fmt); + } + return fmt; +} + function localClock(at: number, timeZone: string): LocalClock { - const parts = new Intl.DateTimeFormat("en-US", { - timeZone, - year: "numeric", - month: "2-digit", - day: "2-digit", - hour: "2-digit", - minute: "2-digit", - hourCycle: "h23", - }).formatToParts(new Date(at)); + const parts = localClockFormatter(timeZone).formatToParts(new Date(at)); const value = (type: Intl.DateTimeFormatPartTypes) => Number(parts.find((part) => part.type === type)?.value); return { year: value("year"), From 65de3a2f94884e3dd415622754f4a3b529012ef7 Mon Sep 17 00:00:00 2001 From: repo-worker-tmp-code-b Date: Sat, 21 Nov 2026 02:08:39 -0600 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20tooltip=20for=20t?= =?UTF-8?q?he=20inline=20add-tag=20"+"=20button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The editor tag panel's add button is a bare "+" glyph. It had an aria-label but no title, so sighted mouse users had no hint what it does. Give it the same title as its sibling icon-style controls (save, dl, rename, copy). Accessible name is unchanged. --- pkgs/id/crates/id-web/src/templates.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/id/crates/id-web/src/templates.rs b/pkgs/id/crates/id-web/src/templates.rs index 078753fe8a..ec9ed56641 100644 --- a/pkgs/id/crates/id-web/src/templates.rs +++ b/pkgs/id/crates/id-web/src/templates.rs @@ -576,7 +576,7 @@ pub fn render_editor(doc_id: &str, name: &str, content: &str, hash: &str) -> Str html.push_str(" \n"); html.push_str(" \n"); html.push_str(" \n"); - html.push_str(" \n"); + html.push_str(" \n"); html.push_str(" \n"); html.push_str(" \n");