m2, library ux

This commit is contained in:
Boof2015
2026-06-13 13:13:53 -04:00
parent 23be9875e8
commit 3d30a09713
24 changed files with 2397 additions and 39 deletions
+30
View File
@@ -0,0 +1,30 @@
// Playlist row types — mobile port of the desktop playlist model
// (astra src/main/services/library.ts, renderer playlistStore.ts).
import type { DbTrack } from './library';
export interface Playlist {
id: number;
name: string;
created_at: number;
updated_at: number;
last_played_at: number | null;
/** First entry's artwork — computed, not stored. */
auto_cover_hash: string | null;
/** Entries whose track exists in the library. */
track_count: number;
/** Entries whose track is gone (folder removed / file deleted). */
missing_track_count: number;
}
export interface PlaylistTrackEntry {
id: number;
track_path: string;
position: number;
added_at: number;
missing: boolean;
fallback_title: string | null;
fallback_artist: string | null;
fallback_album: string | null;
track: DbTrack | null;
}