View Code? Open in Web Editor
NEW
Home Page: arbeitszeit.vercel.app
HTML 1.39%
TypeScript 97.59%
JavaScript 0.54%
SCSS 0.48%
arbeitszeit's Introduction
a passionate Software Developer from Germany
arbeitszeit's People
Contributors
Stargazers
Watchers
arbeitszeit's Issues
Because DailyComponent only has todays timesheets and since today none is active doesn't display the current time
possible solution: find the last active timesheets and get all timesheets for that day
Revalidation of cache after logout / re-login should be done using https://redux-toolkit.js.org/rtk-query/usage/automated-refetching. The current problem is with that approach the following happens
- mutation login triggered
- cache invalidated
- url updated
So when the revalidation happens the new url isn't in the store yet
TODO: find some way to update the state after a mutation before revalidation happens
Remove custom invalidation from loginMiddleware.ts
Currently ISO8601 dates from the backend are parsed as PlainDateTime in the Gregorian Calendar.
It should be checked wether PlainDateTime or ZonedDateTime is more appropriate and support for different Calendars should be added
- include break times in end calculation
- make daily working time configurable
Aggregated stats like average work time per day, average start / end time, average overtime per day etc