Skip to content

fix: show skeleton in top track strip while artist track is loading#28

Merged
kevinle623 merged 1 commit intomainfrom
claude/fix-featured-artist-track-skeleton
Mar 27, 2026
Merged

fix: show skeleton in top track strip while artist track is loading#28
kevinle623 merged 1 commit intomainfrom
claude/fix-featured-artist-track-skeleton

Conversation

@kevinle623
Copy link
Copy Markdown
Owner

Summary

Fixes the layout shift on the #1 featured artist card where the top track strip pops in after the artist name/genres have already rendered.

Instead of conditionally mounting the strip only when data arrives, the strip container is always present — showing an inline skeleton (album thumbnail rect + label lines + play circle) while isLoading is true, then swapping to the real content once the fetch resolves.

Test plan

  • Visit /artists — the track strip skeleton should be visible immediately alongside the artist name, with no jump when the real track loads

https://claude.ai/code/session_01KmBA3fkihdEK2NVbhfgJPj

Replaces the conditional render (nothing → strip) with a skeleton strip
that always occupies space while the top track fetch is in flight,
eliminating the layout shift after the artist name appears.

https://claude.ai/code/session_01KmBA3fkihdEK2NVbhfgJPj
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
statify-2pfb Ready Ready Preview, Comment Mar 27, 2026 4:21am

@kevinle623 kevinle623 merged commit 2ce5ac9 into main Mar 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants