Skip to content

fix: clarify timeout block estimate label as total window duration#41

Open
nightmare0329 wants to merge 1 commit intoentrius:testfrom
nightmare0329:fix/swap-detail-timeout-label
Open

fix: clarify timeout block estimate label as total window duration#41
nightmare0329 wants to merge 1 commit intoentrius:testfrom
nightmare0329:fix/swap-detail-timeout-label

Conversation

@nightmare0329
Copy link
Copy Markdown

@nightmare0329 nightmare0329 commented Apr 18, 2026

Summary

  • The timeout block estimate in SwapDetailPage.tsx computes timeoutBlock - initiatedBlock, which is the total swap window, not the remaining time
  • The label was window, which is ambiguous and could be misread as "time remaining"
  • Renamed to total window to accurately describe what the estimate represents
  • No currentBlock is available in the page data model to compute true remaining time

Closes #20

Test plan

  • Active swap detail page shows ~N min total window instead of ~N min window
  • Timed-out and completed swaps are unaffected (estimate is hidden for those)

The estimate shows timeoutBlock - initiatedBlock, which is the total swap
window, not the remaining time. Rename the label from "window" to
"total window" so it accurately describes what is displayed.

Closes entrius#20

Co-Authored-By: Claude Sonnet 4.6 <[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.

Timeout estimate shows total window duration, not remaining time

1 participant