-
Notifications
You must be signed in to change notification settings - Fork 76
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
Refactoring recurring transactions #167
Conversation
I can help with the frontend changes. |
@K-w-e Thank you, it would be great! |
…xtstyles fix deprecated textstyles in collaborators page
I opened this for review. Reporting below the updated first comment:
|
This aims to address #144. I focused on Backend operations only.
Removed recurring_transaction_amount model, and added recurring_transaction.
Now we've a table that list recurring transactions. When the app is opened, not more than once a day thanks to shared preferences, system will check if a transaction (or more) is needed, and adds them to the transaction table, based on their recurrency type.
Also changed the behavior of "clear db" button on settings: now it re-generates all tables. This is useful when we edit models: there will no more need to delete database from OS.
To check this PR, just chekout, run, press "reset DB" and fill with demo data.
I'm leaving this in draft for now: i need to go deeper on some behaviors, update tests, and remove some dev debug code.
Meanwhile feel free to share your opinions if you want.
Also if anyone wants to help with frontend, which I am not very familiar with, it would help.
EDIT: I'm opening this PR for review. We've also covered the front-end stuff with the help of @K-w-e.
Now when an user edits or creates a transaction, all pages will prevent or require the user to change recurrence data, based on the logic we defined.
Also: bumped the version of flutter_local_notifications, and -as per our last meeting- fixed the version of Flutter SDK to 3.24.3