Skip to content
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/temp-sched: Add fixed shifts for temporary schedules #3606

Merged
merged 17 commits into from
Jan 22, 2024

Conversation

KatieMSB
Copy link
Collaborator

@KatieMSB KatieMSB commented Jan 16, 2024

  • Identified the issue which this PR solves.
  • Read the CONTRIBUTING document.
  • Code builds clean without any errors or warnings.
  • Added appropriate tests for any new functionality.
  • All new and existing tests passed.
  • Added comments in the code, where necessary.
  • Ran make check to catch common errors. Fixed any that came up.

Description:
Adds new fields in the temporary schedule dialogs to have fixed shifts for the entire schedule. Shift duration defaults to 1 Day for all shifts but shifts can still be added with custom durations in the Add Shift form. Coverage gaps are also now rendered by the set shift duration, and more clearly show the time frame without coverage.

Which issue(s) this PR fixes:
Part of #3492

Screenshots:
Screenshot 2024-01-18 at 12 27 23 PM
Screenshot 2024-01-18 at 1 59 09 PM

Copy link
Contributor

@Forfold Forfold left a comment

Choose a reason for hiding this comment

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

Looks like the type/padding is getting messed up for the day interval here (this is on open without making any changes)

Screenshot 2024-01-18 at 7 58 47 AM

Also, can we make it so the shift length can be temporarily null? With it set to 1 day, I tried to change it to 6 hours by typing Backspace then 6, but it wouldn't let me so I had to use the arrow keys. But with the arrow keys, there was a bit of lag for each digit as it went up to render everything on the right

@github-actions github-actions bot added size/xl and removed size/l labels Jan 18, 2024
@KatieMSB KatieMSB requested a review from Forfold January 18, 2024 18:14
Copy link
Contributor

@Forfold Forfold left a comment

Choose a reason for hiding this comment

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

LGTM! Working well & as intended

@KatieMSB KatieMSB merged commit aa18971 into master Jan 22, 2024
7 checks passed
@KatieMSB KatieMSB deleted the temp-sched-fixed-shifts branch January 22, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants