Commit c0c5d56c authored by Aryan Noshirvnai's avatar Aryan Noshirvnai

Spotify-inspired UX: real-time synced lyrics, minimal nav active-state, hover play overlay

Real-time synced lyrics view in FullPlayer: line-by-line highlight follows
playback position, auto-scrolls the active line to center, tapping a line
seeks there. Falls back to the existing static text view (then EmptyState)
exactly as before when a song has no synced timing.

Interaction patterns only - color identity deliberately stays cobalt, not
Spotify's green, per the earlier explicit decision to avoid that look:
- Nav active-state simplified to bold+accent icon/label, no background
  chip, with real aria-current="page" (sidebar, mobile tabs, More sheet)
- Library's shared song row overlays play/pause on the artwork itself on
  hover (always visible for whichever track is actually current) instead
  of a separate always-on circular button beside it
Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
parent d761f2d6
Pipeline #1145 failed with stage
in 5 minutes and 56 seconds
...@@ -35,8 +35,13 @@ export function searchLibrary(query: string) { ...@@ -35,8 +35,13 @@ export function searchLibrary(query: string) {
}) })
} }
/** synced_lyrics is [seconds, text][] - real LRC line timing when a synced source was found
* (see the backend's fetch_lyrics), used to drive the highlighted line-by-line lyrics view.
* Null when only plain-text lyrics (or nothing) exists - callers fall back to `lyrics`. */
export function getLyrics(fileId: number) { export function getLyrics(fileId: number) {
return apiFetch<{ status: string; lyrics: string | null }>(`/library/lyrics/${fileId}`) return apiFetch<{ status: string; lyrics: string | null; synced_lyrics: [number, string][] | null }>(
`/library/lyrics/${fileId}`,
)
} }
export interface Playlist { export interface Playlist {
......
import { render, screen, waitFor, within } from '@testing-library/react' import { render, screen, waitFor, within } from '@testing-library/react'
import userEvent from '@testing-library/user-event' import userEvent from '@testing-library/user-event'
import { afterEach, describe, expect, it, vi } from 'vitest' import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
import { PlayerProvider, usePlayer, type PlayableSong } from '../context/PlayerContext' import { PlayerProvider, usePlayer, type PlayableSong } from '../context/PlayerContext'
import { NowPlayingBar } from './NowPlayingBar' import { NowPlayingBar } from './NowPlayingBar'
import { FullPlayer } from './FullPlayer' import { FullPlayer } from './FullPlayer'
import * as streamApi from '../api/stream' import * as streamApi from '../api/stream'
import * as libraryApi from '../api/library'
const SONG_WITH_LYRICS: PlayableSong = { const SONG_WITH_LYRICS: PlayableSong = {
id: 1, id: 1,
...@@ -64,6 +65,12 @@ function dialog() { ...@@ -64,6 +65,12 @@ function dialog() {
} }
describe('FullPlayer', () => { describe('FullPlayer', () => {
beforeEach(() => {
// Default: no synced timing available - matches the plain-text-only fallback path most
// songs take. Individual tests override this to exercise the synced view itself.
vi.spyOn(libraryApi, 'getLyrics').mockResolvedValue({ status: 'success', lyrics: null, synced_lyrics: null })
})
afterEach(() => { afterEach(() => {
vi.restoreAllMocks() vi.restoreAllMocks()
}) })
...@@ -105,6 +112,66 @@ describe('FullPlayer', () => { ...@@ -105,6 +112,66 @@ describe('FullPlayer', () => {
expect(toggleButton).toHaveAttribute('aria-label', 'Show lyrics') expect(toggleButton).toHaveAttribute('aria-label', 'Show lyrics')
}) })
it('shows a real-time synced lyrics view when the song has line timing', async () => {
vi.spyOn(streamApi, 'fetchStreamUrl').mockResolvedValue('blob:fake-url')
vi.spyOn(libraryApi, 'getLyrics').mockResolvedValue({
status: 'success',
lyrics: 'First\nSecond',
synced_lyrics: [
[0, 'First'],
[10, 'Second'],
],
})
renderPlayer()
await userEvent.click(screen.getByText('Start Playback'))
await openFullPlayer()
await userEvent.click(screen.getByRole('button', { name: 'Show lyrics' }))
const lyricsRegion = await screen.findByRole('region', { name: 'Lyrics' })
expect(within(lyricsRegion).getByText('First')).toBeInTheDocument()
expect(within(lyricsRegion).getByText('Second')).toBeInTheDocument()
})
it('clicking a synced lyric line seeks there and marks it the active line', async () => {
vi.spyOn(streamApi, 'fetchStreamUrl').mockResolvedValue('blob:fake-url')
vi.spyOn(libraryApi, 'getLyrics').mockResolvedValue({
status: 'success',
lyrics: 'First\nSecond',
synced_lyrics: [
[0, 'First'],
[42, 'Second'],
],
})
renderPlayer()
await userEvent.click(screen.getByText('Start Playback'))
await openFullPlayer()
await userEvent.click(screen.getByRole('button', { name: 'Show lyrics' }))
const lyricsRegion = await screen.findByRole('region', { name: 'Lyrics' })
await userEvent.click(within(lyricsRegion).getByText('Second'))
await waitFor(() => {
expect(within(lyricsRegion).getByText('Second')).toHaveAttribute('aria-current', 'true')
})
expect(within(lyricsRegion).getByText('First')).not.toHaveAttribute('aria-current')
})
it('falls back to plain-text lyrics when no synced timing is available', async () => {
vi.spyOn(streamApi, 'fetchStreamUrl').mockResolvedValue('blob:fake-url')
// beforeEach already mocks synced_lyrics: null - this just makes the fallback explicit.
renderPlayer()
await userEvent.click(screen.getByText('Start Playback'))
await openFullPlayer()
await userEvent.click(screen.getByRole('button', { name: 'Show lyrics' }))
const lyricsRegion = await screen.findByRole('region', { name: 'Lyrics' })
expect(lyricsRegion).toHaveTextContent('Line one')
expect(lyricsRegion).toHaveTextContent('Line two')
})
it('falls back to an empty state if the current song changes to one with no lyrics while lyrics are showing', async () => { it('falls back to an empty state if the current song changes to one with no lyrics while lyrics are showing', async () => {
vi.spyOn(streamApi, 'fetchStreamUrl').mockResolvedValue('blob:fake-url') vi.spyOn(streamApi, 'fetchStreamUrl').mockResolvedValue('blob:fake-url')
renderPlayer() renderPlayer()
......
...@@ -17,6 +17,7 @@ import { ...@@ -17,6 +17,7 @@ import {
SkipForward, SkipForward,
} from 'lucide-react' } from 'lucide-react'
import { usePlayer, type PlayableSong } from '../context/PlayerContext' import { usePlayer, type PlayableSong } from '../context/PlayerContext'
import { getLyrics } from '../api/library'
import { EmptyState } from './ui/EmptyState' import { EmptyState } from './ui/EmptyState'
import { useMountTransition } from '../hooks/useMountTransition' import { useMountTransition } from '../hooks/useMountTransition'
...@@ -59,10 +60,30 @@ export function FullPlayer() { ...@@ -59,10 +60,30 @@ export function FullPlayer() {
} = usePlayer() } = usePlayer()
const [showLyrics, setShowLyrics] = useState(false) const [showLyrics, setShowLyrics] = useState(false)
const [queueOpen, setQueueOpen] = useState(false) const [queueOpen, setQueueOpen] = useState(false)
const [syncedLyrics, setSyncedLyrics] = useState<[number, string][] | null>(null)
const { mounted, visible } = useMountTransition(isExpanded && !!currentSong, ANIMATION_MS) const { mounted, visible } = useMountTransition(isExpanded && !!currentSong, ANIMATION_MS)
const collapseButtonRef = useRef<HTMLButtonElement>(null) const collapseButtonRef = useRef<HTMLButtonElement>(null)
const queueBackButtonRef = useRef<HTMLButtonElement>(null) const queueBackButtonRef = useRef<HTMLButtonElement>(null)
const queueButtonRef = useRef<HTMLButtonElement>(null) const queueButtonRef = useRef<HTMLButtonElement>(null)
const activeLineRef = useRef<HTMLParagraphElement | null>(null)
// Real synced timing lives behind its own endpoint (see api/library.ts's getLyrics), not on
// the lightweight PlayableSong every page constructs - only fetched here, once, per song.
// id > 0 is the established "this is a real LibrarySong, not a synthetic cross-source id"
// convention used everywhere else a PlayableSong might not have a library row behind it.
useEffect(() => {
setSyncedLyrics(null)
if (!currentSong || currentSong.id <= 0) return
let cancelled = false
getLyrics(currentSong.id)
.then((res) => {
if (!cancelled) setSyncedLyrics(res.synced_lyrics)
})
.catch(() => {})
return () => {
cancelled = true
}
}, [currentSong?.id])
useEffect(() => { useEffect(() => {
if (visible) collapseButtonRef.current?.focus() if (visible) collapseButtonRef.current?.focus()
...@@ -108,6 +129,18 @@ export function FullPlayer() { ...@@ -108,6 +129,18 @@ export function FullPlayer() {
} }
}, [visible]) }, [visible])
// Last line whose timestamp has already passed - -1 (nothing active yet) before the first
// line's own timestamp. Computed here (not after the early return below) since it drives
// the scroll-into-view effect right after it, which - like every other hook in this
// component - has to run unconditionally on every render.
const activeLineIndex = syncedLyrics
? syncedLyrics.reduce((acc, [time], i) => (time <= progress ? i : acc), -1)
: -1
useEffect(() => {
if (showLyrics) activeLineRef.current?.scrollIntoView({ behavior: 'smooth', block: 'center' })
}, [activeLineIndex, showLyrics])
if (!mounted || !currentSong) return null if (!mounted || !currentSong) return null
function openQueue() { function openQueue() {
...@@ -227,7 +260,29 @@ export function FullPlayer() { ...@@ -227,7 +260,29 @@ export function FullPlayer() {
'linear-gradient(to bottom, transparent, black 24px, black calc(100% - 24px), transparent)', 'linear-gradient(to bottom, transparent, black 24px, black calc(100% - 24px), transparent)',
}} }}
> >
{currentSong.lyrics ? ( {syncedLyrics ? (
// Real line-by-line sync: past/future lines dim, the currently-playing one is
// full-brightness and bold, auto-scrolled to center (Spotify's actual signature
// lyrics behavior, not an approximation of it).
<div className="space-y-4 py-[40%]">
{syncedLyrics.map(([time, text], i) => {
const active = i === activeLineIndex
return (
<p
key={time}
ref={active ? activeLineRef : undefined}
onClick={() => seek(time)}
aria-current={active ? 'true' : undefined}
className={`cursor-pointer text-[19px] leading-snug transition-all duration-200 ${
active ? 'font-bold text-on-surface' : 'text-on-surface-variant/50 hover:text-on-surface-variant'
}`}
>
{text}
</p>
)
})}
</div>
) : currentSong.lyrics ? (
<p className="whitespace-pre-wrap text-[17px] leading-loose text-on-surface">{currentSong.lyrics}</p> <p className="whitespace-pre-wrap text-[17px] leading-loose text-on-surface">{currentSong.lyrics}</p>
) : ( ) : (
<EmptyState icon={ScrollText} message="No lyrics available for this track." /> <EmptyState icon={ScrollText} message="No lyrics available for this track." />
......
import { render, screen } from '@testing-library/react'
import { MemoryRouter } from 'react-router-dom'
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
import { Layout } from './Layout'
import { AuthProvider } from '../context/AuthContext'
import { PlayerProvider } from '../context/PlayerContext'
// Both the desktop sidebar and the mobile bottom-tab bar render simultaneously in the DOM
// (hidden/shown purely via CSS breakpoints jsdom doesn't apply), so a nav item's accessible
// name always matches more than one link - tests below use getAllByRole and check every match.
function renderLayout(path: string) {
return render(
<MemoryRouter initialEntries={[path]}>
<AuthProvider>
<PlayerProvider>
<Layout title="Test Page">
<p>Page content</p>
</Layout>
</PlayerProvider>
</AuthProvider>
</MemoryRouter>,
)
}
describe('Layout', () => {
beforeEach(() => {
vi.stubEnv('VITE_DEV_ACCESS_TOKEN', '')
vi.stubEnv('VITE_DEV_REFRESH_TOKEN', '')
})
afterEach(() => {
vi.unstubAllEnvs()
vi.restoreAllMocks()
})
it('renders the page title and children', () => {
renderLayout('/library')
expect(screen.getByText('Test Page')).toBeInTheDocument()
expect(screen.getByText('Page content')).toBeInTheDocument()
})
it('marks the current route\'s nav links as the active page, and no others', () => {
renderLayout('/library')
for (const link of screen.getAllByRole('link', { name: 'Library' })) {
expect(link).toHaveAttribute('aria-current', 'page')
}
for (const link of screen.getAllByRole('link', { name: 'Discover' })) {
expect(link).not.toHaveAttribute('aria-current')
}
})
it('updates which link is active when the route changes', () => {
renderLayout('/discovery')
for (const link of screen.getAllByRole('link', { name: 'Discover' })) {
expect(link).toHaveAttribute('aria-current', 'page')
}
for (const link of screen.getAllByRole('link', { name: 'Library' })) {
expect(link).not.toHaveAttribute('aria-current')
}
})
})
...@@ -77,6 +77,9 @@ export function Layout({ title, children }: { title: string; children: ReactNode ...@@ -77,6 +77,9 @@ export function Layout({ title, children }: { title: string; children: ReactNode
<Headphones size={22} strokeWidth={2} /> <Headphones size={22} strokeWidth={2} />
Stax Stax
</Link> </Link>
{/* Active state deliberately has no background/border chip - just the icon and label
going bold and accent-colored, matching Spotify's own minimal nav treatment
(nothing else in its sidebar competes visually with the content it's pointing at). */}
<nav className="flex-1 space-y-0.5 overflow-y-auto px-3"> <nav className="flex-1 space-y-0.5 overflow-y-auto px-3">
{NAV_ITEMS.map((item) => { {NAV_ITEMS.map((item) => {
const active = location.pathname === item.to const active = location.pathname === item.to
...@@ -84,10 +87,9 @@ export function Layout({ title, children }: { title: string; children: ReactNode ...@@ -84,10 +87,9 @@ export function Layout({ title, children }: { title: string; children: ReactNode
<Link <Link
key={item.to} key={item.to}
to={item.to} to={item.to}
className={`flex items-center gap-3 rounded-lg border-l-2 px-3 py-2.5 text-sm transition-colors duration-150 ${ aria-current={active ? 'page' : undefined}
active className={`flex items-center gap-3 rounded-lg px-3 py-2.5 text-sm transition-colors duration-150 ${
? 'border-primary bg-surface-container text-primary' active ? 'font-bold text-primary' : 'text-on-surface-variant hover:text-on-surface'
: 'border-transparent text-on-surface-variant hover:border-outline-variant hover:bg-surface-container/60 hover:text-on-surface'
}`} }`}
> >
<item.icon size={18} strokeWidth={active ? 2.25 : 1.75} /> <item.icon size={18} strokeWidth={active ? 2.25 : 1.75} />
...@@ -104,11 +106,12 @@ export function Layout({ title, children }: { title: string; children: ReactNode ...@@ -104,11 +106,12 @@ export function Layout({ title, children }: { title: string; children: ReactNode
<Link <Link
key={item.to} key={item.to}
to={item.to} to={item.to}
aria-current={active ? 'page' : undefined}
className={`flex items-center gap-3 rounded-lg px-3 py-2.5 text-sm transition-colors duration-150 ${ className={`flex items-center gap-3 rounded-lg px-3 py-2.5 text-sm transition-colors duration-150 ${
active ? 'bg-surface-container text-primary' : 'text-on-surface-variant hover:text-on-surface' active ? 'font-bold text-primary' : 'text-on-surface-variant hover:text-on-surface'
}`} }`}
> >
<item.icon size={18} strokeWidth={1.75} /> <item.icon size={18} strokeWidth={active ? 2.25 : 1.75} />
{item.label} {item.label}
</Link> </Link>
) )
...@@ -160,6 +163,7 @@ export function Layout({ title, children }: { title: string; children: ReactNode ...@@ -160,6 +163,7 @@ export function Layout({ title, children }: { title: string; children: ReactNode
<Link <Link
key={item.to} key={item.to}
to={item.to} to={item.to}
aria-current={active ? 'page' : undefined}
className="flex min-h-[56px] flex-1 flex-col items-center justify-center gap-1 text-[10.5px] transition-colors duration-150" className="flex min-h-[56px] flex-1 flex-col items-center justify-center gap-1 text-[10.5px] transition-colors duration-150"
> >
<item.icon <item.icon
...@@ -167,7 +171,7 @@ export function Layout({ title, children }: { title: string; children: ReactNode ...@@ -167,7 +171,7 @@ export function Layout({ title, children }: { title: string; children: ReactNode
strokeWidth={active ? 2.25 : 1.75} strokeWidth={active ? 2.25 : 1.75}
className={`transition-transform duration-150 ${active ? 'scale-110 text-primary' : 'text-on-surface-variant'}`} className={`transition-transform duration-150 ${active ? 'scale-110 text-primary' : 'text-on-surface-variant'}`}
/> />
<span className={active ? 'text-primary' : 'text-on-surface-variant'}>{item.label}</span> <span className={active ? 'font-bold text-primary' : 'text-on-surface-variant'}>{item.label}</span>
</Link> </Link>
) )
})} })}
...@@ -209,9 +213,10 @@ export function Layout({ title, children }: { title: string; children: ReactNode ...@@ -209,9 +213,10 @@ export function Layout({ title, children }: { title: string; children: ReactNode
<Link <Link
key={item.to} key={item.to}
to={item.to} to={item.to}
aria-current={active ? 'page' : undefined}
onClick={() => setMoreOpen(false)} onClick={() => setMoreOpen(false)}
className={`flex flex-col items-center gap-1.5 rounded-xl px-2 py-3 text-center text-[11px] transition-colors duration-150 ${ className={`flex flex-col items-center gap-1.5 rounded-xl px-2 py-3 text-center text-[11px] transition-colors duration-150 hover:bg-surface-container/60 ${
active ? 'bg-surface-container text-primary' : 'text-on-surface-variant hover:bg-surface-container/60 hover:text-on-surface' active ? 'font-bold text-primary' : 'text-on-surface-variant hover:text-on-surface'
}`} }`}
> >
<item.icon size={20} strokeWidth={active ? 2.25 : 1.75} /> <item.icon size={20} strokeWidth={active ? 2.25 : 1.75} />
......
...@@ -46,31 +46,41 @@ function SongRow({ ...@@ -46,31 +46,41 @@ function SongRow({
aria-label={isCurrent && isPlaying ? 'Pause' : 'Play'} aria-label={isCurrent && isPlaying ? 'Pause' : 'Play'}
className="flex min-w-0 flex-1 items-center gap-4 rounded-lg px-2 py-3 text-left transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary disabled:cursor-not-allowed" className="flex min-w-0 flex-1 items-center gap-4 rounded-lg px-2 py-3 text-left transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary disabled:cursor-not-allowed"
> >
{/* Play/pause overlays the artwork itself on hover (Spotify's card pattern), rather
than sitting in a separate always-visible control next to it - stays visible
without hovering for whichever track is actually current, same as Spotify keeps
its now-playing indicator on screen for the active track specifically. */}
<div className="relative h-12 w-12 shrink-0">
{song.coverart ? ( {song.coverart ? (
<img src={song.coverart} alt="" className="h-12 w-12 shrink-0 rounded-lg object-cover" /> <img src={song.coverart} alt="" className="h-12 w-12 rounded-lg object-cover" />
) : ( ) : (
<div className="flex h-12 w-12 shrink-0 items-center justify-center rounded-lg bg-surface-container-high text-on-surface-variant"> <div className="flex h-12 w-12 items-center justify-center rounded-lg bg-surface-container-high text-on-surface-variant">
<Music2 size={18} strokeWidth={1.75} /> <Music2 size={18} strokeWidth={1.75} />
</div> </div>
)} )}
<div className="min-w-0 flex-1">
<p className="truncate font-medium text-on-surface group-hover:text-primary">{song.title}</p>
<p className="truncate text-sm text-on-surface-variant">
{song.artist}
{song.album ? ` · ${song.album}` : ''}
</p>
</div>
<span <span
className={`flex h-9 w-9 shrink-0 items-center justify-center rounded-full ${isCurrent ? 'bg-primary text-on-primary' : 'bg-surface-container-high text-on-surface'}`} className={`absolute inset-0 flex items-center justify-center rounded-lg bg-black/50 text-white transition-opacity duration-150 ${
isCurrent ? 'opacity-100' : 'opacity-0 group-hover:opacity-100'
}`}
> >
{isCurrent && streamLoading ? ( {isCurrent && streamLoading ? (
<span className="h-3.5 w-3.5 animate-spin rounded-full border-2 border-on-primary/40 border-t-on-primary" /> <span className="h-3.5 w-3.5 animate-spin rounded-full border-2 border-white/40 border-t-white" />
) : isCurrent && isPlaying ? ( ) : isCurrent && isPlaying ? (
<Pause size={16} strokeWidth={2} fill="currentColor" /> <Pause size={18} strokeWidth={2} fill="currentColor" />
) : ( ) : (
<Play size={16} strokeWidth={2} fill="currentColor" className="ml-0.5" /> <Play size={18} strokeWidth={2} fill="currentColor" className="ml-0.5" />
)} )}
</span> </span>
</div>
<div className="min-w-0 flex-1">
<p className={`truncate font-medium ${isCurrent ? 'text-primary' : 'text-on-surface group-hover:text-primary'}`}>
{song.title}
</p>
<p className="truncate text-sm text-on-surface-variant">
{song.artist}
{song.album ? ` · ${song.album}` : ''}
</p>
</div>
</button> </button>
<button <button
onClick={() => onAddToPlaylist(song)} onClick={() => onAddToPlaylist(song)}
......
...@@ -81,6 +81,7 @@ const BACKEND_DONE: DoneGroup[] = [ ...@@ -81,6 +81,7 @@ const BACKEND_DONE: DoneGroup[] = [
area: 'Library & Playlists', area: 'Library & Playlists',
items: [ items: [
'Upload, tag, stream (Range-request capable), search, lyrics fetch', 'Upload, tag, stream (Range-request capable), search, lyrics fetch',
'Real line-synced lyrics (2026-08-31): fetch_lyrics tries syncedlyrics with synced_only=True first instead of immediately discarding LRC timestamps like it used to - only falls back to plain text if no timed source exists anywhere. New synced_lyrics column (JSON [[seconds, text], ...]) on LibrarySong and the IdentifiedTrack cache, threaded through the one shared tag/upload/bulk-scan pipeline, exposed via GET /library/lyrics/{id}',
'Universal search: songs + albums (a derived (album, artist) grouping of the caller\'s own songs, not a separate table) matching title/artist/genre or album/artist respectively', 'Universal search: songs + albums (a derived (album, artist) grouping of the caller\'s own songs, not a separate table) matching title/artist/genre or album/artist respectively',
'Playlists: create, list, detail with ordered tracks, add track', 'Playlists: create, list, detail with ordered tracks, add track',
'Delete: songs (+ file on disk), playlists (+ their tracks), single playlist tracks - all owner-scoped', 'Delete: songs (+ file on disk), playlists (+ their tracks), single playlist tracks - all owner-scoped',
...@@ -147,6 +148,7 @@ const FRONTEND_DONE: DoneGroup[] = [ ...@@ -147,6 +148,7 @@ const FRONTEND_DONE: DoneGroup[] = [
'Tailwind v4 @theme tokens (bg-background, bg-surface-container*, text-on-surface*, bg-primary, etc.) replace the old ad-hoc neutral-900/emerald-500 classes app-wide, including UI primitives (Button, Input, EmptyState, Skeleton, ProgressBar)', 'Tailwind v4 @theme tokens (bg-background, bg-surface-container*, text-on-surface*, bg-primary, etc.) replace the old ad-hoc neutral-900/emerald-500 classes app-wide, including UI primitives (Button, Input, EmptyState, Skeleton, ProgressBar)',
'Desktop: 256px fixed sidebar with the full nav list. Mobile: 5-tab bottom bar (Library, Discover, Social, Soundmarks, Remix) + a "More" sheet for the rest - the export\'s own floating-pill nav only assumed ~4 destinations, not enough for this app\'s real feature count', 'Desktop: 256px fixed sidebar with the full nav list. Mobile: 5-tab bottom bar (Library, Discover, Social, Soundmarks, Remix) + a "More" sheet for the rest - the export\'s own floating-pill nav only assumed ~4 destinations, not enough for this app\'s real feature count',
'Every page rebuilt from its matching Stitch screen where one existed (Library, Discovery, Remix, Rooms, Channels, Upload, Business/Admin panels, Now Playing); Login, Playlists, and Telegram linking - which had no Stitch mockup - were designed from scratch to match the same system', 'Every page rebuilt from its matching Stitch screen where one existed (Library, Discovery, Remix, Rooms, Channels, Upload, Business/Admin panels, Now Playing); Login, Playlists, and Telegram linking - which had no Stitch mockup - were designed from scratch to match the same system',
'Spotify-inspired UX pass (2026-08-31), interaction patterns only - color identity deliberately stayed cobalt, not Spotify\'s green, per the earlier decision above: nav active state simplified to bold+accent icon/label with no background chip (both sidebar and mobile tabs now carry real aria-current="page"); Library\'s shared song row overlays play/pause on the artwork itself on hover (always visible, not just on hover, for whichever track is actually current) instead of a separate always-on circular button',
], ],
}, },
{ {
...@@ -180,6 +182,7 @@ const FRONTEND_DONE: DoneGroup[] = [ ...@@ -180,6 +182,7 @@ const FRONTEND_DONE: DoneGroup[] = [
area: 'Library & Playlists', area: 'Library & Playlists',
items: [ items: [
'Library page with playback', 'Library page with playback',
'Real-time synced lyrics in the full-screen player (2026-08-31): line-by-line highlight follows playback position (last line whose timestamp has passed), auto-scrolls the active line to center, tapping a line seeks there - Spotify\'s actual signature lyrics behavior, not an approximation. Falls back to the existing static full-text view when a song has plain lyrics but no synced timing, and to the empty state when it has neither',
'Universal search box: separate Songs and Albums result sections while searching (an album expands to show/play its tracks) - replaces the plain list rather than filtering it in place', 'Universal search box: separate Songs and Albums result sections while searching (an album expands to show/play its tracks) - replaces the plain list rather than filtering it in place',
'Playlists page: list, create, view tracks, playback', 'Playlists page: list, create, view tracks, playback',
'Add-to-playlist modal from the Library page (add existing or create-and-add)', 'Add-to-playlist modal from the Library page (add existing or create-and-add)',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment