feat: add CmsGenreBrowser genre browse mode to CMS track list

fix: add @key="ExpandedGenre" to CmsTrackGrid so genre switch forces fresh component instance
This commit is contained in:
daniel-c-harvey
2026-06-11 16:42:46 -04:00
parent 55b26b2e41
commit b22c3f96d7
3 changed files with 72 additions and 1 deletions
@@ -57,7 +57,10 @@
}
else
{
<MudAlert Severity="Severity.Info" Class="mt-4">Genre browser — coming in the next wave.</MudAlert>
<CmsGenreBrowser Genres="VM.Genres"
IsLoading="VM.GenresLoading"
ExpandedGenre="VM.ExpandedGenre"
OnExpandedGenreChanged="OnExpandedGenreChanged" />
}
</MudContainer>
@@ -93,6 +96,12 @@
StateHasChanged();
}
private void OnExpandedGenreChanged(string? genre)
{
VM.SetExpandedGenre(genre);
StateHasChanged();
}
/// <summary>
/// Backfill every track missing a waveform profile, one request at a time so a large backfill
/// does not flood the API with concurrent WAV decodes. On completion, refreshes the grid's