Daily Updates: February 27, 2026
Paper Detail Page v2: Rebuilt /papers/[slug] with a full research layout — interactive citation network sidebar, in-page access locks, PDF section summaries (Introduction, Methods, Results, Discussion, Conclusion), and strict gray-palette design compliance.
Codebase health sweep (50+ files, 12 categories): removed console.log statements from webhook and search routes, removed PostHog window.posthog assignment, created client-component lazy wrappers for 3 map components to fix Next.js 16 Turbopack ssr:false restriction, added lucide-react wildcard TypeScript declaration, resolved typedRoutes and baseline-browser-mapping build warnings, slimmed CLAUDE.md with modular .claude/rules/, added stale-worktree auto-cleanup hook. Build passes at 4,107 static pages.
GROQ query optimisation: added slim paperCardFields (9 fields) and trialCardFields (11 fields) projections for category listing pages, reducing Sanity response size from ~37 MB to under 2 MB and enabling Next.js fetch-cache for faster ISR revalidation.
Component composition refactor: split SearchResultCard into 3 explicit named variant components — EventSearchCard (calendar-widget layout), EntitySearchCard (profile card for stakeholders/compounds/topics), and ResearchSearchCard (standard paper/trial card). The exported dispatcher is now ~15 lines.
Atlas of Psychedelic Research enhancements (Feb 26): added recruitment-status filter, deduplicated overlapping trial map markers, added acknowledgements section for data sources, and refined research-centre groupings.