test(frontend): verify Trade pair search replaces dropdown (#301) #825
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!825
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "cursor/gitlab-issue-workflow-2764"
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
Closes verification for GitLab #301.
The original
/tradepair-switch bug (staleMenuSelectdropdown) was already fixed onmainby replacing it withPairSearchSelect(#314). This MR adds regression tests and doc cross-links so the acceptance criteria stay locked:/trade(and Limits)GET /api/v1/pairs?sort=volume_24h&order=desc&limit=20(up to 20 items)onChange, navigates to/trade/:newPairAddr, and triggers workspace fetch for the new pairNo production code changes — behavior was already correct.
Acceptance checklist
/tradePairSearchSelect.issue301.test.tsx— combobox withtype=text, placeholderSearch pairs…PairSearchSelect.issue301.test.tsx— assertsgetPairs({ sort: 'volume_24h', order: 'desc', limit: 20 })PairSearchSelect.issue301.test.tsx—onChangefired;TradePage.test.tsx— URL →/trade/:addr,getPaircalleddocs/frontend.md§ Pair search comboboxThird-party verification
Manual (requires LocalTerra + indexer): open
/trade/:pairAddr→ click Pair search → with empty query confirm multiple pairs listed (sorted by volume badge when indexed) → select another pair → URL and chart/book/ticket update.Issue
Leave #301 open until this MR merges; then close with verification note.
changed the description
changed the description
mentioned in issue #301
changed the description
Security review
Commit reviewed:
6482e8c54bb8a25c93dacf7cf45fae89b4abf449Scope: 3 files —
docs/frontend.md(doc cross-links),frontend-dapp/src/components/trade/__tests__/PairSearchSelect.issue301.test.tsx(new),frontend-dapp/src/pages/TradePage.test.tsx(new regression test). No production/runtime code changes.Method: Inspected the full MR diff. Traced attacker-controlled inputs only insofar as tests exercise mocked indexer/factory clients (
vi.mock, hard-codedterra1…fixtures). No new HTTP handlers, routing logic, auth boundaries, secrets, dependencies, or deserialization paths were introduced.Outcome:
FINDINGS: 0medium+Security review: no medium+ findings on this diff.
package.jsonor lockfile changesInline threads: none (no findings to anchor).
Automated security review (Cursor Cloud Agent)
mentioned in commit
6ff5483ab6mentioned in commit
67ba260b93mentioned in commit
4f68221de6