Skip to content

fix: redesign schedule bumper to handle multiple hours of change at once #4535

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

Merged
merged 15 commits into from
Oct 14, 2022

Conversation

presleyp
Copy link
Contributor

Fixes #3566

Previously, if you clicked the + or - icon on the workspace page multiple times in a row, it would only change the stop time by one hour. Now, clicking + enters addition mode and clicking - enters subtraction mode. Either mode displays an hours input with stepper controls and a Set button. You can type the number of hours you want to add/subtract, or click the stepper or arrow up/down. Then click Set. One hour is the default. Setting a change of 0 hours sends no event, it's like canceling. This way, users can adjust their auto-stop time without opening the Schedule Page and relative to their planned auto-stop time rather than (as on the Schedule Page) relative to their start time.

Kapture.2022-10-12.at.10.18.46.mp4

Mobile layout:
Screen Shot 2022-10-13 at 12 41 07 PM

@presleyp presleyp requested a review from a team as a code owner October 13, 2022 16:49
@presleyp presleyp requested review from code-asher and removed request for a team October 13, 2022 16:49
@github-actions
Copy link

github-actions bot commented Oct 13, 2022

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@presleyp
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is dope! I tried it out and it works great and the code looks good too.

I tried out the keyboard and noticed we could add highlight styles when tabbing through the -/+ and possibly auto-focus the hours input but def not big deals.

@presleyp
Copy link
Contributor Author

I'm gonna merge because I'm working on something higher priority now, but I like those ideas!

@presleyp presleyp merged commit ccc008e into main Oct 14, 2022
@presleyp presleyp deleted the submit-bumper/presleyp/3566 branch October 14, 2022 17:23
@github-actions github-actions bot locked and limited conversation to collaborators Oct 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bumping auto-off my multiple hours in UI is slow
2 participants