Commit graph

145 commits

Author SHA1 Message Date
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
Freek van de Ven
313a402409 fix: use template viewmodels for the UI state 2024-07-17 11:42:44 +02:00
Freek van de Ven
fd81964b75 feat: add week template modification screen 2024-07-17 11:42:44 +02:00
Freek van de Ven
c7ea82677c feat: add week template overview 2024-07-17 11:42:44 +02:00
Freek van de Ven
5b54111850 feat: add week template day selector 2024-07-17 11:42:44 +02:00
Freek van de Ven
92703d536d feat: add combined template time/break section 2024-07-17 11:42:44 +02:00
Freek van de Ven
bb7ee1c5b0 feat: change pause dialog text for templates 2024-07-17 11:42:44 +02:00
Freek van de Ven
841bdfbee9 fix: allow the entire template card to route to edit page 2024-07-17 11:42:44 +02:00
3238fc2c4a chore: apply code review comments 2024-07-15 15:35:07 +02:00
Freek van de Ven
bc32462c16 feat: add template deviation marking on availability overview 2024-07-15 09:31:25 +02:00
Freek van de Ven
04b843d2fd feat: add template selection for creating availabilities 2024-07-15 09:31:25 +02:00
Freek van de Ven
fe910ef041 feat: add a builder for around the bigtextbutton
This allows apps to use a custom decoration around that element, for instance a dotted border.
2024-07-15 09:31:25 +02:00
Freek van de Ven
1b8aa07874 fix: add correct spacing around calendar day header 2024-07-15 09:31:25 +02:00
Freek van de Ven
440b1e7caa feat: add confirmation dialog for saving availabilities 2024-07-15 09:31:25 +02:00
Freek van de Ven
01e1794754 chore: rename screens and filenames to reflect the screen better 2024-07-15 09:31:25 +02:00
Freek van de Ven
244df8ea1f feat: split the textButtonBuilder into a big and small variant 2024-07-15 09:31:25 +02:00
Bart Ribbers
625e38fd47 chore: ready the package for deployment to the pub server 2024-07-12 14:51:12 +02:00
Freek van de Ven
5bfac2f4e3 feat: add button for clearing selected availabilities on availability overview 2024-07-11 09:39:36 +02:00