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
67842ed2f5
feat: improve data interface API to be more consistent
2024-07-22 10:05:57 +02:00
Freek van de Ven
134f827f3a
fix: allow clearing the duration from the pause dialog
2024-07-19 11:15:58 +02:00
Freek van de Ven
020d7a71f8
fix: handle nullable duration for breaks and correctly update breaks
2024-07-19 11:15:58 +02:00
Freek van de Ven
5b98ae487b
fix: save selected template id with created availabilities
2024-07-19 11:15:58 +02:00
Freek van de Ven
57e8716913
fix: add userid to created availabilities
2024-07-19 11:15:58 +02:00
Freek van de Ven
498e51cfc0
fix: preserve userid when switching to template viewmodels
2024-07-19 11:15:58 +02:00
c7c985be00
feat: refactor getStartTimeForDayOfWeek and EndTime to use polymorphism to simplify the code
2024-07-19 11:04:11 +02:00
cdaca15901
fix: extract deeply nested widgets
2024-07-19 11:04:11 +02:00
9efbcbf48b
fix: reduce complicated ternary operators to simpler conditional statements
2024-07-19 11:04:11 +02:00
7b54809f6e
fix: handle snapshot logic in the state rather than in the layout on the template overview screen
2024-07-19 11:04:11 +02:00
226c90943a
fix: simplify DefaultConfirmationDialog usage by handling the possible null value internally
2024-07-19 11:04:11 +02:00
bb337a4084
remove separate logic from layout comment
2024-07-19 11:04:11 +02:00
1d65ac5096
fix: don't use initState when the variable can be instatiated through the class definition instead
2024-07-19 11:04:11 +02:00
f5962acf7a
fix: get BorderRadius from a common variable rather than redefining it everywhere
2024-07-19 11:04:11 +02:00
a9f744d626
fix: use a BasePage to reduce code duplication in comparable layouts
2024-07-19 11:04:11 +02:00
d765a7a0f8
fix: throw dedicated exceptions rather than generic ones
2024-07-19 11:04:11 +02:00
1e33d2b7cb
fix: use DateTime(day + 1) rather than duration for adding and substracting days
2024-07-19 11:04:11 +02:00
9a524184f1
fix: change default layout builder to be a widget
2024-07-19 11:04:11 +02:00
Freek van de Ven
62a130e3d6
feat: change calendar cell rendering with new design
2024-07-19 08:11:38 +02:00
Freek van de Ven
70f8ac1db0
fix: export the flutter_availability_data_interface from the userstory
...
This makes it easier to use the userstory when you need to create your own datainterface implementation
2024-07-17 13:33:51 +02:00