Summary
When selecting "English" language filter on the home page (`?tab=new&lang=English`), non-English stories still appear.
Verified Data (NOT a data issue)
Supabase `storylines` table has correct values:
- ID 34-37: `language = 'English'`
- ID 38: `language = 'Korean'`
- ID 39: `language = 'Japanese'`
- ID 40: `language = 'Chinese'`
- ID 41: `language = 'Spanish'`
- ID 42: `language = 'French'`
Code (looks correct but doesn't work)
`src/app/page.tsx` line 126: `if (lang !== "all") filtered = filtered.eq("language", lang);`
Investigation Required
T3 must debug this via actual browser testing on plotlink.xyz:
-
Check if it's a Vercel cache issue — try adding a cache-busting query param or check if the server is returning stale HTML. Check the Vercel deployment timestamp vs migration timestamp.
-
Check the actual Supabase query — add temporary logging to see what query is being executed when `lang=English` is set. Verify the `STORY_FACTORY` env var value matches the DB's `contract_address`.
-
Check if the page is actually server-rendering with the filter — view page source for `?tab=new&lang=English` and check if the HTML contains non-English stories (SSR issue) or if they're injected client-side (hydration issue).
-
Also investigate: the screenshot shows some stories as "UNCATEGORIZED" with "1 plot" — but DB shows genres set and 3-4 plots. Could be stale rendering or additional orphan records.
-
Test all language filters: English, Korean, Japanese, Chinese, Spanish, French, All
Fix
Once root cause is found, fix and verify on plotlink.xyz with browser testing.
Acceptance Criteria
Summary
When selecting "English" language filter on the home page (`?tab=new&lang=English`), non-English stories still appear.
Verified Data (NOT a data issue)
Supabase `storylines` table has correct values:
Code (looks correct but doesn't work)
`src/app/page.tsx` line 126: `if (lang !== "all") filtered = filtered.eq("language", lang);`
Investigation Required
T3 must debug this via actual browser testing on plotlink.xyz:
Check if it's a Vercel cache issue — try adding a cache-busting query param or check if the server is returning stale HTML. Check the Vercel deployment timestamp vs migration timestamp.
Check the actual Supabase query — add temporary logging to see what query is being executed when `lang=English` is set. Verify the `STORY_FACTORY` env var value matches the DB's `contract_address`.
Check if the page is actually server-rendering with the filter — view page source for `?tab=new&lang=English` and check if the HTML contains non-English stories (SSR issue) or if they're injected client-side (hydration issue).
Also investigate: the screenshot shows some stories as "UNCATEGORIZED" with "1 plot" — but DB shows genres set and 3-4 plots. Could be stale rendering or additional orphan records.
Test all language filters: English, Korean, Japanese, Chinese, Spanish, French, All
Fix
Once root cause is found, fix and verify on plotlink.xyz with browser testing.
Acceptance Criteria