Skip to content

fix multiple artists#93

Merged
MHRGA merged 1 commit into
developfrom
fix/mhr/multiple-artists
May 22, 2026
Merged

fix multiple artists#93
MHRGA merged 1 commit into
developfrom
fix/mhr/multiple-artists

Conversation

@MHRGA

@MHRGA MHRGA commented May 22, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@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 #138 for commit e9283f5 by the Vitest Coverage Report Action

@MHRGA MHRGA merged commit e8b586e into develop 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: e9283f5b88

ℹ️ 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".

// 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 keys on every comma

This unconditionally treats commas as a multi-artist delimiter, so single-artist names that legitimately contain commas (for example Tyler, The Creator) get split into multiple fake artists. In aggregateEvents, that misattributes counts and queuer stats to the wrong artistMap keys, which directly corrupts top-artist rankings for those plays.

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 and account in artist-image cache key

useArtistImage caches by artistId only, but the query result depends on serviceId and accountId too. Because the query is cached with staleTime: Infinity, a prior fetch can be incorrectly reused when the same artistId appears under a different service/account context, causing wrong avatars and preventing a refetch for the current source.

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.

Album selection from leaderboard doesn't work when multiple artists are attributed

1 participant