Skip to content

Technical guide · Overview

Page status: HistoricalHistory group: Updates

NutsNews full archive home search update

This update keeps full archive search in the backend, but changes the website UX so search happens directly on the home page instead of sending visitors to a separate /search page.

Visual overview

Primary diagram

System map

This update keeps full archive search in the backend, but changes the website UX so search happens directly on the home page instead of sending visitors to a separate /search page.

Render the repository-owned system map when you need it.

Diagram is not rendered yet.

View as text
NutsNews full archive home search update

This update keeps full archive search in the backend, but changes the website UX so search happens directly on the home page instead of sending visitors to a separate /search page.

flowchart TB
  accTitle: NutsNews full archive home search update
  accDescr {
    This update keeps full archive search in the backend, but changes the website UX so search happens directly on the home page instead of sending visitors to a separate /search page.
  }
  A["NutsNews full archive home search update"] --> B["updates/README_FULL_ARCHIVE_HOME_SEARCH_UPDATE.md"]
  B --> C["Auto-generated placeholder diagram"]

NutsNews full archive home search update

Fullscreen diagram view.

This update keeps full archive search in the backend, but changes the website UX so search happens directly on the home page instead of sending visitors to a separate /search page.

  • Adds Supabase full-text search support through public.search_articles(...).
  • Adds /api/search for the website and iOS app to use later.
  • Adds a full archive search text box directly above the home feed.
  • Search results render directly on the home page.
  • Clear search returns the normal home feed and infinite scroll.
  • Removes the standalone /search page if an earlier search update created it.
  • Restores the home hero so there is no separate “Search all NutsNews” button.
  • Restores the footer so there is no separate Search link.
  1. Copy this update into /Users/ramideltoro/WebstormProjects/nutsnews3.
  2. Run the Supabase SQL migration.
  3. Test /api/search locally.
  4. Test the home page inline search locally.
  5. Deploy.
  6. Test production /api/search and the production home page.
  7. Only then update the iOS app to use /api/search.

After deployment, iOS should eventually call:

https://www.nutsnews.com/api/search?q=dogs&page=0&limit=20