-
Notifications
You must be signed in to change notification settings - Fork 13
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
New way of habit status computation #6
Commits on Dec 20, 2023
-
Rewrite logic of habit status computation
refactor routine to habit; use HabitStatus instead of HistoricalStatus and PlanningStatus; add additional statuses for clarity; rewrite logic of habit status computation so that both: historical and future statuses can be computed on the go instead of being cashed in the database, the only data that needs to be stored is number of times completed;
Daniel committedDec 20, 2023 Configuration menu - View commit details
-
Copy full SHA for 61698b6 - Browse repository at this point
Copy the full SHA 61698b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 944525c - Browse repository at this point
Copy the full SHA 944525cView commit details -
Configuration menu - View commit details
-
Copy full SHA for da46ad3 - Browse repository at this point
Copy the full SHA da46ad3View commit details
Commits on Dec 24, 2023
-
Finish HabitComputeStatusUseCase and thoroughly test it
Add the corresponding fakes and refactor some existing data sources
Daniel committedDec 24, 2023 Configuration menu - View commit details
-
Copy full SHA for 62d866d - Browse repository at this point
Copy the full SHA 62d866dView commit details -
Refactor Routine to Habit in database
Daniel committedDec 24, 2023 Configuration menu - View commit details
-
Copy full SHA for d0b9dc6 - Browse repository at this point
Copy the full SHA d0b9dc6View commit details
Commits on Dec 25, 2023
-
Configure data flow for habit status computation
Refactor Routine to Habit
Daniel committedDec 25, 2023 Configuration menu - View commit details
-
Copy full SHA for bcc6cc8 - Browse repository at this point
Copy the full SHA bcc6cc8View commit details -
Add insert/delete habit completion record functionality
Daniel committedDec 25, 2023 Configuration menu - View commit details
-
Copy full SHA for 79c2c13 - Browse repository at this point
Copy the full SHA 79c2c13View commit details
Commits on Dec 26, 2023
-
Update the UI for the insert/delete completion functionality
Refactor Routine to Habit along the way. The app currently works well, but the habit streak functionality is not working. It always displays zeros in the current/latest streak cards. Streak functionality is also required to determine the color of an ambiguous date in RoutineCalendar, such as one that is associated with NotDue or Skipped habit status. So these days are displayed with the green (completed) color at the moment. The is also a lot of minor improvements and fixes to be done including refactoring Routine to Habit in the scope of the whole project
Daniel committedDec 26, 2023 Configuration menu - View commit details
-
Copy full SHA for d21e76b - Browse repository at this point
Copy the full SHA d21e76bView commit details -
Merge remote-tracking branch 'origin/mvp' into mvp
Daniel committedDec 26, 2023 Configuration menu - View commit details
-
Copy full SHA for 412c73e - Browse repository at this point
Copy the full SHA 412c73eView commit details -
The detailed list of changes will be written upon the MVP release along with documenting the project, providing it's description in README.md, etc.
Daniel committedDec 26, 2023 Configuration menu - View commit details
-
Copy full SHA for 35d97ca - Browse repository at this point
Copy the full SHA 35d97caView commit details
Commits on Dec 31, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b107ab1 - Browse repository at this point
Copy the full SHA b107ab1View commit details
Commits on Jan 2, 2024
-
Fix bugs and improve performance
Increase the speed of habit statuses computation on RoutineCalendarScreen by computing each date in a separate coroutine Introduce pagination for RoutineCalendarScreen so that the status computation process is not visible to the user
Configuration menu - View commit details
-
Copy full SHA for e43c6ab - Browse repository at this point
Copy the full SHA e43c6abView commit details
Commits on Jan 5, 2024
-
Make RoutineCalendar data load faster
Improve RoutineCalendarViewModel's code Configure pagination for RoutineCalendar Move habit status computation off the main thread but only in RoutineCalendarViewModel (bad practice, should be fixed soon)
Configuration menu - View commit details
-
Copy full SHA for 4cebc17 - Browse repository at this point
Copy the full SHA 4cebc17View commit details
Commits on Jan 7, 2024
-
Keep Routine in all places where it represents an abstract term and may imply a simple task, for example.
Configuration menu - View commit details
-
Copy full SHA for 6a96719 - Browse repository at this point
Copy the full SHA 6a96719View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f84f06 - Browse repository at this point
Copy the full SHA 9f84f06View commit details
Commits on Jan 8, 2024
-
Speed up habit status computation
- Don't fetch data from repository in for loops in HabitComputeStatusUseCase. Instead, get lists of data only once and then operate on them. - Add new functionality to vacation data sources. - Optimize coroutines in RoutineCalendarViewModel. They now get cancelled when the data gets outdated. This way, we don't waste resources because the same month's data is not loaded simultaneously.
Configuration menu - View commit details
-
Copy full SHA for 61bbea5 - Browse repository at this point
Copy the full SHA 61bbea5View commit details
Commits on Jan 9, 2024
-
Make completing calendar dates much more responsive
Calendar dates have been loading rather slowly after a completion, especially when multiple dates were clicked at the same time. To sort out this issue, I changed the code to reload only the current month and delete all the others. Although with this approach, a visible delay in data load gets appeared upon scroll to another month, this issue is minuscule compared to the previous ones.
Configuration menu - View commit details
-
Copy full SHA for caf9412 - Browse repository at this point
Copy the full SHA caf9412View commit details -
- Switch to Dispatchers.Default in HabitComputeStatusUseCase instead of doing that in RoutineCalendarViewModel - Minor fix - classify already completed status to two status for future and past dates. That's necessary because the RoutineCalendar will display wrong colors for future dates otherwise - Don't provide Dispatchers.IO with Koin because it provides this dispatcher for all coroutine contexts, which is an undesired behaviour. Make it a default value for all existing local data sources instead.
Configuration menu - View commit details
-
Copy full SHA for 1f499f7 - Browse repository at this point
Copy the full SHA 1f499f7View commit details
Commits on Jan 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e5588d8 - Browse repository at this point
Copy the full SHA e5588d8View commit details -
to show routines only when they are loaded
Configuration menu - View commit details
-
Copy full SHA for fb72ffc - Browse repository at this point
Copy the full SHA fb72ffcView commit details -
Configuration menu - View commit details
-
Copy full SHA for f91ed7e - Browse repository at this point
Copy the full SHA f91ed7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ebff655 - Browse repository at this point
Copy the full SHA ebff655View commit details