Repository navigation
feat(web): usage row drill-down — server half (AGT-4297) - #825
Merged
Merged
Conversation
Move reserved-param parsing out of web.ts into a dedicated route module and accept cross-axis filters (?by=stage&project=X) on /api/usage. - src/support/usageRoute.ts: new — parseUsageQuery + USAGE_RESERVED_PARAMS - src/support/usageLedger.ts: filter ledger rows by axis - src/support/web.ts: delegate to the route module (1505 -> 1499 lines) Refs: AGT-4297
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.
Linear
AGT-4297 — feat(web): usage row drill-down, cross-axis filters + stage decomposition.
Server half only; the 8 UI findings stay out of scope as FOLLOW_UP.
What changed
Reserved-param parsing (
parseUsageQuery,USAGE_RESERVED_PARAMS) moves out ofsrc/support/web.tsinto a dedicated route module, and/api/usagegainscross-axis filtering (
?by=stage&project=X).src/support/usageRoute.ts(new) — reserved-param parsing + axis filtersrc/support/usageLedger.ts— filter ledger rows by axissrc/support/web.ts— delegate to the route module (1505 -> 1499 lines)usageRoute.test.ts(new),usageLedger.test.tsVerification
npx vitest run src/support/usageLedger.test.ts src/support/usageRoute.test.ts --pool=forks --maxWorkers=2-> 2 files, 11 tests passednpx tsc --noEmit-> exit 0npx oxlinton the 5 changed files -> 0 warnings, 0 errorsThe issue's own blocker (AGT-4296) is PR #615, merged; the assets it named
(
feat/usage-drilldownbranch,/tmp/agt4296-full.patch) were both gone, so thebase was rebuilt from
origin/main.