Commit 02f0823
committed
Add fair bill splitting tool
Create a standalone Split the Bill Fairly page following the shared tools template and styling conventions. The page is organized into the requested three-card workflow: one card for managing the people involved, one card for entering bill items, and one card for the live per-person totals.
People can be added one at a time and are rendered as removable pills. Removing a person also removes that person from every existing bill item so the item assignments and totals stay consistent.
Each bill item stores an editable name and price, renders participant toggles for every current person, and shows the current per-person share for that item. Newly added items default to all current people selected, while individual participants can be added to or removed from an item with a single click.
Totals are recalculated from the item assignments by splitting each assigned item evenly across the selected people. Items with nobody selected are excluded from per-person totals and called out as unassigned so the visible bill total and distributed total remain understandable.
Add the matching docs markdown file so the tool has a searchable description in the repository metadata after the normal post-commit generation flow.
Verification: node --check on the extracted inline script; git diff --check.1 parent 055ec28 commit 02f0823
2 files changed
Lines changed: 572 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments