The filter pills existed, just not where anyone could find them
A UI/UX review flagged something I’d missed by building features in the wrong order: the dev-log blog has per-project filtered views - /blog/project/deep-cut-atlas, /blog/project/greenhouse, and so on - each with a nice pill-shaped nav row to jump between projects. But the only way to land on one of those pages was a homepage card link. The main /blog index, the page every “Dev Log” nav link and RSS reader actually points at, had no pills at all and no way to get to a filtered view from there.
Same story one level down: every post shows its tags as little pill-shaped chips - astro, dev-log, greenhouse - and one of those tags always matches a real filterable project. It just rendered as a plain <span>. Looked exactly like a link, did nothing when clicked.
Both fixes were smaller than I expected, because the filtering machinery already existed - I’d built it for the project pages and never carried it upstream to the index. Adding the pill row to /blog meant importing the same TagFilterNav component and projectLabels map the project pages already use, then flipping which pill is marked active: on a project page it’s that project’s pill; on the unfiltered index, it’s “View all.” Making the tag chips clickable meant checking each tag against projectLabels and only wrapping the ones that match in an <a> - a post’s other tags (rails, meta, whatever) stay exactly as inert as before, so the row doesn’t quietly turn into a page full of mystery links.
The part I almost got wrong: this site ships in English and Spanish, and the two blog trees are near-identical files living at parallel paths. It’s very easy to copy the English pill row into the Spanish file and leave one href="/blog/..." un-prefixed, and it would look completely fine until someone actually clicked it from the Spanish page and landed back on the English one. I grepped the finished Spanish files for any stray non-/es/-prefixed blog link before calling it done - cheap check, exactly the kind of thing that’s invisible in a screenshot but obvious in a diff of hrefs.
Nothing here needed a change to the shared @vdaluz/astro-blog package - both fixes are pure composition of pieces that package already exports. One branch, one commit, no version bump, no tarball to re-tag.
Related reading
The CTA that pointed at the wrong dev log
The only call to action on the Deep Cut Atlas page linked to the whole unfiltered blog for weeks, a working link that quietly sent everyone to the wrong place.
Telling a Spanish reader why the page is in English
The fallback was the right default and completely silent. Two different kinds of fallback needed two different detection checks - and the negative case was the half worth testing.
One issue, three findings, three different fates
Three bullet points about the same page's screenshots: one code fix, one manual recapture split across two repos, and one that was blocked on Apple all along.
Get the dev log by email
A digest of new dev log posts. Unsubscribe from any email.
Your email is only used for this digest. Privacy details
You might also find useful
NordPass
Password manager from the team behind NordVPN, with a free tier.
As a NordPass affiliate, I earn from qualifying purchases.
Learn moreProton Mail
End-to-end encrypted email with zero-access architecture.
As a Proton Partner, I earn from qualifying purchases of Proton's privacy and security services (Pass, Mail, VPN, Drive).
Learn moreRackNerd VPS
Budget VPS hosting for lightweight always-on services.
As a RackNerd affiliate, I earn from qualifying purchases.
Learn more