Skip to content

feat(settings): remove the public spoiler toggle - #105

Open
boomwwww wants to merge 1 commit into
mainfrom
feat/spoiler-toggle-removal
Open

boomwwww wants to merge 1 commit into
mainfrom
feat/spoiler-toggle-removal

Conversation

@boomwwww

@boomwwww boomwwww commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Remove the public spoiler toggle and the URL/stored-preference unlock path. Keep unreleased content hidden by default, and show the shared unreleased-content notice on locked chapter pages.

Changes

  • Remove SpoilerToggle from ContentSettings.
  • Make the public spoiler state always locked; ?Spoiler=allow and the local-storage preference no longer enable unreleased content.
  • Remove the spoiler preference keys from the storage config.
  • Remove the spoiler URL handling from the theme bootstrap script.
  • Show the shared unreleased-content notice on unreleased story chapter pages.
  • Update the notice copy in the five core locales.
  • Rewrite the spoiler settings tests around the locked public state.

Verification

  • bun run lint — pass
  • bun run check — pass
  • bun run check:search-seo — pass
  • bun test tests/spoiler-settings.test.tsx — 3 pass
  • bun test tests/ — 1011 pass, 1 skip, 0 fail (includes the Haneoka 7c167c95 WASM engine test; the skip is the Linux-only GNU time test)
  • bun run build — pass

Rollback

Revert 0e66474bac958dc5d0d382e9de921e8188e9d68d.

Remove the spoiler switch from ContentSettings and ignore the Spoiler URL parameter and stored preference. Keep unreleased content hidden by default, show the shared notice on unreleased story chapter pages, and update the five core locale copy and tests.

This branch has not been deployed

No deployments
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