feat: playlists with a cover, a collage of the covers of their albums
- A playlist says which albums stand for it (album_ids): up to 4 albums that have a cover, in the order they first appear in it, each once, read for a whole page of playlists in one query. An empty one has an empty list. - The Playlists page is a grid of cards with the collage, and the page of a playlist shows it in its header. The pages of a smart playlist and of a suggested one show a collage of the albums of their first songs. - Nothing is fetched for it: the covers are the ones the library already has.
This commit is contained in:
parent
75577e1fdb
commit
a1e192066c
1 changed files with 441 additions and 120 deletions
6
web/src/api/schema.d.ts
vendored
6
web/src/api/schema.d.ts
vendored
|
|
@ -2694,6 +2694,12 @@ export interface components {
|
|||
* @description When it was last changed, tracks included.
|
||||
*/
|
||||
updated_at: string;
|
||||
/**
|
||||
* @description Up to 4 albums that have a cover and stand for the playlist, in the order they first appear in it, each once:
|
||||
* their covers (`GET /albums/{id}/cover`) make the picture of the playlist. Empty when none of its songs has
|
||||
* an album with a cover.
|
||||
*/
|
||||
album_ids: number[];
|
||||
};
|
||||
PlaylistPage: {
|
||||
items: components["schemas"]["Playlist"][];
|
||||
|
|
|
|||
Loading…
Reference in a new issue