feat: add playlist editing functionality; implement PlaylistEditPage and integrate with playlists service

feat: enhance PlaylistsPage with search, sorting, and playlist creation features; improve UI components and state management
This commit is contained in:
JSC
2025-08-10 19:30:08 +02:00
parent 3d16b36ee9
commit 6eb023a63c
6 changed files with 1106 additions and 9 deletions

View File

@@ -97,10 +97,10 @@ export function CompactPlayer({ className }: CompactPlayerProps) {
}
}, [state.volume, executeAction])
// Don't show if no current sound
if (!state.current_sound) {
return null
}
// // Don't show if no current sound
// if (!state.current_sound) {
// return null
// }
return (
<div className={cn("w-full", className)}>
@@ -150,7 +150,7 @@ export function CompactPlayer({ className }: CompactPlayerProps) {
</div>
<div className="flex-1 min-w-0">
<div className="text-sm font-medium truncate">
{state.current_sound.name}
{state.current_sound?.name || 'No track selected'}
</div>
<div className="text-xs text-muted-foreground">
{state.playlist?.name}