fix(musicbrainz): don't separate members by ended status

- All band members go to single 'Members' list
- Show ended status with muted color
- Tooltip shows roles + period (e.g. 'guitar (1981 - 2003)')
- Remove separate 'Former Members' section

cc
This commit is contained in:
vicrodh committed 2026-01-25 20:38:44 -06:00
1 parent 77d3d21882
commit 8271cb2436
5 files changed
+40 -29

No files matched your search

+3 -5
View File
@@ -402,17 +402,15 @@ fn extract_relationships(artist: &ArtistFullResponse) -> ArtistRelationships {
begin: relation.begin.clone(),
end: relation.end.clone(),
}),
ended: relation.ended.unwrap_or(false),
};
match relation.relation_type.as_str() {
"member of band" => {
if relation.direction.as_deref() == Some("backward") {
// We're viewing a BAND, the related artist is a MEMBER
if relation.ended == Some(true) {
past_members.push(related);
} else {
members.push(related);
}
// All members go to the same list - don't separate by ended status
members.push(related);
} else {
// We're viewing a PERSON, the related artist is a BAND/GROUP
groups.push(related);
+1
View File
@@ -328,6 +328,7 @@ pub struct RelatedArtist {
pub name: String,
pub role: Option<String>,
pub period: Option<Period>,
pub ended: bool,
}
/// Time period for a relationship