Period totals footer, category reorder, mobile fixes, PWA with update prompt

This commit is contained in:
2026-09-19 00:29:43 +00:00
parent e800ab82ff
commit 9e543bec1a
15 changed files with 339 additions and 44 deletions

View File

@@ -20,11 +20,12 @@ To use another port: `PORT=8080 python3 server.py`.
## Features
- **Sidebar views** — Daily, Weekly, Monthly and All expenses with live counts, each group with its own total.
- **Categories** — Food, Transport, Household, Utilities, Shopping, Health, Beauty, Entertainment, Other.
- **Categories** — Food, Transport, Household, Utilities, Shopping, Health, Beauty, Entertainment, Other. Drag them up or down to rearrange; the order is remembered.
- **Period totals** — the sidebar footer shows total spending for today, this week or this month at a tap.
- **Repeats** — mark an expense Daily, Weekly or Monthly. Repeating entries appear under “Repeating expenses” with the next due date and a one-click **Log next occurrence** button.
- **Summary** — totals plus a per-category spending breakdown for whatever is shown.
- **INR amounts** — everything is shown in rupees (₹) with Indian digit grouping.
- **Search and filters** — by text, category and repeat type.
- **Search and filters** — by text and category.
- **Edit / delete** — every entry can be changed or removed.
- **Sample data** — realistic entries are loaded on first run so each view has content. Use **Clear all** to start empty and **Load sample data** to add them back.
@@ -38,6 +39,11 @@ Cloudflare caches `app.js`/`styles.css` at the edge, so every deploy that
changes them must bump the `?v=` query in `index.html` or visitors keep
getting the old files until the edge entry expires.
The app is also a PWA: `sw.js` caches the shell for offline use and shows an
"Update to latest version" button when a deploy ships. Every deploy that
changes the app must bump the `CACHE` name in `sw.js` (`tally-v3`, `tally-v4`,
…) or installed clients never see the update.
## Files
- `index.html` — page structure