reorder artist page

This commit is contained in:
Boof2015
2026-07-04 15:18:29 -04:00
parent f9ef845800
commit 34ffda7190
+11 -11
View File
@@ -202,17 +202,6 @@ function buildListItems(detail: ArtistDetail): ArtistPageItem[] {
return items;
}
items.push({
key: 'section-songs',
type: 'section',
title: 'Songs',
trailing: formatCount(detail.songTracks.length, 'track'),
target: 'songs',
});
detail.songTracks.slice(0, SONG_PREVIEW_LIMIT).forEach((track, index) => {
items.push({ key: `song-${track.id}`, type: 'track', track, section: 'songs', index });
});
if (detail.albums.length > 0) {
items.push({
key: 'section-albums',
@@ -224,6 +213,17 @@ function buildListItems(detail: ArtistDetail): ArtistPageItem[] {
items.push({ key: 'albums', type: 'albums' });
}
items.push({
key: 'section-songs',
type: 'section',
title: 'Songs',
trailing: formatCount(detail.songTracks.length, 'track'),
target: 'songs',
});
detail.songTracks.slice(0, SONG_PREVIEW_LIMIT).forEach((track, index) => {
items.push({ key: `song-${track.id}`, type: 'track', track, section: 'songs', index });
});
if (detail.showAppearances) {
items.push({
key: 'section-appearances',