This commit is contained in:
Connor Johnstone
2026-03-19 15:07:30 -04:00
parent ee60076f70
commit c8e78606b1
10 changed files with 20 additions and 114 deletions

View File

@@ -58,14 +58,11 @@ pub fn artist_page(props: &Props) -> Html {
// Phase 2: if not enriched, fetch full data in background
if needs_enrich && !user_acted.get() {
match api::get_artist_full(&id).await {
Ok(full) => {
// Only apply if user hasn't triggered a refresh
if !user_acted.get() {
detail.set(Some(full));
}
if let Ok(full) = api::get_artist_full(&id).await {
// Only apply if user hasn't triggered a refresh
if !user_acted.get() {
detail.set(Some(full));
}
Err(_) => {} // quick data is still showing, don't overwrite with error
}
}
}
@@ -326,8 +323,7 @@ pub fn artist_page(props: &Props) -> Html {
<td>
if tc > 0 {
<span class="text-sm" style={
if album.watched_tracks >= tc { "color: var(--accent);" }
else if album.watched_tracks > 0 { "color: var(--accent);" }
if album.watched_tracks > 0 { "color: var(--accent);" }
else { "color: var(--text-muted);" }
}>
{ format!("{}/{}", album.watched_tracks, tc) }