Skip to content

Commit 02f0823

Browse files
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

File tree

split-the-bill-fairly.docs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Split a shared bill by adding the people involved, entering each bill item with its price, and selecting who shared each item. The tool calculates every person's total by splitting each item evenly among only the selected people, while showing any unassigned amount when an item has nobody selected.

0 commit comments

Comments
 (0)