Repository navigation
feat(console): overview drill-down to logs, 30d/custom window, auto-refresh - #360
Merged
Merged
Conversation
…efresh - Ranking rows (models, accounts, error kinds) link to /logs with filters + window - Traffic chart drag-select (ReferenceArea) opens logs for the range - LogsPage filters read from / written to the URL (two-way) - Overview window: 30d and custom from/to (shared TimeRangePicker) - Stats auto-refresh every 30s, pausable, skipped while hidden
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.
Stacked on #359 (base
feat/overview-stats). Frontend only.Drill-down
/logs?model=|account=|error_kind=&from=&to=.from/tocome from the overview's current stats window (window.from/toin the stats response)./api/logs/requestshas noproviderfilter. The handler ininternal/console/logs.goacceptsaccount, status, error_kind, model, id, q, from, to, stream, limit, offset.error_kindselect are not linked.TrafficChartdraws a rechartsReferenceArea. On mouse-up it opens the logs page for[first bucket, last bucket + step).LogsPagereadsstatus, account, model, error_kind, stream, id, range, from, tofrom the URL. It updates the URL (replace) when its filters change, and updates the filters when the URL changes (back/forward).Time window
TimeRangePickerthat was pulled out of LogsPage (HeroUI DateRangePicker + RangeCalendar).NormalizeStatsHoursonly acceptshours=1|24|168, so 30d and custom sendfrom/toas RFC 3339 UTC.ParseQueryTimeaccepts that format.document.hidden, and one catch-up refresh runs when the tab becomes visible again.