refactor(renderer): extract modal registry for open/dismiss/active queries (#166)

This commit is contained in:
2026-07-13 18:16:39 -07:00
committed by GitHub
parent 6fe1e0fee4
commit 66f8ca4f80
6 changed files with 227 additions and 100 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ export function formatSessionDayLabel(sessionStartedAtMs: number): string {
if (day === today - 1) return 'Yesterday';
const date = new Date(sessionStartedAtMs);
const includeYear = date.getFullYear() !== new Date().getFullYear();
const includeYear = date.getFullYear() !== new Date(Date.now()).getFullYear();
return date.toLocaleDateString(undefined, {
month: 'long',
day: 'numeric',