Auto select day if less than 24h data for new sites.

This commit is contained in:
2026-08-22 01:51:36 +00:00
parent c77598adc7
commit a16fe88114
4 changed files with 26 additions and 5 deletions
+2 -1
View File
@@ -197,7 +197,8 @@ Because it is a real page, fetch-navigation handles it like any other internal
link: clicking the 📊 pen (or any link to `/_a`) fetches the server-rendered
HTML, swaps the dynamic regions and mounts the Vue analytics app in place. The
range selector updates the URL hash (`#week` etc.) so links to a specific
range can be shared.
range can be shared. When the URL has no hash, the server defaults to `day`
if analytics history spans less than 24 hours, otherwise `week`.
`AnalyticsView.vue` is no longer a full-screen overlay; the `body.analytics-open`
page-chrome hiding and `#/analytics/<range>` hash routing have been removed.