Skip to content

fix(seo): publish only verifiable game ratings - #5

Closed
playlikeboy wants to merge 4 commits into
SopKit:mainfrom
playlikeboy:fix/verified-game-ratings
Closed

playlikeboy wants to merge 4 commits into
SopKit:mainfrom
playlikeboy:fix/verified-game-ratings

Conversation

@playlikeboy

@playlikeboy playlikeboy commented Nov 27, 2026 •

Copy link
Copy Markdown

Summary

  • Remove the ID-derived synthetic score from the game-feed normalizer so generated catalog records no longer claim player ratings without evidence.
  • Make rating and rating-count fields optional in the web catalog model.
  • Show rating badges and include VideoGame aggregateRating only when there is a valid 1–5 score and a positive, provider-supplied integer sample count.
  • Remove the hard-coded ratingCount: 100 from structured data.
  • Sort the catalog using only verified ratings, placing games without a valid sample count after rated games.
  • Add regression tests for score validation, malformed inputs, and rating-free feed records.

Why

The previous pipeline derived scores from game IDs and published a fixed count of 100 ratings. Neither value represented player feedback. This PR makes ratings evidence-based and keeps legacy catalog records safe to load.

Validation

  • Added Bun tests in tests/game-feed.test.ts and web/tests/game-rating.test.ts.
  • The test suite and Next.js production build have not yet been executed in this session. The repository CI workflow is present from the merged scraper PR and should report the actual results.

SH20RAJ commented Nov 27, 2026

Copy link
Copy Markdown

Maintainer note: this branch is currently marked dirty by GitHub because it re-adds scripts/game-feed.ts and its tests on top of the older fork point after PR #1 already introduced those paths upstream. I’m rebuilding the ratings changes from the latest upstream base as a replacement PR. Please do not merge this PR #5 in its current state.

SH20RAJ commented Nov 27, 2026

Copy link
Copy Markdown

Superseded by the clean replacement PR #7: #7. The replacement is based on current main after the scraper, catalog, image, and browser-storage changes merged, so it avoids the add/add conflict caused by the older fork point. Closing this PR to keep one authoritative ratings change.

@SH20RAJ SH20RAJ closed this Nov 27, 2026
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