feat(webui): migrate stats page to react

- move the stats route onto the React shell with Recharts-based visualizations
- remove the global Chart.js include and add a local stats seed script for easier testing
- keep parity coverage with route, API, and helper tests while preserving the legacy page layout
This commit is contained in:
Antti Kettunen 2026-05-14 16:45:19 +03:00
parent a3ba79a9ce
commit ff4c556257
No known key found for this signature in database
GPG key ID: C6B2A3D250359BD7

View file

@ -62,6 +62,28 @@ declare global {
showLoadingOverlay: (message?: string) => void;
hideLoadingOverlay: () => void;
};
navigateToArtistDetail?: (
artistId: string | number,
artistName: string,
sourceOverride?: string | null,
options?: Record<string, unknown>,
) => void;
playLibraryTrack?: (
track: {
id: string | number;
title: string;
file_path: string;
bitrate?: string | number | null;
artist_id?: string | number | null;
album_id?: string | number | null;
_stats_image?: string | null;
},
albumTitle: string,
artistName: string,
) => void | Promise<void>;
startStream?: (searchResult: Record<string, unknown>) => void | Promise<void>;
showLoadingOverlay?: (message?: string) => void;
hideLoadingOverlay?: () => void;
}
}