apps/web/src/components/SongCover/InteractionBar/InteractionBar.tsx
apps/web/src/components/SongCover/InteractionBar/InteractionBar.tsx
This file has not been changed.
apps/web/src/components/SongCover/InteractionBar/index.tsx
apps/web/src/components/SongCover/InteractionBar/index.tsx
This file has not been changed.
apps/web/src/components/SongCover/SongCover.tsx
apps/web/src/components/SongCover/SongCover.tsx
This file has not been changed.
apps/web/src/pages/home/feed/Feed.tsx
apps/web/src/pages/home/feed/Feed.tsx
This file has not been changed.
Submissions
4 commits
expand
collapse
feat: add InteractionBar component and integrate with SongCover for like functionality
work in progress
Add likes support to feed and SongCover
Update feed API types to include trackUri, likesCount and liked Show
like button and counts in InteractionBar and expose onLike handler Use
useLike in SongCover to call like/unlike and pass uri/liked/likesCount
Forward like state from Feed to SongCover
Prompt sign-in for likes and stop click propagation
Show SignInModal (with a `like` flag) when a user attempts to like
without a token. Add optimistic local state for liked and likesCount to
update UI immediately. Stop event propagation on the like button and
cover to prevent parent click handlers.
pull request successfully merged