Return newest-N candles so 15m charts include now (#705) #1197

Merged
PlasticDigits merged 3 commits from feat/705-candles-newest-n into main 2026-08-30 15:46:17 +00:00
PlasticDigits commented 2026-08-29 15:21:03 +00:00 (Migrated from gitlab.com)

Summary

  • GET /candles now returns the newest limit bars (DESC then ASC) so 15m/1m/5m charts include now instead of the oldest window after idle-mark densification (#568).
  • Price chart calls fitContent once on interval switch; live 30s refetch still does not refit (#336). Canvas stays mounted (#148).
  • Selected interval chip uses .price-chart-interval.tab-glass-active (stronger --blue, not the 14% wash). Slippage / Pool Manage / Indicators keep generic tab-glass-active.
  • Follow-up: coarse 4h/1d/1w newest-N, mark last-bar GET, invertUsd on newest-N rows, deduped invariant row.

Closes #705.

Test plan

  • make verify-issue-705 (indexer newest-N + mark GET + PriceChart / canvas / chip CSS) — passed twice locally
  • /charts and /trade on columbus-5 or LocalTerra: 1h → 15m / 5m / 1m — last bar is current; no empty-right leftover 1h range
  • Zoom on 15m, wait > 30s: zoom preserved
  • Pressed interval chip is obvious blue on dark and light; aria-pressed only on the selected chip (Vitest + CSS)
  • Volume 0 on a mark-only last bar is expected (C568), not a fail
  • 4h / 1d / 1w last bar is newest; limit=-1/0 → one newest row
## Summary - `GET /candles` now returns the **newest** `limit` bars (DESC then ASC) so 15m/1m/5m charts include now instead of the oldest window after idle-mark densification (#568). - Price chart calls `fitContent` **once** on interval switch; live 30s refetch still does not refit (#336). Canvas stays mounted (#148). - Selected interval chip uses `.price-chart-interval.tab-glass-active` (stronger `--blue`, not the 14% wash). Slippage / Pool Manage / Indicators keep generic `tab-glass-active`. - Follow-up: coarse 4h/1d/1w newest-N, mark last-bar GET, invertUsd on newest-N rows, deduped invariant row. Closes #705. ## Test plan - [x] `make verify-issue-705` (indexer newest-N + mark GET + PriceChart / canvas / chip CSS) — passed twice locally - [ ] `/charts` and `/trade` on columbus-5 or LocalTerra: 1h → 15m / 5m / 1m — last bar is current; no empty-right leftover 1h range - [ ] Zoom on 15m, wait > 30s: zoom preserved - [x] Pressed interval chip is obvious blue on dark and light; `aria-pressed` only on the selected chip (Vitest + CSS) - [x] Volume 0 on a mark-only last bar is expected (C568), not a fail - [x] 4h / 1d / 1w last bar is newest; `limit=-1`/`0` → one newest row
PlasticDigits commented 2026-08-30 05:23:01 +00:00 (Migrated from gitlab.com)

added 1 commit

  • 54c7c826 - Cover coarse-interval newest-N reads and mark last-bar on GET.

Compare with previous version

added 1 commit <ul><li>54c7c826 - Cover coarse-interval newest-N reads and mark last-bar on GET.</li></ul> [Compare with previous version](/PlasticDigits/cl8y-dex-terraclassic/-/merge_requests/479/diffs?diff_id=1992499965&start_sha=03ef9871ee9478f365000dc59d2c774c67139258)
PlasticDigits commented 2026-08-30 05:23:14 +00:00 (Migrated from gitlab.com)

marked the checklist item Volume 0 on a mark-only last bar is expected C568, not a fail as completed

marked the checklist item **Volume 0 on a mark\-only last bar is expected \(C568\), not a fail** as completed
PlasticDigits commented 2026-08-30 15:45:52 +00:00 (Migrated from gitlab.com)

added 2 commits

  • 8c1d1bc5 - 1 commit from branch main
  • c77f9222 - Merge origin/main into feat/705-candles-newest-n

Compare with previous version

added 2 commits <ul><li>8c1d1bc5 - 1 commit from branch <code>main</code></li><li>c77f9222 - Merge origin/main into feat/705-candles-newest-n</li></ul> [Compare with previous version](/PlasticDigits/cl8y-dex-terraclassic/-/merge_requests/479/diffs?diff_id=1992751849&start_sha=54c7c82604152e02342d7e62d16172ebf90fe7d7)
PlasticDigits commented 2026-08-30 15:46:17 +00:00 (Migrated from gitlab.com)

mentioned in commit 8491aad6c9

mentioned in commit 8491aad6c904232a2a2f3e0374da632a743f6c1e
PlasticDigits (Migrated from gitlab.com) merged commit 8491aad6c9 into main 2026-08-30 15:46:18 +00:00
PlasticDigits commented 2026-08-31 05:09:18 +00:00 (Migrated from gitlab.com)

mentioned in issue #712

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