Skip to content

fix(tracker): migrate both call sites to shared useTransactionTracker… - #1305

Open
Hikmaholadele wants to merge 2 commits into
LabsCrypt:mainfrom
Hikmaholadele:issue-1268
Open

fix(tracker): migrate both call sites to shared useTransactionTracker…#1305
Hikmaholadele wants to merge 2 commits into
LabsCrypt:mainfrom
Hikmaholadele:issue-1268

Conversation

@Hikmaholadele

Copy link
Copy Markdown
Contributor

Summary

  • Migrate stream-details-content.tsx and incoming-content.tsx to useTransactionTracker
  • Remove duplicated transaction status state and logic
  • Ensure the confirming state is handled consistently across both call sites
  • Add/update tests covering the shared transaction state-machine flow

Testing

  • Ran the relevant frontend tests and typechecks
  • Verified transaction status transitions, including the confirming state

Closes #1268

Hikmaholadele and others added 2 commits August 29, 2026 19:52
… hook

- Migrate incoming-content.tsx to use useTransactionTracker, ensuring
  the confirming state is never skipped (was jumping submitted→confirmed
  via a 1.5s timeout)
- Migrate stream-details-content.tsx to use useTransactionTracker,
  replacing ad-hoc boolean state (withdrawing/cancelling/pausing/resuming)
  with the shared state machine
- Both call sites now flow: signing → submitted → confirming → confirmed
- TransactionTracker component renders from both pages via the shared hook

Closes LabsCrypt#1268

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
Removes the unused `import React from "react"` that caused the
Frontend CI build to fail with "'React' is declared but its value
is never read."

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Audit] useTransactionTracker state-machine hook exists but is unused by its intended call sites

1 participant