Repository navigation
fix(web): tolerate blocked storage and normalize catalog pagination - #4
Conversation
|
Maintainer review: the defensive storage helpers cover malformed JSON, invalid stored records, and browser storage failures, while the page parser now bounds invalid pagination. The storage-specific tests passed in the first CI attempt. The overall run failed in a pre-existing feed retry test from PR #1 (a permanent 404 was attempted three times); PR #6 contains the targeted fix. I’ll re-run this PR after that fix is merged before approving. |
SH20RAJ
left a comment
There was a problem hiding this comment.
Reviewed the storage and catalog changes. localStorage access is isolated behind guarded helpers, invalid/corrupt records are filtered, pagination parameters are normalized and clamped, and rating sorting now ignores unverified legacy scores. GitHub Actions completed successfully: Bun tests and the Next.js production build both passed. Approved.
Summary
Validation
web/tests/browser-storage.test.ts.Compatibility
Existing
recently-played,favorites, andmost-playedkeys retain their current JSON format.