fix(frontend): wallet history amounts + CSV reliability (#479) #1016

Merged
PlasticDigits merged 1 commit from fix/479-wallet-history-amounts-csv into main 2026-07-12 09:23:13 +00:00
PlasticDigits commented 2026-07-12 09:11:38 +00:00 (Migrated from gitlab.com)

Summary

  • Show Amount in / Amount out on wallet pair swap history and Token0 / Token1 on limit fills (formatNum(raw) parity with TradesTable).
  • Harden Download CSV: inline error on failure, client limit capped at indexer max 200 (TRADER_HISTORY_CSV_MAX_LIMIT), one network/timeout retry via shared fetchText.
  • Update docs/skill invariants and crosslinks for third-party agents (AGENTS_FRONTEND_ORDER_HISTORY, docs/frontend.md, docs/indexer-invariants.md).
  • Extend Vitest + E2E coverage for amounts and CSV click → format=csv.

Closes #479

Test plan

  • npx vitest run src/components/trade/__tests__/WalletIndexerHistoryPanel.test.tsx src/services/indexer/__tests__/client.test.ts — 29 tests green
  • Indexer csv_escape_cell_* still pass (SEC-F12 / #432 untouched)
  • /limits + wallet + pair with swaps: Amount in/out visible; Download CSV produces file
  • Limit fills: Token0/Token1 visible; cancellations unchanged
  • CSV failure (stop indexer / bad URL): inline wallet-history-csv-error; button re-enables
  • Mobile ~375px: horizontal scroll reaches amount columns (#352)
  • No Keplr signing prompt for CSV
  • Playwright e2e/wallet-history-163.spec.ts when LocalTerra + funded provision available
## Summary - Show **Amount in / Amount out** on wallet pair swap history and **Token0 / Token1** on limit fills (`formatNum(raw)` parity with `TradesTable`). - Harden **Download CSV**: inline error on failure, client `limit` capped at indexer max **200** (`TRADER_HISTORY_CSV_MAX_LIMIT`), one network/timeout retry via shared `fetchText`. - Update docs/skill invariants and crosslinks for third-party agents (`AGENTS_FRONTEND_ORDER_HISTORY`, `docs/frontend.md`, `docs/indexer-invariants.md`). - Extend Vitest + E2E coverage for amounts and CSV click → `format=csv`. Closes #479 ## Test plan - [ ] `npx vitest run src/components/trade/__tests__/WalletIndexerHistoryPanel.test.tsx src/services/indexer/__tests__/client.test.ts` — 29 tests green - [ ] Indexer `csv_escape_cell_*` still pass (SEC-F12 / #432 untouched) - [ ] `/limits` + wallet + pair with swaps: Amount in/out visible; Download CSV produces file - [ ] Limit fills: Token0/Token1 visible; cancellations unchanged - [ ] CSV failure (stop indexer / bad URL): inline `wallet-history-csv-error`; button re-enables - [ ] Mobile ~375px: horizontal scroll reaches amount columns (#352) - [ ] No Keplr signing prompt for CSV - [ ] Playwright `e2e/wallet-history-163.spec.ts` when LocalTerra + funded provision available
PlasticDigits commented 2026-07-12 09:23:13 +00:00 (Migrated from gitlab.com)

mentioned in commit 4c97620dc5

mentioned in commit 4c97620dc55b9eef57b4ac40476d449d7617815c
PlasticDigits (Migrated from gitlab.com) merged commit 4c97620dc5 into main 2026-07-12 09:23:13 +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!1016
No description provided.