Split Swap Settings into retail defaults and Advanced integrator controls (#413) #942
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!942
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-413-swap-settings-advanced"
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
GitLab #413 — progressive disclosure for Swap Settings on
/.swap-expert-mode-toggle).localStorage(swapSettingsAdvanced.ts).Acceptance checklist
npm test -- --run src/pages/SwapPage.test.tsx -t "shows retail prefs"npm test -- --run src/pages/SwapPage.test.tsx -t "progressive disclosure"npm test -- --run src/pages/SwapPage.test.tsx -t "hybrid"npm test -- --run src/pages/SwapPage.test.tsx -t "indexer route check when Advanced"/→ Settings (see verification below)npm test -- --run src/pages/SwapPage.test.tsx -t "blocks swap above 30%"SwapAdvancedSettings.tsxmax={256}+ existing testsmake test-frontendmake test-frontendmake test-e2ehybrid/swap specs* One pre-existing failure on
main:cosmesPatch127.test.ts(missing cosmes patch file) — unrelated to this MR.Third-party verification
Screenshots (manual)
Attach after local
make dev:restored source branch
issue-413-swap-settings-advancedSecurity review — MR !942
Commit reviewed:
fe41122cdbc5b2c201b1c7eef0b9d5e0738953d9Scope: Swap Settings progressive disclosure (#413) —
SwapAdvancedSettings.tsx,swapSettingsAdvanced.ts,SwapPage.tsxdeadline UI, E2E/test/doc updates.Outcome:
FINDINGS: 0medium+Inline threads: none
Summary
Reviewed added/modified frontend paths for injection, authz bypass, secret leakage, unsafe deserialization, SSRF/XSS, and signing-disclosure regressions (SEC-D11).
getDirectHybridBookSplit,useSubmitAlignedSimQuote, andSwapPreSubmitSummary(SEC-D11) are unchanged.swapSettingsAdvanced.ts): Persists a boolean expand/collapse flag ('1'/'0'); no secrets, no trust-boundary change.useDexStore.setDeadlineSeconds; deadline is applied only to user-initiated swap broadcasts.fromToken/toTokenstill requireterra1CW20 prefixes beforegetRouteSolve; errors pass throughhumanizeUserFacingErrorFromUnknownand render in React text nodes (nodangerouslySetInnerHTML).max_maker_fills: UImax={256}and submit caps unchanged from pre-MR behavior; on-chain guards remain authoritative.No prior security-review threads on this MR to re-validate.
Security review: no medium+ findings on this diff.
added 9 commits
maine7c7fd09- Merge origin/main into issue-413-swap-settings-advancedCompare with previous version
Resolved merge conflicts with
main:TRANSACTION_DEADLINE_LABEL,useIdinput, decimal custom-deadline validation, andformatTransactionDeadlinesummary row.Sanity:
npm test -- --run src/pages/SwapPage.test.tsx src/utils/swapSettingsAdvanced.test.ts— 30 passed.Security review — MR !942
Commit reviewed:
e7c7fd090d07e2cb7d5dc09b580ef0eb9596f6d5Scope: Swap Settings progressive disclosure (#413) after merge-conflict resolution with
main—SwapAdvancedSettings.tsx,swapSettingsAdvanced.ts,SwapPage.tsx(retail/advanced split, deadline presets + decimal custom input), E2E/test/doc updates.Outcome:
FINDINGS: 0medium+Inline threads: none
Summary
Re-reviewed the full MR diff and the post-merge delta from
fe41122(prior review) throughe7c7fd09, including integratedmainchanges:TRANSACTION_DEADLINE_LABEL,useIddeadline input, decimal custom-deadline sanitization/clamp, andformatTransactionDeadlinesummary row.getDirectHybridBookSplit,useSubmitAlignedSimQuote, andSwapPreSubmitSummary(SEC-D11) unchanged.swapSettingsAdvanced.ts): Persists boolean expand/collapse ('1'/'0'); no secrets, no trust-boundary change.., single-decimal guard; values clamped to 0.5–60 minutes in handler and 30s–3600s inuseDexStore.setDeadlineSeconds; deadline applied only to user-initiated swap broadcasts.fromToken/toTokenstill requireterra1CW20 prefixes beforegetRouteSolve; errors pass throughhumanizeUserFacingErrorFromUnknownand render in React text nodes (nodangerouslySetInnerHTML).max_maker_fills: UImax={256}and submit caps unchanged; on-chain guards remain authoritative.Prior security-review thread (
fe41122) findings do not apply to new code paths; merge resolution did not introduce exploitable regressions.Security review: no medium+ findings on this diff.
mentioned in commit
617b9e0fd3