Skip to content

[bug] Language filter defaults to All instead of English on discovery page #269

@realproject7

Description

@realproject7

Bug

Discovery page language filter defaults to "All languages" instead of "English" as specified.

Fix

In src/app/page.tsx, change the language fallback from "all" to "English":

- const lang = rawLang && (LANGUAGES as readonly string[]).includes(rawLang) ? rawLang : "all";
+ const lang = rawLang && (LANGUAGES as readonly string[]).includes(rawLang) ? rawLang : "English";

In src/components/GenreLanguageFilter.tsx, the <LanguageFilter> defaultValue is already driven by active prop, so no change needed there — it will automatically show "English" when the default kicks in.

Files to modify

  • src/app/page.tsx — change language fallback to "English"

Acceptance criteria

  • Discovery page shows English stories by default (no lang param in URL)
  • "All languages" option still works when explicitly selected
  • npm run typecheck passes

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/T3Assigned to T3 builder agentbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions