feat(playlists): Update PlaylistDetailView with collage, stats, edit button

- Replace artwork section with PlaylistCollage component
- Add play count display in header info (with BarChart2 icon)
- Increment play count when "Play All" is clicked
- Add edit button that opens PlaylistModal
- Add handleEditSuccess and handleDelete callbacks
- Add onPlaylistUpdated and onPlaylistDeleted props
- Update Sidebar to use NavigationItem in list view (icons only)
- Keep PlaylistCollage in grid view only per user request
- Add badge and class props to NavigationItem component
This commit is contained in:
vicrodh committed 2026-01-11 20:44:39 -06:00
1 parent ec4df03455
commit 513ac9a8a0
3 files changed
+154 -86

No files matched your search

+13 -2
View File
@@ -4,16 +4,18 @@
interface Props {
icon: Snippet;
label: string;
badge?: string;
active?: boolean;
onclick?: () => void;
class?: string;
}
let { icon, label, active = false, onclick }: Props = $props();
let { icon, label, badge, active = false, onclick, class: className = '' }: Props = $props();
</script>
<button
{onclick}
class="nav-item"
class="nav-item {className}"
class:active
title={label}
>
@@ -21,6 +23,9 @@
{@render icon()}
</div>
<span class="label">{label}</span>
{#if badge}
<span class="badge">{badge}</span>
{/if}
</button>
<style>
@@ -67,4 +72,10 @@
flex: 1;
min-width: 0;
}
.badge {
font-size: 11px;
color: var(--text-muted);
flex-shrink: 0;
}
</style>