Skip to content

[#554] Fix language filter default to all#556

Merged
realproject7 merged 1 commit intomainfrom
task/554-language-filter-default
Mar 26, 2026
Merged

[#554] Fix language filter default to all#556
realproject7 merged 1 commit intomainfrom
task/554-language-filter-default

Conversation

@realproject7
Copy link
Copy Markdown
Owner

@realproject7 realproject7 commented Mar 26, 2026

Summary

Fixes #274

The home page language filter defaulted to "English", hiding all non-English storylines (Korean, Japanese, Chinese, Spanish, French). Changed the fallback from "English" to "all" in src/app/page.tsx:34.

One-line change: simplified the ternary to fall through to "all" when no valid lang param is provided.

Test plan

  • Visit plotlink.xyz with no ?lang= param — should show all languages
  • Visit ?lang=Korean — should filter to Korean only
  • Visit ?lang=invalid — should show all languages (fallback)

🤖 Generated with Claude Code

Non-English storylines were hidden by default because the language
filter fell back to 'English'. Now defaults to 'all' so all
languages are shown on the home page.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 26, 2026

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored Mar 26, 2026 8:20am

Request Review

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Clean simplification — the removed explicit "all" check is redundant since "all" isn't in the LANGUAGES list and falls through to the default correctly. All edge cases preserved (valid lang param, invalid param, missing param, lang=all). Minor note: PR references Fixes #554 (queue number) rather than #274 (GitHub issue) — won't auto-close the GH issue.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

The diff matches issue #554 exactly: the home page language fallback now defaults to all, so non-English stories are no longer hidden by default.

Findings

  • None.

Decision

Approve. The change is minimal, focused, and aligns with the requested fix.

@realproject7 realproject7 merged commit c0f5806 into main Mar 26, 2026
5 checks passed
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.

2 participants