Skip to content

Fix cookbook search to filter every card - #663

Merged
dprevoznik merged 2 commits into
mainfrom
hypeship/fix-cookbook-search
Oct 2, 2026
Merged

dprevoznik merged 2 commits into
mainfrom
hypeship/fix-cookbook-search

Conversation

@dprevoznik

@dprevoznik dprevoznik commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The search box on the cookbooks page only filtered cards whose link started with https://github.com/kernel/cookbooks/tree/main/. The other 11 cards link to internal guides, partner sites, or other repos, so they never hid. Searching for something that matches nothing still showed 11 cards and no "no cookbooks match" message.

This change:

  • filters every .card inside the page's .columns sections, whatever it links to
  • hides a section and its H2 heading when none of its cards match, so you don't get empty "Common patterns" / "Harnesses & models" headings

Testing

Ran mint dev locally and drove the page with headless Chromium:

query before (prod) after (local)
modal 13 cards 2 (Modal PR QA Agent, Modal Web Scraper)
captcha 11 cards 1 (Pausing for Captcha Solves)
vercel 13 cards 3
zzzz 11 cards, no empty message 0 cards, empty message, headings hidden
cleared 23 23

🤖 Generated with Claude Code


Note

Low Risk
Client-side DOM filtering only on the cookbooks page; no auth, data, or API changes.

Overview
Cookbook search no longer limits filtering to cards whose links point at the GitHub kernel/cookbooks tree. It now walks every .card under #content .columns, so internal guides and external links are included in match counts and visibility.

When a query hides every card in a section, that .columns block and its preceding H2 are hidden too, avoiding orphan section titles. The “no cookbooks match” state now reflects zero visible cards instead of leaving non-GitHub cards on screen.

Reviewed by Cursor Bugbot for commit 11be274. Bugbot is set up for automated code reviews on this repo. Configure here.

The search only matched cards linking to kernel/cookbooks on GitHub, so
cards pointing to guides or partner sites never hid. Filter all cards in
the page content instead, and hide a section and its heading when none
of its cards match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
Kernel 🟢 Ready View Preview Oct 2, 2026, 7:42 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@dprevoznik
dprevoznik merged commit 72b4367 into main Oct 2, 2026
3 checks passed
@dprevoznik
dprevoznik deleted the hypeship/fix-cookbook-search branch October 2, 2026 22:11

This branch was successfully deployed

1 active deployment
staging — 11be2745 Deployed Oct 2, 2026 by mintlify[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.

2 participants