feat: /protocol UTC Volume / Liquidity / Fees metric toggle (#689) #1191

Merged
PlasticDigits merged 1 commit from feat/689-protocol-utc-metric-toggle into main 2026-08-27 11:03:29 +00:00
PlasticDigits commented 2026-08-27 10:54:12 +00:00 (Migrated from gitlab.com)

Summary

  • Adds exclusive Volume / Liquidity / Fees buttons on the /protocol UTC census chart (default Volume; grain Hourly/Daily/Monthly stays; switching metric keeps grain).
  • Materializes protocol_{hourly,daily,monthly}_{liquidity,fees} so GET sibling routes never walk snapshots or SUM fee events. Liquidity is last-in-bucket stock (missing → JSON null); fees are flow (idle "0", all-unpriced null).
  • Documents P689-1–P689-8 in skills/AGENTS_FRONTEND_PROTOCOL_STATS.md and crosslinks docs/indexer-invariants.md, docs/frontend.md, and make verify-issue-689.

Closes #689

Test plan

  • make verify-issue-689 (docs greps, indexer volume + liquidity + fees series, Vitest, Playwright e2e/protocol-page.spec.ts 5 workers, related verify-issue-668)
  • Coolify/LocalTerra: migrate indexer, open /protocol, confirm Volume default, Liquidity/Fees switch USD bars, trailing tiles unchanged (no 30d liquidity chip; fee panel still 24h/7d/30d)
  • Prior protocol verifies (668 652 667 677 569 586 576 613 614 683 653 631) if CI does not already cover them
## Summary - Adds exclusive **Volume / Liquidity / Fees** buttons on the `/protocol` UTC census chart (default Volume; grain Hourly/Daily/Monthly stays; switching metric keeps grain). - Materializes `protocol_{hourly,daily,monthly}_{liquidity,fees}` so GET sibling routes never walk snapshots or `SUM` fee events. Liquidity is last-in-bucket **stock** (missing → JSON `null`); fees are **flow** (idle `"0"`, all-unpriced `null`). - Documents **P689-1–P689-8** in `skills/AGENTS_FRONTEND_PROTOCOL_STATS.md` and crosslinks `docs/indexer-invariants.md`, `docs/frontend.md`, and `make verify-issue-689`. Closes #689 ## Test plan - [x] `make verify-issue-689` (docs greps, indexer volume + liquidity + fees series, Vitest, Playwright `e2e/protocol-page.spec.ts` 5 workers, related `verify-issue-668`) - [ ] Coolify/LocalTerra: migrate indexer, open `/protocol`, confirm Volume default, Liquidity/Fees switch USD bars, trailing tiles unchanged (no 30d liquidity chip; fee panel still 24h/7d/30d) - [ ] Prior protocol verifies (`668` `652` `667` `677` `569` `586` `576` `613` `614` `683` `653` `631`) if CI does not already cover them
PlasticDigits commented 2026-08-27 10:54:26 +00:00 (Migrated from gitlab.com)

mentioned in issue #689

mentioned in issue #689
PlasticDigits commented 2026-08-27 11:03:30 +00:00 (Migrated from gitlab.com)

mentioned in commit f7b8c8e85d

mentioned in commit f7b8c8e85d94ea33b1bf676aba0319f95cd7d12c
PlasticDigits (Migrated from gitlab.com) merged commit f7b8c8e85d into main 2026-08-27 11:03:31 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
code/cl8y-dex-terraclassic!1191
No description provided.