feat(splits): add split expenses for shared group costs

Track expenses shared with other people (trips, flats, dinners) and settle
up with the fewest payments.

- Events with WYGIWYH users and people without an account, who join through
  a share link and pick a password on first sign-in
- Equal, exact, percentage and share-weight splits that always add up
- Balances, a minimal settle-up plan and an activity feed showing what each
  item means for you
- Link items to your own transactions; recording a payment marks planned
  ones as paid
- Share menu: printable PDF report and PNG images of the summary, settle-up
  and balances (adds modern-screenshot)
- Only the two people involved or the organizer can record a payment;
  members can leave events they don't organize
This commit is contained in:
Herculino Trotta committed 2026-11-20 19:43:23 -03:00
1 parent f558d52ac6
commit 77bf2d7bdb
47 files changed
+5612

No files matched your search

+7
View File
@@ -30,6 +30,7 @@
"htmx.org": "^2.0.10",
"hyperscript.org": "^0.9.91",
"mathjs": "^15.2.0",
"modern-screenshot": "^4.7.0",
"postcss": "^8.5.26",
"pulltorefreshjs": "^0.1.22",
"sass": "^1.100.0",
@@ -1812,6 +1813,12 @@
"node": ">= 18"
}
},
"node_modules/modern-screenshot": {
"version": "4.7.0",
"resolved": "https://registry.npmjs.org/modern-screenshot/-/modern-screenshot-4.7.0.tgz",
"integrity": "sha512-9YxN+ddPSMMlhylOv25VHzXrl9u67QRxoh7+SEewGtgUw7t6hHTrjptSDJUSne9oG4Xk/h2cwG15nIt4Hc9ujg==",
"license": "MIT"
},
"node_modules/nanoid": {
"version": "3.3.20",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz",
+1
View File
@@ -37,6 +37,7 @@
"htmx.org": "^2.0.10",
"hyperscript.org": "^0.9.91",
"mathjs": "^15.2.0",
"modern-screenshot": "^4.7.0",
"postcss": "^8.5.26",
"pulltorefreshjs": "^0.1.22",
"sass": "^1.100.0",
+4
View File
@@ -0,0 +1,4 @@
// html2canvas can't parse daisyUI 5's oklch() colors; this renders through the browser instead
import {domToBlob} from 'modern-screenshot';
window.domToBlob = domToBlob;
+1
View File
@@ -12,3 +12,4 @@ import './js/style.js';
import './js/_utils.js';
import './js/hide_amounts.js';
import './js/pulltorefresh.js';
import './js/screenshot.js';