Skip to content

0.9.0: an unpaid role can say so - #41

Merged
ralyodio merged 1 commit into
masterfrom
unpaid-roles
Sep 9, 2026
Merged

0.9.0: an unpaid role can say so#41
ralyodio merged 1 commit into
masterfrom
unpaid-roles

Conversation

@ralyodio

@ralyodio ralyodio commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

There was no way to post an unpaid internship.

Leaving the salary range empty already meant "the employer did not fill this in", so an honest unpaid listing was indistinguishable from a careless one. Putting 0 in the range was worse: it sorts and filters as a paid job worth nothing.

salary.unpaid is a boolean for that reason. When it is set the range stays null, so every salary filter and the salary sort keep excluding these listings with no special case anywhere, and the page prints Unpaid instead of nothing.

Unpaid wins over any number that arrives with it. A form can post a stale range alongside a ticked box, and "unpaid, $40k - $60k a year" is not a listing anybody can act on.

Every surface that can post

Surface How
/post a checkbox in the Pay fieldset
REST salaryUnpaid: true
CLI --salary-unpaid
Job file front matter salary_unpaid: true (already camel-cased its way through)

schema.org has no vocabulary for unpaid work, so baseSalary is simply absent, which is what it already did for a null range. docs/openjob.md says so.

Testing

173 pass. Six new: that "not stated" and "unpaid" format differently, that unpaid clears a range posted alongside it, that a checkbox "on" and an API true land in the same column, that an absent checkbox reads as false rather than as unchanged, that the form renders the control and returns it still ticked on a rejected submit, and an end-to-end one against a real Postgres that posts an unpaid listing, reads it back through the read path, and confirms it does not match ?salaryMin=1.

🤖 Generated with Claude Code

There was no way to post an unpaid internship. Leaving the salary range
empty already meant "the employer did not fill this in", so an honest
unpaid listing was indistinguishable from a careless one, and putting 0
in the range made it sort and filter as a paid job worth nothing.

salary.unpaid is a boolean for exactly that reason. When it is set the
range stays null, so every salary filter and the salary sort keep
excluding these listings with no special case anywhere, and the page
prints "Unpaid" instead of nothing.

Unpaid wins over any number that arrives with it. A form can post a
stale range alongside a ticked box, and "unpaid, $40k - $60k a year" is
not a listing anybody can act on.

Reachable from every surface that can post: a checkbox on /post, the
salaryUnpaid field on the API, --salary-unpaid on the CLI, and
salary_unpaid in job file front matter, which already camel-cased its
way through. schema.org has no vocabulary for unpaid work, so baseSalary
is simply absent, which is what it already did for a null range.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015xXMzJf85q87oeG3VEKHdJ
@ralyodio
ralyodio merged commit f2d36f6 into master Sep 9, 2026
4 checks passed
@ralyodio
ralyodio deleted the unpaid-roles branch September 9, 2026 12:04
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.

1 participant