Add live openings-count pill to the Careers footer link - #7
Merged
Merged
Conversation
The footer's Careers entry now shows a small pine-tinted pill with the number of open roles, sourced from the same Work at a Startup feed the /careers job board renders so the badge cannot drift from the listings. The count is fetched server-side in BaseLayout (4s timeout) and baked into the HTML, so the pill renders without depending on the visitor's browser reaching workatastartup.com (commonly blocked by content blockers). The Footer then refreshes it client-side to keep statically-built pages current; any failure degrades to no pill. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
🚅 Deployed to the website-pr-7 environment in rivet-website
|
railway-app
Bot
temporarily deployed
to
rivet-website / website-pr-7
August 18, 2026 19:39
Destroyed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/careersjob board renders, so the badge cannot drift from the listingssrc/lib/careers.tsis the single source for the feed URL + count fetch, shared by server and clientWhy server-side
The count is fetched in
BaseLayoutat render time (4s timeout) and baked into the HTML, so the pill does not depend on the visitor's browser reachingworkatastartup.com— a domain commonly blocked by content blockers. The Footer refreshes it client-side to keep statically-built pages current. Any failure (timeout, blocked, bad shape) degrades to rendering no pill.Test plan
aria-label="2 open positions") with no JSworkatastartup.comrequests blocked in the browser🤖 Generated with Claude Code