Skip to content

Count only priced lines in short pay badges - #110

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
yqz314159265-cyber:fix-pay-short-visible-lines-20260914
Sep 14, 2026
Merged

ralyodio merged 1 commit into
profullstack:masterfrom
yqz314159265-cyber:fix-pay-short-visible-lines-20260914

Conversation

@yqz314159265-cyber

Copy link
Copy Markdown
Contributor

A normalized pay array can contain a line with no amount. With an empty hourly line and a $100 fixed fee, formatPayShort displayed $100 fixed +1 even though the full pay text contained only $100 fixed.

Count the same priced lines used to choose the first badge entry. Regression coverage includes empty lines before, between and after priced entries, a zero-dollar amount, and an entirely unpriced array.

Validation on Node 24.20.0: npm run build and node --test "test/pay*.test.ts" test/salary-search.test.ts test/views.test.ts (45 passed, none skipped). The two new regression tests failed before the fix. This is an AI-assisted contribution; no database integration or full-suite result is claimed.

@ralyodio
ralyodio merged commit d61fc5b into profullstack:master Sep 14, 2026
4 checks passed
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.

2 participants