Skip to content

Manga support #12

Open
Open

Description

@zhollis21

Summary

AniSprinkles currently only supports anime. This epic tracks adding full manga support, bringing it to parity with the anime experience.

Checklist

Data layer

Library — manga half

Also shipped in #151, none of it anticipated by this checklist:

  • An empty-list state — there was none. A signed-in user with zero entries reached Content with zero sections, i.e. a blank page. Rare for anime, common for manga since plenty of accounts track anime only.
  • Manga section colours — Reading / Rereading were missing from _statusColors and fell through to the hash palette, so the two halves disagreed on what "currently reading" looks like.
  • The warm-refresh diff compared Episodes only — so a manga whose chapter total arrived late (every series that finishes publishing) never registered as changed.
  • Screen-reader text on the +1 button — Description and Hint were both hardcoded to the anime wording, so TalkBack announced "episode" over a +1 VOL button.
  • Per-half sort preference — manga_sort_field beside anime_sort_field; sorting manga by title no longer reorders anime.
  • Long press menu with manga-appropriate status labels — Serve manga from the details page and add a manga filter to Search (#12) #150 (the menu is shared, so it already reads Reading / Plan to Read / Rereading from Search)
  • Completion flow adapted for manga (chapter/volume progress) — Serve manga from the details page and add a manga filter to Search (#12) #150. Note it can only fire on a FINISHED series: AniList returns null chapters AND null volumes for everything still publishing.

Details page

Search & Discovery

Settings

  • Manga list display preferences (if different from anime) — nothing turned out to be different, so there is nothing to build. The only per-type settings that exist are AnimeSectionOrder / MangaSectionOrder, both wired. Sort became per-half in Give manga its own Library tab, and drop "MyAnime" from the code (#12) #151 (manga_sort_field beside anime_sort_field); view mode stays app-wide by decision, matching the View All lists rather than carving out an exception for Library.
  • Section ordering for manga lists — the manga half of this is done (Give manga its own Library tab, and drop "MyAnime" from the code (#12) #151): mangaList.sectionOrder comes back from the viewer query and orders the manga sections, exactly as animeList.sectionOrder already did. The remaining piece — a Settings control — is not manga-specific, since anime has none either, so it moved to Library section order can be read but never changed — no Settings control for either type #152 rather than holding this epic open.
  • Manga statistics in Settings — the viewer query fetches statistics { anime { ... } } only (AniListClient.cs:2261 and :2611), so the profile card is a 2x2 grid of Total Anime / Episodes / Days Watched / Mean Score with no manga counterpart. Needs statistics { manga { count, meanScore, chaptersRead, volumesRead } } and somewhere to put it.

Notes

  • AniList API uses the same Media type with type: MANGA — much of the data model is shared
  • Status enum values differ: CURRENT = "Reading" for manga, "Watching" for anime
  • Progress tracking: manga uses progress (chapters) and progressVolumes (volumes)
  • This epic changes the app scope from anime-only.

Activity

  1. added
    feature
    epic
    p2-high
    on Apr 7, 2026
  2. zhollis21 commented on Aug 21, 2026

    @zhollis21
    OwnerAuthor

    Decided while planning #43: anime and manga share one bottom tab ("Library") rather than getting a tab each, and the switch between them is Shell's native sub-tabs — a single Tab with two ShellContent children, which Android renders as a swipeable top tab strip. No segmented control and no custom switcher.

    This is already prototyped on feature/43-bottom-tab-bar:

    • LibraryTab holds ShellContent Route="anime" (MyAnimePage) and ShellContent Route="manga" (MyMangaPage); the tab keeps Route="my-anime" so existing navigation is untouched.
    • MyMangaPage exists as a placeholder — icon, heading, "Your manga list is coming soon." No PageModel, no data layer. Filling it in is this issue's job.
    • Nav title reads "Library" on both halves; the sub-tab strip shows ANIME / MANGA with distinct rainbow accents.
    • Tap and swipe between the two both work on device.

    So the shell for the manga half is done — what #12 needs to add is the list itself, not the navigation around it.

    One checklist line above is now superseded: "Add 'My Manga' flyout page (parallel to My Anime)". There is no flyout any more (#43 replaced it with a bottom tab bar), and the page already exists as the manga sub-tab.

  3. zhollis21 commented on Aug 27, 2026

    @zhollis21
    OwnerAuthor

    Todo for when manga support lands, noted while doing #137.

    Bio links now route AniList URLs in-app — anilist.co/character/{id}, /staff/{id}, /anime/{id}
    and /studio/{id} all open the matching page. Manga is deliberately excluded: the details page
    queries Media(id:, type: ANIME), so a manga id 404s there. Tapping a manga link in a bio shows
    "Manga & Novel details aren't supported yet" — the same message
    DetailsPageModelBase.NavigateToMedia already gives for a manga id from a relations carousel.

    Manga links are not rare: across the 30 most-favourited characters and 20 most-favourited staff,
    7 of 235 bio links pointed at anilist.co/manga.

    Two things to remove when this issue lands:

    • AniListLinkTarget.IsUnsupportedEntity (src/AniSprinkles.Core/Utilities/AniListLinkTarget.cs) —
      exists only to catch manga; delete it and add "manga" to RouteFor alongside "anime".
    • The toast branch in BioLinkSpan.FollowAsync
      (src/AniSprinkles/Platforms/Android/BioLinkSpans.cs) that calls it.

    Both carry comments pointing back here. AniListLinkTargetTests pins the current behaviour, so
    those tests are the other thing to update.

  4. zhollis21 commented on Aug 30, 2026

    @zhollis21
    OwnerAuthor

    Notes from planning. Phase 1 findings below are as merged; Phase 2 findings verified against main @ e1e2b91.

    Phase 2 (Library manga tab)

    The list query is the last type: ANIME pin. MediaListQuery at src/AniSprinkles.Core/Services/AniListClient.cs:1940. $type works as a variable — verified live against a public account. Unlike Search, omitting it is a hard 400 (User ID/Name & Type arguments required), so the absent-vs-null trap that bites the All pill does not exist here; a type is always sent.

    Real manga list data shows both progress shapes in one account. From MediaListCollection(userId: 5, type: MANGA): one entry has progress: 31 and progressVolumes: 6 (chapters win under the inferred rule), another has progress: 63 with chapters: null, volumes: null — no cap at all. The mixed case is not hypothetical.

    Still unfetched: mediaListOptions.mangaList.sectionOrder and statistics.manga. ViewerFullQuery, MediaListOptionsDto and AniListUser (Models/AniListUser.cs:17) are all anime-only.

    Section colours have no manga entries. RainbowAccentConverter._statusColors (Converters/RainbowAccentConverter.cs:41) keys on Watching/Rewatching; Reading and Rereading would miss the table and fall through to the hash palette, so manga sections would not match their anime counterparts.

    The warm-refresh diff is episode-only. MediaListSectionsMerger compares old.Episodes != @new.Episodes (:416) and nothing else about counts, so a manga entry whose chapter total changed would not be detected as meaningfully changed.

    Anime-specific surface in MyAnimePageModel (1017 lines), cited: sort preference keys :18-19; GetMyAnimeListGroupedAsync :304; AppSettings.AnimeSectionOrder :327 and :552; CacheReleasingMediaIds :360/:956; IAiringNotificationService at :790, :886, :905, :940.

    +1 EP is hardcoded in Views/MyAnimeLoadedContentView.xaml at :94 and :216.

    There is no empty-list page state. PageState covers AuthenticationPending / Unauthenticated / InitialLoading / Content / Error. A signed-in user with zero entries reaches Content with zero sections — a blank page. That is rare for anime and common for manga, since plenty of AniList accounts track anime only.

    Sizes, for scale: MyAnimePageModel.cs 1017 lines, MyAnimePage.xaml.cs 389, MyAnimeLoadedContentView.xaml 432.

    Phase 1 (merged in #150)

    Kept for reference; all verified before that PR.

    • Media(id:) is type-agnostic — ids are unique across both types, so type: ANIME was the only thing making a manga id 404. Media(id: 30002) resolves Berserk; Media(id: 30002, type: ANIME) returns 404.
    • Manga records carry characters, staff, relations, rankings, tags and stats; studios is empty and duration, season, seasonYear, nextAiringEpisode are null.
    • chapters and volumes are null for every RELEASING series (checked One Piece, Berserk, Dandadan, Sakamoto Days).
    • AniList's manga list group names are Reading / Planning / Completed / Paused / Dropped — not "Plan to Read", which is action-menu wording.
    • SaveMediaListEntry accepts progressVolumes; ToggleFavourite takes mangaId.
  5. zhollis21 commented on Aug 30, 2026

    @zhollis21
    OwnerAuthor

    Updated during planning: two claims in the checklist were superseded by what the API actually returns.

    • "Plan to Read" → "Planning" in the grouped-list line. MediaListCollection(userId: 5, type: MANGA) returns Reading / Planning / Completed / Paused / Dropped, and that account's mangaList.sectionOrder is ["Reading","Rereading","Completed","Completed Manga","Completed Novel","Completed One-Shot","Paused","Dropped","Planning"]. "Plan to Read" is still the right wording for the action menu and status picker — just not for a section header. The status-values line above it is unchanged for that reason.
    • "serialization status" → "publication status". AniList has no serialization or publisher field on Media; status (RELEASING / FINISHED / HIATUS / CANCELLED) is the closest thing and the details page already shows it.

    Phase 1 is now planned as: data layer + details page + manga in Search. Chapters/volumes follow AniHyou's inferred-unit model — one progress control per entry, chapters unless the entry has volume progress and zero chapter progress. The Library manga tab, Discover manga rows, mangaList.sectionOrder and statistics.manga are later phases.

  6. zhollis21 commented on Aug 30, 2026

    @zhollis21
    OwnerAuthor

    Phase 1 landed in #150 (e1e2b91). Checklist above ticked for what actually shipped.

    Details page and Search now serve manga. Media(id:) turned out to need no type at all — ids are unique across both, so the type: ANIME pin was the only thing making a manga id 404. Search gained All/Anime/Manga pills defaulting to All.

    Progress is one counter per entry, not two. AniList keeps progress (chapters) and progressVolumes fully independent, relates neither to status, and has no auto-complete setting, so which drives the UI is a client choice. Following AniHyou: chapters unless the entry has volume progress and no chapter progress. The progress row label says which unit it means.

    Two things worth remembering for the remaining phases:

    • ToggleFavourite needed mangaId. It was hardcoded to animeId, so the heart on a manga page would have succeeded while favouriting nothing. Anything new that takes an entity id should be checked the same way.
    • An ongoing manga has no cap at all. AniList returns null chapters and null volumes for every RELEASING series — verified across One Piece, Berserk, Dandadan, Sakamoto Days — and there is no nextAiringEpisode to fall back on the way an airing anime has. So no completion prompt, no progress bar, unbounded +1. The manga list will hit this on most Reading entries, not a handful.

    Also resolved: the #137 follow-up in the comment above. AniListLinkTarget.IsUnsupportedEntity, BioLinkFollower.UnsupportedMediaMessage and the toast branch in BioLinkSpans are gone, and AniListLinkTargetTests now asserts manga routes like anything else.

    CI fixtures for the rest of the work. Six manga fixtures reachable via driver.ps1 deeplink <id>, covering each shape the progress layer distinguishes — finished chapter-tracked (53390), publishing volume-tracked (30013), both counters set (105778), off-list (85199), ONE_SHOT (85476), NOVEL (85470), plus an 18+ canary. Three of those ids were already referenced by existing anime fixtures and resolved to nothing, so every manga tap under CI stubs was landing on the error page.

    Still open: the Library manga tab (MediaListCollection(type: MANGA), the parameterized MediaListPageModel), Discover manga rows, and the settings pair. mangaList.sectionOrder and statistics.manga are deliberately still unfetched — they would be dead model surface until the pages that use them exist.

  7. zhollis21 commented on Aug 30, 2026

    @zhollis21
    OwnerAuthor

    Updated during Phase 2 planning: annotated the "Section ordering for manga lists" line. It splits across phases — mangaList.sectionOrder gets fetched and applied to the grouped list as part of the Library tab (the list cannot be ordered correctly without it), leaving only a Settings control here. Anime has no such control either, so that half may never be worth building.

    Phase 2 agreed: one parameterized MediaListPageModel with thin MyAnimePageModel / MyMangaPageModel subclasses, a shared MediaListPageBase so the 389-line page lifecycle and the 432-line loaded-content view are reused rather than copied, separate sort preferences per half with the view mode staying app-wide, and a new PageState.Empty wired for both halves — a signed-in user with no manga currently reaches a blank page, which is common given plenty of accounts track anime only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    epicfeaturep2-high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions