Skip to content

fix/feat: lint resolution, test script, and transaction feedback with duplicate prevention - #988

Merged
IbrahimIjai merged 2 commits into
SO4-Markets:mainfrom
QueenGiba:fix/lint-and-transaction-handling
Oct 17, 2026
Merged

IbrahimIjai merged 2 commits into
SO4-Markets:mainfrom
QueenGiba:fix/lint-and-transaction-handling

Conversation

@QueenGiba

Copy link
Copy Markdown
Contributor

Summary

Consolidated fix and feature work across 4 issues: #824, #823, #732, #733.

Lint & Test (#824, #823)

Transaction Handling (#732, #733)

Closes #824
Closes #823
Closes #732
Closes #733

feat: introduce transaction feedback controller with duplicate submission prevention

**Lint fixes (SO4-Markets#824):**
- Import order: reorder imports in TVChartContainer, DepthLadder, ConfirmationDialog
  so external/builtin imports precede internal/relative, and type imports follow
  value imports.
- Logic: remove unnecessary nullish coalescing operators in DepthLadder (line 222)
  and ConfirmationDialog (lines 135-136) that the linter flagged.
- Test: remove unnecessary type assertion in useSourceFreshness.test.ts (line 152).

**Test script (SO4-Markets#823):**
- Add `test` and `test:coverage` scripts to apps/web/package.json so turbo and CI
  properly run the web test suite.

**Transaction feedback controller (SO4-Markets#732, OB-093):**
- Create useTxFeedback hook to manage transaction lifecycle with typed events
  (signing, submitted, confirmed, ordering, settled, error, unknown_outcome).
- Each transaction attempt gets a stable toast ID that is updated across
  lifecycle stages without relying on English message matching.
- Multiple concurrent transactions maintain separate identities.

**Duplicate submission prevention (SO4-Markets#733, OB-078):**
- Add duplicate submission prevention to useTxSubmit via submitInProgress flag
  and attempt tracking.
- Guard against double-click, Enter+click, component rerender, and provider timeout.
- Detect unknown submission outcomes and signal for status lookup by hash.
- Extend useTxSubmit to export submitWithFeedback() for order book flows.

Closes SO4-Markets#824
Closes SO4-Markets#823
Closes SO4-Markets#732
Closes SO4-Markets#733
@vercel

vercel Bot commented Oct 17, 2026

Copy link
Copy Markdown

@QueenGiba is attempting to deploy a commit to the Ijai's projects Team on Vercel.

A member of the Team first needs to authorize it.

@IbrahimIjai
IbrahimIjai merged commit 7fcd2a2 into SO4-Markets:main Oct 17, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants