Remove developer jargon from retail UI alerts and errors #414
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#414
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?
Parent
#411 — Updated Gap Analysis (recommendation 3)
Current codebase
User-facing surfaces still embed developer/integrator copy:
LimitOrderPreSubmitSummary.tsxL108Issue: GitLab #157.in footerTradeMarketOrderPanel.tsxhybrid_simulation (Pattern C),docs/limit-orders.mdin alert bodySwapPage.tsxTradeMarketOrderPanel.tsx(simQuery.error as Error).messageon quote failurehumanizeUserFacingError.ts/TxResultAlert.test.tsxalready strip GitLab refs from some paths (#127); market panel quote errors are not fully wired.Why needed
Developer jargon and internal issue refs in retail alerts cause awareness fatigue and signal an integrator tool, not a consumer DEX. Raw LCD/indexer errors leak implementation detail and may include addresses users cannot act on.
Constraints / guardrails
console.errorupstream logging (#134).DOCS_GITLAB_BASElinks in footers are OK if labeled "Learn more" / "Limit order fees" — not rawlimit-orders.mdfilenames.data-testidon pre-submit summaries (#157, #409).Relevant files
frontend-dapp/src/components/trade/LimitOrderPreSubmitSummary.tsxfrontend-dapp/src/components/trade/TradeMarketOrderPanel.tsxfrontend-dapp/src/pages/SwapPage.tsxfrontend-dapp/src/utils/humanizeUserFacingError.tsfrontend-dapp/src/utils/humanizeOffChainError.tsfrontend-dapp/src/components/ui/TxResultAlert.tsxfrontend-dapp/src/components/trade/__tests__/TradeMarketOrderPanel.submitSnapshot.test.tsxRecommended direction
hybrid_simulation, indexer disclosure jargon with plain language ("limit book + pool", "estimated output").TradeMarketOrderPanelquote/sim errors throughhumanizeUserFacingError.Acceptance criteria
GitLab #,Pattern C, orhybrid_simulationin retail-visible copy (grepfrontend-dapp/srcexcluding tests/comments).Test plan
TradeMarketOrderPanel.submitSnapshot.test.tsx— update expected strings.TxResultAlert.test.tsxpattern for humanized errors.make test-frontendrg 'Pattern C|GitLab #|hybrid_simulation' frontend-dapp/src --glob '!**/*.test.*' --glob '!**/comments/**'Attack / abuse test plan
Verification criteria
humanizeUserFacingError.test.tsextended for market-panel error shapes.mentioned in issue #411
mentioned in commit
2ac7215776mentioned in merge request !940
mentioned in commit
c02bd30bbcVerification — #414 (Remove developer jargon from retail UI alerts and errors)
Verified on
main@6ffd7f44(implementation merged in2ac72157).Acceptance criteria
GitLab #,Pattern C, orhybrid_simulationin retail-visible copy (components/pages)rg 'Pattern C|GitLab #|hybrid_simulation' frontend-dapp/src/components frontend-dapp/src/pages --glob '!**/*.test.*'— matches only JSDoc/CSS comments, not rendered strings.directHybridQuote.tsdisclosure strings are plain language.TradeMarketOrderPanel.tsxroutes quote errors throughhumanizeUserFacingErrorFromUnknown; testhumanizes simulated quote failures instead of raw error text (#414)asserts/reach the chain/iand nolcd fail.LimitOrderPreSubmitSummary.test.tsx— linkLearn more about limit order fees,queryByText(/GitLab #/)absent.TradeMarketOrderPanel.submitSnapshot.test.tsx—trade-market-quotecontainsEstimated output from limit book + pool; excludesPattern C,hybrid_simulation,GitLab #.LimitOrderPreSubmitSummary.test.tsx— footer link text + no issue refs.trade-market-quote-errortest above.Test plan
make test-frontendhumanizeUserFacingError.test.tsmarket-panel shapeshumanizeUserFacingError — market quote shapes (#414)block (indexer/LCD/JSON + pause/blacklist preservation)TradeMarketOrderPanel.submitSnapshot.test.tsxLimitOrderPreSubmitSummary.test.tsxshows labeled pre-sign confirmation fields before market swap submitin submitSnapshot suite; full frontend suite greensrcstill matches pattern in comments/dev-only paths only; no jargon in issue-listed UI surfacesAttack / abuse
humanizeUserFacingError.test.tspreserves actionable pause and blacklist messagestryHumanizeFetchLikeMessage+ market quote shape tests map to stable retail copyManual / environment
make has-localterraexit 2 (stack not provisioned this session). Component tests above assert the same visible copy on the targeted surfaces.Follow-up (non-blocking)
humanizeTerraTxError.tsStation/LocalTerra insufficient-fee branch still ends with(GitLab #235)— rare edge case outside the issue’s listed files; could be stripped in a small follow-up for full grep-zero on all user-facing strings.mentioned in merge request !1041