Skip to content

click indicators on non-transactions to toggle metadata - #1965

Closed
marvhen wants to merge 3 commits into
beancount:mainfrom
marvhen:ToggleBalanceMetadata
Closed

marvhen wants to merge 3 commits into
beancount:mainfrom
marvhen:ToggleBalanceMetadata

Conversation

@marvhen

@marvhen marvhen commented Feb 18, 2025

Copy link
Copy Markdown

Hello fava team,

I tried my hand at hacking a bit and got some desired functionality working pretty good I'd say. Let me know what you think. I ran make test and make lint and I think both passed but make lint ended with his and I'm not sure what the Error 1 refers to:

...

stylelint................................................................Passed
eslint...................................................................Passed
make: *** [Makefile:45: lint] Error 1
(fava) PS C:\git\fava>

Anyhow, this change simply makes it possible to expand the non-transaction rows in the journal that have meta-data, as I understand that is supported for almost all directives I believe. I'm handling it for balance, note, open, and custom entries. For custom, it only worked in the case of budget...I think because metadata elements aren't created otherwise. Also, I think I had trouble getting it to work for pad. Anyway, I'm not necessarily looking for this to be pulled into main as much as I'm trying to get a little experience with the code base and ask for some feedback.

Thanks!

@marvhen marvhen changed the title implement clicking indicators on non-transaction entry types to toggl… click indicators on non-transactions to toggle metadata Feb 18, 2025
Comment thread frontend/src/journal/index.ts Resolved
@marvhen

marvhen commented Feb 18, 2025

Copy link
Copy Markdown
Author

Also, one of the things I am wondering is if this type of functionality could possibly be done with a plugin instead? Any tips on that would be much appreciated!

@yagebu

yagebu commented Feb 27, 2025

Copy link
Copy Markdown
Member

Thanks for the PR, I like it :) However, I've implemented it in a slightly different way, see #1967

@yagebu yagebu closed this Feb 27, 2025
@marvhen
marvhen deleted the ToggleBalanceMetadata branch August 20, 2025 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants