W12-C2: Edit button on open limit order rows fires no action and sends no network request #178
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#178
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
Each open limit order row in the BIDS panel has two action controls: a × (cancel) button and an Edit button. The × button works correctly (it has
aria-label="Cancel this resting order"and initiates the cancel flow). The Edit button is visually present and appears interactive but produces no observable effect when clicked — no modal opens, no drawer appears, no network request fires, and no UI state changes. The button is functionally dead.Reproduction Steps
VITE_NETWORK=local npm run dev) with LocalTerra runninghttp://localhost:3000/trade/terra146ypndztcmmrmyxef7e20cul82gh43vjnw4uacwdvg5sp9kva7sqc9mjavExpected Behavior
Clicking Edit should open an order-amendment interface (modal, drawer, or inline form) pre-populated with the existing order's price and quantity, allowing the trader to modify the resting order. A network request should fire if the amendment is submitted.
Actual Behavior
Environment Details
localterra(local Docker)VITE_NETWORK=local npm run devatlocalhost:3000Wallet / Device Details
Severity / Impact
P2 UX. A visible Edit button that does nothing damages trader trust and implies functionality that does not exist. For a CEX migrant expecting to amend resting orders (a standard CEX feature), a dead Edit button is a meaningful usability failure. Found under W12-C2 (Accessibility — icon-only trading buttons and interactive controls inspection).
cc: @PlasticDigits
mentioned in issue #116
mentioned in commit
db75b02a4eFix shipped on
main(f5f7a38)Root cause
On desktop (
lg/ ≥1024px),/trademounted twoTradeOrderTicketinstances (sub-lg layout hidden via CSS + desktop layout visible). Clicking Edit pushedLimitBookTicketDraftto both; the hidden ticket’suseEffectapplied the draft then calledonLimitBookDraftConsumed(), clearing parent state before the visible ticket could read it — so the UI looked dead (no tab switch, no prefill, no network — by design for prefill-only).What changed
useMediaQuery(TRADE_DESKTOP_LAYOUT_MEDIA_QUERY)so exactly one ticket mounts.tradeOrderTicketelement + stableuseCallbackdraft handlers.aria-labelon book Edit for W12-C2 a11y.OrderBookPanelclick →onPrefillLimitTicket;TradePagedesktop Edit → limit tab + price input.docs/frontend.md§ trade-book-row-actions,docs/limit-orders.md,skills/AGENTS_FRONTEND_ORDER_BOOK_ROW_ACTIONS.md,skills/AGENTS_FRONTEND_TRADE_PAGE_LAYOUT.md.Note: Edit intentionally does not submit an on-chain amend (no modal / no tx). It prefills the limit ticket; cancel the resting order, then place a replacement.
Verification checklist
@totdking — please confirm on localterra + Chrome desktop (≥1440px):
/trade/<valid-pair>, place a resting bid you ownLeaving open until verified. Thanks!
qa cleared source+test layer @PlasticDigits
verified
f5f7a383is on main.Regression tests green:
@totdking is out — flagging source side green so this isn't sitting in limbo. M1 / Chrome ≥1440px browser walk still belongs to him when he's back, or your call to close.
mentioned in commit
049a9797a0Verified and closed (M1 / Chrome ≥1440px browser walk)
Root cause (already on main since
f5f7a38):/trademounted twoTradeOrderTicketinstances (CSS-hidden sub-lg + visible desktop). Book Edit pushedLimitBookTicketDraftto both; the hidden ticket consumed the draft before the visible ticket applied it — dead Edit UX with no tab switch, prefill, or network (by design for prefill-only).Verification performed:
PLAYWRIGHT_BASE_URL)TradePage“book Edit prefills…” +OrderBookPanel4/4 greene2e/trade-book-edit-178.spec.ts(merged049a979):Note: Edit intentionally does not submit an on-chain amend — cancel resting order, then place replacement (documented behavior).
mentioned in issue #247
mentioned in issue #312
mentioned in issue #294
mentioned in merge request !829
mentioned in issue #292
mentioned in merge request !831
mentioned in issue #337
mentioned in merge request !836
mentioned in issue #338
mentioned in issue #524
mentioned in issue #527
mentioned in issue #561
mentioned in issue #693