Skip to content

fix: treat a check range with only a minimum as open above - #79

Open
VolodymyrLinuxovich wants to merge 1 commit into
mainfrom
fix/people-check-size-open-max
Open

VolodymyrLinuxovich wants to merge 1 commit into
mainfrom
fix/people-check-size-open-max

Conversation

@VolodymyrLinuxovich

Copy link
Copy Markdown
Owner

Fixes #78

Summary

checkSizeScore now leaves a range open above when it has only a minimum. Before it used the minimum as the maximum. So "checks over $1M" scored an investor who writes 2000000 to 5000000 as a mismatch. That investor now scores 100. An investor below the minimum still scores 10. This matches the hard filter in search.ts. It already reads a minimum as a lower bound.

Validation

  • New test in people-discovery.test.ts. It fails on main.
  • npm test passes.
  • npm run typecheck and lint pass.

checkSizeScore used the minimum as the maximum when no maximum was set, so "checks over $1M" scored an investor writing $2M to $5M as a mismatch. A minimum alone now leaves the range open above, as a maximum alone already leaves it open below.

Fixes #78
@vercel

vercel Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
largevcmodel Ready Ready Preview Oct 16, 2026 5:13am UTC

This branch was successfully deployed

1 active deployment
Preview — 28b65197 Deployed Oct 16, 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.

People fit score treats a check range with only a minimum as one amount

1 participant