Improve grouping in list of expenses
Firstly, I think adding a "Today" and "Yesterday" category would be useful to have more separation between just-made expenses and past ones.
Additionally, dayjs uses the locale en, where the week starts on Sunday. This may be useful in some countries, but not everywhere. Dayjs doesn't seem to support many locales, having no en-[country] locale for any country in mainland Europe. This is why I think it's best to simplify the grouping to just be by the last 7, 31, 365 days and older and get rid of dayjs (it is only used for the expense and activity list).
The current situation could also lead to timelines looking like this, where "Earlier this month" has no meaning since there is nothing before it:
Proposal of categories:
- Upcoming
- Today
- Yesterday
- This week (last 7 days)
- This month (last 31 days)
- This year (last 365 days)
- Older
The code should group the expense in the first matching category, so "This week" is not used if all expenses this week fall under "Today" and "Yesterday"