Skip to content

[Fix] Remove 19+ toggle from NavBar, restore FilterBar checkbox #1226

@realproject7

Description

@realproject7

Problem

The 19+ round icon toggle in the NavBar (from #1222 + #1224) doesn't work as intended. Need to safely remove it and restore the original filter behavior.

What to revert

Remove from NavBar

Restore in FilterBar

What to KEEP (do not revert)

These changes from #1222 are correct and should stay:

  • ✅ All "18+" → "19+" text renames (create page, terms, story page, etc.)
  • NsfwBadge component on StoryCard (circled "19" on cover images)
  • useNsfwPreference hook (can stay in codebase, just remove from NavBar)
  • ✅ Profile page NSFW filtering via useNsfwPreference (StoriesTab, PortfolioTab)
  • is_nsfw badge on story detail page

Reference: pre-#1222 FilterBar state

Before #1222, the FilterBar desktop row had:

[Sort tabs]  [Writer filter]  [Genre dropdown]  [Language dropdown]  [19+ checkbox]  [X stories]

The 19+ checkbox was a <label> with <input type="checkbox"> that called navigate({ ..., nsfw: e.target.checked }) to add/remove ?nsfw=1 from the URL.

Restore this exact pattern with "19+" label text.

Acceptance criteria

  • 19+ toggle removed from NavBar
  • 19+ checkbox restored in FilterBar (desktop filter row)
  • Checkbox uses "19+" label (not "18+")
  • Checkbox toggles ?nsfw=1 URL param (existing behavior)
  • NsfwBadge on story cards preserved
  • All other "19+" text renames preserved
  • Profile page NSFW filtering preserved
  • Mobile filter sheet includes 19+ toggle (if it did before)

Refs: #1209, #1222, #1224, PR #1222, PR #1225

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