Skip to content

fix(web): show four rows of the season episode grid on desktop - #1850

Merged
Quick104 merged 1 commit into
mainfrom
t3code/episode-grid-single-row-regression
Oct 3, 2026
Merged

Quick104 merged 1 commit into
mainfrom
t3code/episode-grid-single-row-regression

Conversation

@Quick104

@Quick104 Quick104 commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: reaches #1252 C2, C7, C8 (open, not run yet); no behavior change for #1144 C1

On desktop, season pages show about one row of episodes in a small scroll box. Before
#1012 the grid showed four rows (#804). Single-season series pages, which show their
episodes on the series page, have the same problem. This change restores the four-row
grid on both.

#1012 moved the episode grid into the viewport-bounded band under the hero, which gets
at most min(22rem, 40%) of the window (45% on windows up to 800px tall). In a
1641×778 window that leaves the grid 188px. The band was built for the one-row rails on
the episode and series pages; on a season page the grid is the main content.

Approach

#1717 already took the season rail out of the bounded band on desktop: the page fills
the screen and grows past it when the hero and navigation don't both fit. This change
applies that rule to every series and season page instead of only to pages with the
rail. The episode grid then sits below a content-sized hero, and useGridRowCap limits
it to four rows again, with the rest scrolling.

The rule keeps #1717's media query (at least 1024px wide and 651px tall). The episode
page, short desktop windows, and phones keep the layout from #1012. This reverses the
note in #1717 that episode grids stay bounded.

Validation

  • Web lint, format check, production build, bundle budget, and make test-web: passed.
    jsdom does not lay out CSS, so the browser checks below are what cover the change.
  • make verify-local-paths: passed. make verify-case-collisions was not run (no Go
    toolchain on this machine); the change adds no paths.
  • Chromium, isolated sandbox with the template catalog, main against this branch at
    1641×778: a 20-episode season goes from a 188px grid to all four rows; a 6-episode
    single-season series goes from 188px to both rows. The multi-season rail matches
    fix(web): show the whole season row on series detail pages #1717, and the season page at 1366×600 and 390×844 is unchanged.
  • No sandbox season has more than 20 episodes, so the cap was checked on a local dev
    server with a fixture-backed mock API: with 24 episodes, four of five rows show and
    the rest scrolls.

Evidence: https://evidence.siloserver.org/r/silo-server/season-episode-grid/

Risks

Web layout only; no API, client, or Jellyfin changes. Season pages are longer on
desktop, so cast and crew sit further down. Safari and Firefox were not checked.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: Claude Code, running in T3 Code
  • Tool(s): Claude Code tools, GitHub CLI, T3 Code browser preview (Chromium), isolated Silo sandbox stack
  • Model(s): claude-opus-5-5
  • Involvement: AI-assisted. Claude traced the regression to fix(web): keep TV detail controls and navigation visible #1012, wrote the change, and ran the checks and browser comparisons above at the maintainer's direction.
  • Adversarial review: n/a

🤖 Generated with Claude Code

Note

Fix desktop series detail layout to show full episode grid

Broadens the desktop layout rules in detailLayout.css so every .series-detail-viewport gets the content-growing layout, not just viewports with a direct .series-detail-rail. The hero no longer has a max-height when a direct series-detail navigation is present, poster images are fixed at 330px, and the navigation and section use automatic height with visible overflow. Risk: viewports with a direct navigation child no longer constrain the hero height — check the desktop media query (min 1024px × 651px) if hero sizing regresses.

Macroscope summarized d7cdb33.

Since #1012, season pages and single-season series pages placed the
episode grid in the viewport-bounded band under the hero, which gets at
most min(22rem, 40%) of the window. On a 1641x778 desktop window that
left about one row visible inside a small scroll box, instead of the
four-row cap from #804.

The band suits a one-row rail, not a grid that is the page's main
content. #1717 already moved the season rail out of it on desktop: the
page fills the screen and grows past it when the hero and navigation
don't both fit. Apply that rule to every series and season page, so the
episode grid flows below a content-sized hero and useGridRowCap limits
it to four rows again. The episode page, short desktop windows and
phones keep the bounded layout.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@silo-kody

silo-kody Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 1 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Preserve optional store capabilities through production wrappers

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-03T22:29:52.885747Z d7cdb33 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 63f3a9e5-b5db-4bf9-9106-e2c6748667d6
📥 Commits

Reviewing files that changed from the base of the PR and between defb07e and d7cdb33.

📒 Files selected for processing (1)
  • web/src/pages/ItemDetail/detailLayout.css

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.


📝 Walkthrough

Walkthrough

Desktop series detail pages now use content-sized layout rules at the specified viewport dimensions. The series navigation uses automatic height and visible overflow.

Changes

Series detail layout

Layer / File(s) Summary
Desktop content-sized layout
web/src/pages/ItemDetail/detailLayout.css
The desktop rules now apply to .series-detail-viewport pages. The hero has no maximum-height constraint when series navigation is present, the poster height is fixed at 330px, and the navigation and its section use automatic height with visible overflow. The rail rule remains functionally unchanged; its comment now describes the rail as a single row of posters and titles.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: rhainland

Merge Risk: ⚪ Minimal · up to d7cdb

The desktop layout allows season content to grow while keeping longer episode grids capped and scrollable; multi-season carousel controls remain available. No concrete issue requiring a merge block is established.

Architecture Summary

Architecture risk: 🔵 Low · up to d7cdb

The change affects 1 system.

Changed systems: web

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — web (ui) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in web/src/pages/ItemDetail/detailLayout.css: The .series-detail-navigation.series-detail-rail rule remains functionally unchanged; its comment now describes the rail as a single row of posters and titles that remains fully visible rather than scrolling inside a clipped region.
  • observed — Modified behavior in web/src/pages/ItemDetail/detailLayout.css: The desktop content-sized layout now targets .series-detail-viewport generally instead of only an episode viewport containing .series-detail-rail. It retains the viewport-based minimum height and content-driven rows, removes the hero’s maximum-height constraint when series navigation is present, pins the poster height to 330px, and gives the series navigation and its section automatic height with visible overflow.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly summarizes the main change: restoring four rows in the desktop season episode grid.
Description check ✅ Passed The description explains the desktop episode-grid problem, the layout change, and the reported validation results.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@Quick104
Quick104 merged commit 747fccc into main Oct 3, 2026
14 checks passed
@Quick104
Quick104 deleted the t3code/episode-grid-single-row-regression branch October 3, 2026 22:33
@macroscopeapp

macroscopeapp Bot commented Oct 3, 2026

Copy link
Copy Markdown

Minor change: #1144 C1 is recorded as human-validated on build 941 · 82b5b39e, but clicking an in-library Series credit can open a detail page whose tall-desktop layout and scrolling change here. The person-credit list and destination route are unchanged; the visible destination changes, so re-check C1 after merge.

#1252 C2, C7, and C8 are still Not run; this is initial validation scope, not an earlier result to invalidate.

Suggested corrected line: Validation tasks: changes #1252 C2, C7, C8 (not run yet); changes #1144 C1

Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed.

Posted via Macroscope — v1 validation impact

Quick104 added a commit to olivertgwalton/silo-server that referenced this pull request Oct 3, 2026
The branch's review-fix commit was built from a tree based on an older
main, so it undid Silo-Server#1849, Silo-Server#1850 and other commits that had landed since.
This restores main's version of every file outside the PR and
regenerates the API contract artifacts on top of it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Quick104 added a commit that referenced this pull request Oct 14, 2026
* feat(catalog): state each episode's ratings in the season list

The season list carried no rating, so a client showing a strip of episodes
had to fetch every episode's detail to show its score. The episode rows the
list already loads hold rating_imdb and rating_tmdb; state them as the title
page does.

* fix(catalog): state episode ratings in the title page's shape, v2 only

Episodes now carry `ratings []CatalogRating`, built by ratingsources.Build
like a title page's ratings, instead of raw rating_imdb/rating_tmdb floats.
Build drops a stored 0 (unrated) and values off the 0-10 scale, so the
season list no longer states scores the title page hides. The rating
columns on the shared v1 episodeResponse are json:"-", keeping the frozen
/api/v1 wire unchanged.

Regenerates the OpenAPI document, contract fixtures and web types, adds
tests for the mapping and the v1 wire, and documents the field in
docs/catalog-api.md.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

* fix: restore changes from main that an earlier merge reverted

The branch's review-fix commit was built from a tree based on an older
main, so it undid #1849, #1850 and other commits that had landed since.
This restores main's version of every file outside the PR and
regenerates the API contract artifacts on top of it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

* fix(catalog): build episode ratings without the rating-source policy

An episode's ratings come only from its IMDb and TMDB columns, which every
rating-source selection shows. Reading the policy on each episode listing
could not change the output, and while the plugin source lookup keeps
failing the policy is not cached, so every season page waited on a settings
read and that lookup. episodesOf keeps the signature it has on main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Quick104 <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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