Repository navigation
Give manga its own Library tab, and drop "MyAnime" from the code (#12) - #151
Conversation
Phase 2 of #12. MyMangaPage was a 13-line placeholder; it is now a real grouped list, because MyAnimePageModel became one parameterized MediaListPageModel that serves both halves of the Library tab. The page lifecycle moved to a shared MediaListPageBase, so the 389 lines of deferred loading, toolbar swapping and handler teardown exist once rather than twice -- that is the code that has needed the careful fixes (#60, #64, the OnNavigatedTo lesson in AGENTS.md), and it sits on the MAUI side of the test boundary where a divergence between two copies would have nothing watching it. Both page models expose the same bound names, so the 432-line loaded-content view is reused verbatim rather than copied. MediaListCollection now takes $type as a variable. Unlike Search it REJECTS a missing type outright -- 400 "User ID/Name & Type arguments required" -- so there is no absent-vs-null subtlety here, only a type that must always be sent. Five things the issue did not mention, all found while verifying: - There was no empty-list page state. A signed-in user with zero entries reached Content with zero sections, which renders as a blank page. Rare for anime, common for manga, since plenty of accounts track anime only. Added PageState.Empty, wired for both halves. - Section colours had no manga entries. Reading/Rereading missed the table and fell through to the hash palette, so the two halves would not have agreed on what "currently reading" looks like. - The warm-refresh diff compared Episodes and nothing else, so a manga whose chapter total arrived late -- which is every series that finishes publishing -- would not register as changed. - mangaList.sectionOrder was never fetched. Ordering the manga tab by the anime order would sort every section against a name it never contains. - Four character/staff images in the manga fixture were 404ing, and the fixture gave manga characters anime voice actors, which AniList never returns. Sort preferences are per-half (manga_sort_field beside anime_sort_field); view mode stays app-wide, as it already is with the View All lists. The rename rides along because it is the same code. There is no user-visible "My Anime" left -- the UI reads Library / Anime / Manga -- but the symbols still said it in 102 places, and MyAnimeEntryAction was the worst of them: it lives in IDialogService and serves five surfaces, none of which is My Anime. The my-anime route became `library`, which is safe because nothing navigates to a tab root: there is not one absolute GoToAsync("//...") in the app, and the airing deep link targets media-details. An earlier comment claiming otherwise was wrong and is corrected. Verified on device: both halves load, the manga list groups under Reading / Completed with matching section colours, two entries in one section count different units (+1 CH and +1 VOL), sorting one half leaves the other alone, the empty state renders, and a cold start costs one MediaListCollection request because the sub-tab pager does not pre-warm the adjacent page.
There was a problem hiding this comment.
🟡 Changes recommended
The test project has compile-blocking ILogger<T> generic type mismatches (passing NullLogger<AnimeLibraryPageModel> where ILogger<MediaListPageModel> is required), and the updated Library +1 control has incorrect accessibility text for manga.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR advances manga support by turning the Library’s Manga sub-tab into a first-class grouped list backed by the same underlying list page model as Anime, while also completing a broad “MyAnime” → “Library/MediaList” rename across Core, MAUI, tests, and docs.
Changes:
- Introduces a single parameterized
MediaListPageModel(keyed byMediaKind) with thinAnimeLibraryPageModel/MangaLibraryPageModelwrappers, plus a sharedMediaListPageBaselifecycle for both Library halves. - Extends
MediaListCollectionGraphQL to require a$typevariable (ANIME/MANGA) and threads manga section order + progress units through models/UI. - Adds an explicit empty-list state (
PageState.Empty) and renames “MyAnime” terminology throughout the codebase and documentation.
File summaries
| File | Description |
|---|---|
| tests/AniSprinkles.UnitTests/TestDataBuilder.cs | Test helper supports media status |
| tests/AniSprinkles.UnitTests/SettingsFlushAndPendingTests.cs | Doc ref rename to AnimeLibrary |
| tests/AniSprinkles.UnitTests/RelatedMediaTests.cs | Comment rename (Library) |
| tests/AniSprinkles.UnitTests/MediaListSortDefinitionsTests.cs | Rename + updated definition source |
| tests/AniSprinkles.UnitTests/MediaListPageModelTests.cs | Renamed test; now constructs AnimeLibrary model |
| tests/AniSprinkles.UnitTests/MediaListPageModelKindTests.cs | New tests for anime vs manga seams |
| tests/AniSprinkles.UnitTests/MediaListFilterAndSortTests.cs | Renamed + uses GetMediaListGroupedAsync |
| tests/AniSprinkles.UnitTests/MediaListAdultFilterReloadTests.cs | Renamed + uses typed list fetch |
| tests/AniSprinkles.UnitTests/MediaBrowsePageModelTests.cs | Comment rename (Library) |
| tests/AniSprinkles.UnitTests/ListViewModePreferenceTests.cs | Comment rename (Library) |
| tests/AniSprinkles.UnitTests/Fakes/ScriptedDialogService.cs | Switch to MediaListEntryAction |
| tests/AniSprinkles.UnitTests/EntryActionCoordinatorTests.cs | Switch to MediaListEntryAction |
| tests/AniSprinkles.UnitTests/DisplaySettingsReprojectionTests.cs | Switch to GetMediaListGroupedAsync |
| tests/AniSprinkles.UnitTests/AniListClientOperationsTests.cs | Adds mangaList.sectionOrder + typed list tests |
| tests/AniSprinkles.UnitTests/AiringNotificationWiringTests.cs | Updates wiring assertions for AnimeLibrary |
| src/AniSprinkles/Views/MediaListLoadedContentView.xaml.cs | Renamed loaded content view code-behind |
| src/AniSprinkles/Views/MediaListLoadedContentView.xaml | Reuses view for anime+manga; +1 label bound |
| src/AniSprinkles/Views/MediaBrowseLoadedContentView.xaml.cs | Comment updated to new view name |
| src/AniSprinkles/Views/CollectionViewLongPress.cs | Comment updated to new view name |
| src/AniSprinkles/Views/BrowseTemplates.xaml | Comments updated to Library naming |
| src/AniSprinkles/Views/ActionMenuPopup.xaml.cs | Switch to MediaListEntryAction |
| src/AniSprinkles/Services/Maui/MauiDialogService.cs | Switch to MediaListEntryAction API |
| src/AniSprinkles/Services/CI/CIAniListClient.cs | Adds manga grouped list fixtures + MangaCast |
| src/AniSprinkles/Resources/Styles/AppStyles.xaml | Comment rename for Library styles |
| src/AniSprinkles/Pages/SearchPage.xaml.cs | Comment rename (Library) |
| src/AniSprinkles/Pages/SearchPage.xaml | Comment rename (Library) |
| src/AniSprinkles/Pages/MyMangaPage.xaml.cs | Removes placeholder manga page |
| src/AniSprinkles/Pages/MyMangaPage.xaml | Removes placeholder manga XAML |
| src/AniSprinkles/Pages/MediaListPageBase.cs | New shared lifecycle base for Library halves |
| src/AniSprinkles/Pages/MediaBrowsePage.xaml | Comment rename (AnimeLibraryPage) |
| src/AniSprinkles/Pages/MangaLibraryPage.xaml.cs | New page resolving MangaLibraryPageModel |
| src/AniSprinkles/Pages/MangaLibraryPage.xaml | New manga Library page (StateContainer + Empty) |
| src/AniSprinkles/Pages/DiscoverPage.xaml | Comment rename (AnimeLibraryPage) |
| src/AniSprinkles/Pages/AnimeLibraryPage.xaml.cs | New page resolving AnimeLibraryPageModel |
| src/AniSprinkles/Pages/AnimeLibraryPage.xaml | Library page now derives from MediaListPageBase |
| src/AniSprinkles/MauiProgram.cs | DI registers Anime/Manga library pages/models |
| src/AniSprinkles/AppShell.xaml | Library tab route renamed; uses new pages |
| src/AniSprinkles.Core/Utilities/AppSettings.Storage.cs | Adds MangaSectionOrder persistence/sync |
| src/AniSprinkles.Core/Utilities/AppSettings.cs | Adds MangaSectionOrder static setting |
| src/AniSprinkles.Core/Services/ListEntryStatusFlow.cs | Comment rename (Library) |
| src/AniSprinkles.Core/Services/IAniListClient.cs | Replaces GetMyAnimeList* with typed GetMediaList* |
| src/AniSprinkles.Core/Services/FaultInjection/FaultProfile.cs | Comment rename for fault seam docs |
| src/AniSprinkles.Core/Services/FaultInjection/FaultInjectingHttpHandler.cs | Comment rename for operation mapping docs |
| src/AniSprinkles.Core/Services/FaultInjection/FaultInjectingAniListClient.cs | Wraps new GetMediaList* methods |
| src/AniSprinkles.Core/Services/CachingAniListClient.cs | Pass-through now uses typed list methods |
| src/AniSprinkles.Core/Services/AniListClient.cs | MediaListCollection query now typed + manga options |
| src/AniSprinkles.Core/Services/AiringNotificationState.cs | Comment rename (AnimeLibraryPageModel) |
| src/AniSprinkles.Core/Services/Abstractions/IDialogService.cs | Renames action return type to MediaListEntryAction |
| src/AniSprinkles.Core/PageModels/SettingsPageModel.cs | Comment rename (AnimeLibraryPageModel) |
| src/AniSprinkles.Core/PageModels/SearchPageModel.cs | Comment rename (Library sort keys) |
| src/AniSprinkles.Core/PageModels/PageState.cs | Adds Empty state |
| src/AniSprinkles.Core/PageModels/MediaListSortDefinitions.cs | Renamed from MyAnimeSortDefinitions |
| src/AniSprinkles.Core/PageModels/MediaListSectionsMerger.cs | Warm refresh now compares chapters/volumes too |
| src/AniSprinkles.Core/PageModels/MediaListPageModel.cs | New shared Library page model keyed by MediaKind |
| src/AniSprinkles.Core/PageModels/MediaListEntryAction.cs | Renamed from MyAnimeEntryAction |
| src/AniSprinkles.Core/PageModels/MediaDetailsPageModel.cs | Comment rename (Library) |
| src/AniSprinkles.Core/PageModels/MediaBrowsePageModel.cs | Comment rename (Library) |
| src/AniSprinkles.Core/PageModels/MangaLibraryPageModel.cs | New manga-specific subclass (no airing hooks) |
| src/AniSprinkles.Core/PageModels/ListViewMode.cs | Comment rename (Library) |
| src/AniSprinkles.Core/PageModels/EntryActionCoordinator.cs | Switches to MediaListEntryAction |
| src/AniSprinkles.Core/PageModels/DiscoverPageModel.cs | Comment rename (Library) |
| src/AniSprinkles.Core/PageModels/AnimeLibraryPageModel.cs | New anime-specific subclass (airing hooks) |
| src/AniSprinkles.Core/Models/MediaListEntry.cs | Adds IncrementLabel and notifications |
| src/AniSprinkles.Core/Models/AniListUser.cs | Adds MangaSectionOrder |
| src/AniSprinkles.Core/Converters/RainbowAccentConverter.cs | Adds Reading/Rereading status colors |
| README.md | Updates feature description for manga Library |
| AGENTS.md | Updates architecture doc for new Library route/types |
| .claude/skills/run-anisprinkles/SKILL.md | Doc updates for Library naming |
| .claude/skills/run-anisprinkles/driver.ps1 | Doc updates for fault injection naming |
| .claude/skills/project-architecture/SKILL.md | DI + navigation docs updated (library route) |
| .claude/skills/ani-review/SKILL.md | Tightens “no suppression” guidance |
| .claude/skills/ani-kickoff/SKILL.md | Doc updates for renamed view type |
| .claude/skills/ani-debug/SKILL.md | Doc updates for LOADEDHOST page name |
| .claude/skills/airing-notifications/SKILL.md | Doc updates for AnimeLibrary caching |
Review details
Suppressed comments (5)
tests/AniSprinkles.UnitTests/MediaListPageModelTests.cs:169
- The AnimeLibraryPageModel constructor takes ILogger, but the test passes NullLogger.Instance (ILogger), which is not assignment-compatible and will not compile due to generic invariance.
tests/AniSprinkles.UnitTests/MediaListFilterAndSortTests.cs:373 - The AnimeLibraryPageModel constructor expects ILogger, but this test passes NullLogger.Instance, which cannot be used as ILogger and will fail to compile.
tests/AniSprinkles.UnitTests/MediaListAdultFilterReloadTests.cs:121 - The AnimeLibraryPageModel constructor parameter is ILogger, but the test passes NullLogger.Instance. This is a type mismatch (ILogger is invariant) and will not compile.
src/AniSprinkles/Views/MediaListLoadedContentView.xaml:97 - The +1 button’s accessible text still mentions “episode” progress, but this control is now reused for manga (+1 CH / +1 VOL). Screen readers will announce incorrect info for manga entries; update the SemanticProperties to be unit-agnostic (or derive them from the entry’s active unit).
This issue also appears on line 216 of the same file.
src/AniSprinkles/Views/MediaListLoadedContentView.xaml:219
- The large-card +1 button still uses episode-specific SemanticProperties even though the label is now unit-aware for manga. This will cause incorrect announcements for manga entries in accessibility services.
- Files reviewed: 74/74 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
The shared list view hardcoded both halves of the accessibility text: Description as "Increment episode progress" and Hint as "Adds one to the watched episode count". Both were accurate while the view served anime only. Once #12 handed the same view to manga, TalkBack announced "episode" — and the wrong verb — over a +1 VOL button whose visible label already read VOL, because that label was bound and these were not. Bind them to new IncrementDescription and IncrementHint on MediaListEntry, beside the existing IncrementLabel, with change notifications on both progress counters so switching a manga between chapter and volume mode updates them. UnitNoun is title-case for its standalone callers, so it is lowered at the call site rather than changed — the same thing EditProgressPopup already does with it. The anime strings are unchanged. IncrementLabel had no test coverage either; all three are covered now.
The screenshot job only ever captured the anime list, so the manga tab added by #12 shipped with no visual coverage at all — and new views are not in the set by default, so a broken accent colour or a dead binding there would fail nothing. Rename my_anime.png to anime_library.png and add manga_library.png, captured from the MANGA sub-tab. The tap targets the uppercase "MANGA" the sub-tab strip actually renders, not the "Manga" in AppShell.xaml. That distinction matters more than it looks: a failed tap only warns, so the XAML casing would have silently re-shot the anime page and published it as the manga one. Verified against a uiautomator dump on the API 36 emulator. Poll for "Loading manga list..." to clear rather than assuming the list is ready — the pager does not pre-warm the adjacent page, so this is a genuine first load. The step is guarded so a missed sub-tab warns and skips, matching how the existing captures degrade, and taps back to ANIME because every later step navigates from the anime list.
There was a problem hiding this comment.
🟡 Changes recommended
There are a few concrete issues in the updated Library page base/CI scripting/docs that should be addressed to avoid unnecessary heavy view creation and improve correctness/maintainability of the updated workflow and DI comments.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
Suppressed comments (1)
src/AniSprinkles/Pages/MediaListPageBase.cs:201
- UpdateLoadedContentHost can create (or retain) the heavy MediaListLoadedContentView even when the page model is in PageState.Empty (or other non-Content states). On first load of an empty list, OnAppearing calls UpdateLoadedContentHost after LoadAsync, and this method will attach because it only checks isAuth/!isError; that defeats the deferred-load optimization and keeps unnecessary view state alive while the Empty state view is shown.
- Files reviewed: 76/87 changed files
- Comments generated: 2
- Review effort level: Lite
Two things caught in review of the previous two commits. The manga wait loop exited silently after 15s, unlike the page-load poll it was modelled on, so a screenshot taken mid-load would be published with nothing in the log explaining why it looked wrong. It now emits the same ::warning:: that poll does. The DI table still carried "Placeholder pages: no PageModel until their features land (manga #12, feed #14)" directly above the two lines registering MangaLibraryPageModel and MangaLibraryPage — a comment contradicted by the code under it, in the file people consult for lifetimes. Narrowed to feed, and the manga pair moved up beside the anime pair since they are one MediaListPageModel with the same lifetimes.
There was a problem hiding this comment.
🟡 Changes recommended
The Library base page currently attaches the heavy loaded-content view during non-content states (e.g., Empty/InitialLoading), causing unnecessary work and potentially retaining views when the StateContainer is not showing content.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
Suppressed comments (2)
src/AniSprinkles/Pages/MediaListPageBase.cs:201
- UpdateLoadedContentHost attaches the heavy MediaListLoadedContentView whenever the user is authenticated and not in Error, even if the current page state is
EmptyorInitialLoading. This defeats the "create only when Content" intent and can do unnecessary work (and keep a view attached) while the StateContainer is showing non-content states.
src/AniSprinkles/Pages/AnimeLibraryPage.xaml:122 - The StateContainer host Grid already applies
Padding="{StaticResource LayoutPadding}", so the Empty state view’s extraPaddingdoubles the inset compared to other states and can make the empty prompt look overly cramped.
- Files reviewed: 76/87 changed files
- Comments generated: 1
- Review effort level: Lite
The Empty state view set Padding="{StaticResource LayoutPadding}" on top
of the StateContainer host Grid, which already applies it. None of the
other four state views — Unauthenticated, AuthenticationPending,
InitialLoading, Error — does this; they all rely on the host.
LayoutPadding is 12,0 on phones, so there is no vertical effect and the
stack is centred anyway. What it did cost was wrap width: both empty
subtitles are long enough to wrap, so the doubled inset squeezed that
text column by 24px for no reason.
Both Library halves had it, since the Empty state was added to each.
DeleteMediaListEntryAsync returned true without changing anything, and
the fixtures are static, so a removal on device was always undone: the
page model drops the row optimistically, then OnEntryRemovedAsync forces
a reload that hands back the very entry just deleted. The row vanished
and reappeared, which reads as an app bug and is not one. The delete
path had therefore never run end to end on a device at all.
Layer a deleted-id set over the fixtures rather than making them
mutable, so the data stays declarative:
- delete records the id
- the list getters filter those entries out, and drop any section left
empty, matching AniList's own shape for a status with no entries
- GetMediaAsync keeps returning the media but with a null list entry,
so the details page falls back to "Add to List" instead of 404ing a
title that still exists
State is process-lifetime and deliberately not persisted: relaunching
restores the full fixture, so the screenshot job always captures a
populated list regardless of what an earlier session did.
This is also what makes the empty-list state reachable on device without
blanking a fixture and rebuilding twice — verified by removing all three
manga in turn and watching Reading disappear, then Completed, then the
empty view render, with the anime half untouched throughout.
There was a problem hiding this comment.
🔵 Needs a closer look
The change set is broad and cross-cutting (navigation, DI, Core API surface, CI stubs, and UI), so it warrants final human review despite only minor issues found.
Review details
- Files reviewed: 76/87 changed files
- Comments generated: 2
- Review effort level: Lite
ShowMoveToListAsync and ShowEditProgressAsync already took a mediaTitle; ShowEntryActionsAsync and ShowRatingAsync were missed and still said animeTitle, which now reads as a claim about type in an interface the manga half calls on every long-press. Renamed both, along with the MauiDialogService implementations, the ActionMenuPopup and RatingPopup constructors, and the test fake. Every call site passes positionally, so this is a naming change only. Not touched: animeId in AniListClient's ToggleFavourite. That is AniList's own GraphQL argument name, and renaming it would break the mutation.
Two claims the Library manga tab makes untrue. The tagline said the app is for "tracking your anime"; it tracks manga now too. Quick list actions said "long-press any anime", but the flow is shared across both types — the surfaces it lists are unchanged, since manga appears in your list and in search while Discover and browse stay anime-only until those rows land. The other Features entries already say manga where they should.
v0.13.0 launches to an empty window on a real device. #151 moved the Library page lifecycle into MediaListPageBase but left OnSortClicked private, while AnimeLibraryPage.xaml and MangaLibraryPage.xaml still wire it with Clicked="OnSortClicked". A private base member is not accessible to the subclass, so the generated InitializeComponent throws: System.MethodAccessException: Method 'AniSprinkles.Pages.MediaListPageBase.OnSortClicked(object,EventArgs)' is inaccessible from method 'AnimeLibraryPage.InitializeComponent()' Nothing caught it earlier because it is invisible in two directions at once. The compiler never checks it, since XAML resolves handlers by name rather than by symbol. And Debug cannot reproduce it: Debug builds run UseInterpreter=true with AndroidLinkMode=None, which never enforce the access check, while Release AOT-compiles and does. Every check run against #151 was Debug with -p:CiBuild=true. The blast radius is the whole app rather than the sort button, because the Library tab is the launch destination — ShellContent could not build its content, so AppShell rendered nothing. That is why it presents as a blank window with no crash dialog instead of a crash. Made protected, with a comment recording the trap for any handler this base adds for a subclass's XAML in future. Verified by reproducing against the exact v0.13.0 commit: a trimmed Release APK blanks on launch, and the same build with this change opens the Library tab normally with no MethodAccessException in logcat.
#153) * Show manga totals in Settings alongside the anime ones The viewer query asked for statistics { anime } only, so a manga reader got a profile card of four anime numbers and nothing about the list they actually keep — the last screen where manga was still second-class after #151 gave it a Library tab. Fetch statistics { manga { count meanScore chaptersRead volumesRead } } in both viewer queries and render a Manga Stats card mirroring the anime 2x2: Total Manga, Chapters, Volumes, Mean Score. UserMangaStatistics is its own model rather than a shared one. AniList returns a single UserStatistics type carrying every counter for either kind, so sharing it would put a meaningless EpisodesWatched on manga and a meaningless ChaptersRead on anime; modelling only the fields that mean something keeps the card from being able to show a number that cannot be true. The DTO stays shared, because the wire shape genuinely is. The card shows for an account with no manga rather than hiding, matching the anime card, which has always rendered zeros for a fresh account. Both stat sets now sit under one STATISTICS banner, which avoids renumbering the five sections below them. * Give each manga stat tile the colour of its anime counterpart Caught on device, not by the build or the tests: the Manga Stats card rendered all four figures in the same blue, next to a four-colour anime card. Manga, Chapters and Volumes each hashed to RainbowBlue, which is also where Score lands. Map the three through the converter's existing _keyMappings, which is there for exactly this — "ensuring related concepts get the same color". Each manga tile now points at the anime tile in the same grid position, so the two cards read as one shape shown twice rather than two unrelated panels. Tested via ResourceKeyFor, asserting both the pairing and that the four manga keys are distinct from each other — the property that broke, and the one a future palette or hash change could quietly break again. * Give the Manga Stats card its own colours, on Settings-only keys Two problems with the previous commit, both found on device. It reached for the shared keys. Mapping "Manga" to "Anime" did not just recolour a stat tile: those keys also drive Search's type pills, the two Library nav titles and the details-page chips, so the Manga pill and the Manga Library title started rendering identically to the Anime ones. A decision about a stat tile silently changed four other screens. And matching the anime card was the wrong goal anyway. The two cards sit one above the other and should read as two things. The tiles now use keys that exist only in Settings — StatsTotalManga, StatsChapters and so on — pinned in the lookup table rather than hashed. Nothing outside Settings can be recoloured by a stat-tile decision again, and the shared keys go back to the hash values they always had. The palette has eight stops and the two cards have ten slots, so exactly two colours recur, both chosen rather than incidental: blue on each Mean Score, which is the same metric on both cards, and cyan on the anime header and the manga Volumes tile, which never sit in the same role. The anime entries pin the colours that card already rendered, so it does not move. Renamed _statusColors to _fixedColors, since it no longer holds only status sections. Tests cover the whole contract: five distinct colours within each card, exactly eight across both, headers that differ, and — guarding the regression above — that Anime/Manga and Episodes/Chapters still resolve apart from each other. * CI: Update UI screenshots [skip ci] --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
#151) * Give manga its own Library tab, and drop "MyAnime" from the code Phase 2 of #12. MyMangaPage was a 13-line placeholder; it is now a real grouped list, because MyAnimePageModel became one parameterized MediaListPageModel that serves both halves of the Library tab. The page lifecycle moved to a shared MediaListPageBase, so the 389 lines of deferred loading, toolbar swapping and handler teardown exist once rather than twice -- that is the code that has needed the careful fixes (#60, #64, the OnNavigatedTo lesson in AGENTS.md), and it sits on the MAUI side of the test boundary where a divergence between two copies would have nothing watching it. Both page models expose the same bound names, so the 432-line loaded-content view is reused verbatim rather than copied. MediaListCollection now takes $type as a variable. Unlike Search it REJECTS a missing type outright -- 400 "User ID/Name & Type arguments required" -- so there is no absent-vs-null subtlety here, only a type that must always be sent. Five things the issue did not mention, all found while verifying: - There was no empty-list page state. A signed-in user with zero entries reached Content with zero sections, which renders as a blank page. Rare for anime, common for manga, since plenty of accounts track anime only. Added PageState.Empty, wired for both halves. - Section colours had no manga entries. Reading/Rereading missed the table and fell through to the hash palette, so the two halves would not have agreed on what "currently reading" looks like. - The warm-refresh diff compared Episodes and nothing else, so a manga whose chapter total arrived late -- which is every series that finishes publishing -- would not register as changed. - mangaList.sectionOrder was never fetched. Ordering the manga tab by the anime order would sort every section against a name it never contains. - Four character/staff images in the manga fixture were 404ing, and the fixture gave manga characters anime voice actors, which AniList never returns. Sort preferences are per-half (manga_sort_field beside anime_sort_field); view mode stays app-wide, as it already is with the View All lists. The rename rides along because it is the same code. There is no user-visible "My Anime" left -- the UI reads Library / Anime / Manga -- but the symbols still said it in 102 places, and MyAnimeEntryAction was the worst of them: it lives in IDialogService and serves five surfaces, none of which is My Anime. The my-anime route became `library`, which is safe because nothing navigates to a tab root: there is not one absolute GoToAsync("//...") in the app, and the airing deep link targets media-details. An earlier comment claiming otherwise was wrong and is corrected. Verified on device: both halves load, the manga list groups under Reading / Completed with matching section colours, two entries in one section count different units (+1 CH and +1 VOL), sorting one half leaves the other alone, the empty state renders, and a cold start costs one MediaListCollection request because the sub-tab pager does not pre-warm the adjacent page. * CI: Update UI screenshots [skip ci] * Speak the right unit in the +1 button's screen-reader text The shared list view hardcoded both halves of the accessibility text: Description as "Increment episode progress" and Hint as "Adds one to the watched episode count". Both were accurate while the view served anime only. Once #12 handed the same view to manga, TalkBack announced "episode" — and the wrong verb — over a +1 VOL button whose visible label already read VOL, because that label was bound and these were not. Bind them to new IncrementDescription and IncrementHint on MediaListEntry, beside the existing IncrementLabel, with change notifications on both progress counters so switching a manga between chapter and volume mode updates them. UnitNoun is title-case for its standalone callers, so it is lowered at the call site rather than changed — the same thing EditProgressPopup already does with it. The anime strings are unchanged. IncrementLabel had no test coverage either; all three are covered now. * CI: Screenshot both Library halves The screenshot job only ever captured the anime list, so the manga tab added by #12 shipped with no visual coverage at all — and new views are not in the set by default, so a broken accent colour or a dead binding there would fail nothing. Rename my_anime.png to anime_library.png and add manga_library.png, captured from the MANGA sub-tab. The tap targets the uppercase "MANGA" the sub-tab strip actually renders, not the "Manga" in AppShell.xaml. That distinction matters more than it looks: a failed tap only warns, so the XAML casing would have silently re-shot the anime page and published it as the manga one. Verified against a uiautomator dump on the API 36 emulator. Poll for "Loading manga list..." to clear rather than assuming the list is ready — the pager does not pre-warm the adjacent page, so this is a genuine first load. The step is guarded so a missed sub-tab warns and skips, matching how the existing captures degrade, and taps back to ANIME because every later step navigates from the anime list. * CI: Update UI screenshots [skip ci] * Warn on a manga-list timeout, and fix the stale DI comment Two things caught in review of the previous two commits. The manga wait loop exited silently after 15s, unlike the page-load poll it was modelled on, so a screenshot taken mid-load would be published with nothing in the log explaining why it looked wrong. It now emits the same ::warning:: that poll does. The DI table still carried "Placeholder pages: no PageModel until their features land (manga #12, feed #14)" directly above the two lines registering MangaLibraryPageModel and MangaLibraryPage — a comment contradicted by the code under it, in the file people consult for lifetimes. Narrowed to feed, and the manga pair moved up beside the anime pair since they are one MediaListPageModel with the same lifetimes. * CI: Update UI screenshots [skip ci] * Stop the empty-list view double-inseting its own padding The Empty state view set Padding="{StaticResource LayoutPadding}" on top of the StateContainer host Grid, which already applies it. None of the other four state views — Unauthenticated, AuthenticationPending, InitialLoading, Error — does this; they all rely on the host. LayoutPadding is 12,0 on phones, so there is no vertical effect and the stack is centred anyway. What it did cost was wrap width: both empty subtitles are long enough to wrap, so the doubled inset squeezed that text column by 24px for no reason. Both Library halves had it, since the Empty state was added to each. * CI stubs: Make removing a list entry actually remove it DeleteMediaListEntryAsync returned true without changing anything, and the fixtures are static, so a removal on device was always undone: the page model drops the row optimistically, then OnEntryRemovedAsync forces a reload that hands back the very entry just deleted. The row vanished and reappeared, which reads as an app bug and is not one. The delete path had therefore never run end to end on a device at all. Layer a deleted-id set over the fixtures rather than making them mutable, so the data stays declarative: - delete records the id - the list getters filter those entries out, and drop any section left empty, matching AniList's own shape for a status with no entries - GetMediaAsync keeps returning the media but with a null list entry, so the details page falls back to "Add to List" instead of 404ing a title that still exists State is process-lifetime and deliberately not persisted: relaunching restores the full fixture, so the screenshot job always captures a populated list regardless of what an earlier session did. This is also what makes the empty-list state reachable on device without blanking a fixture and rebuilding twice — verified by removing all three manga in turn and watching Reading disappear, then Completed, then the empty view render, with the anime half untouched throughout. * CI: Update UI screenshots [skip ci] * Finish the animeTitle -> mediaTitle rename in IDialogService ShowMoveToListAsync and ShowEditProgressAsync already took a mediaTitle; ShowEntryActionsAsync and ShowRatingAsync were missed and still said animeTitle, which now reads as a claim about type in an interface the manga half calls on every long-press. Renamed both, along with the MauiDialogService implementations, the ActionMenuPopup and RatingPopup constructors, and the test fake. Every call site passes positionally, so this is a naming change only. Not touched: animeId in AniListClient's ToggleFavourite. That is AniList's own GraphQL argument name, and renaming it would break the mutation. * README: Stop describing the app as anime-only Two claims the Library manga tab makes untrue. The tagline said the app is for "tracking your anime"; it tracks manga now too. Quick list actions said "long-press any anime", but the flow is shared across both types — the surfaces it lists are unchanged, since manga appears in your list and in search while Discover and browse stay anime-only until those rows land. The other Features entries already say manga where they should. * CI: Update UI screenshots [skip ci] --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
v0.13.0 launches to an empty window on a real device. #151 moved the Library page lifecycle into MediaListPageBase but left OnSortClicked private, while AnimeLibraryPage.xaml and MangaLibraryPage.xaml still wire it with Clicked="OnSortClicked". A private base member is not accessible to the subclass, so the generated InitializeComponent throws: System.MethodAccessException: Method 'AniSprinkles.Pages.MediaListPageBase.OnSortClicked(object,EventArgs)' is inaccessible from method 'AnimeLibraryPage.InitializeComponent()' Nothing caught it earlier because it is invisible in two directions at once. The compiler never checks it, since XAML resolves handlers by name rather than by symbol. And Debug cannot reproduce it: Debug builds run UseInterpreter=true with AndroidLinkMode=None, which never enforce the access check, while Release AOT-compiles and does. Every check run against #151 was Debug with -p:CiBuild=true. The blast radius is the whole app rather than the sort button, because the Library tab is the launch destination — ShellContent could not build its content, so AppShell rendered nothing. That is why it presents as a blank window with no crash dialog instead of a crash. Made protected, with a comment recording the trap for any handler this base adds for a subclass's XAML in future. Verified by reproducing against the exact v0.13.0 commit: a trimmed Release APK blanks on launch, and the same build with this change opens the Library tab normally with no MethodAccessException in logcat.
#153) * Show manga totals in Settings alongside the anime ones The viewer query asked for statistics { anime } only, so a manga reader got a profile card of four anime numbers and nothing about the list they actually keep — the last screen where manga was still second-class after #151 gave it a Library tab. Fetch statistics { manga { count meanScore chaptersRead volumesRead } } in both viewer queries and render a Manga Stats card mirroring the anime 2x2: Total Manga, Chapters, Volumes, Mean Score. UserMangaStatistics is its own model rather than a shared one. AniList returns a single UserStatistics type carrying every counter for either kind, so sharing it would put a meaningless EpisodesWatched on manga and a meaningless ChaptersRead on anime; modelling only the fields that mean something keeps the card from being able to show a number that cannot be true. The DTO stays shared, because the wire shape genuinely is. The card shows for an account with no manga rather than hiding, matching the anime card, which has always rendered zeros for a fresh account. Both stat sets now sit under one STATISTICS banner, which avoids renumbering the five sections below them. * Give each manga stat tile the colour of its anime counterpart Caught on device, not by the build or the tests: the Manga Stats card rendered all four figures in the same blue, next to a four-colour anime card. Manga, Chapters and Volumes each hashed to RainbowBlue, which is also where Score lands. Map the three through the converter's existing _keyMappings, which is there for exactly this — "ensuring related concepts get the same color". Each manga tile now points at the anime tile in the same grid position, so the two cards read as one shape shown twice rather than two unrelated panels. Tested via ResourceKeyFor, asserting both the pairing and that the four manga keys are distinct from each other — the property that broke, and the one a future palette or hash change could quietly break again. * Give the Manga Stats card its own colours, on Settings-only keys Two problems with the previous commit, both found on device. It reached for the shared keys. Mapping "Manga" to "Anime" did not just recolour a stat tile: those keys also drive Search's type pills, the two Library nav titles and the details-page chips, so the Manga pill and the Manga Library title started rendering identically to the Anime ones. A decision about a stat tile silently changed four other screens. And matching the anime card was the wrong goal anyway. The two cards sit one above the other and should read as two things. The tiles now use keys that exist only in Settings — StatsTotalManga, StatsChapters and so on — pinned in the lookup table rather than hashed. Nothing outside Settings can be recoloured by a stat-tile decision again, and the shared keys go back to the hash values they always had. The palette has eight stops and the two cards have ten slots, so exactly two colours recur, both chosen rather than incidental: blue on each Mean Score, which is the same metric on both cards, and cyan on the anime header and the manga Volumes tile, which never sit in the same role. The anime entries pin the colours that card already rendered, so it does not move. Renamed _statusColors to _fixedColors, since it no longer holds only status sections. Tests cover the whole contract: five distinct colours within each card, exactly eight across both, headers that differ, and — guarding the regression above — that Anime/Manga and Episodes/Chapters still resolve apart from each other. * CI: Update UI screenshots [skip ci] --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>










Advances #12 (Phase 2 of five areas — does not close it).
MyMangaPagewas a 13-line placeholder. It is now a real grouped list, becauseMyAnimePageModelbecame one parameterizedMediaListPageModelserving both halves of the Library tab.Two manga in the same Reading section counting different units —
100/141with +1 CH, and20with +1 VOL and no total, because One Piece is still publishing. That per-entry inference is the Phase 1 model finally visible in a list.The shape
One
MediaListPageModel, driven by aMediaKind, withAnimeLibraryPageModel/MangaLibraryPageModelas thin subclasses that exist for DI andx:DataType. The anime one overrides two hooks for airing notifications; the manga one overrides nothing, because manga doesn't air.The 389-line page lifecycle moved to
MediaListPageBase. That is the code that has needed the careful fixes — #60's colour flash, #64's measure strategy, theOnNavigatedTo-vs-OnAppearinglesson in AGENTS.md — and it sits on the MAUI side of the test boundary, where a divergence between two copies would have nothing watching it. Both page models expose the same bound names, so the 432-line loaded-content view is reused verbatim, renamed rather than copied.MediaListCollectionnow takes$typeas a variable. UnlikeSearch, it rejects a missing type outright — 400User ID/Name & Type arguments required— so the absent-vs-null trap from #150 cannot recur here.Six things the issue didn't mention
All found while verifying, all cited on the issue:
The +1 button's screen-reader text was hardcoded to the anime wording. Both halves of it:
Description="Increment episode progress"andHint="Adds one to the watched episode count". Accurate while the view was anime-only; wrong the moment this PR shared it with manga, so TalkBack announced "episode" — and the wrong verb — over a+1 VOLbutton whose visible label correctly read VOL. Now bound toIncrementDescriptionandIncrementHint. Found by dumping the manga tab on the emulator; nothing else would have, becauseIncrementLabelhad no test coverage either. All three have it now.There was no empty-list page state. A signed-in user with zero entries reached
Contentwith zero sections — a blank page. Rare for anime, common for manga, since plenty of accounts track anime only. AddedPageState.Empty, wired for both halves.Section colours had no manga entries.
Reading/Rereadingmissed_statusColorsand fell through to the hash palette, so the two halves wouldn't have agreed on what "currently reading" looks like.The warm-refresh diff compared
Episodesand nothing else — so a manga whose chapter total arrived late, which is every series that finishes publishing, wouldn't register as changed.mangaList.sectionOrderwas never fetched. Ordering the manga tab by the anime order would sort every section against a name it never contains.Four character/staff images in the manga fixture were 404ing, and the fixture gave manga characters anime voice actors, which AniList never returns. Fixed with real ids from
Media(53390)and aMangaCasthelper with no VA.Preferences
Sort is per-half (
manga_sort_fieldbesideanime_sort_field) — sorting your manga by title shouldn't reorder your anime. View mode stays app-wide, as it already is with the View All lists, rather than carving out an exception for Library.The rename rides along
There is no user-visible "My Anime" left — the UI reads Library / Anime / Manga — but the symbols still said it in 102 places:
MyAnimeEntryActionMediaListEntryActionMyAnimePageModel/MyMangaPageModelAnimeLibraryPageModel/MangaLibraryPageModelMyAnimePage/MyMangaPageAnimeLibraryPage/MangaLibraryPageMyAnimePageModelTests+ 2 siblingsMediaListPageModelTests+ siblingsmy-animelibraryMyAnimeEntryActionwas the worst of them: it lives inIDialogServiceand serves five surfaces, none of which is My Anime.Two
animeTitleparameters in that same interface were stragglers from an earlier pass —ShowMoveToListAsyncandShowEditProgressAsyncalready took amediaTitle, whileShowEntryActionsAsyncandShowRatingAsyncdid not. Both are nowmediaTitle, through the implementations, both popups and the test fake.animeIdinToggleFavouritestays as it is: that is AniList's own GraphQL argument name.The README made two claims this PR falsifies — the tagline ("tracking your anime") and Quick list actions ("long-press any anime"). Both now cover manga.
The DI table also still described manga as a placeholder with no PageModel — directly above the two lines registering
MangaLibraryPageModelandMangaLibraryPage. That comment is now feed-only, and the manga pair sits beside the anime pair, since they are oneMediaListPageModelon identical lifetimes.The route rename is safe, and an earlier comment claiming otherwise was wrong.
AppShell.xamlused to saymy-animewas kept so existing navigation keeps working. There is not one absoluteGoToAsync("//…")in the app, and the airing deep link targetsmedia-details— the route had exactly one reference, theTab Route=attribute. Comment corrected.It is one commit, not two. I'd intended to split the manga tab from the rename, but the rename was applied on top of uncommitted Phase 2 work in the same files, so they're entangled at hunk level; splitting after the fact would have been surgery rather than a clean separation.
CI now screenshots both halves
The screenshot job only ever captured the anime list, so the tab this PR adds had no visual coverage — and
/ani-reviewflags exactly that: new views aren't in the screenshot set by default, so a broken accent colour or a missing binding wouldn't fail anything.my_anime.png→anime_library.png, plus a newmanga_library.pngcaptured from the MANGA sub-tab. The PR comment table and the README both show the pair now.Two things worth knowing about the capture step:
"MANGA", not"Manga". The sub-tab strip renders uppercase, so the uiautomator text isMANGAeven thoughAppShell.xamlsaysTitle="Manga". Verified against a real dump on the API 36 emulator — and it matters more than it looks, because a failed tap only warns, so the XAML casing would have silently re-shot the anime page and published it as the manga one.Loading manga list...to clear rather than assuming the list is ready. The pager doesn't pre-warm the adjacent page, so this is a genuine first load.The step is wrapped so a missed sub-tab warns and skips rather than failing the build, warns on a load timeout the way the page-load poll above it does, and taps back to ANIME afterwards because every later step navigates from the anime list.
The first CI run confirms it works there and not just on a local emulator:
manga_library.pngcame back as the actual manga page — MANGA sub-tab active,+1 CHon Shingeki beside+1 VOLon One Piece.Removing a list entry now actually removes it, under CI stubs
DeleteMediaListEntryAsyncreturnedtruewithout changing anything, and the fixtures are static — so a removal on device was always undone. The page model drops the row optimistically, thenOnEntryRemovedAsyncforces a reload that hands back the entry just deleted. The row vanished and reappeared, which reads as an app bug and is not one. The delete path had never run end to end on a device at all.Rather than making the fixtures mutable, a deleted-id set is layered over them so the data stays declarative: delete records the id, the list getters filter those entries and drop any section left empty, and
GetMediaAsyncstill returns the media but with a null list entry — so details falls back to "Add to List" instead of 404ing a title that still exists.Process-lifetime and deliberately not persisted, so a relaunch restores the full fixture and the screenshot job always captures a populated list.
This is the same class of gap as #134 — a stub too static to express something the real API does. It is also what made the empty state verifiable here without blanking a fixture and rebuilding twice.
One visible change
ConverterParameter='My Anime'→'Anime'on the anime page'sShell.TitleColor. That's a rainbow-palette key, so the nav title now hashes to a different colour — and to a sibling of the manga page's'Manga'. Small and deliberate, but it is a visual change; easy to revert.Verification
dotnet test— 1474 passed. All four AGENTS.md builds clean, zero warnings.The four new ones cover the +1 pill's labels, which had none at all. Writing them red first paid twice: the description test caught that
UnitNounis title-case for its standalone callers, so the naive fix read "Increment Episode progress" mid-sentence (lowered at the call site, the wayEditProgressPopupalready does it), and reviewing that diff is what surfaced theHintstill saying "episode" one line below theDescriptionI'd just fixed.The screen-reader text is verified on device rather than only in tests — a binding that fails at runtime is silent in MAUI:
The pre-existing
MyAnime*tests went green with only a type-name change, which was the stated signal that this moved code rather than altered behaviour.On the emulator:
+1 CHand+1 VOLon adjacent entries in one section.MediaListCollectionrequest, not two — the sub-tab pager does not pre-warm the adjacent page, so the manga list stays unfetched until you swipe to it:That readability is itself a change: the log messages used to say "MyAnime" on shared paths, so a manga load would have logged
Loading My Anime list.Breaking changes to shared types
All call sites updated; flagged because they're wide.
IAniListClient.GetMyAnimeListAsync/GetMyAnimeListGroupedAsync→GetMediaListAsync/GetMediaListGroupedAsync, both taking aMediaKindMyAnimeEntryAction→MediaListEntryAction(inIDialogService)PageStategainsEmptyAniListUsergainsMangaSectionOrder;AppSettingsgainsMangaSectionOrder+ amanga_section_orderkeyStill open on #12
Discover manga rows (needs new section definitions — Airing and Upcoming have no manga analogue), and the Settings pair.
statistics.mangastays unfetched until Settings needs it.