RIP-Comm / sossoldi

"Sossoldi" is a wealth management / personal finance / Net Worth tracking app, made with Flutter.
MIT License
270 stars 74 forks source link

Adding transactions to account page #152

Closed jackrua closed 7 months ago

jackrua commented 7 months ago

(Addressing issue #149)

Disclaimer:

You may notice more changes in files than there are actually, since I just noticed that my Editor automatically formats code so in some cases lines are just reformatted and nothing is really changed. Hence, I will try to be specific on the main changes I made to the code. However if you feel like this is an issue I can close this PR and open a new one.

Overview:

To address this issue, we need to work with both the frontend of the app (i.e. find the correct widget to represent the transactions) and its backend (i.e. retrieve from the database the transactions from a specific bank account and define the providers that the widget can watch). So, moving from bottom to top of the stack, what I did was:

mikev-cw commented 7 months ago

Very nice! Just one question about this:

Note: Here I hardcoded that the widget will retrieve just the last 50 transactions (due to efficiency reasons). This is ugly, I admit, but for the time being it should be ok.

Since the graph is showing current month, it would make sense show all transactions of that month, so only those that contributes to the graph data? I think it would be more "logical", but if you agree with this, we could handle it on another PR, and merge this meanwhile.

theperu commented 7 months ago

@mikev-cw I would merge this as is for now, I think it makes sense in this moment to just keep it simple and then we can think about adding filters and so on when we will be ready

mikev-cw commented 7 months ago

@theperu Ok! Let's merge therefore!