Repository navigation
Show "1m 0s" rather than "60s" for a time left just under a minute - #149
Merged
Merged
Conversation
formatEta rounded seconds up below 60, so anything from 59.01s to 59.99s read "60s". Those now take the minutes form, which is clamped so they read "1m 0s" rather than "0m 59s".
Collaborator
Author
|
this one was so unnecessary ffs |
anmolkapil
approved these changes
Oct 15, 2026
anmolkapil
left a comment
Owner
There was a problem hiding this comment.
Such little things makes the experience production level!!!
Great catch again!
alisinaee
referenced
this pull request
in alisinaee/Lightning
Nov 6, 2026
…149) formatEta rounded seconds up below 60, so anything from 59.01s to 59.99s read "60s". Those now take the minutes form, which is clamped so they read "1m 0s" rather than "0m 59s". (cherry picked from commit fd22a886055757842d68dd337598b5f3b10281c4)
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.
A tiny one I noticed while working on #146:
formatEtarounds seconds up below a minute, so any time left between 59.01s and 59.99s showed as "60s".Now anything that rounds up to 60 takes the minutes form, clamped so it reads "1m 0s" (not "0m 59s"). Everything else is unchanged.
Testing: added a case to
e2e/format.spec.ts(0.2s →1s, 58.2s →59s, 59.01s and 59.5s →1m 0s, 61s →1m 1s). It fails onmainand passes here, 4/4 in the spec. Lint and typecheck are clean.