New history page - #39
Merged
Merged
Conversation
…sage When the Fastly Service Token is rotated or becomes invalid, the plugin now shows a clear warning banner instead of silently redirecting to the setup screen. Fixes two cases: - 401 response from API: detected in refresh().catch(), logout reason stored in sessionStorage before credentials are cleared - Token empty after decryption (corrupted/migrated): detected directly in loadCredentials() The logout reason is stored in sessionStorage (survives page reload, cleared on tab close) and displayed as a warning Message in SetupCard when the component mounts. Also removes dead code: CREDENTIALS_INVALID eventBus event and its listeners, cleans up AppTopbar (logout button was not displayed due to topbar being commented out in AppLayout). Closes #36
fix(auth): handle invalid/rotated Fastly token with user-friendly message
Extend the historical chart utilities used by the History tab: - createHistoricalChartOptions gains stacked / valueSuffix / countAxisTitle params and a secondary right-hand count axis (y_cnt2); both right axes use display:'auto' so each shows only when it has a visible series. - Enable drag-to-zoom support (mousedown/mouseup in the event set), a value-suffix-aware tooltip, and a legend "solo" onClick that isolates the clicked series (guarded against the mouseup+click double-fire). - New dataset factories: status codes (1xx-5xx), per-class status drill-downs, and bandwidth (edge/origin), plus a datasetOverrides hook used to hide always-on point markers. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Enable PrimeVue Tabs `lazy` so the inactive panel unmounts. The Real-time StatCard no longer keeps its 1s rt.fastly.com polling (and hidden-chart re-render) running while the History tab is open. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Replace the daily-only History view with Fastly-style observability: - Data Resolution (minute/hour/day) + Time Range (5m..1mo + Custom) + UTC/Local timezone controls; defaults to per-minute over the last 24h. Resolution options respect Fastly's query-size and 35-day minute retention limits; custom ranges are validated (<=2y, not in the future). - Metric views: Cache, HTTP Status (stacked), Status 3xx/4xx/5xx drill-downs (with an "Other Nxx" remainder), and Bandwidth (edge/origin bytes + origin request count on a secondary axis). - Drag across the chart to zoom into a window (reloads at the finest valid resolution) with Reset; click a legend entry to solo a series. - Hover tooltips preserved with markers hidden; selection persists in the URL (res/range/tz/view/from/to) and syncs with the Upsun console. - Add timezone/display helpers to dateTools; remove the now-unused weekly/monthly/yearly period helpers orphaned by the controls rewrite. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
feat(history): Fastly-style per-minute History analytics
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.