Skip to content

Add research content type to search dialog#48

Open
russelltrow wants to merge 1 commit into
mainfrom
claude/fix-search-policy-research-Gl1D0
Open

Add research content type to search dialog#48
russelltrow wants to merge 1 commit into
mainfrom
claude/fix-search-policy-research-Gl1D0

Conversation

@russelltrow

Copy link
Copy Markdown
Member

Summary

Extended the search dialog to support a new "research" content type for policy and research papers, improving content categorization and discoverability.

Key Changes

  • Added ScrollText icon import from lucide-react for the research content type
  • Added "research" content type mapping with ScrollText icon to the contentTypeIcons record
  • Updated getContentType() function to detect research content by /policy/research/ URL pattern
  • Updated search placeholder text from "Search articles, stories, and pages..." to "Search articles, research, stories, and more..."
  • Updated search dialog description to include research content type
  • Updated search documentation to document all four content type badges: article, story, research, and page

Implementation Details

The research content type follows the same pattern as existing content types (article, story, page):

  • URL-based detection in getContentType() function
  • Icon mapping in contentTypeIcons record
  • Reflected in user-facing text and documentation

https://claude.ai/code/session_019NBUVE1vwCdDoYLE64gDzs

Research papers at /policy/research/ were falling through to the
generic "page" content type in getContentType(), making them
indistinguishable from static pages. Adds a "research" type with
a ScrollText icon, updates the search placeholder to mention research,
and documents the content type badges in docs/search.md.

https://claude.ai/code/session_019NBUVE1vwCdDoYLE64gDzs
@netlify

netlify Bot commented Mar 27, 2026

Copy link
Copy Markdown

Deploy Preview for green-software-foundation ready!

Name Link
🔨 Latest commit bc7aba4
🔍 Latest deploy log https://app.netlify.com/projects/green-software-foundation/deploys/69c6a28cc160dc00089d97f2
😎 Deploy Preview https://deploy-preview-48--green-software-foundation.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 93 (🟢 up 6 from production)
Accessibility: 93 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

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