Conversation
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 5c52d14:
|
Deploying with
|
| Latest commit: |
5c52d14
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://fccec21d.baseweb.pages.dev |
| Branch Preview URL: | https://button-timer.baseweb.pages.dev |
|
Visual changes were detected on this branch. Please review the following PR containing updated snapshots: #5161 |
chasestarr
left a comment
There was a problem hiding this comment.
The visuals look good to me. I'm most interested in how a developer should be using this component. Currently it seems to be set up where when loaded to the page it will begin counting down from the set time and firing an event when finished. I'd like to see some way to stop/start the timer from outside the component.
An alternative api could be something similar to progress-bar where the application controls the progress through the timer and visuals are a pure function of props. Would that be too burdensome?
|
Visual changes were detected on this branch. Please review the following PR containing updated snapshots: #5161 |
Yea that would be more flexible. In terms of the API, I think we'd want something like |
Accepting a float between 0-1 is probably the 'cleanest' api, but maybe consider aligning with the existing progress-bar pattern. I guess this does not support rendering the time-remaining. Number of seconds remaining seems appropriate |
62afaac to
b91f20e
Compare
b91f20e to
3db6ba9
Compare
1f34613 to
ef0676d
Compare
|
Visual changes were detected on this branch. Please review the following PR containing updated snapshots: #5161 |
Co-authored-by: UberOpenSourceBot <UberOpenSourceBot@users.noreply.github.com>
ee12d4c to
fc0a815
Compare
20917f5 to
c556204
Compare
c556204 to
ce143e7
Compare
chasestarr
left a comment
There was a problem hiding this comment.
lgtm after some more integration tests
|
Visual changes were detected on this branch. Please review the following PR containing updated snapshots: #5190 |
Co-authored-by: UberOpenSourceBot <UberOpenSourceBot@users.noreply.github.com>
Description
Build new
Button Timedcomponent: https://zeroheight.com/6d2425e9f/p/81070d-button-timed/b/284ec6Scope
Minor: New Feature