Skip to content

Revert "fix: /catalogs/[catalogId] crash on null-metadata rows (null-safe artists + toggle default off)" - #1874

Open
sweetmantech wants to merge 1 commit into
mainfrom
revert-1868-fix/catalog-null-metadata-crash
Open

Revert "fix: /catalogs/[catalogId] crash on null-metadata rows (null-safe artists + toggle default off)"#1874
sweetmantech wants to merge 1 commit into
mainfrom
revert-1868-fix/catalog-null-metadata-crash

Conversation

@sweetmantech

@sweetmantech sweetmantech commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Reverts #1868


Summary by cubic

Reverts the null-metadata fix and returns /catalogs/[catalogId] to its previous behavior. Incomplete songs are hidden by default again, and formatArtists assumes non-null artist entries; related null-safety tests are removed.

Written for commit 75f1039. Summary will update on new commits.

Review in cubic

@cursor

cursor Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@vercel

vercel Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
chat Ready Ready Preview Jul 20, 2026 10:11pm

Request Review

@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@sweetmantech, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 25 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 58ee2ea8-dfdf-442d-9d8c-96bb14550a86

📥 Commits

Reviewing files that changed from the base of the PR and between fcd86ef and 75f1039.

⛔ Files ignored due to path filters (1)
  • lib/catalog/__tests__/formatArtists.test.ts is excluded by !**/*.test.* and included by lib/**
📒 Files selected for processing (2)
  • components/VercelChat/tools/catalog/CatalogSongsResult.tsx
  • lib/catalog/formatArtists.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch revert-1868-fix/catalog-null-metadata-crash

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@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: 75f1039aef

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

.filter((name): name is string => !!name);
return names.length > 0 ? names.join(", ") : "—";
if (!artists || artists.length === 0) return "—";
return artists.map((artist) => artist.name).join(", ");

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 Preserve null-safe artist rendering

When /catalogs/[catalogId] renders a song whose API payload has artists: [null] (the fresh valuation-claimed catalog case from the reverted fix, and also implied by isCompleteSong defensively checking a?.name), this line dereferences artist.name and throws, taking the catalog view to the error boundary as soon as missing-info rows are shown. Please keep the optional/null filtering before joining artist names.

Useful? React with 👍 / 👎.

// Default OFF so fresh valuation-claimed catalogs (rows with null metadata)
// are visible instead of appearing empty (chat#1867)
const [hideIncomplete, setHideIncomplete] = useState(false);
const [hideIncomplete, setHideIncomplete] = useState(true);

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 Show incomplete catalog rows by default

For newly valuation-claimed catalogs whose song rows are present but still missing metadata, isCompleteSong filters every row out while this state defaults to true; the summary can report songs found, but InsertCatalogSongsList receives an empty array and renders no table, making a non-empty catalog appear empty until the user finds the toggle. Defaulting this off avoids hiding the exact rows users need to inspect or complete.

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