# Manual filler marks and chapter list defaults

Animetail parity rows E7 (manual filler marking) and E5 (chapter/episode settings defaults).

## Manual filler marks (E7)

Select episodes on an anime title's detail page. The selection bar shows:

- **Mark as filler / Unmark filler**: marks every selected episode filler, or unmarks them
  when all of them already are filler.
- **Use source filler marks** (only when a selected episode has a manual mark): clears the
  manual mark so the source value applies again.

Storage: `DbChapter.fillerOverride` (`null` = no manual mark). `DbChapter.isFiller` keeps the
value from the source, Animetail `episodes.json` sidecar or Mangayomi sync; refreshes and
rescans keep writing only that field. The effective mark is `fillerOverride ?: isFiller`
(`DbChapter.effectiveFiller`; domain `Chapter.isFiller` is already the effective value), so
the manual mark survives source refreshes, library updates and local rescans until cleared.

Effective mark consumers: filler row highlight/label in the episode list, the "Include filler"
download policy (automatic and download-ahead), Mangayomi legacy sync (`isFiller` is sent as
the effective value; pulled rows keep the local override) and Mangayomi backup export
(`isFiller` is the effective value, `fillerOverride` is omitted). Native backups and the Yokan hub
carry `fillerOverride` with the chapter row; merging a native backup or merging duplicate local
entries keeps an existing manual mark and otherwise adopts the other copy's mark. Source
migration does not copy manual marks. Shared code, all four targets.

Anime titles also get a **Filler** tri-state filter (only filler / hide filler) in the
episode filter sheet, matching the effective mark. Its per-title state is stored in
`features.library.chapterFillerFilters` (device-local like the defaults below) and is part
of the media type default.

## Chapter list defaults (E5)

The chapter/episode filter sheet has **Set as default**. It stores the title's current sort
(index and direction) and its Downloaded/Unread/Bookmarked filters as the default for that
title's media type (`DbSettings.features.library.chapterListDefaults`, keyed by media type),
plus the anime Filler filter.
The optional **Also apply to all entries in library** check removes the per-title sort and
filter entries of every library entry of that media type, so they use the new default.
Other media types and titles outside the library keep their own settings.

Resolution: each per-title field (sort, each filter) is the title's own entry when present,
else the media type default, else the built-in default (chapter number, newest first, no
filters). Titles that never changed a setting follow the default, including new titles.
With no default configured, behavior and stored settings are unchanged. Choosing the
built-in values as default removes the stored entry. Old settings JSON without the field
decodes to "no default".

Defaults are device-local like the other `features` preferences: not synced and kept when a
backup is restored. Per-title entries keep their existing sync and backup behavior.

Not included:

- Display options (Animetail's title/number display, previews, summaries): Yokan has no
  per-title display preferences to promote.
- Scanlator filters and release priorities: per-title scanlator names are not meaningful as a
  media type default; release priorities already have a global default.
- Season list sort/display: no season-list preference model exists yet.

## Verification

Verification 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).
