(`/api/albums/${latestAlbum.id}`);
+ if (detail.tracks.length > 0) playQueue(detail.tracks, 0);
+ } finally {
+ heroStarting = false;
+ }
+ }
+
type PlaceholderVariant = 'building' | 'failed' | 'pending' | 'seed-needed';
function placeholderVariant(slot: 'for-you' | 'discover' | 'songs-like'): PlaceholderVariant {
const s = systemStatusQ.data;
@@ -134,6 +181,40 @@
{pageTitle('Home')}
+
+ {#if forYouPlaylist || latestAlbum}
+
+ {#if forYouPlaylist}
+ 0
+ ? `${forYouPlaylist.track_count} tracks for you`
+ : 'Building your mix'}
+ onPlay={playForYou}
+ playDisabled={heroStarting || forYouPlaylist.track_count === 0}
+ />
+ {/if}
+ {#if latestAlbum}
+
+ {/if}
+
+ {/if}
+