Fix #633-#636: DeadlineSuggester tooltip, gauge zones, hook split, wallet retry - #653
Open
lawrencesunday311-sketch wants to merge 4 commits into
Open
Conversation
|
@lawrencesunday311-sketch Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
@lawrencesunday311-sketch is attempting to deploy a commit to the kingsman-99's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Title
Fix #633-#636: DeadlineSuggester tooltip, gauge zones, hook split, wallet retry
Body
This PR addresses four small frontend issues:
#633 — DeadlineSuggester reasoning tooltip. The recommended-deadline pill now includes a keyboard- and mouse-accessible "?" tooltip that explains why the suggestion was made (average funding time from similar past invoices, or the static fallback reasoning when no history is available).
#634 — PaymentVelocityGauge performance zones. Each gauge arc now renders red (0-33%), yellow (34-66%), and green (67-100%) background zones so users get an instant visual read on velocity, with zone boundaries configurable via an optional
zoneBoundariesprop. The value arc and labels render on top of the zones as before.#635 — Split useInvoiceForm. Extracted
useLineItems(item CRUD, totals, reordering) anduseInvoiceMeta(expiry date/timezone fields and validation) into their own files.useInvoiceFormnow composes both and re-exports the same unified API, so no call sites needed changes.#636 — useWalletBalance retry with backoff. On a failed balance fetch, the hook now retries up to 3 times with 1s/2s/4s delays, exposing an
isRetryingflag (surfaced as a "Retrying..." indicator inWalletBalanceDisplay). The error state is only shown once retries are exhausted, and a successful retry clears it.Closes #633
Closes #634
Closes #635
Closes #636