feat(cms): add expandable Album browser to Track Browser

This commit is contained in:
daniel-c-harvey
2026-06-11 16:26:44 -04:00
parent 55b26b2e41
commit 62620bc0d4
3 changed files with 268 additions and 1 deletions
@@ -53,7 +53,9 @@
}
else if (VM.Mode == BrowseMode.Albums)
{
<MudAlert Severity="Severity.Info" Class="mt-4">Album browser — coming in the next wave.</MudAlert>
<CmsAlbumBrowser Releases="VM.Albums"
IsLoading="VM.AlbumsLoading"
OnReleasesChanged="OnAlbumsChanged" />
}
else
{
@@ -64,6 +66,10 @@
@code {
private CmsTrackGrid? _grid;
// The album browser owns its own row state and removes a deleted release locally. We only need to
// re-render the page chrome; VM.Albums is intentionally not re-fetched (cached for the circuit).
private void OnAlbumsChanged() => StateHasChanged();
// Local state for the parent-owned "Generate All Missing" bulk run.
private bool _bulkRunning;
private int _bulkTotal;