Repository navigation
fix(build): declare BrowseItem's episode fields once - #675
Conversation
#630 and #575 each added seriesId, seriesTitle, seasonNumber and episodeNumber to BrowseItem. Both landed on main, so the struct declares them twice and neither the iOS nor the tvOS app compiles. Keep the copy #575 placed beside the progress fields, which the Watch Party series row initializer passes in that order, and drop the duplicate arguments in init(sectionItem:). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
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 17 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (1)
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. Comment |
Problem
Related issue: N/A
Validation tasks: none
Main doesn't compile for iOS, tvOS, or macOS. #630 and #575 each added
seriesId,seriesTitle,seasonNumberandepisodeNumbertoBrowseItem. Neither PR conflicted with the other, but once both landed the struct declares those fields twice. The Apple regression run on main (1eedd0c8) fails withinvalid redeclaration of 'seriesId'and the matching errors for the other three fields.Approach
Declare the four fields once. This keeps the copy #575 placed with the progress fields, because the Watch Party series-row initializer passes them in that position, and drops the duplicate arguments from
BrowseItem.init(sectionItem:). The doc comment now covers both sources of these fields: episode rows in search and section-sourced catalog pages.Validation
Evidence
Evidence: none, no user-visible change
Risks
None identified. The fields keep the same names, types and defaults, so decoding is unchanged.
Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Declare BrowseItem episode fields once in Models.swift
Moves the episode-context and progress stored properties in
BrowseItemso they are declared once, right after the core identity fields, and removes the duplicate declarations that sat afteroverlaySummary. Docs now cover both text-search rows and section-sourced catalog rows, andinit(sectionItem:)drops the trailing episode arguments from its memberwise call. See Models.swift.Macroscope summarized dd254b9.