Web Balance Report
This is a preview for a new feature of hledger-web. It adds serving balance reports from hledger-web.
So far there remain some issues:
- I generate HTML with Lucid and then convert to Blaze. Instead I will add a new spreadsheet export backend Write.Html.Blaze. We can later discuss whether we want to keep Lucid, at all.
- Balance reports are currently integrated in the
defaultLayout, which means there is always the sidebar. Do we want that? Of course, the user can hide the sidebar withskey. However, I found the query field useful in conjunction with the balance reports. - Links to the balance report are only integrated in the Journal view for now. I could also move them to the query field component. Or above the Journal link in the sidebar.
- In a further commit I want to add radio buttons for the Layout type, maybe also the format type (TXT, CSV, FODS, HTML), maybe turn the period selection into a radio button, as well.
- The sidebar link to
Journaldoes not maintain the current query. In the past I did it this way in order to have quick way out of restrictions posed by queries. However, all other accounts in the sidebar in the query and the hyperlinks behind dates in transactions in theRegisterpage also maintain the query. Since I currently have the links to balance reports on the Journal page it would be nice if the top Journal link in the sidebar would also contain the query.
I played around with this. Exciting to see changes in hledger-web, and especially multi-period reports!
This one seems to be a balance changes report, like the balance command's default mode.
With hledger-web I have always been aiming for an easy UI useful to non technical users, that's simple enough to maintain and keep robust. It doesn't look like much but it has had a lot of rough edges smoothed off (some remain..).
It has also probably grown quite a bit of tech debt, and may be hard to extend in big ways without some reorg or even a fresh approach. I haven't focussed on it in some time though.
I am wondering about having an experimental mode, so that we could try out new stuff more freely without creating churn for regular users. Or even a separate binary, hledger-web-x, if needed.
PS shall we change this PR's status to draft.
Yes, I think draft is the right status. However, it seems I cannot change the status myself.
Hi @thielema, any new thoughts on this PR ? Are you using it ?