-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xiaow cleanup old timer and modify timer behavior for better UX #586
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented on FE#1455. Great Job!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, I have left a detailed review on PR 1455. Great work. Thank you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @wang9hu I have tested the PR. Detailed review at #1455 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello! Tested your changes and they LGTM! Commented a full review on the FE PR. Great implementation!
Description
This PR cleans up the old timer related code and files, and modify timer behavior. Now if users stop timer before it runs out and log the passed time, the remaining time will be come the goal for the next timer, and if timer run out by itself and user log the time, the goal for next timer will be set back to the initial goal.
Related PRS (if any):
This backend PR is related to the frontend PR#1455.
Main changes explained:
initialGoal
in the timer model…
How to test:
npm install
andnpm run dev
to run this PR locally5.1 when logging time before timer runs out, the next goal is what is remaining from last timer
5.2 when logging time after timer runs out, the next goal is what is set as the initial goal.
5.3 try to break it.
5.4 (new) now if there are multiple tabs (on the same browser or different browsers), once timer runs out, the ringing effect should be consistent if user add more or log time on any one tab.
Screenshots or videos of changes:
how to set the initial goal (used to be Goal for today):
Note:
The initial goal can only be set by editing and saving goal at the bottom of the timer modal.