1473ea1a7a
refactor: move service from user story to data layer
2024-07-29 10:38:41 +02:00
f6d62510b6
chore: remove unnecessary comment in availability model library
2024-07-29 10:38:41 +02:00
3924a5804c
chore: remove flutter dependency from data interface
2024-07-29 10:38:41 +02:00
Freek van de Ven
b3a917769d
fix: change template deviation logic for when a day is missing from a template
...
If a day is missing the availability automatically deviates
2024-07-26 16:12:02 +02:00
Freek van de Ven
0852b25678
fix: add keyboard padding for pause selection dialog
2024-07-26 16:12:02 +02:00
Freek van de Ven
0525e9d3b6
fix: add pause validation directly in the pause dialog when saving
2024-07-26 14:56:18 +02:00
Freek van de Ven
b184dc65bd
fix: check that start time is before endtime for a template day
2024-07-26 14:56:18 +02:00
Freek van de Ven
3ae1ad417e
fix: limit template name length to 100 characters
2024-07-26 14:56:18 +02:00
Freek van de Ven
c6df93e40b
fix: add initial value for duration inputfield back
2024-07-26 14:56:18 +02:00
Freek van de Ven
c7ce06624b
feat: add validation check for break outside availability
2024-07-26 14:56:18 +02:00
c004417b36
fix: use proper flex ratio for determining the width of the time break duration input
2024-07-26 13:37:31 +02:00
96c16c09ba
fix: mark breaks modal as scrollcontrolled to take up full space
2024-07-26 13:37:31 +02:00
5b251d9ba7
fix: use isBefore method rather than the compare for readability (and fix a bug)
2024-07-26 13:28:03 +02:00
Freek van de Ven
7204f77d05
feat: add marking for conflicting times when applying a template
2024-07-26 13:27:38 +02:00
Freek van de Ven
eb704f44cd
feat: add marking for template deviation in the availability modification screen
2024-07-26 13:27:38 +02:00
Freek van de Ven
5eda42c9dd
fix: pass initial day to weekday selection to prevent resetting to monday
...
The widget is rebuild when you come back from the weekoverview to the edit page so the previous selected day should stay on the same day
2024-07-26 11:48:08 +02:00
Freek van de Ven
51fa3588be
fix: add validation error handling for week template saving
2024-07-26 11:48:08 +02:00
ec47ed4696
feat: validate availabilities and templates locally before submitting
2024-07-25 17:23:12 +02:00
Freek van de Ven
c20a1a603c
fix: add NavigatorPopHandler with a custom PopHandler class for handling backarrow presses in the userstory
2024-07-25 16:41:50 +02:00
Freek van de Ven
26d2eb150a
feat: remove edit template button as seperate button and add it to week overview element
2024-07-25 14:04:01 +02:00
Freek van de Ven
36d5cf3b92
feat: add template deletion confirmation dialog
2024-07-25 14:04:01 +02:00
Freek van de Ven
e8af49e694
fix: use BasePage for template overview screen instead of using a custom screen layout
2024-07-25 14:04:01 +02:00
Freek van de Ven
c31ca03806
fix: handle really long template names by adding textoverflow.ellipsis everywhere
2024-07-25 14:04:01 +02:00
Freek van de Ven
ae950ce5df
fix: close keyboard for break duration when tapping outside inputfield
2024-07-25 14:04:01 +02:00
Freek van de Ven
e37164831b
fix: remove keyboard focus when opening dialogs for time selection
2024-07-25 14:04:01 +02:00
Freek van de Ven
f53eb3456b
feat: add close button for pause selection dialog
2024-07-25 14:04:01 +02:00
Freek van de Ven
7ad1c1dfc3
fix: correctly show template add title when there are no templates selected yet
2024-07-25 14:04:01 +02:00
Freek van de Ven
efa08cb0b2
fix: style label for duration inputfield to use hintstyle
2024-07-25 14:04:01 +02:00
Freek van de Ven
8752e2f6cc
fix: remove empty days when updating a week template
2024-07-25 14:04:01 +02:00
Freek van de Ven
3b51a7f31d
fix: give selected day in the template legend a white color
2024-07-25 14:04:01 +02:00
Freek van de Ven
89d3c794c7
fix: allow availability saving when only a template is selected
2024-07-25 14:04:01 +02:00
Freek van de Ven
85297c35fa
fix: clear start and end before applying a template to an availability selection
...
The start and end might already be set before selecting a template, it should always be cleared and if the template is uniform it can update the start and endtime to the correct value
2024-07-25 14:04:01 +02:00
Freek van de Ven
3280d40d1f
fix: only change availability details when entire range is covered by a template
2024-07-25 14:04:01 +02:00
Freek van de Ven
b78029f018
fix: move buttons from basepage to the bottom
2024-07-25 14:04:01 +02:00
Freek van de Ven
93fc1d1fbc
fix: change the template selection to use light and dark checkmark
2024-07-25 14:04:01 +02:00
Freek van de Ven
6cc3becd99
fix: remove BasePage from week template modification
...
The weekday selection has no padding on the right side. To achieve this the screen isn't wrapped with a padding but only all the individual elements except the weekday selection.
2024-07-25 14:04:01 +02:00
Freek van de Ven
e418ab3c31
fix: capitalize the abbreviated weekday in the calendar grid
2024-07-25 14:04:01 +02:00
b0b5463ed9
chore: add pre-commit configuration
2024-07-25 09:44:30 +02:00
ff338d6277
fix: swap constraints with scrollview to remove overflow
2024-07-24 11:34:05 +02:00
370f431784
fix: always display selected days and do not overwrite first template
2024-07-24 11:33:57 +02:00
Freek van de Ven
fd2bef92ac
fix: remove userId null error in AvailabilityViewModel
2024-07-24 09:14:20 +02:00
Freek van de Ven
84fe794b4b
chore: move default builders to ui/default folder
2024-07-24 09:14:20 +02:00
Freek van de Ven
4faa0344b4
chore: move default loader to seperate file
2024-07-24 09:14:20 +02:00
Freek van de Ven
3e2cc1d9f5
feat: add exception for template apply errors in data-interface
2024-07-24 09:14:20 +02:00
Freek van de Ven
9dcb3950df
feat: apply template instead of creating base availabilities
2024-07-23 11:05:24 +02:00
c8348be746
feat: add error builder to options
...
This is done to allow for the user of this package to define custom error handling
2024-07-22 16:04:23 +02:00
2b931db798
docs: add docs to borderradius getter in options
2024-07-22 16:04:23 +02:00
Freek van de Ven
53fb9a2e2c
feat: add method for applying a template in the availability viewmodel
...
This code determines if a selected range of availabilities has the same start and end times and looks at the breaks.
2024-07-22 14:06:54 +02:00
Freek van de Ven
e1dd2a3520
fix: compare only dates of availabilities for selected range
2024-07-22 14:06:54 +02:00
Freek van de Ven
5931b4c29a
fix: revert calendar UI changes from bad rebase
2024-07-22 14:06:54 +02:00