mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-10-24 04:32:32 +00:00
b45a7ae2ff
Fleet Health, the Software hub (Installs, Vulnerabilities), app details, Geographic Performance and its drill-down, Usage Metrics and Analyze Rules read ?days= through one hook (useWindowDays). The URL is the only state: a preset click writes it with replaceState, the page default stays out of it, and a link to another app on the same route refetches. Pro reaches up to 365 days through the URL alone; the presets stay 7/30/90 and a value outside them highlights none. Cap: platform roles 365 in every scope, everyone else the viewed tenant's edition cap from its feature flags (Community 90, Pro 365), read only when the URL asks for more than 90 days. The cap never rewrites the URL. Fleet Health draws weekly bars beyond 90 days, the Analyze Rules sparkline keeps its width and bundles days beyond 30, long windows keep their own progress estimate. The duration-regression bell's days=35 link no longer snaps to 30. The string presets and their six fall-through mappers are gone; Usage Metrics passes days to the API, the Software hub and Geographic Performance share their defaults with the pages that link back to them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>