Repository navigation
Add full historical filtering and request investigation - #19
Merged
Merged
Conversation
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.
The overview only exposed recent events for investigation. This adds a dedicated history view over the entire retained ledger, with newest-first pagination and exact provider, model, tool, session, project, device, request ID and UTC date filters. Totals, analytics and exports cover all matching events.
Request investigation shows original token categories and inclusion rules, context, revision, source identity, stored pricing evidence and links to related telemetry collisions or opt-in repeated-prompt candidates. Evidence is not treated as confirmed waste. Server queries remain scoped to the authenticated account.
Includes UTC microsecond indexing with recoverable migration, precise retention boundaries, context-boundary-aware filtered analytics and cancellation guards for account/filter changes.
Validation: 61 backend tests, 36 frontend tests, production frontend build and Ruff passed locally. Coverage includes 1,051 events, pagination/date boundaries, legacy migration recovery, scoped exports and cross-account isolation. Browser-driven E2E and remote deployment have not been validated. Full filtered analytics and exports still materialize matching events in memory; large-archive streaming and cursor pagination remain future scaling work.