-
Notifications
You must be signed in to change notification settings - Fork 253
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
ui/schedules: temp sched calendar override button #1857
Conversation
Working on some changes right now. I thought I ran the cypress tests before making original PR but didn't 😮 . |
Co-authored-by: Nathaniel Caza <[email protected]>
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.
Nice progress! One more thing we need to do is disable to "replaced user" field when doing a replace/remove override. Left some suggestions for how we could achieve that.
Also, if you're interested in converting some of the new files into typescript, that could be great for keeping our component props interfaces clean and minimal.
web/src/app/schedules/calendar/ScheduleCalendarOverrideDialog.js
Outdated
Show resolved
Hide resolved
Co-authored-by: David Talbot <[email protected]>
…ality to handle edge cases
Co-authored-by: David Talbot <[email protected]>
make check
to catch common errors. Fixed any that came up.Description:
This PR modified the schedule calendar functionality (see pictures) so that it's more clear what changes do. It replaced the temporary schedule button on the upper right of the calendar with an override button. It also replaces the "remove" and "replace" buttons when you click on a shift with a general "override shift" button.
Both these override buttons bring you to a dialog where you can choose the type of override you want to do (including a temp schedule).
Which issue(s) this PR fixes:
Usage:
Fixes #<issue number>
, orFixes (paste link of issue)
.Out of Scope:
Include any out of scope items here.
Screenshots:
If applicable, add some screenshots here.
New schedule buttons (override and override shift buttons):

After clicking "override shift":

After clicking "override":

Describe any introduced user-facing changes:
Describe any introduced API changes:
If introducing any API changes, provide a clear description of them.
Additional Info:
Any additional information or context.