fix: /protocol leftovers — liquidity 24h-only Δ% + denser UTC volume x-axis #1181

Merged
PlasticDigits merged 1 commit from issue-677-protocol-leftovers into main 2026-08-27 04:45:22 +00:00
PlasticDigits commented 2026-08-27 00:35:37 +00:00 (Migrated from gitlab.com)

Summary

  • Total liquidity on /protocol now shows USD + one 24h snapshot Δ% chip (protocol-stat-liquidity-24h). The leftover 30d chip is gone. Last 24h/7d/30d vol and fee tiles are unchanged. liquidity_change_30d_pct stays on GET /overview.
  • UTC volume x-axis uses grain-aware step 1 or 2 (every bar or every second). Hourly may widen only when step 2 still collides in the fixed viewBox. First and last period stay labeled. The old maxLabels = 5 helper is gone.
  • Invariants amended: P569-1, P667-2, new P668-9. Playbook skills/AGENTS_FRONTEND_PROTOCOL_STATS.md. Verify: make verify-issue-677.

Closes #677.

Test plan

  • make verify-issue-677 (docs + Vitest + Playwright e2e-smoke @ 5 workers + related 667/668/652 frontend)
  • RTL: 24h chip present; protocol-stat-liquidity-30d absent; volume/fee 30d tiles stay
  • RTL: Daily 7 labels all or every 2nd; hourly 12 / monthly 6 density; hourly 168 not capped at 5
  • Playwright: phone 390 / tablet 820 / desktop 1280 grouping; Hourly/Daily/Monthly x-axis density
  • make verify-issue-653 still green
  • Manual /protocol at 390 / 820 / 1280, light + dark
  • Related indexer integration (volume_aggregator_refreshes_daily_and_change) — pre-existing fail on this VM, not in this diff
## Summary - **Total liquidity** on `/protocol` now shows USD + one 24h snapshot Δ% chip (`protocol-stat-liquidity-24h`). The leftover `30d` chip is gone. Last 24h/7d/30d **vol** and fee tiles are unchanged. `liquidity_change_30d_pct` stays on `GET /overview`. - UTC volume x-axis uses grain-aware **step 1 or 2** (every bar or every second). Hourly may widen only when step 2 still collides in the fixed viewBox. First and last period stay labeled. The old `maxLabels = 5` helper is gone. - Invariants amended: **P569-1**, **P667-2**, new **P668-9**. Playbook [`skills/AGENTS_FRONTEND_PROTOCOL_STATS.md`](skills/AGENTS_FRONTEND_PROTOCOL_STATS.md). Verify: `make verify-issue-677`. Closes #677. ## Test plan - [x] `make verify-issue-677` (docs + Vitest + Playwright e2e-smoke @ 5 workers + related 667/668/652 frontend) - [x] RTL: 24h chip present; `protocol-stat-liquidity-30d` absent; volume/fee 30d tiles stay - [x] RTL: Daily 7 labels all or every 2nd; hourly 12 / monthly 6 density; hourly 168 not capped at 5 - [x] Playwright: phone 390 / tablet 820 / desktop 1280 grouping; Hourly/Daily/Monthly x-axis density - [x] `make verify-issue-653` still green - [ ] Manual `/protocol` at 390 / 820 / 1280, light + dark - [ ] Related indexer integration (`volume_aggregator_refreshes_daily_and_change`) — pre-existing fail on this VM, not in this diff
PlasticDigits commented 2026-08-27 00:37:23 +00:00 (Migrated from gitlab.com)

mentioned in issue #677

mentioned in issue #677
PlasticDigits commented 2026-08-27 04:45:23 +00:00 (Migrated from gitlab.com)

mentioned in commit b7b6f4e9ca

mentioned in commit b7b6f4e9caef31ac6ca801faa6ae5fa1d9d6ec8b
PlasticDigits (Migrated from gitlab.com) merged commit b7b6f4e9ca into main 2026-08-27 04:45:23 +00:00
PlasticDigits commented 2026-08-27 05:29:53 +00:00 (Migrated from gitlab.com)

mentioned in issue #686

mentioned in issue #686
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!1181
No description provided.