Skip to content

fix: P0 search blank-page — Suspense boundary for useSearchParams#453

Closed
itskai-dev wants to merge 2 commits intomainfrom
link/fix-critical-flow
Closed

fix: P0 search blank-page — Suspense boundary for useSearchParams#453
itskai-dev wants to merge 2 commits intomainfrom
link/fix-critical-flow

Conversation

@itskai-dev
Copy link
Copy Markdown
Collaborator

P0 Fix: Search Page Blank

Problem: The search page at /search?q=... renders only the nav — no search form, no results. The entire client component fails to hydrate during SSR.

Root cause: useSearchParams() in a "use client" component requires a <Suspense> boundary in Next.js 14+. Without it, SSR bails and the component renders empty.

Fix:

  • Split page.tsx into server wrapper + search-client.tsx client component
  • Server page wraps client in <Suspense> with loading skeleton fallback
  • Added metadata export for SEO (title + description)
  • Fixed hardcoded text-[#F8FAFC]text-foreground in result card titles

Verification:

  • next build passes clean (exit 0)
  • Search route renders in build output as ○ /search (static with client boundary)

Note: Root URL (/) was investigated and is working correctly — serves proper HTML landing page.

Part of task-1771432024242-cq9eaky1m

P0 fix: search page rendered empty because useSearchParams() in a
client component requires a <Suspense> boundary in Next.js 14+.

- Split page.tsx into server wrapper + search-client.tsx
- Server page provides Suspense boundary with loading skeleton
- Added metadata export (title + description)
- Fixed hardcoded text-[#F8FAFC] → text-foreground in result cards

Build verified: next build passes clean.

Part of task-1771432024242-cq9eaky1m
@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agent-hub Ready Ready Preview, Comment Feb 18, 2026 4:42pm

Request Review

@supabase
Copy link
Copy Markdown

supabase Bot commented Feb 18, 2026

This pull request has been ignored for the connected project oldbapagtyvkplbqllwa because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

- Remove 'as any' casts in mcp-client.tsx (McpServer type already has fields)
- Replace 'as any as' with 'as unknown as' in compatibility route

Unblocks lint-test-build CI.
@itskai-dev
Copy link
Copy Markdown
Collaborator Author

Closing orphan PR — parent task (task-1771432024242-cq9eaky1m) is done. If this fix is still needed, reopen with updated branch.

@itskai-dev itskai-dev closed this Feb 22, 2026
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.

1 participant