diff --git a/.changeset/accepted-languages.md b/.changeset/accepted-languages.md deleted file mode 100644 index 8b48fc3..0000000 --- a/.changeset/accepted-languages.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': minor -'@goto/cli': minor -'@goto/worker': minor ---- - -Add Accepted languages breakdowns to Overview, Domain, Root, Link and Tag analytics using high-quality captured language headers. Count each primary language once per visit, allowing overlapping shares, and prepare retained historical headers in the existing background report refresh without changing visit storage. Existing detail reports become unavailable until the normal refresh prepares the new format. diff --git a/.changeset/admin-analytics.md b/.changeset/admin-analytics.md deleted file mode 100644 index 35f999a..0000000 --- a/.changeset/admin-analytics.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@goto/web': minor -'@goto/cli': minor -'@goto/worker': minor ---- - -Add a dedicated Analytics page with one searchable scope picker for all traffic, domains, Root and named redirects, or tags. Tag reports use current YAML membership across domains. Hide its navigation link when analytics is disabled and send direct visits to Health. Display the 90-day timeframe in days without changing the reporting window. Use a chart icon beside Health and compact icon controls in the mobile navbar. Keep Overview, Domain, Root, named Link, and Tag pages focused on configuration and all-time visit summaries, with their charts, breakdowns, and timeframes in Analytics. - -When Analytics is enabled, add report links to Domain, Root, Link, and Tag details. The Root page opens its domain-wide report. Show the tag name in the Tag details card instead of the page heading. diff --git a/.changeset/admin-auth.md b/.changeset/admin-auth.md deleted file mode 100644 index 6ad4cca..0000000 --- a/.changeset/admin-auth.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': patch ---- - -Add stateless OIDC or shared-credential sign-in, a protected read-only configured -link inventory, sign-out, and the reference-app theme foundation. Keep public -redirects outside authentication and retain one auth instance across YAML reloads. diff --git a/.changeset/admin-cache-policy.md b/.changeset/admin-cache-policy.md deleted file mode 100644 index bb66477..0000000 --- a/.changeset/admin-cache-policy.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': patch -'@goto/cli': patch -'@goto/worker': patch ---- - -Prevent caching of admin and sign-in responses, including redirects and authentication failures. Static assets and redirect hosts keep their existing cache policy. diff --git a/.changeset/admin-health-icon.md b/.changeset/admin-health-icon.md deleted file mode 100644 index c66479b..0000000 --- a/.changeset/admin-health-icon.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': patch -'@goto/cli': patch -'@goto/worker': patch ---- - -Use a heartbeat icon for the Health link in the admin navigation. diff --git a/.changeset/admin-health.md b/.changeset/admin-health.md deleted file mode 100644 index ef40f94..0000000 --- a/.changeset/admin-health.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': minor -'@goto/worker': minor -'@goto/cli': minor ---- - -Add a read-only Health page with safe active settings, report data cutoff and a manual bounded check of the existing worker health endpoint. Use the configured worker base URL without adding a startup dependency. Make the worker check and its result prominent with a bordered action button, checking indicator and status banner. Warn when enabled analytics reports are unavailable or more than 75 minutes old. diff --git a/.changeset/admin-link-titles.md b/.changeset/admin-link-titles.md deleted file mode 100644 index 469fc1e..0000000 --- a/.changeset/admin-link-titles.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': patch -'@goto/cli': patch -'@goto/worker': patch ---- - -Show the configured title, when present, in the named link’s Redirect card. diff --git a/.changeset/admin-nav-title.md b/.changeset/admin-nav-title.md deleted file mode 100644 index c042090..0000000 --- a/.changeset/admin-nav-title.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': patch -'@goto/cli': patch -'@goto/worker': patch ---- - -Fix the admin and sign-in title to GoTo and remove the `site` config section. Show the app icon beside the title, link the pair to Overview only from other pages, and move Health next to the theme switcher. diff --git a/.changeset/admin-overview.md b/.changeset/admin-overview.md deleted file mode 100644 index 566f1f1..0000000 --- a/.changeset/admin-overview.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': minor -'@goto/worker': minor -'@goto/cli': minor ---- - -Add an authenticated admin overview, domain summaries and dedicated link pages with current inventory and retained visits. One hourly background job, with scheduled jitter, prepares all reports in SQLite and coordinates retention cleanup. Admin pages read prepared snapshots directly and display their update time; no reporting API, token or worker URL is required. The job also prepares UTC daily, weekly and monthly series and browser/OS family counts for later visualization. Charts and the Health page are not included. diff --git a/.changeset/admin-root-settings.md b/.changeset/admin-root-settings.md deleted file mode 100644 index 6f8c52a..0000000 --- a/.changeset/admin-root-settings.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@goto/web': minor -'@goto/worker': minor -'@goto/cli': minor ---- - -Use one `(root)` inventory row to reach Root details and remove redundant Root summary navigation. Expose root/fallback response settings and named-link settings, inheritance, schedules and tags without changing existing URLs. - -Count every tracked `/` request as a valid Root visit, independent of response status. Apply that meaning to legacy Root visits during report aggregation without rewriting raw rows. Details version 3 keeps totals, charts and browser/OS breakdowns consistent; older prepared details stay unavailable until normal report refresh. Invalid clicks remain limited to non-root traffic. diff --git a/.changeset/admin-root-visit-counts.md b/.changeset/admin-root-visit-counts.md deleted file mode 100644 index d74143e..0000000 --- a/.changeset/admin-root-visit-counts.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@goto/web': patch ---- - -Report root visits separately from valid links and invalid clicks in admin summaries and Analytics, including historical traffic. Show root traffic over time in the Root report. diff --git a/.changeset/analytics-json-documents.md b/.changeset/analytics-json-documents.md deleted file mode 100644 index 18e1244..0000000 --- a/.changeset/analytics-json-documents.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': patch -'@goto/worker': patch -'@goto/cli': patch ---- - -Replace opaque analytics cache entries with versioned summary and daily-detail JSON documents identified by report scope. Separate shared analytics contracts and encoding from SQLite persistence. Keep admin reads summary-only, remove stored weekly/monthly series and shared empty/period fallbacks, and rebuild derived reports from retained visits after migration. Existing analytics collection, retention and admin behavior are unchanged. diff --git a/.changeset/auth-cookie-prefix.md b/.changeset/auth-cookie-prefix.md deleted file mode 100644 index e78c4f6..0000000 --- a/.changeset/auth-cookie-prefix.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': patch -'@goto/worker': patch -'@goto/cli': patch ---- - -Namespace authentication cookies with the native Better Auth `goto` prefix so Goto does not overwrite other localhost apps' default authentication cookies. Existing Goto sessions require a fresh sign-in; unrelated cookies are not removed. diff --git a/.changeset/browser-os-breakdowns.md b/.changeset/browser-os-breakdowns.md deleted file mode 100644 index 21de864..0000000 --- a/.changeset/browser-os-breakdowns.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': minor -'@goto/worker': minor -'@goto/cli': minor ---- - -Add browser and operating-system breakdowns to domain and link pages, including `/`, using the selected visits timeframe. Prepare sparse browser and operating-system counts by UTC day in versioned detail reports and show readable counts, percentages and bars without changing visit capture, classification or retention. diff --git a/.changeset/conditional-redirects.md b/.changeset/conditional-redirects.md deleted file mode 100644 index 963794c..0000000 --- a/.changeset/conditional-redirects.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': minor -'@goto/cli': minor -'@goto/worker': minor ---- - -Add ordered language and OS redirect rules for named links, with read-only rules on the Link page. Show browser and OS breakdowns on Overview alongside accepted languages. Put domain/link inventory and redirect settings before analytics across the dashboards. Reuse accepted-language classification and the existing approximate OS detector while preserving canonical capture and nonblocking visit recording. Separate configuration validation from routing lookup construction; object-based callers now use loadConfig instead of the former validateConfig preparation API. diff --git a/.changeset/config-diagnostics.md b/.changeset/config-diagnostics.md deleted file mode 100644 index b9b4c0e..0000000 --- a/.changeset/config-diagnostics.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': patch -'@goto/worker': patch -'@goto/cli': patch ---- - -Report curated configuration issue paths and YAML locations in CLI and startup logs. Keep browser-facing errors generic and exclude configuration values, private dictionary keys, parser snippets and arbitrary error details. diff --git a/.changeset/config-domain-responses.md b/.changeset/config-domain-responses.md deleted file mode 100644 index 59660a2..0000000 --- a/.changeset/config-domain-responses.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': minor -'@goto/worker': minor -'@goto/cli': minor ---- - -Separate domain `root` responses from named links and use `link_defaults` consistently at global and domain levels. Root and fallback responses require a destination URL and support explicit redirect status and query forwarding. Domain fallbacks replace global responses as whole objects; 404 is only the default when no fallback exists. Reject `/` link entries, old defaults and scalar fallback syntax directly. diff --git a/.changeset/config-reload.md b/.changeset/config-reload.md deleted file mode 100644 index 3bbb91f..0000000 --- a/.changeset/config-reload.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': patch ---- - -Reload valid YAML changes as immutable snapshots while retaining the last working -configuration after invalid or restart-only updates. Preserve each request's -captured configuration and stop polling with the application lifecycle. diff --git a/.changeset/default-admin-origin.md b/.changeset/default-admin-origin.md deleted file mode 100644 index 856ffd0..0000000 --- a/.changeset/default-admin-origin.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': patch -'@goto/cli': patch -'@goto/worker': patch ---- - -Make the default admin origin independent of the listener's `PORT`: `http://localhost:5173` in development and `http://localhost:3000` otherwise. Set `url.app` explicitly if your admin origin differs, including when using a custom port. Listener behavior is unchanged. diff --git a/.changeset/domain-details-card.md b/.changeset/domain-details-card.md deleted file mode 100644 index 369558d..0000000 --- a/.changeset/domain-details-card.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': patch -'@goto/worker': patch -'@goto/cli': patch ---- - -Replace the domain's Base URL section with a Domain details card above the chart. Move base visits into a linked stat card, keep the domain name, base destination and status in the details, and remove the redundant domain subtitle and Base URL row. Restore the Retention card on Overview only. Use “Visits” consistently in dashboard labels, chart tooltips and readable tables without changing the counts. Align inventory columns and show inline row labels only on mobile, keeping desktop column headers without visual repetition. diff --git a/.changeset/domain-details-first.md b/.changeset/domain-details-first.md deleted file mode 100644 index 302a4ed..0000000 --- a/.changeset/domain-details-first.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': patch -'@goto/cli': patch -'@goto/worker': patch ---- - -Show the Details card above the links on the Domain page. diff --git a/.changeset/domain-dispatch.md b/.changeset/domain-dispatch.md deleted file mode 100644 index 708eb23..0000000 --- a/.changeset/domain-dispatch.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@goto/web': patch ---- - -Dispatch configured short domains before admin assets and routes, resolve redirects -in memory, and retain development HMR with server-owned application lifetime. diff --git a/.changeset/domain-visits-chart.md b/.changeset/domain-visits-chart.md deleted file mode 100644 index 85de78e..0000000 --- a/.changeset/domain-visits-chart.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': minor -'@goto/worker': minor -'@goto/cli': minor ---- - -Add the visits chart and retention-aware timeframes to domain dashboards. Reuse the overview chart, timeframe control and window-count helpers so domain traffic cards, base URL and current-link counts follow one selected window. Preserve the selected timeframe between overview and domain pages, keep link series out of browser data, and show inventory only when analytics is disabled. Use contextual page headers, compact mobile timeframe dropdowns and responsive inventory rows that fit without horizontal scrolling. Each inventory row is a single link to its statistics page, with plain-text details. Individual-link analytics remain full-retention summaries. diff --git a/.changeset/editor-schema.md b/.changeset/editor-schema.md deleted file mode 100644 index 4823866..0000000 --- a/.changeset/editor-schema.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': patch -'@goto/cli': patch ---- - -Generate the authoring schema from TypeBox, serve it on the admin origin, and add -runtime configuration validation through the CLI and tools container. diff --git a/.changeset/finite-analytics-retention.md b/.changeset/finite-analytics-retention.md deleted file mode 100644 index 49e072b..0000000 --- a/.changeset/finite-analytics-retention.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': minor -'@goto/cli': minor -'@goto/worker': minor ---- - -Replace analytics enabled/retention-days settings with finite calendar-month retention. Apply live retention changes through the worker service's jittered hourly OpenWorkflow schedule and purge analytics data when retention is zero. Keep Piscina ingestion-only, serialize SQLite migrations, and fence queued writes across collection changes. diff --git a/.changeset/flexible-matching.md b/.changeset/flexible-matching.md deleted file mode 100644 index 60ba123..0000000 --- a/.changeset/flexible-matching.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': minor -'@goto/cli': minor -'@goto/worker': minor ---- - -Add inherited named-link case-insensitive matching and trailing-slash tolerance, enabled by default, plus independent opt-in path forwarding. Keep matched aliases and forwarded paths under their configured link analytics identity and expose effective matching settings in admin. diff --git a/.changeset/global-tag-dashboards.md b/.changeset/global-tag-dashboards.md deleted file mode 100644 index 7637c13..0000000 --- a/.changeset/global-tag-dashboards.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': minor -'@goto/cli': minor -'@goto/worker': minor ---- - -Add global current-membership tag dashboards and clickable tag pills on Link details and Health, combining existing prepared link analytics without new stored reports. Drop unusable string tag labels with safe configuration warnings at startup, on accepted warning changes, and during CLI validation while preserving valid literal names and strict configuration structure. diff --git a/.changeset/incremental-daily-statistics.md b/.changeset/incremental-daily-statistics.md deleted file mode 100644 index d846da8..0000000 --- a/.changeset/incremental-daily-statistics.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': minor -'@goto/cli': minor -'@goto/worker': minor ---- - -Maintain retained visit statistics incrementally in UTC-day SQLite rows instead of rebuilding complete report snapshots. Commit daily updates with visit processing markers, expire raw visits and daily contributions together, and retire fully expired aggregate rows by event time. Missing daily contributions warn without blocking raw cleanup. Admin analytics use the current retention window and show last-visit activity rather than inferred job freshness. Zero retention keeps collection and scheduled analytics disabled, with a one-off purge of existing data. diff --git a/.changeset/link-visits-chart.md b/.changeset/link-visits-chart.md deleted file mode 100644 index 296afa1..0000000 --- a/.changeset/link-visits-chart.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': minor -'@goto/worker': minor -'@goto/cli': minor ---- - -Add the shared visits chart and retention-aware timeframes to individual link pages, including the base `/` path. Keep each link's visit card and chart on the same selected window, preserve that window through overview/domain/link navigation, and keep link details usable without analytics. Reuse existing prepared daily reports and shared dashboard controls. Keep desktop stat cards consistently sized across dashboards, remove repeated retention cards, and show link status in a card with domain, path and destination in the details section. Add a full-width, scrollable native data table beneath the shared chart on all dashboard pages, matching its selected periods and visit totals with sticky UTC headers and alternating row backgrounds. diff --git a/.changeset/login-theme-control.md b/.changeset/login-theme-control.md deleted file mode 100644 index 3c18af2..0000000 --- a/.changeset/login-theme-control.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': patch -'@goto/worker': patch -'@goto/cli': patch ---- - -Remove the theme switcher from sign-in and use a compact, accessible Phosphor icon button in the admin header. Preserve saved preferences, system-theme behavior and the existing sign-in flow. diff --git a/.changeset/named-link-visit-limits.md b/.changeset/named-link-visit-limits.md deleted file mode 100644 index 3921d86..0000000 --- a/.changeset/named-link-visit-limits.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': minor -'@goto/cli': minor -'@goto/worker': minor ---- - -Add optional positive `max_visits` limits to individual named links. Check recovered and locally tracked visit counts in memory, allow the final permitted GET, and use the existing inactive-link fallback or 404 once exhausted. HEAD observes availability without consuming a visit. Canonical matching aliases and conditional destinations share one allowance; changing or removing a limit preserves accumulated usage. Show configured limits and exhausted state in read-only administration, including when detailed analytics are disabled. Counts remain best effort rather than distributed exact quotas; redirects do not wait for database persistence. diff --git a/.changeset/overview-visits-chart.md b/.changeset/overview-visits-chart.md deleted file mode 100644 index b8c06d3..0000000 --- a/.changeset/overview-visits-chart.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': minor -'@goto/worker': minor -'@goto/cli': minor ---- - -Add an overview visits chart and retention-aware page-wide timeframes using prepared daily analytics. Headline and domain visit counts follow the selected UTC calendar window, with automatic daily, Monday-week or calendar-month chart grouping. Keep domain series out of the browser payload and hide analytics cards, controls and columns when collection is disabled. Domain and link pages remain unchanged. diff --git a/.changeset/permanent-visit-totals.md b/.changeset/permanent-visit-totals.md deleted file mode 100644 index a9db868..0000000 --- a/.changeset/permanent-visit-totals.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': minor -'@goto/cli': minor -'@goto/worker': minor ---- - -Keep permanent numeric visit totals through hourly worker rollup while retaining finite daily analytics separately. Capture minimal visits when detailed analytics are disabled, count them before removal, and recover live named-link visit counts from stored totals plus unprocessed visits on startup. Show read-only all-time visits in the admin details, independently of the analytics period. Web startup waits for worker health in Docker, and rejected configuration reloads keep the prior working configuration with a clear warning. This prelaunch change uses a fresh schema; it does not convert existing databases. Named-link visit limits are not introduced yet. diff --git a/.changeset/prune-redundant-checks.md b/.changeset/prune-redundant-checks.md deleted file mode 100644 index de05554..0000000 --- a/.changeset/prune-redundant-checks.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Prune redundant smoke launches and style assertions. No production behavior changed. diff --git a/.changeset/remove-worker-totals-note.md b/.changeset/remove-worker-totals-note.md deleted file mode 100644 index d788532..0000000 --- a/.changeset/remove-worker-totals-note.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': patch -'@goto/cli': patch -'@goto/worker': patch ---- - -Remove the hourly worker totals note from the Root details card. diff --git a/.changeset/require-oidc-id-token.md b/.changeset/require-oidc-id-token.md deleted file mode 100644 index 1d569df..0000000 --- a/.changeset/require-oidc-id-token.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': patch -'@goto/cli': patch -'@goto/worker': patch ---- - -Require an ID token from the configured OpenID Connect provider before creating an admin session. Username/password sign-in is unchanged. diff --git a/.changeset/restart-only-collection.md b/.changeset/restart-only-collection.md deleted file mode 100644 index a6af12d..0000000 --- a/.changeset/restart-only-collection.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': minor -'@goto/worker': minor -'@goto/cli': minor ---- - -Make analytics collection on/off startup-only and remove the collection-control table and insertion fence. Stop and drain both services before changing between zero and positive retention, then restart; changes between positive retention periods remain live. Keep whole-event admission drops with distinct bounded warnings for queue capacity and payload size. diff --git a/.changeset/rolling-analytics-retention.md b/.changeset/rolling-analytics-retention.md deleted file mode 100644 index c462de1..0000000 --- a/.changeset/rolling-analytics-retention.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': patch -'@goto/cli': patch -'@goto/worker': patch ---- - -Use 30 days per configured retention month for detailed analytics. Reports and cleanup share rolling 90-, 270-, or 360-day windows that do not move backward at month-end. Zero retention and lifetime visit totals are unchanged. diff --git a/.changeset/runtime-foundation.md b/.changeset/runtime-foundation.md deleted file mode 100644 index 7ef9340..0000000 --- a/.changeset/runtime-foundation.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@goto/web': patch ---- - -Add the SvelteKit 3 runtime foundation, development tooling, and CI/CD with gated -Docker publishing and release-tag version checks. diff --git a/.changeset/service-urls.md b/.changeset/service-urls.md deleted file mode 100644 index 8124c7e..0000000 --- a/.changeset/service-urls.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': minor -'@goto/worker': minor -'@goto/cli': minor ---- - -Group application addresses under `url.app` and `url.worker`, replacing `site.url` directly. Default the private worker base URL to `http://goto-worker:9000`. Keep site branding separate and preserve existing application-origin behavior. diff --git a/.changeset/shared-admin-host.md b/.changeset/shared-admin-host.md deleted file mode 100644 index 0f29a00..0000000 --- a/.changeset/shared-admin-host.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': minor -'@goto/worker': minor -'@goto/cli': minor ---- - -Allow the app host to serve short links when it is also listed under `domains`. App routes, assets, and development tooling paths are reserved on the shared host. The app no longer sends `/` to `/admin` by default; configure a domain's Root response to restore that shortcut. diff --git a/.changeset/shared-config-reload.md b/.changeset/shared-config-reload.md deleted file mode 100644 index ffbaad6..0000000 --- a/.changeset/shared-config-reload.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': patch -'@goto/cli': patch -'@goto/worker': patch ---- - -Use the same reload rules in web and worker. Stop both services before changing either database path, the app origin, authentication, or reducing retention or switching detailed analytics on or off. Then start both with the new configuration. If saved while running, these edits leave the previous configuration active rather than restarting one service. Link edits and increases between positive retention periods can still take effect live. diff --git a/.changeset/visit-capture.md b/.changeset/visit-capture.md deleted file mode 100644 index a12df2e..0000000 --- a/.changeset/visit-capture.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@goto/web': patch ---- - -Record successful redirect visits through a bounded background SQLite writer. diff --git a/.changeset/visit-classification.md b/.changeset/visit-classification.md deleted file mode 100644 index e2ded5e..0000000 --- a/.changeset/visit-classification.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@goto/web': patch ---- - -Classify broad browser and operating-system families when recording visits in the background worker. diff --git a/.changeset/visit-outcomes.md b/.changeset/visit-outcomes.md deleted file mode 100644 index f7a7e63..0000000 --- a/.changeset/visit-outcomes.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@goto/web': minor -'@goto/worker': minor ---- - -Record request-time valid and invalid visit outcomes for known redirect domains, including base URLs and inactive or unmatched paths. Preserve existing visits as valid without consulting current YAML, while keeping HEAD, malformed requests, unknown hosts, and disabled analytics untracked. diff --git a/.changeset/web-appearance.md b/.changeset/web-appearance.md deleted file mode 100644 index a6427bf..0000000 --- a/.changeset/web-appearance.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': patch -'@goto/cli': patch -'@goto/worker': patch ---- - -Add a Noto right-arrow favicon, an Open Graph image, and responsive error pages. Serve the images on each configured domain. Allow `@` in shortlink paths and reserve `/@static/` for static files. diff --git a/.changeset/worker-service.md b/.changeset/worker-service.md deleted file mode 100644 index bc2b830..0000000 --- a/.changeset/worker-service.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/worker': minor -'@goto/web': minor -'@goto/cli': minor ---- - -Introduce the standalone OpenWorkflow worker service with health checks, graceful shutdown, separate workflow storage, and matching CI/CD. Analytics workflows will be introduced separately. diff --git a/.changeset/worker-startup-diagnostics.md b/.changeset/worker-startup-diagnostics.md deleted file mode 100644 index a411a77..0000000 --- a/.changeset/worker-startup-diagnostics.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@goto/web': patch -'@goto/cli': patch -'@goto/worker': patch ---- - -Report stable worker startup failure codes with curated storage, SQLite and health-listener reasons. Use existing configuration diagnostics for invalid startup options and identify migrations without parsing exception messages. Keep raw exceptions, SQL, filesystem paths and configuration values out of logs. Report failed-startup cleanup separately without masking the original failure. Startup still exits unsuccessfully and does not announce readiness on failure; no database repair, reset, retry or health policy is added. diff --git a/.changeset/yaml-configuration.md b/.changeset/yaml-configuration.md deleted file mode 100644 index 30cce25..0000000 --- a/.changeset/yaml-configuration.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@goto/web': patch ---- - -Add the shared TypeBox/YAML configuration contract with explicit environment -interpolation, inherited redirect defaults, and canonical path validation. diff --git a/apps/cli/CHANGELOG.md b/apps/cli/CHANGELOG.md new file mode 100644 index 0000000..a593adc --- /dev/null +++ b/apps/cli/CHANGELOG.md @@ -0,0 +1,52 @@ +# @goto/cli + +## 0.0.1 + +### Patch Changes + +- 9324bde: Add Accepted languages breakdowns to Overview, Domain, Root, Link and Tag analytics using high-quality captured language headers. Count each primary language once per visit, allowing overlapping shares, and prepare retained historical headers in the existing background report refresh without changing visit storage. Existing detail reports become unavailable until the normal refresh prepares the new format. +- 31f197a: Add a dedicated Analytics page with one searchable scope picker for all traffic, domains, Root and named redirects, or tags. Tag reports use current YAML membership across domains. Hide its navigation link when analytics is disabled and send direct visits to Health. Display the 90-day timeframe in days without changing the reporting window. Use a chart icon beside Health and compact icon controls in the mobile navbar. Keep Overview, Domain, Root, named Link, and Tag pages focused on configuration and all-time visit summaries, with their charts, breakdowns, and timeframes in Analytics. + + When Analytics is enabled, add report links to Domain, Root, Link, and Tag details. The Root page opens its domain-wide report. Show the tag name in the Tag details card instead of the page heading. + +- c09270a: Prevent caching of admin and sign-in responses, including redirects and authentication failures. Static assets and redirect hosts keep their existing cache policy. +- c47639f: Use a heartbeat icon for the Health link in the admin navigation. +- 6ae7090: Add a read-only Health page with safe active settings, report data cutoff and a manual bounded check of the existing worker health endpoint. Use the configured worker base URL without adding a startup dependency. Make the worker check and its result prominent with a bordered action button, checking indicator and status banner. Warn when enabled analytics reports are unavailable or more than 75 minutes old. +- f5acb21: Show the configured title, when present, in the named link’s Redirect card. +- d0fc110: Fix the admin and sign-in title to GoTo and remove the `site` config section. Show the app icon beside the title, link the pair to Overview only from other pages, and move Health next to the theme switcher. +- 80d5b04: Add an authenticated admin overview, domain summaries and dedicated link pages with current inventory and retained visits. One hourly background job, with scheduled jitter, prepares all reports in SQLite and coordinates retention cleanup. Admin pages read prepared snapshots directly and display their update time; no reporting API, token or worker URL is required. The job also prepares UTC daily, weekly and monthly series and browser/OS family counts for later visualization. Charts and the Health page are not included. +- 9355fe9: Use one `(root)` inventory row to reach Root details and remove redundant Root summary navigation. Expose root/fallback response settings and named-link settings, inheritance, schedules and tags without changing existing URLs. + + Count every tracked `/` request as a valid Root visit, independent of response status. Apply that meaning to legacy Root visits during report aggregation without rewriting raw rows. Details version 3 keeps totals, charts and browser/OS breakdowns consistent; older prepared details stay unavailable until normal report refresh. Invalid clicks remain limited to non-root traffic. + +- ac0c9b4: Replace opaque analytics cache entries with versioned summary and daily-detail JSON documents identified by report scope. Separate shared analytics contracts and encoding from SQLite persistence. Keep admin reads summary-only, remove stored weekly/monthly series and shared empty/period fallbacks, and rebuild derived reports from retained visits after migration. Existing analytics collection, retention and admin behavior are unchanged. +- e7d8fc0: Namespace authentication cookies with the native Better Auth `goto` prefix so Goto does not overwrite other localhost apps' default authentication cookies. Existing Goto sessions require a fresh sign-in; unrelated cookies are not removed. +- 2fa26a0: Add browser and operating-system breakdowns to domain and link pages, including `/`, using the selected visits timeframe. Prepare sparse browser and operating-system counts by UTC day in versioned detail reports and show readable counts, percentages and bars without changing visit capture, classification or retention. +- 6e3fa58: Add ordered language and OS redirect rules for named links, with read-only rules on the Link page. Show browser and OS breakdowns on Overview alongside accepted languages. Put domain/link inventory and redirect settings before analytics across the dashboards. Reuse accepted-language classification and the existing approximate OS detector while preserving canonical capture and nonblocking visit recording. Separate configuration validation from routing lookup construction; object-based callers now use loadConfig instead of the former validateConfig preparation API. +- e5e9af5: Report curated configuration issue paths and YAML locations in CLI and startup logs. Keep browser-facing errors generic and exclude configuration values, private dictionary keys, parser snippets and arbitrary error details. +- 0860811: Separate domain `root` responses from named links and use `link_defaults` consistently at global and domain levels. Root and fallback responses require a destination URL and support explicit redirect status and query forwarding. Domain fallbacks replace global responses as whole objects; 404 is only the default when no fallback exists. Reject `/` link entries, old defaults and scalar fallback syntax directly. +- 81fb4e8: Make the default admin origin independent of the listener's `PORT`: `http://localhost:5173` in development and `http://localhost:3000` otherwise. Set `url.app` explicitly if your admin origin differs, including when using a custom port. Listener behavior is unchanged. +- d33b1c0: Replace the domain's Base URL section with a Domain details card above the chart. Move base visits into a linked stat card, keep the domain name, base destination and status in the details, and remove the redundant domain subtitle and Base URL row. Restore the Retention card on Overview only. Use “Visits” consistently in dashboard labels, chart tooltips and readable tables without changing the counts. Align inventory columns and show inline row labels only on mobile, keeping desktop column headers without visual repetition. +- 2844d7c: Show the Details card above the links on the Domain page. +- a114c26: Add the visits chart and retention-aware timeframes to domain dashboards. Reuse the overview chart, timeframe control and window-count helpers so domain traffic cards, base URL and current-link counts follow one selected window. Preserve the selected timeframe between overview and domain pages, keep link series out of browser data, and show inventory only when analytics is disabled. Use contextual page headers, compact mobile timeframe dropdowns and responsive inventory rows that fit without horizontal scrolling. Each inventory row is a single link to its statistics page, with plain-text details. Individual-link analytics remain full-retention summaries. +- 32d81f3: Generate the authoring schema from TypeBox, serve it on the admin origin, and add + runtime configuration validation through the CLI and tools container. +- c9e60c2: Replace analytics enabled/retention-days settings with finite calendar-month retention. Apply live retention changes through the worker service's jittered hourly OpenWorkflow schedule and purge analytics data when retention is zero. Keep Piscina ingestion-only, serialize SQLite migrations, and fence queued writes across collection changes. +- 85bc87d: Add inherited named-link case-insensitive matching and trailing-slash tolerance, enabled by default, plus independent opt-in path forwarding. Keep matched aliases and forwarded paths under their configured link analytics identity and expose effective matching settings in admin. +- 897fc03: Add global current-membership tag dashboards and clickable tag pills on Link details and Health, combining existing prepared link analytics without new stored reports. Drop unusable string tag labels with safe configuration warnings at startup, on accepted warning changes, and during CLI validation while preserving valid literal names and strict configuration structure. +- 574ec71: Maintain retained visit statistics incrementally in UTC-day SQLite rows instead of rebuilding complete report snapshots. Commit daily updates with visit processing markers, expire raw visits and daily contributions together, and retire fully expired aggregate rows by event time. Missing daily contributions warn without blocking raw cleanup. Admin analytics use the current retention window and show last-visit activity rather than inferred job freshness. Zero retention keeps collection and scheduled analytics disabled, with a one-off purge of existing data. +- 5b66c86: Add the shared visits chart and retention-aware timeframes to individual link pages, including the base `/` path. Keep each link's visit card and chart on the same selected window, preserve that window through overview/domain/link navigation, and keep link details usable without analytics. Reuse existing prepared daily reports and shared dashboard controls. Keep desktop stat cards consistently sized across dashboards, remove repeated retention cards, and show link status in a card with domain, path and destination in the details section. Add a full-width, scrollable native data table beneath the shared chart on all dashboard pages, matching its selected periods and visit totals with sticky UTC headers and alternating row backgrounds. +- c0723a6: Remove the theme switcher from sign-in and use a compact, accessible Phosphor icon button in the admin header. Preserve saved preferences, system-theme behavior and the existing sign-in flow. +- 5397477: Add optional positive `max_visits` limits to individual named links. Check recovered and locally tracked visit counts in memory, allow the final permitted GET, and use the existing inactive-link fallback or 404 once exhausted. HEAD observes availability without consuming a visit. Canonical matching aliases and conditional destinations share one allowance; changing or removing a limit preserves accumulated usage. Show configured limits and exhausted state in read-only administration, including when detailed analytics are disabled. Counts remain best effort rather than distributed exact quotas; redirects do not wait for database persistence. +- ce9de0e: Add an overview visits chart and retention-aware page-wide timeframes using prepared daily analytics. Headline and domain visit counts follow the selected UTC calendar window, with automatic daily, Monday-week or calendar-month chart grouping. Keep domain series out of the browser payload and hide analytics cards, controls and columns when collection is disabled. Domain and link pages remain unchanged. +- e7ba863: Keep permanent numeric visit totals through hourly worker rollup while retaining finite daily analytics separately. Capture minimal visits when detailed analytics are disabled, count them before removal, and recover live named-link visit counts from stored totals plus unprocessed visits on startup. Show read-only all-time visits in the admin details, independently of the analytics period. Web startup waits for worker health in Docker, and rejected configuration reloads keep the prior working configuration with a clear warning. This prelaunch change uses a fresh schema; it does not convert existing databases. Named-link visit limits are not introduced yet. +- eb0fe2c: Remove the hourly worker totals note from the Root details card. +- 84716b1: Require an ID token from the configured OpenID Connect provider before creating an admin session. Username/password sign-in is unchanged. +- b075740: Make analytics collection on/off startup-only and remove the collection-control table and insertion fence. Stop and drain both services before changing between zero and positive retention, then restart; changes between positive retention periods remain live. Keep whole-event admission drops with distinct bounded warnings for queue capacity and payload size. +- 976f0e6: Use 30 days per configured retention month for detailed analytics. Reports and cleanup share rolling 90-, 270-, or 360-day windows that do not move backward at month-end. Zero retention and lifetime visit totals are unchanged. +- 402fbac: Group application addresses under `url.app` and `url.worker`, replacing `site.url` directly. Default the private worker base URL to `http://goto-worker:9000`. Keep site branding separate and preserve existing application-origin behavior. +- 9bfd9c5: Allow the app host to serve short links when it is also listed under `domains`. App routes, assets, and development tooling paths are reserved on the shared host. The app no longer sends `/` to `/admin` by default; configure a domain's Root response to restore that shortcut. +- bd12228: Use the same reload rules in web and worker. Stop both services before changing either database path, the app origin, authentication, or reducing retention or switching detailed analytics on or off. Then start both with the new configuration. If saved while running, these edits leave the previous configuration active rather than restarting one service. Link edits and increases between positive retention periods can still take effect live. +- 523acfc: Add a Noto right-arrow favicon, an Open Graph image, and responsive error pages. Serve the images on each configured domain. Allow `@` in shortlink paths and reserve `/@static/` for static files. +- 80f36e3: Introduce the standalone OpenWorkflow worker service with health checks, graceful shutdown, separate workflow storage, and matching CI/CD. Analytics workflows will be introduced separately. +- 2ff57dd: Report stable worker startup failure codes with curated storage, SQLite and health-listener reasons. Use existing configuration diagnostics for invalid startup options and identify migrations without parsing exception messages. Keep raw exceptions, SQL, filesystem paths and configuration values out of logs. Report failed-startup cleanup separately without masking the original failure. Startup still exits unsuccessfully and does not announce readiness on failure; no database repair, reset, retry or health policy is added. diff --git a/apps/cli/package.json b/apps/cli/package.json index 00493c2..df57683 100644 --- a/apps/cli/package.json +++ b/apps/cli/package.json @@ -1,6 +1,6 @@ { "name": "@goto/cli", - "version": "0.1.0", + "version": "0.0.1", "private": true, "type": "module", "bin": { diff --git a/apps/web/CHANGELOG.md b/apps/web/CHANGELOG.md new file mode 100644 index 0000000..f343748 --- /dev/null +++ b/apps/web/CHANGELOG.md @@ -0,0 +1,68 @@ +# @goto/web + +## 0.0.1 + +### Patch Changes + +- 9324bde: Add Accepted languages breakdowns to Overview, Domain, Root, Link and Tag analytics using high-quality captured language headers. Count each primary language once per visit, allowing overlapping shares, and prepare retained historical headers in the existing background report refresh without changing visit storage. Existing detail reports become unavailable until the normal refresh prepares the new format. +- 31f197a: Add a dedicated Analytics page with one searchable scope picker for all traffic, domains, Root and named redirects, or tags. Tag reports use current YAML membership across domains. Hide its navigation link when analytics is disabled and send direct visits to Health. Display the 90-day timeframe in days without changing the reporting window. Use a chart icon beside Health and compact icon controls in the mobile navbar. Keep Overview, Domain, Root, named Link, and Tag pages focused on configuration and all-time visit summaries, with their charts, breakdowns, and timeframes in Analytics. + + When Analytics is enabled, add report links to Domain, Root, Link, and Tag details. The Root page opens its domain-wide report. Show the tag name in the Tag details card instead of the page heading. + +- f342edf: Add stateless OIDC or shared-credential sign-in, a protected read-only configured + link inventory, sign-out, and the reference-app theme foundation. Keep public + redirects outside authentication and retain one auth instance across YAML reloads. +- c09270a: Prevent caching of admin and sign-in responses, including redirects and authentication failures. Static assets and redirect hosts keep their existing cache policy. +- c47639f: Use a heartbeat icon for the Health link in the admin navigation. +- 6ae7090: Add a read-only Health page with safe active settings, report data cutoff and a manual bounded check of the existing worker health endpoint. Use the configured worker base URL without adding a startup dependency. Make the worker check and its result prominent with a bordered action button, checking indicator and status banner. Warn when enabled analytics reports are unavailable or more than 75 minutes old. +- f5acb21: Show the configured title, when present, in the named link’s Redirect card. +- d0fc110: Fix the admin and sign-in title to GoTo and remove the `site` config section. Show the app icon beside the title, link the pair to Overview only from other pages, and move Health next to the theme switcher. +- 80d5b04: Add an authenticated admin overview, domain summaries and dedicated link pages with current inventory and retained visits. One hourly background job, with scheduled jitter, prepares all reports in SQLite and coordinates retention cleanup. Admin pages read prepared snapshots directly and display their update time; no reporting API, token or worker URL is required. The job also prepares UTC daily, weekly and monthly series and browser/OS family counts for later visualization. Charts and the Health page are not included. +- 9355fe9: Use one `(root)` inventory row to reach Root details and remove redundant Root summary navigation. Expose root/fallback response settings and named-link settings, inheritance, schedules and tags without changing existing URLs. + + Count every tracked `/` request as a valid Root visit, independent of response status. Apply that meaning to legacy Root visits during report aggregation without rewriting raw rows. Details version 3 keeps totals, charts and browser/OS breakdowns consistent; older prepared details stay unavailable until normal report refresh. Invalid clicks remain limited to non-root traffic. + +- 2d0cd05: Report root visits separately from valid links and invalid clicks in admin summaries and Analytics, including historical traffic. Show root traffic over time in the Root report. +- ac0c9b4: Replace opaque analytics cache entries with versioned summary and daily-detail JSON documents identified by report scope. Separate shared analytics contracts and encoding from SQLite persistence. Keep admin reads summary-only, remove stored weekly/monthly series and shared empty/period fallbacks, and rebuild derived reports from retained visits after migration. Existing analytics collection, retention and admin behavior are unchanged. +- e7d8fc0: Namespace authentication cookies with the native Better Auth `goto` prefix so Goto does not overwrite other localhost apps' default authentication cookies. Existing Goto sessions require a fresh sign-in; unrelated cookies are not removed. +- 2fa26a0: Add browser and operating-system breakdowns to domain and link pages, including `/`, using the selected visits timeframe. Prepare sparse browser and operating-system counts by UTC day in versioned detail reports and show readable counts, percentages and bars without changing visit capture, classification or retention. +- 6e3fa58: Add ordered language and OS redirect rules for named links, with read-only rules on the Link page. Show browser and OS breakdowns on Overview alongside accepted languages. Put domain/link inventory and redirect settings before analytics across the dashboards. Reuse accepted-language classification and the existing approximate OS detector while preserving canonical capture and nonblocking visit recording. Separate configuration validation from routing lookup construction; object-based callers now use loadConfig instead of the former validateConfig preparation API. +- e5e9af5: Report curated configuration issue paths and YAML locations in CLI and startup logs. Keep browser-facing errors generic and exclude configuration values, private dictionary keys, parser snippets and arbitrary error details. +- 0860811: Separate domain `root` responses from named links and use `link_defaults` consistently at global and domain levels. Root and fallback responses require a destination URL and support explicit redirect status and query forwarding. Domain fallbacks replace global responses as whole objects; 404 is only the default when no fallback exists. Reject `/` link entries, old defaults and scalar fallback syntax directly. +- dff592f: Reload valid YAML changes as immutable snapshots while retaining the last working + configuration after invalid or restart-only updates. Preserve each request's + captured configuration and stop polling with the application lifecycle. +- 81fb4e8: Make the default admin origin independent of the listener's `PORT`: `http://localhost:5173` in development and `http://localhost:3000` otherwise. Set `url.app` explicitly if your admin origin differs, including when using a custom port. Listener behavior is unchanged. +- d33b1c0: Replace the domain's Base URL section with a Domain details card above the chart. Move base visits into a linked stat card, keep the domain name, base destination and status in the details, and remove the redundant domain subtitle and Base URL row. Restore the Retention card on Overview only. Use “Visits” consistently in dashboard labels, chart tooltips and readable tables without changing the counts. Align inventory columns and show inline row labels only on mobile, keeping desktop column headers without visual repetition. +- 2844d7c: Show the Details card above the links on the Domain page. +- 7bb3a1b: Dispatch configured short domains before admin assets and routes, resolve redirects + in memory, and retain development HMR with server-owned application lifetime. +- a114c26: Add the visits chart and retention-aware timeframes to domain dashboards. Reuse the overview chart, timeframe control and window-count helpers so domain traffic cards, base URL and current-link counts follow one selected window. Preserve the selected timeframe between overview and domain pages, keep link series out of browser data, and show inventory only when analytics is disabled. Use contextual page headers, compact mobile timeframe dropdowns and responsive inventory rows that fit without horizontal scrolling. Each inventory row is a single link to its statistics page, with plain-text details. Individual-link analytics remain full-retention summaries. +- 32d81f3: Generate the authoring schema from TypeBox, serve it on the admin origin, and add + runtime configuration validation through the CLI and tools container. +- c9e60c2: Replace analytics enabled/retention-days settings with finite calendar-month retention. Apply live retention changes through the worker service's jittered hourly OpenWorkflow schedule and purge analytics data when retention is zero. Keep Piscina ingestion-only, serialize SQLite migrations, and fence queued writes across collection changes. +- 85bc87d: Add inherited named-link case-insensitive matching and trailing-slash tolerance, enabled by default, plus independent opt-in path forwarding. Keep matched aliases and forwarded paths under their configured link analytics identity and expose effective matching settings in admin. +- 897fc03: Add global current-membership tag dashboards and clickable tag pills on Link details and Health, combining existing prepared link analytics without new stored reports. Drop unusable string tag labels with safe configuration warnings at startup, on accepted warning changes, and during CLI validation while preserving valid literal names and strict configuration structure. +- 574ec71: Maintain retained visit statistics incrementally in UTC-day SQLite rows instead of rebuilding complete report snapshots. Commit daily updates with visit processing markers, expire raw visits and daily contributions together, and retire fully expired aggregate rows by event time. Missing daily contributions warn without blocking raw cleanup. Admin analytics use the current retention window and show last-visit activity rather than inferred job freshness. Zero retention keeps collection and scheduled analytics disabled, with a one-off purge of existing data. +- 5b66c86: Add the shared visits chart and retention-aware timeframes to individual link pages, including the base `/` path. Keep each link's visit card and chart on the same selected window, preserve that window through overview/domain/link navigation, and keep link details usable without analytics. Reuse existing prepared daily reports and shared dashboard controls. Keep desktop stat cards consistently sized across dashboards, remove repeated retention cards, and show link status in a card with domain, path and destination in the details section. Add a full-width, scrollable native data table beneath the shared chart on all dashboard pages, matching its selected periods and visit totals with sticky UTC headers and alternating row backgrounds. +- c0723a6: Remove the theme switcher from sign-in and use a compact, accessible Phosphor icon button in the admin header. Preserve saved preferences, system-theme behavior and the existing sign-in flow. +- 5397477: Add optional positive `max_visits` limits to individual named links. Check recovered and locally tracked visit counts in memory, allow the final permitted GET, and use the existing inactive-link fallback or 404 once exhausted. HEAD observes availability without consuming a visit. Canonical matching aliases and conditional destinations share one allowance; changing or removing a limit preserves accumulated usage. Show configured limits and exhausted state in read-only administration, including when detailed analytics are disabled. Counts remain best effort rather than distributed exact quotas; redirects do not wait for database persistence. +- ce9de0e: Add an overview visits chart and retention-aware page-wide timeframes using prepared daily analytics. Headline and domain visit counts follow the selected UTC calendar window, with automatic daily, Monday-week or calendar-month chart grouping. Keep domain series out of the browser payload and hide analytics cards, controls and columns when collection is disabled. Domain and link pages remain unchanged. +- e7ba863: Keep permanent numeric visit totals through hourly worker rollup while retaining finite daily analytics separately. Capture minimal visits when detailed analytics are disabled, count them before removal, and recover live named-link visit counts from stored totals plus unprocessed visits on startup. Show read-only all-time visits in the admin details, independently of the analytics period. Web startup waits for worker health in Docker, and rejected configuration reloads keep the prior working configuration with a clear warning. This prelaunch change uses a fresh schema; it does not convert existing databases. Named-link visit limits are not introduced yet. +- eb0fe2c: Remove the hourly worker totals note from the Root details card. +- 84716b1: Require an ID token from the configured OpenID Connect provider before creating an admin session. Username/password sign-in is unchanged. +- b075740: Make analytics collection on/off startup-only and remove the collection-control table and insertion fence. Stop and drain both services before changing between zero and positive retention, then restart; changes between positive retention periods remain live. Keep whole-event admission drops with distinct bounded warnings for queue capacity and payload size. +- 976f0e6: Use 30 days per configured retention month for detailed analytics. Reports and cleanup share rolling 90-, 270-, or 360-day windows that do not move backward at month-end. Zero retention and lifetime visit totals are unchanged. +- d414075: Add the SvelteKit 3 runtime foundation, development tooling, and CI/CD with gated + Docker publishing and release-tag version checks. +- 402fbac: Group application addresses under `url.app` and `url.worker`, replacing `site.url` directly. Default the private worker base URL to `http://goto-worker:9000`. Keep site branding separate and preserve existing application-origin behavior. +- 9bfd9c5: Allow the app host to serve short links when it is also listed under `domains`. App routes, assets, and development tooling paths are reserved on the shared host. The app no longer sends `/` to `/admin` by default; configure a domain's Root response to restore that shortcut. +- bd12228: Use the same reload rules in web and worker. Stop both services before changing either database path, the app origin, authentication, or reducing retention or switching detailed analytics on or off. Then start both with the new configuration. If saved while running, these edits leave the previous configuration active rather than restarting one service. Link edits and increases between positive retention periods can still take effect live. +- b45a1ba: Record successful redirect visits through a bounded background SQLite writer. +- 0ef4ffc: Classify broad browser and operating-system families when recording visits in the background worker. +- 29c7864: Record request-time valid and invalid visit outcomes for known redirect domains, including base URLs and inactive or unmatched paths. Preserve existing visits as valid without consulting current YAML, while keeping HEAD, malformed requests, unknown hosts, and disabled analytics untracked. +- 523acfc: Add a Noto right-arrow favicon, an Open Graph image, and responsive error pages. Serve the images on each configured domain. Allow `@` in shortlink paths and reserve `/@static/` for static files. +- 80f36e3: Introduce the standalone OpenWorkflow worker service with health checks, graceful shutdown, separate workflow storage, and matching CI/CD. Analytics workflows will be introduced separately. +- 2ff57dd: Report stable worker startup failure codes with curated storage, SQLite and health-listener reasons. Use existing configuration diagnostics for invalid startup options and identify migrations without parsing exception messages. Keep raw exceptions, SQL, filesystem paths and configuration values out of logs. Report failed-startup cleanup separately without masking the original failure. Startup still exits unsuccessfully and does not announce readiness on failure; no database repair, reset, retry or health policy is added. +- c72e248: Add the shared TypeBox/YAML configuration contract with explicit environment + interpolation, inherited redirect defaults, and canonical path validation. diff --git a/apps/web/package.json b/apps/web/package.json index 1c04d85..25b00a8 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -1,6 +1,6 @@ { "name": "@goto/web", - "version": "0.1.0", + "version": "0.0.1", "private": true, "type": "module", "files": [ diff --git a/apps/worker/CHANGELOG.md b/apps/worker/CHANGELOG.md new file mode 100644 index 0000000..0303416 --- /dev/null +++ b/apps/worker/CHANGELOG.md @@ -0,0 +1,51 @@ +# @goto/worker + +## 0.0.1 + +### Patch Changes + +- 9324bde: Add Accepted languages breakdowns to Overview, Domain, Root, Link and Tag analytics using high-quality captured language headers. Count each primary language once per visit, allowing overlapping shares, and prepare retained historical headers in the existing background report refresh without changing visit storage. Existing detail reports become unavailable until the normal refresh prepares the new format. +- 31f197a: Add a dedicated Analytics page with one searchable scope picker for all traffic, domains, Root and named redirects, or tags. Tag reports use current YAML membership across domains. Hide its navigation link when analytics is disabled and send direct visits to Health. Display the 90-day timeframe in days without changing the reporting window. Use a chart icon beside Health and compact icon controls in the mobile navbar. Keep Overview, Domain, Root, named Link, and Tag pages focused on configuration and all-time visit summaries, with their charts, breakdowns, and timeframes in Analytics. + + When Analytics is enabled, add report links to Domain, Root, Link, and Tag details. The Root page opens its domain-wide report. Show the tag name in the Tag details card instead of the page heading. + +- c09270a: Prevent caching of admin and sign-in responses, including redirects and authentication failures. Static assets and redirect hosts keep their existing cache policy. +- c47639f: Use a heartbeat icon for the Health link in the admin navigation. +- 6ae7090: Add a read-only Health page with safe active settings, report data cutoff and a manual bounded check of the existing worker health endpoint. Use the configured worker base URL without adding a startup dependency. Make the worker check and its result prominent with a bordered action button, checking indicator and status banner. Warn when enabled analytics reports are unavailable or more than 75 minutes old. +- f5acb21: Show the configured title, when present, in the named link’s Redirect card. +- d0fc110: Fix the admin and sign-in title to GoTo and remove the `site` config section. Show the app icon beside the title, link the pair to Overview only from other pages, and move Health next to the theme switcher. +- 80d5b04: Add an authenticated admin overview, domain summaries and dedicated link pages with current inventory and retained visits. One hourly background job, with scheduled jitter, prepares all reports in SQLite and coordinates retention cleanup. Admin pages read prepared snapshots directly and display their update time; no reporting API, token or worker URL is required. The job also prepares UTC daily, weekly and monthly series and browser/OS family counts for later visualization. Charts and the Health page are not included. +- 9355fe9: Use one `(root)` inventory row to reach Root details and remove redundant Root summary navigation. Expose root/fallback response settings and named-link settings, inheritance, schedules and tags without changing existing URLs. + + Count every tracked `/` request as a valid Root visit, independent of response status. Apply that meaning to legacy Root visits during report aggregation without rewriting raw rows. Details version 3 keeps totals, charts and browser/OS breakdowns consistent; older prepared details stay unavailable until normal report refresh. Invalid clicks remain limited to non-root traffic. + +- ac0c9b4: Replace opaque analytics cache entries with versioned summary and daily-detail JSON documents identified by report scope. Separate shared analytics contracts and encoding from SQLite persistence. Keep admin reads summary-only, remove stored weekly/monthly series and shared empty/period fallbacks, and rebuild derived reports from retained visits after migration. Existing analytics collection, retention and admin behavior are unchanged. +- e7d8fc0: Namespace authentication cookies with the native Better Auth `goto` prefix so Goto does not overwrite other localhost apps' default authentication cookies. Existing Goto sessions require a fresh sign-in; unrelated cookies are not removed. +- 2fa26a0: Add browser and operating-system breakdowns to domain and link pages, including `/`, using the selected visits timeframe. Prepare sparse browser and operating-system counts by UTC day in versioned detail reports and show readable counts, percentages and bars without changing visit capture, classification or retention. +- 6e3fa58: Add ordered language and OS redirect rules for named links, with read-only rules on the Link page. Show browser and OS breakdowns on Overview alongside accepted languages. Put domain/link inventory and redirect settings before analytics across the dashboards. Reuse accepted-language classification and the existing approximate OS detector while preserving canonical capture and nonblocking visit recording. Separate configuration validation from routing lookup construction; object-based callers now use loadConfig instead of the former validateConfig preparation API. +- e5e9af5: Report curated configuration issue paths and YAML locations in CLI and startup logs. Keep browser-facing errors generic and exclude configuration values, private dictionary keys, parser snippets and arbitrary error details. +- 0860811: Separate domain `root` responses from named links and use `link_defaults` consistently at global and domain levels. Root and fallback responses require a destination URL and support explicit redirect status and query forwarding. Domain fallbacks replace global responses as whole objects; 404 is only the default when no fallback exists. Reject `/` link entries, old defaults and scalar fallback syntax directly. +- 81fb4e8: Make the default admin origin independent of the listener's `PORT`: `http://localhost:5173` in development and `http://localhost:3000` otherwise. Set `url.app` explicitly if your admin origin differs, including when using a custom port. Listener behavior is unchanged. +- d33b1c0: Replace the domain's Base URL section with a Domain details card above the chart. Move base visits into a linked stat card, keep the domain name, base destination and status in the details, and remove the redundant domain subtitle and Base URL row. Restore the Retention card on Overview only. Use “Visits” consistently in dashboard labels, chart tooltips and readable tables without changing the counts. Align inventory columns and show inline row labels only on mobile, keeping desktop column headers without visual repetition. +- 2844d7c: Show the Details card above the links on the Domain page. +- a114c26: Add the visits chart and retention-aware timeframes to domain dashboards. Reuse the overview chart, timeframe control and window-count helpers so domain traffic cards, base URL and current-link counts follow one selected window. Preserve the selected timeframe between overview and domain pages, keep link series out of browser data, and show inventory only when analytics is disabled. Use contextual page headers, compact mobile timeframe dropdowns and responsive inventory rows that fit without horizontal scrolling. Each inventory row is a single link to its statistics page, with plain-text details. Individual-link analytics remain full-retention summaries. +- c9e60c2: Replace analytics enabled/retention-days settings with finite calendar-month retention. Apply live retention changes through the worker service's jittered hourly OpenWorkflow schedule and purge analytics data when retention is zero. Keep Piscina ingestion-only, serialize SQLite migrations, and fence queued writes across collection changes. +- 85bc87d: Add inherited named-link case-insensitive matching and trailing-slash tolerance, enabled by default, plus independent opt-in path forwarding. Keep matched aliases and forwarded paths under their configured link analytics identity and expose effective matching settings in admin. +- 897fc03: Add global current-membership tag dashboards and clickable tag pills on Link details and Health, combining existing prepared link analytics without new stored reports. Drop unusable string tag labels with safe configuration warnings at startup, on accepted warning changes, and during CLI validation while preserving valid literal names and strict configuration structure. +- 574ec71: Maintain retained visit statistics incrementally in UTC-day SQLite rows instead of rebuilding complete report snapshots. Commit daily updates with visit processing markers, expire raw visits and daily contributions together, and retire fully expired aggregate rows by event time. Missing daily contributions warn without blocking raw cleanup. Admin analytics use the current retention window and show last-visit activity rather than inferred job freshness. Zero retention keeps collection and scheduled analytics disabled, with a one-off purge of existing data. +- 5b66c86: Add the shared visits chart and retention-aware timeframes to individual link pages, including the base `/` path. Keep each link's visit card and chart on the same selected window, preserve that window through overview/domain/link navigation, and keep link details usable without analytics. Reuse existing prepared daily reports and shared dashboard controls. Keep desktop stat cards consistently sized across dashboards, remove repeated retention cards, and show link status in a card with domain, path and destination in the details section. Add a full-width, scrollable native data table beneath the shared chart on all dashboard pages, matching its selected periods and visit totals with sticky UTC headers and alternating row backgrounds. +- c0723a6: Remove the theme switcher from sign-in and use a compact, accessible Phosphor icon button in the admin header. Preserve saved preferences, system-theme behavior and the existing sign-in flow. +- 5397477: Add optional positive `max_visits` limits to individual named links. Check recovered and locally tracked visit counts in memory, allow the final permitted GET, and use the existing inactive-link fallback or 404 once exhausted. HEAD observes availability without consuming a visit. Canonical matching aliases and conditional destinations share one allowance; changing or removing a limit preserves accumulated usage. Show configured limits and exhausted state in read-only administration, including when detailed analytics are disabled. Counts remain best effort rather than distributed exact quotas; redirects do not wait for database persistence. +- ce9de0e: Add an overview visits chart and retention-aware page-wide timeframes using prepared daily analytics. Headline and domain visit counts follow the selected UTC calendar window, with automatic daily, Monday-week or calendar-month chart grouping. Keep domain series out of the browser payload and hide analytics cards, controls and columns when collection is disabled. Domain and link pages remain unchanged. +- e7ba863: Keep permanent numeric visit totals through hourly worker rollup while retaining finite daily analytics separately. Capture minimal visits when detailed analytics are disabled, count them before removal, and recover live named-link visit counts from stored totals plus unprocessed visits on startup. Show read-only all-time visits in the admin details, independently of the analytics period. Web startup waits for worker health in Docker, and rejected configuration reloads keep the prior working configuration with a clear warning. This prelaunch change uses a fresh schema; it does not convert existing databases. Named-link visit limits are not introduced yet. +- eb0fe2c: Remove the hourly worker totals note from the Root details card. +- 84716b1: Require an ID token from the configured OpenID Connect provider before creating an admin session. Username/password sign-in is unchanged. +- b075740: Make analytics collection on/off startup-only and remove the collection-control table and insertion fence. Stop and drain both services before changing between zero and positive retention, then restart; changes between positive retention periods remain live. Keep whole-event admission drops with distinct bounded warnings for queue capacity and payload size. +- 976f0e6: Use 30 days per configured retention month for detailed analytics. Reports and cleanup share rolling 90-, 270-, or 360-day windows that do not move backward at month-end. Zero retention and lifetime visit totals are unchanged. +- 402fbac: Group application addresses under `url.app` and `url.worker`, replacing `site.url` directly. Default the private worker base URL to `http://goto-worker:9000`. Keep site branding separate and preserve existing application-origin behavior. +- 9bfd9c5: Allow the app host to serve short links when it is also listed under `domains`. App routes, assets, and development tooling paths are reserved on the shared host. The app no longer sends `/` to `/admin` by default; configure a domain's Root response to restore that shortcut. +- bd12228: Use the same reload rules in web and worker. Stop both services before changing either database path, the app origin, authentication, or reducing retention or switching detailed analytics on or off. Then start both with the new configuration. If saved while running, these edits leave the previous configuration active rather than restarting one service. Link edits and increases between positive retention periods can still take effect live. +- 29c7864: Record request-time valid and invalid visit outcomes for known redirect domains, including base URLs and inactive or unmatched paths. Preserve existing visits as valid without consulting current YAML, while keeping HEAD, malformed requests, unknown hosts, and disabled analytics untracked. +- 523acfc: Add a Noto right-arrow favicon, an Open Graph image, and responsive error pages. Serve the images on each configured domain. Allow `@` in shortlink paths and reserve `/@static/` for static files. +- 80f36e3: Introduce the standalone OpenWorkflow worker service with health checks, graceful shutdown, separate workflow storage, and matching CI/CD. Analytics workflows will be introduced separately. +- 2ff57dd: Report stable worker startup failure codes with curated storage, SQLite and health-listener reasons. Use existing configuration diagnostics for invalid startup options and identify migrations without parsing exception messages. Keep raw exceptions, SQL, filesystem paths and configuration values out of logs. Report failed-startup cleanup separately without masking the original failure. Startup still exits unsuccessfully and does not announce readiness on failure; no database repair, reset, retry or health policy is added. diff --git a/apps/worker/package.json b/apps/worker/package.json index 9018fc9..2031c6e 100644 --- a/apps/worker/package.json +++ b/apps/worker/package.json @@ -1,6 +1,6 @@ { "name": "@goto/worker", - "version": "0.1.0", + "version": "0.0.1", "private": true, "type": "module", "files": [