-
Notifications
You must be signed in to change notification settings - Fork 13
Bookkeeper Dashboard #75
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
base: Release-0.0.7
Are you sure you want to change the base?
Conversation
5f2b6b2
to
645e506
Compare
c859aee
to
e04fa20
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 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.
Long running mainnet nodes will have a lot of data, so it is best to go with Monthly as a default to cut loading times.
Uses react-datepicker. Show "No data" text if no data found for balance sheet.
Format sats and balance. Dark mode support for SatsFlow and Volume.
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
f8dc8a7
to
2c975d4
Compare
This adds 4 new features:
bookkeeper/balancesheet
bookkeeper/satsflow
bookkeeper/volume
bookkeeper/terminal
and a /bookkeeper landing page