-
Notifications
You must be signed in to change notification settings - Fork 9
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
Bookkeeper Dashboard #75
base: Release-0.0.7
Are you sure you want to change the base?
Conversation
5f2b6b2
to
645e506
Compare
This commit uses the `sql` rpc command to fetch the data for the Balance Sheet. getBalanceSheet() was added to use-http.ts as a standalone function instead of getting it via AppContext so that we can pass parameters more easily to it. TimeGranularity represents the way we should group the data e.g. Monthly, Weekly, Daily. The sql needs to be transformed for the balance sheet, this was done in a new file bookkeeper-transform.ts since it takes some effort. Future transform functions such as for Sats Flow would go in this file. transformToBalanceSheet() is complex because we are limited in what methods we can use in the `sql` rpc call, so I need to do things like grouping and aggregation of credits - debits.
…ont want sendRequest()'s in the dependency array
Refactor getPeriodKey to reusable function.
Draw net inflow line properly Refactor calculations
Fix dark mode selected color in datepicker. move lint suppress to proper line
Suppress formatBalance dependency array warning since it is unchanging.
Memoize formatBalance()
Add info to satsflow tooltip
format sats flow info
c859aee
to
e04fa20
Compare
…ation into evansmj/sats-flow
6dccc9c
to
094e7e8
Compare
9337d77
to
f8dc8a7
Compare
Wow! Very impressive PR, thanks for putting this together @evansmj! Just some quick comments and ideas for future improvement:
Anyway this PR is already super useful, @ShahanaFarooqui what needs to happen to get this merged? :) |
Apologies for not having reviewed it yet. I was hoping to have done so by now, but I got caught up fixing CI issues caused by updates to Poetry and Ubuntu on GitHub Actions. Hopefully, I will be able to review it by the end of this week. |
Hey @ShahanaFarooqui, I noticed the apps/frontend/build folder has been previously committed to the repo. Is this on purpose? This means that if someone runs |
Thanks @chrisguida I added your suggestions as issues here and will get to them in a later update. Regarding the csv dump, for v2 I am planning to add functionality for the remaining bookkeeper commands: |
This adds 4 new features:
bookkeeper/balancesheet
bookkeeper/satsflow
bookkeeper/volume
bookkeeper/terminal
and a /bookkeeper landing page