Skip to content

feature: Group chapters by volume in Manga Screen#2906

Draft
nonproto wants to merge 4 commits intomainfrom
fix-mangascreen-group-chapters-by-volume-2608270239514151229
Draft

feature: Group chapters by volume in Manga Screen#2906
nonproto wants to merge 4 commits intomainfrom
fix-mangascreen-group-chapters-by-volume-2608270239514151229

Conversation

@nonproto
Copy link
Copy Markdown
Collaborator

@nonproto nonproto commented Mar 27, 2026

feature: Group chapters by volume in Manga Screen

Configured MangaScreen to assign ListCardType.Top to volume headers and appropriately offset indices passed to MangaChapterListItem so chapters seamlessly attach to the volume's parent card boundary. Also handled the specific MangaDex 'none' volume value gracefully.


PR created automatically by Jules for task 2608270239514151229 started by @nonproto

google-labs-jules bot and others added 3 commits March 27, 2026 10:51
Updated MangaViewModel to expose an aggregate volume flow and precalculate chapter to volume mappings. MangaScreen now receives chapters grouped by their volume, and maps over this structure to insert volume-specific header cards via ExpressiveListCard, cleanly satisfying the requirement.

Co-authored-by: nonproto <2092019+nonproto@users.noreply.github.com>
The previous update mapped volumes by collecting the aggregate database response directly into a Flow extension designed for non-null objects, triggering an NPE when no aggregate volume data existed. Introduced an \`AggregateResult\` wrapper in RxJava observables before mapping to a Flow to properly handle non-existent responses.

Co-authored-by: nonproto <2092019+nonproto@users.noreply.github.com>
Configured MangaScreen to assign ListCardType.Top to volume headers and appropriately offset indices passed to MangaChapterListItem so chapters seamlessly attach to the volume's parent card boundary. Also handled the specific MangaDex 'none' volume value gracefully.

Co-authored-by: nonproto <2092019+nonproto@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request implements volume-based grouping for chapters on the manga screen. It introduces an aggregateFlow in MangaViewModel to retrieve volume data from the database and updates the MangaScreen to display chapters organized by volume headers. Key feedback involves adding error handling for JSON parsing of volume data to prevent crashes and adjusting the index/count parameters in the chapter list to maintain correct UI styling for list items.

@nonproto nonproto changed the title fix: place chapters visually inside volume cards feature: Group chapters by volume in Manga Screen Mar 27, 2026
@nonproto
Copy link
Copy Markdown
Collaborator Author

shelving this for now as the aggregate endpoint only takes into account chapters uploaded on MangaDex and not all chapters to volumes. This causes issues with missing chapters on Dex and latest chapters being grouped into the same group.

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