W11-C3: Indexer outage banner exposes raw VITE_INDEXER_URL value — CEX-migrant traders have no context for what the URL means #174
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic#174
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue Summary
When the indexer becomes unreachable, a yellow warning banner appears that renders the raw value of
VITE_INDEXER_URL(http://127.0.0.1:3001) inline in the visible copy. A trader migrating from a CEX has no idea what this URL refers to, what "indexer" means, or whether the address is something they should recognise or act on.Reproduction Steps
/trade127.0.0.1:3001Expected Behavior
The banner should not expose an internal URL. Replace the URL with a plain-language service name, e.g.:
The GitLab #166 note about the limit price fallback can remain but should also use plain language.
Actual Behavior
Raw
VITE_INDEXER_URLvalue is rendered directly in the banner: "Indexer unavailable at http://127.0.0.1:3001." On production this would be an actual domain, which is slightly better, but "indexer" is still jargon with no explanation for non-technical users.Screenshot(s)
Relevant File
frontend-dapp/src/pages/TradePage.tsx:138Environment Details
localterra(local Docker), indexer domain blockedVITE_NETWORK=local npm run devWallet / Device Details
Severity / Impact
P3 Nit. No functionality is broken. The banner is informative and the degradation is handled — this is purely a copy quality issue. Showing a raw internal URL undermines trust for non-technical users and CEX migrants. Low-effort fix: swap the URL interpolation for a static service name string. Found under W11-C3 (Contract query failures — Display and Trader use dimensions).
cc: @PlasticDigits
mentioned in commit
d8751116e1Fix landed on
main(d875111)Replaced the
/tradeindexer-down warning so it no longer rendersVITE_INDEXER_URLor hostnames. Retail copy now uses "Market data service unavailable" with plain-language impact and recovery wording; the GitLab #166 limit-price pool fallback note remains in user-friendly language.Changes
frontend-dapp/src/utils/indexerTradeOutageCopy.ts— title/lead/tail constants (single source of truth)frontend-dapp/src/pages/TradePage.tsx— composes constants only; noINDEXER_URLin the bannerindexerTradeOutageCopy.test.ts,TradePage.test.tsxdocs/frontend.md§ Trade page — indexer outage banner (GitLab #174 row)skills/AGENTS_FRONTEND_USER_ERRORS.md,skills/AGENTS_FRONTEND_TRADE_PAGE_LAYOUT.mdVerification checklist (please confirm)
/tradehttp://127.0.0.1:3001,VITE_INDEXER_URL, or "Indexer unavailable at …"getPairsucceedscd frontend-dapp && npm run test:run -- src/utils/__tests__/indexerTradeOutageCopy.test.ts src/pages/TradePage.test.tsxpasses@totdking — please verify on your M1 / Chrome setup (W11-C3 reproduction). Leaving this issue open until sign-off.
cc @PlasticDigits
verified
d8751116on QA stack.source: copy centralized in
frontend-dapp/src/utils/indexerTradeOutageCopy.ts. title is "Market data service unavailable." with noVITE_INDEXER_URL, no127.0.0.1:3001, no "Indexer unavailable at" string anywhere. lead mentions chart/tape/order book depth/swap-limit ticket impact in plain language. tail cross-links #166 for the pool-reserves fallback.tests:
indexerTradeOutageCopy.test.ts3/3 PASS +TradePage.test.tsx10/10 PASS = 13/13 total.good to close on your side @PlasticDigits
mentioned in issue #215
marked as related to #215
mentioned in issue #218
mentioned in issue #561