Skip to content

Fix Multiple Artists#94

Merged
MHRGA merged 2 commits into
mainfrom
develop
May 22, 2026
Merged

Fix Multiple Artists#94
MHRGA merged 2 commits into
mainfrom
develop

Conversation

@MHRGA

@MHRGA MHRGA commented May 22, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Muhamad Hewa Rahim and others added 2 commits May 22, 2026 16:52
@MHRGA MHRGA changed the title Develop Fix Multiple Artists May 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 71% 1944 / 2738
🔵 Statements 67.85% 2235 / 3294
🔵 Functions 62.19% 612 / 984
🔵 Branches 61.86% 2080 / 3362
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
renderer/src/components/CardRow.tsx 71.42% 63.63% 71.42% 69.23% 17-27
renderer/src/components/LeaderboardPanel.tsx 85.71% 86.71% 82.35% 88.57% 15, 42, 65, 109-117, 205, 251, 275-276, 426-438, 461
renderer/src/components/album/AlbumPanel.tsx 84.21% 86.29% 80.95% 89.7% 50, 90-95, 106, 156, 213
renderer/src/components/artist/ArtistPanel.tsx 33.76% 48.42% 30% 35.93% 15-26, 69-112, 195-212
renderer/src/hooks/useArtistBrowse.ts 59.09% 42.1% 63.63% 56.75% 54-71, 82, 111-132
renderer/src/hooks/useResolveAndOpen.ts 85.29% 67.64% 85.71% 92.59% 28, 30, 39, 53, 57
Generated in workflow #139 for commit e8b586e by the Vitest Coverage Report Action

@MHRGA MHRGA merged commit 019515b into main May 22, 2026
4 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e8b586e4f5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


// Release-type subtitles and view/play counts aren't artists — drop them so
// they don't pollute topArtists at all.
if (RELEASE_TYPE_RE.test(raw)) return [];

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Avoid dropping valid artists containing release keywords

The new RELEASE_TYPE_RE filter removes any artist string containing words like Album or Single, which also matches legitimate artist names (for example, "The Album Leaf" or "Single Mothers"). In those cases artistKeysFor returns [], so track events no longer contribute to artistMap or artist queuer stats at all, producing systematically missing leaderboard entries.

Useful? React with 👍 / 👎.

// a single entry, don't try to split.
if (/\d/.test(raw)) return [raw];

const parts = raw.split(/,\s*/).map((s) => s.trim()).filter(Boolean);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Stop splitting artist names on commas unconditionally

Splitting raw on every comma treats single-artist names that legitimately contain commas (for example, "Earth, Wind & Fire") as multiple different artists. That corrupts topArtists counts and also drops artistId from all but the first fragment, which breaks direct artist navigation for those rows.

Useful? React with 👍 / 👎.

accountId: string | undefined,
) {
return useQuery({
queryKey: ['artist-image', artistId] as const,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Include service/account in artist image cache key

useArtistImage caches by ['artist-image', artistId] only, but the fetch depends on serviceId and accountId. If the same artistId is viewed across different services/accounts, React Query will reuse stale data (including cached null) from a different source, causing wrong or missing avatars.

Useful? React with 👍 / 👎.

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.

1 participant