NutsNews Footer Search Menu Patch
Section titled “NutsNews Footer Search Menu Patch”This is a UI-only patch that keeps the existing /api/search backend but moves search out of the home feed.
What changed
Section titled “What changed”- Removed the inline search box from the home page feed.
- Added a search icon to the footer controls.
- The footer search icon opens a search menu/dialog.
- The search menu calls the existing
/api/searchendpoint. - Search results appear inside the menu.
- The normal home feed and infinite scroll work without search mode interruptions.
Files changed
Section titled “Files changed”web/app/components/ArticleFeed.tsxweb/app/components/SiteFooter.tsx
Install
Section titled “Install”cd /Users/ramideltoro/WebstormProjects/nutsnews3
zsh ~/Downloads/nutsnews-footer-search-menu-patch/nutsnews_footer_search_menu_patch/scripts/install_footer_search_menu_patch.sh \ ~/Downloads/nutsnews-footer-search-menu-patch/nutsnews_footer_search_menu_patchcd /Users/ramideltoro/WebstormProjects/nutsnews3/webnpm run buildnpm run devOpen http://localhost:3000 and test:
- The home page search box is gone.
- The footer has a search icon near the home/theme controls.
- Tapping the search icon opens the search menu.
- Searching returns full archive results from
/api/search. - Closing the menu returns to the normal home feed.
