Repository navigation
fix(web): make pre-merge frontend checks pass at HEAD (prettier drift + 15 stale tests) - #119
Merged
Merged
Conversation
prettier --check was failing on 19 files at HEAD. The pinned prettier version (3.8.1) has not changed since the initial migration, so the drift came from unformatted commits, not a toolchain bump. Formatting changes only, no behavior change. Co-Authored-By: Claude Fable 5 <[email protected]>
15 tests across 6 files were failing at HEAD; the components were
committed already out of sync with their tests in the initial
migration. All fixes are in test files only:
- SectionRow / SeriesContent: mock the watch playback controller
required by ContinueWatchingCard and MediaItemMenu, mock the new
useSimilarItems hook, add useOptionalAuth to the auth mock, and
wrap renders in QueryClientProvider for MediaItemMenu query hooks
- SeriesContent: read rating from item.user_rating (the useRating
hook no longer exists)
- ProfilesSettings: add useHouseholdSessions to the profiles mock
for the new HouseholdStreamsPanel
- ImpersonationBanner: match the redesigned banner ("Viewing as",
sticky full-width bar instead of sidebar offset)
- EpisodeRow: watched indicator uses the text-success token now
- profile-management: use a valid DiceBear preset ref; "adventurer"
no longer resolves and round-trips to ""
Co-Authored-By: Claude Fable 5 <[email protected]>
Contributor
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (25)
📝 WalkthroughWalkthroughThis PR refactors web UI test infrastructure and formatting across 26 files. Changes include updating test mocks and assertions, consolidating multi-line imports, adjusting CSS class orderings, reformatting function signatures, and updating overlay configuration values. ChangesTest infrastructure and rendering updates
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Quick104
added a commit
that referenced
this pull request
Jun 11, 2026
… + 15 stale tests) (#119) * style(web): run prettier over drifted files prettier --check was failing on 19 files at HEAD. The pinned prettier version (3.8.1) has not changed since the initial migration, so the drift came from unformatted commits, not a toolchain bump. Formatting changes only, no behavior change. Co-Authored-By: Claude Fable 5 <[email protected]> * test(web): sync stale test harnesses with current components 15 tests across 6 files were failing at HEAD; the components were committed already out of sync with their tests in the initial migration. All fixes are in test files only: - SectionRow / SeriesContent: mock the watch playback controller required by ContinueWatchingCard and MediaItemMenu, mock the new useSimilarItems hook, add useOptionalAuth to the auth mock, and wrap renders in QueryClientProvider for MediaItemMenu query hooks - SeriesContent: read rating from item.user_rating (the useRating hook no longer exists) - ProfilesSettings: add useHouseholdSessions to the profiles mock for the new HouseholdStreamsPanel - ImpersonationBanner: match the redesigned banner ("Viewing as", sticky full-width bar instead of sidebar offset) - EpisodeRow: watched indicator uses the text-success token now - profile-management: use a valid DiceBear preset ref; "adventurer" no longer resolves and round-trips to "" Co-Authored-By: Claude Fable 5 <[email protected]> --------- Co-authored-by: Claude Fable 5 <[email protected]>
Quick104
added a commit
that referenced
this pull request
Jun 17, 2026
… + 15 stale tests) (#119) * style(web): run prettier over drifted files prettier --check was failing on 19 files at HEAD. The pinned prettier version (3.8.1) has not changed since the initial migration, so the drift came from unformatted commits, not a toolchain bump. Formatting changes only, no behavior change. Co-Authored-By: Claude Fable 5 <[email protected]> * test(web): sync stale test harnesses with current components 15 tests across 6 files were failing at HEAD; the components were committed already out of sync with their tests in the initial migration. All fixes are in test files only: - SectionRow / SeriesContent: mock the watch playback controller required by ContinueWatchingCard and MediaItemMenu, mock the new useSimilarItems hook, add useOptionalAuth to the auth mock, and wrap renders in QueryClientProvider for MediaItemMenu query hooks - SeriesContent: read rating from item.user_rating (the useRating hook no longer exists) - ProfilesSettings: add useHouseholdSessions to the profiles mock for the new HouseholdStreamsPanel - ImpersonationBanner: match the redesigned banner ("Viewing as", sticky full-width bar instead of sidebar offset) - EpisodeRow: watched indicator uses the text-success token now - profile-management: use a valid DiceBear preset ref; "adventurer" no longer resolves and round-trips to "" Co-Authored-By: Claude Fable 5 <[email protected]> --------- Co-authored-by: Claude Fable 5 <[email protected]>
This was referenced Jul 7, 2026
Quick104
added a commit
that referenced
this pull request
Nov 20, 2026
* fix(web): say "Show it" on a restore toggle that covers one item The Restore page's "Show them" / "Hide them" toggle now passes the count of what it shows: the blocked group's size, the section's item count, or the number of never-restored settings. With the catalog's plural form, a group or section of one reads "Show it" / "Hide it". Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(web): sync translations to 2026.11.20-80e7bd8 Brings in the plural "Show it" / "Hide it" toggle keys (Silo-Server/silo-translations#124), the singular blocked-group headings (#119, #122), and the other catalog changes released since the last pin. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The frontend verification commands required before merge requests were failing at HEAD on
main, independent of any feature work:cd web && pnpm run format:checkreported style issues in 19 filescd web && pnpm run testhad 15 failing tests across 6 filesWhat changed
Commit 1 — formatting only. Checked first whether the drift came from a prettier version bump: prettier has been pinned at 3.8.1 in
web/pnpm-lock.yamlsince the initial migration (only react-router and vitest were bumped since), so the 19 files were simply committed unformatted. Ranpnpm run format; whitespace/wrapping changes only.Commit 2 — test files only, no component changes. The failing tests were committed already out of sync with the components they render (none of those components changed after the initial migration), so the current components are the source of truth:
SectionRow.test.tsx/SeriesContent.test.tsx: mock@/playback/watchPlaybackContext(ContinueWatchingCard and MediaItemMenu require the watch playback controller — same pattern as ContinueWatchingCard's own tests), mock the newuseSimilarItemshook, adduseOptionalAuthto the auth mock, and wrap renders inQueryClientProviderfor MediaItemMenu's query hooksSeriesContent.test.tsx: the component reads the rating fromitem.user_ratingnow (theuseRatinghook no longer exists), so the fixture setsuser_rating: 4and the stale mock is removedProfilesSettings.test.tsx: adduseHouseholdSessionsto the@/hooks/queries/profilesmock for the newHouseholdStreamsPanelImpersonationBanner.test.tsx: the banner was redesigned ("Viewing as" label, full-width sticky bar, nolg:pl-[292px]sidebar offset); the obsolete offset test now asserts the sticky positioning insteadEpisodeRow.test.tsx: the watched indicator uses thetext-successdesign token instead oftext-green-500profile-management.test.ts:"adventurer"is no longer a resolvable avatar preset after the move to DiceBear-style refs (it round-trips to""); switched to a validdicebear:identicon:swift-foxref, preserving the test's intent thatclearKidsPresetleaves the avatar untouchedVerification
pnpm run test: 838/838 pass (was 823/838)pnpm run format:check: cleanpnpm run lint: 0 errors (140 pre-existing warnings, untouched)make verify-local-paths: cleanRisks / notes
No production code changes — formatting and test harnesses only. AI-use disclosure: authored with Claude Code.
🤖 Generated with Claude Code
Summary by CodeRabbit
Tests
Style
Refactor