Album & Artist Pages#19
Open
CStoker11 wants to merge 8 commits into
Open
Conversation
added 8 commits
June 4, 2026 19:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Builds out the album and artist UI pages on top of the mock API
What's included
Albums
rows (list), toggleable from the header.
Artists
Cross-cutting
Architecture & decisions
Album/Song/Artistmodels withfromJsonfactories;
ApiClientextended withfetchArtists()alongsidefetchAlbums()ids (no artist on the album, no genre on the artist), so the UI inverts that
relationship to show artists on albums and to derive artist genres/song counts.
StatefulWidget+FutureBuilder+setState. Thisfits the app's size; filtering is done client-side over the already-loaded
data. At larger scale I'd debounce search input, memoize filtered results, and
consider a dedicated state solution / pagination.
Testing
Album/Song/Artist.fromJson),including nested and empty collections.
flutter test.How to run
cd api && dart pub get && dart run bin/server.dartcd app && flutter pub get && flutter runPossible follow-ups