Skip to content

Add live openings-count pill to the Careers footer link - #7

Merged
NicholasKissel merged 1 commit into
mainfrom
NicholasKissel/footer-careers-openings-pill
Aug 18, 2026
Merged

Add live openings-count pill to the Careers footer link#7
NicholasKissel merged 1 commit into
mainfrom
NicholasKissel/footer-careers-openings-pill

Conversation

@NicholasKissel

Copy link
Copy Markdown
Member

Summary

  • The footer's Careers link now shows a small pine-tinted pill with the live number of open roles (currently 2)
  • Count comes from the same Work at a Startup feed the /careers job board renders, so the badge cannot drift from the listings
  • New src/lib/careers.ts is the single source for the feed URL + count fetch, shared by server and client

Why server-side

The count is fetched in BaseLayout at render time (4s timeout) and baked into the HTML, so the pill does not depend on the visitor's browser reaching workatastartup.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

  • Pill present in raw SSR HTML (aria-label="2 open positions") with no JS
  • Headless-Chromium check: pill renders next to Careers in the footer
  • Pill still renders with all workatastartup.com requests blocked in the browser
  • Pill hidden when the feed is unreachable server-side (null → no pill)

🤖 Generated with Claude Code

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>
@railway-app

railway-app Bot commented Aug 18, 2026

Copy link
Copy Markdown

🚅 Deployed to the website-pr-7 environment in rivet-website

Service Status Web Updated (UTC)
website 🕒 Building (View Logs) Web Aug 18, 2026 at 7:39 pm

@railway-app
railway-app Bot temporarily deployed to rivet-website / website-pr-7 August 18, 2026 19:39 Destroyed
@NicholasKissel
NicholasKissel merged commit 713490c into main Aug 18, 2026
2 of 3 checks passed
@NicholasKissel
NicholasKissel deleted the NicholasKissel/footer-careers-openings-pill branch August 18, 2026 19:39
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