Yokan / rebuild
Course 1 8624561

FILLER_AND_CHAPTER_DEFAULTS.md

docs/features/FILLER_AND_CHAPTER_DEFAULTS.md

documentation / design asset63 lines
1# Manual filler marks and chapter list defaults23Animetail parity rows E7 (manual filler marking) and E5 (chapter/episode settings defaults).45## Manual filler marks (E7)67Select episodes on an anime title's detail page. The selection bar shows:89- **Mark as filler / Unmark filler**: marks every selected episode filler, or unmarks them10  when all of them already are filler.11- **Use source filler marks** (only when a selected episode has a manual mark): clears the12  manual mark so the source value applies again.1314Storage: `DbChapter.fillerOverride` (`null` = no manual mark). `DbChapter.isFiller` keeps the15value from the source, Animetail `episodes.json` sidecar or Mangayomi sync; refreshes and16rescans keep writing only that field. The effective mark is `fillerOverride ?: isFiller`17(`DbChapter.effectiveFiller`; domain `Chapter.isFiller` is already the effective value), so18the manual mark survives source refreshes, library updates and local rescans until cleared.1920Effective mark consumers: filler row highlight/label in the episode list, the "Include filler"21download policy (automatic and download-ahead), Mangayomi legacy sync (`isFiller` is sent as22the effective value; pulled rows keep the local override) and Mangayomi backup export23(`isFiller` is the effective value, `fillerOverride` is omitted). Native backups and the Yokan hub24carry `fillerOverride` with the chapter row; merging a native backup or merging duplicate local25entries keeps an existing manual mark and otherwise adopts the other copy's mark. Source26migration does not copy manual marks. Shared code, all four targets.2728Anime titles also get a **Filler** tri-state filter (only filler / hide filler) in the29episode filter sheet, matching the effective mark. Its per-title state is stored in30`features.library.chapterFillerFilters` (device-local like the defaults below) and is part31of the media type default.3233## Chapter list defaults (E5)3435The chapter/episode filter sheet has **Set as default**. It stores the title's current sort36(index and direction) and its Downloaded/Unread/Bookmarked filters as the default for that37title's media type (`DbSettings.features.library.chapterListDefaults`, keyed by media type),38plus the anime Filler filter.39The optional **Also apply to all entries in library** check removes the per-title sort and40filter entries of every library entry of that media type, so they use the new default.41Other media types and titles outside the library keep their own settings.4243Resolution: each per-title field (sort, each filter) is the title's own entry when present,44else the media type default, else the built-in default (chapter number, newest first, no45filters). Titles that never changed a setting follow the default, including new titles.46With no default configured, behavior and stored settings are unchanged. Choosing the47built-in values as default removes the stored entry. Old settings JSON without the field48decodes to "no default".4950Defaults are device-local like the other `features` preferences: not synced and kept when a51backup is restored. Per-title entries keep their existing sync and backup behavior.5253Not included:5455- Display options (Animetail's title/number display, previews, summaries): Yokan has no56  per-title display preferences to promote.57- Scanlator filters and release priorities: per-title scanlator names are not meaningful as a58  media type default; release priorities already have a global default.59- Season list sort/display: no season-list preference model exists yet.6061## Verification6263Verification passed 167 desktop checks, 84 Kotlin/Wasm browser tests and 17 Android bridge unit checks without failures/errors/skips, and all four targets compiled (shared stage 5/6 run).64

Search chapters, reference and source filenames.