Remove developer jargon from retail UI alerts and errors (#414) #940
No reviewers
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!940
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-414-retail-ui-copy"
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?
Summary
Removes developer/integrator jargon from retail-facing alerts, quote disclosures, and error surfaces tied to #414:
directHybridQuote.ts,swapDisclosure.ts) — plain language (“limit book + pool”, “estimated output”) instead ofPattern C,hybrid_simulation, indexer/LCD internals.humanizeUserFacingErrorFromUnknown.docs/limit-orders.mdinline).docs/frontend.mdinvariant row +skills/AGENTS_FRONTEND_USER_ERRORS.mdretail-copy rule.Acceptance checklist
GitLab #,Pattern C, orhybrid_simulationin retail-visible copyrg 'Pattern C|GitLab #|hybrid_simulation' frontend-dapp/src --glob '!**/*.test.*'(user strings only; comments excluded)TradeMarketOrderPanel.submitSnapshot.test.tsx—humanizes simulated quote failuresLimitOrderPreSubmitSummary.test.tsx/tmp/issue-414-screenshots/trade-market-quote-disclosure.png(matchestrade-market-quotetestid copy)/tmp/issue-414-screenshots/limit-pre-submit-footer.png/tmp/issue-414-screenshots/trade-market-quote-error.pngmake test-frontendcosmesPatch127.test.tspatch-file failure on this VM)humanizeUserFacingError.test.tsextendedTradeMarketOrderPanel.submitSnapshot+LimitOrderPreSubmitSummarytestsVerification for third parties
Manual UI (requires LocalTerra):
make setup-cloud-localterra && make dev→/tradeMarket tab → enter amount → confirm quote card disclosure; Limit tab → pre-submit footer link; force quote failure (stop indexer) → plain-language alert.Related
skills/AGENTS_FRONTEND_USER_ERRORS.mddocs/frontend.md#user-facing-errors-humanizationSecurity review — MR !940
Commit reviewed:
2ac7215776698a16564fd04a9ac51cb5ac4ef9b2Scope: Retail-facing copy in quote disclosures (
directHybridQuote.ts,swapDisclosure.ts), hybrid/limit UI alerts (SwapPage.tsx,LimitOrderPreSubmitSummary.tsx,TradeMarketOrderPanel.tsx,WalletIndexerHistoryPanel.tsx), and newtryHumanizeFetchLikeMessagebranches inhumanizeOffChainError.ts(market quote / LCD / indexer transport). Docs, skills, tests, and E2E expectation updates only.Method: Diff vs
main; tracedsimQuery.errorthroughhumanizeUserFacingErrorFromUnknown→humanizeUserFacingError(Terra tx classifiers run before fetch/LCD patterns). Verified doc links use staticDOCS_GITLAB_BASEwithrel="noopener noreferrer". NodangerouslySetInnerHTMLon changed surfaces. No dependency or auth/on-chain logic changes.Outcome:
FINDINGS: 0medium+isSubmitReady, spread preflight, hybrid alignment) unchanged; pause/blacklist copy explicitly preserved in tests.tryHumanizeTerraTxMessage; blacklist/pause/spread assertions still classify first. Broad/quote unavailable/ionly affects quote-query failure UI (submit blocked whensimQuery.isError).Prior security threads: None on this MR.
Inline findings: None.
Security review: no medium+ findings on this diff.
mentioned in commit
c02bd30bbc