Skip to content

Conversation

MonkeyDo
Copy link
Member

@MonkeyDo MonkeyDo commented Sep 10, 2025

While investigating LB-1643, I realized our stopgap solution of using a functional component wrapper (to be able to use react hooks) on top of a class component means that after manually mapping a listen the cover art does not update.
The cover art cache is set up in the wrapper, and no information is brought back to the wrapper from the class component after matching.

So it is finally time to rewrite the ListenCard into a functional component.

For LB-1643, I also added an extra step of fetching from the LB metadata cache API so that for the user's visual feedback the listen appears completely matched (instead for example of missing artist link).
Perhaps we could instead modify the recording-search API response to return artist MBID(s)?

When manually mapping a track, teh serach endpoint does not return all the metadata we have, resulting in a listen that looks partially matched.
Fetching more metadata to make the instant feedback more gratifying.
@MonkeyDo MonkeyDo requested a review from anshg1214 September 12, 2025 10:43
Copy link
Member

@anshg1214 anshg1214 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small change. Otherwise looks good

<div className="main-content">
{beforeThumbnailContent}
{thumbnail}
{listenDetails || (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to revert this change and add a parent div with class listen-details.

The top-album and top-track stats break because of this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

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