Repository navigation
feat(web): show the series title for episodes in Playback History - #2430
Conversation
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 10 minutes. View limit details
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Quick104
left a comment
There was a problem hiding this comment.
Review of 9578d3a. The display change works as described: I found no defect in how rows, the item filter label, or the fallbacks render. Two findings are inline, and I'm fixing both in a commit on this branch, so there's no need to change anything yourself. A summary comment follows.
The admin Playback History page listed an episode by its own title only, so an admin had to open the entry to see which show it came from. The v2 playback history API already returns series_title, season_number and episode_number. The web client now keeps them, and the Media column shows the series title with "S02E04 · Episode title" beneath it, the same code format the admin user pages use. The item filter label uses the same text. Long titles wrap inside a capped width instead of widening the table.
The v2 schema marks series_title, season_number and episode_number as required, and the server always sends them, so the fallbacks never applied. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9578d3a to
306c860
Compare
Review summaryReviewed head: 306c860 (the review started on 9578d3a). The change does what the description says. Episodes in Playback History now lead with their series title, with Addressed findings
Remaining for maintainers
Verification
Validated featuresNo passed case on the v1.0 board reaches this page. #1251 C3 (Series, web admin) hasn't been run yet. If its validator reads Playback History, they'll see episodes listed under their series, which is the intended change. Validation tasks: none Other checks
Fit: 9/10 · Readiness: 9/10 — ready (assuming CI is green)
|
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
Minor change — Suggested fix: replace Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed. Posted via Macroscope — v1 validation impact |
Problem
Closes #2152
Related issue: N/A
Validation tasks: none. No validation case covers the admin Playback History page. #1251 C3 (not run yet) may read it, and would now see episodes listed under their series.
Playback History lists an episode by its own title only. An admin reading the history sees "The Tide Turns" with no hint of which show it belongs to, and has to open the entry to find out. The v2 playback history API already returns
series_title,season_numberandepisode_numberfor episodes, but the web client dropped them. With this change an episode reads as its series title withS02E04 · The Tide Turnsunder it.Approach
adminPlaybackHistoryItemFromV2keeps the three fields, andAdminPlaybackHistoryItemgains them.episodeCode, the helper the admin user pages already use for rows from this endpoint. An untitled episode shows the code alone (it used to show its raw item id), and a pilot titled the same as its show doesn't repeat the name. Movies, and any row without a series title, look the same as before.media_item_id, uses the same text, for exampleHarbour Lights · S02E04 · The Tide Turns.Web only: no API, schema, jellycompat or client app change. The branch is rebased onto main, after #2398 and #2817.
Validation
src/pages/AdminPlaybackHistory.test.tsx(new): 3 tests, which fail onmainand pass on this branch. A field-mapping test was dropped in review: CONTRIBUTING.md asks not to test field copies, and test: remove low-value and never-run tests #2817 removed the test it extended.tsc -p tsconfig.app.json --noEmit: clean.mainwith synthetic history (two movies and four episodes, including very long titles) at 1440px and 390px wide. The page doesn't scroll sideways at either width.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-2430/
Surface and build: web admin Playback History (
/admin/history), unfiltered and filtered to one episode, at 1440px and 390px wide in the dark theme. Before:mainat 6144c45. After: this branch at 9578d3a. Both against the same local server and synthetic data.Risks
None identified. It changes how one admin page displays rows, and the API already sends these fields.
Checklist
AI Disclosure
Note
Show series title and episode details for episodes in admin Playback History
historyRowTitleandhistoryRowLabelformatters in AdminPlaybackHistory.tsx. They suppress duplicate titles when the media title equals the series title and fall back to media title, item ID, or file ID.AdminPlaybackHistoryItemwith series title and nullable season/episode fields, and mapped them in adminPlaybackHistory.ts.Macroscope summarized 306c860.