Statistics&Achievment: Refactor&Fixup, Audio API#11
Merged
Conversation
Now client send server id, Task state after all tasks operations works Optimize imports
Add StatisticsCalculator class, which support update typesInDay, continues Current/Success days in statistics Rename notification lib to work
Add test for Achievement Refactor: Add AchievementType enum which provide data to AchievementCard
Move statistics state classes to state directory Add CalculatorTests for just Calculator& Calculator inside VM Refactor VM's BeforeAll/After methods
Add Reminders change after edit/delete/patch task Recieve registerDay from server in statsVM init, send when register(for stats.averageVars)
Create AudioRepo, Interface&ChatResponse to recieve tasks for audio from server Add StatisticsStore-singlton class for statistics data Try send audio to server through worker Look at next commit why it will not work in our app
Add mutable uiState in StaticticsVM which update from StatsStore Send audio to server in AudioRepository instead async with worker(MVVM architecture need Database to move changes to VM). OpenAI API don't work Add percent test, fixup TotalTaskTypes
Recieve date from server and if it not today recalc week and today stats. Remove debug info button&token from AuthScreen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Move data and logic from StatisticsVM to StatsStore
StatisticsVM uses mutableUiState updated from StatsStore.
Add Achievment Tests, create AchievmentType enum-data for each Achievment
Fixup TotalTaskTypes percentage, mutable states in Achievment&StatisticsScreen
Add AudioRepository for send audio to server.(currently server recieve it, send to openAI & response 400)