Show the first-recorded date on the All history button tooltip
Publish Container / publish (push) Successful in 2m54s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Nate EmmertandClaude Sonnet 5.5 committed 2026-10-15 13:17:46 -04:00
1 parent 00336c6ce1
commit 6e285bfef1
1 file changed
+5
+5
View File
@@ -578,6 +578,11 @@ async function refreshData() {
]); ]);
DAILY = daily; RECENT = recent; DAILY = daily; RECENT = recent;
LATEST = RECENT[RECENT.length - 1] || null; LATEST = RECENT[RECENT.length - 1] || null;
const allBtn = document.querySelector('.range-btn[data-range="all"]');
if (allBtn && DAILY[0]) {
const first = new Date(dayMs(DAILY[0].d)).toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric', timeZone: 'UTC' });
allBtn.title = `Everything recorded since ${first}`;
}
if (LATEST?.tz) TZ = LATEST.tz; if (LATEST?.tz) TZ = LATEST.tz;
if (!LOC) { if (!LOC) {
const loc = await getJSON('/api/dashboard/location').catch(() => null); const loc = await getJSON('/api/dashboard/location').catch(() => null);