Skip to content

New history page - #39

Merged
DuncanNaves merged 6 commits into
productionfrom
master
Jul 22, 2026
Merged

New history page#39
DuncanNaves merged 6 commits into
productionfrom
master

Conversation

@vrobert78

Copy link
Copy Markdown
Contributor

No description provided.

Theosakamg and others added 6 commits April 16, 2026 17:35
…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
@vrobert78
vrobert78 requested a review from DuncanNaves July 22, 2026 08:27
@DuncanNaves
DuncanNaves merged commit cb70ce9 into production Jul 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants