spiral-project / ihatemoney

A simple shared budget manager web application
https://ihatemoney.org
Other
1.2k stars 270 forks source link

feat(tags): Add tags on bills (WIP) #1313

Open almet opened 6 months ago

almet commented 6 months ago

Tags can now be added in the description of a bill, using a hashtag symbol (#tagname).

There is no way to "manage" the tags, for simplicity, they are part of the "what" field, and are parsed via a regular expression.

Statistics have been updated to include tags per month. Under the hood, a new tag table has been added.


Todolist:

almet commented 6 months ago

A few remarks:

almet commented 5 months ago

This now works properly. Tags are displayed on the main bill list, and monthly statistics have been updated.

Here are a few screen captures:

image image image
Glandos commented 5 months ago

My little experience on UI told me that we could have a little bit of CSS to show that it's a tag, e.g. using a rounded border and colored background. Like from Material design: image

zorun commented 2 months ago

Nice work! I remember trying to convince you a few months ago that tags were more useful than simple categories, happy to see the result ;)

I haven't looked at the code, but I have a few questions UX-wise:

The statistics page is complex, we would like to show stats per month and per tag, but this is really a lot of data. Maybe something dynamic with javascript? I imagine showing just one amount per month, and then being able to click on tags to enable/disable them individually, and that would update the amount display per month.

Another nice visualisation for stats would be a breakdown: 20% of expenses for food, 10% for transport... Of course the total can be more than 100% if some bills have several tags, so I'm not sure how to present that meaningfully. We would need some user stories to guide the UX.