{#each tracks as track, i (track.id)}
{@const active = player.current.id === track.id}
-
+
= {
pop: { label: 'Pop', tagline: 'Éxitos que suenan en todas partes' },
rock: { label: 'Rock', tagline: 'Guitarras, actitud y ruido' },
diff --git a/web-player/src/lib/recentlyPlayed.ts b/web-player/src/lib/recentlyPlayed.ts
index 1fee45a..9b110d6 100644
--- a/web-player/src/lib/recentlyPlayed.ts
+++ b/web-player/src/lib/recentlyPlayed.ts
@@ -1,9 +1,5 @@
import { player, toQueueItems, type ApiTrackLike, type QueueItem } from '$lib/player/player.svelte';
-/**
- * Merges the in-memory session history (tracks played since the page loaded)
- * with the server-side listening history, de-duplicated by id and capped at `limit`.
- */
export function mergeRecentlyPlayed(history: ApiTrackLike[], limit: number): QueueItem[] {
const seen = new Set();
const merged: QueueItem[] = [];
diff --git a/web-player/src/lib/server/greeting.ts b/web-player/src/lib/server/greeting.ts
index 0115d24..5375451 100644
--- a/web-player/src/lib/server/greeting.ts
+++ b/web-player/src/lib/server/greeting.ts
@@ -88,10 +88,6 @@ export interface Birthday {
day: number;
}
-/**
- * `birthday` is optional because the user's date of birth isn't part of the
- * session/profile data yet. Wire it up here once that field exists upstream.
- */
export function pickGreeting(date: Date, birthday?: Birthday | null): string {
const month = date.getMonth() + 1;
const day = date.getDate();
diff --git a/web-player/src/lib/server/playbackConfig.ts b/web-player/src/lib/server/playbackConfig.ts
index 735bb9d..af2f8c8 100644
--- a/web-player/src/lib/server/playbackConfig.ts
+++ b/web-player/src/lib/server/playbackConfig.ts
@@ -15,8 +15,6 @@ export async function getAllowAnonymousListening(fetchFn: typeof fetch): Promise
cached = { allowAnonymousListening, expiresAt: Date.now() + CACHE_TTL_MS };
return allowAnonymousListening;
} catch {
- // The API being unreachable shouldn't take down every page in the app;
- // fail closed (as if anonymous listening were off) and retry next time.
return false;
}
}
diff --git a/web-player/src/lib/theme/theme.css b/web-player/src/lib/theme/theme.css
index f8fbc85..ec2380d 100644
--- a/web-player/src/lib/theme/theme.css
+++ b/web-player/src/lib/theme/theme.css
@@ -1,10 +1,4 @@
:root {
- /* Hue-based tokens (--mf-accent*, --mf-bg/elevated/panel-bg/bar-bg/hairline,
- --mf-ambient, --mf-hero-bg/spotlight-bg/modal-glow, --mf-logo-grad,
- --mf-cover-grad) are NOT defined here: they come only from
- buildThemeTokens() in theme/tokens.ts, inlined as SSR