feat: rework the home layout

Recently played keeps its shape. Mixes and playlists now share one row,
half and half on large screens with smaller cards, capped at six each
with a link to the full list. Albums are the ones the user listened to
most recently, which is a new query joining the listening history with
the album tracks. The endless track wall is now "Descubrir".
This commit is contained in:
2026-07-21 19:06:36 +02:00
parent 7e697e423b
commit 0d34a40931
6 changed files with 180 additions and 42 deletions
+46
View File
@@ -56,6 +56,23 @@ export interface paths {
patch?: never;
trace?: never;
};
"/albums/recent": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** Get The Albums The Current User Listened To Most Recently. */
get: operations["GetRecentlyListenedAlbums"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/albums/{albumId}/tracks": {
parameters: {
query?: never;
@@ -991,6 +1008,35 @@ export interface operations {
};
};
};
GetRecentlyListenedAlbums: {
parameters: {
query?: {
limit?: number | string;
};
header?: never;
path?: never;
cookie?: never;
};
requestBody?: never;
responses: {
/** @description OK */
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["AlbumApplicationResponse"][];
};
};
/** @description Unauthorized */
401: {
headers: {
[name: string]: unknown;
};
content?: never;
};
};
};
GetAlbumTracks: {
parameters: {
query?: {