Skip to content

Accept ordinary money amounts and monthly expenses in the wizard - #52

Merged
MaxGhenis merged 3 commits into
mainfrom
fix/cliffwatch-currency-entry
Nov 20, 2026
Merged

MaxGhenis merged 3 commits into
mainfrom
fix/cliffwatch-currency-entry

Conversation

@MaxGhenis

Copy link
Copy Markdown
Contributor

A household with $10,800 in annual rent could open a shared link, change an input and click Find cliffs without a response. The browser rejected the rent because the money field required increments of $500. Accept arbitrary dollar and cent amounts and open Advanced inputs when a hidden field fails validation.

Households can choose monthly or annual entry for budget costs. Switching the display period keeps the original annual amount. Editing a monthly amount changes the annual input to twelve times that amount. Assets keep dollar units and existing links still use annual amounts. New links preserve cents.

The frontend suite passed 114 tests and skipped four opt-in live tests. The three form regressions also passed against production React in jsdom. The closed-panel $10,800 regression fails on main.

Fixes #44. Addresses #33 for budget costs.

@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cliff-watch Ready Ready Preview Nov 20, 2026 6:39pm UTC

Request Review

@MaxGhenis

Copy link
Copy Markdown
Contributor Author

The first independent review approved the change but raised two P2 findings. I followed the findings and fixed currency editing and form-level coverage. The second review at 542af2d found no P0 or P1 issues. The follow-up commit c8923b4 tests invalid rent through a switch to monthly entry and a subsequent correction.

All 122 local frontend tests passed. I verified typed decimals in Chromium, Firefox and WebKit. Pressing Enter in Chromium submitted 12.5 annually and converted 12.345 monthly to 148.14 annually while the input still had focus. Firefox and WebKit checks · Remaining display suggestions

@MaxGhenis
MaxGhenis merged commit e813a3b into main Nov 20, 2026
5 checks passed
@MaxGhenis
MaxGhenis deleted the fix/cliffwatch-currency-entry branch November 20, 2026 18:54

This branch was successfully deployed

1 active deployment
Preview — c8923b45 Deployed Nov 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Money fields reject amounts that aren't multiples of $500, so Find cliffs silently does nothing

1 participant