Repository navigation
chore(web): remove the unused Trakt row creation path - #1885
Conversation
The server refuses new Trakt-backed rows and no recipe preset names Trakt, so the Add section drawer's Trakt branches could never run: the exception that let a Trakt trending or popular preset skip the collection picker, the "will be created automatically" note, and the Trakt-only collection filter with its "create and sync one" hint. The page-side creation flow already went with the recipe gallery. Legacy Trakt rows keep their isTraktConfig handling. The missing-collection hint drops "synced", which only fit Trakt presets. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Only the Trakt collection filter read CollectionOption.source_config, and that filter went with the Trakt row creation path, so every option carried a copy nobody used. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
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. |
…to chore/home-rows-trakt-cleanup
Problem
Related issue: #1137
Validation tasks: none
Stacked on #1884. Against
fix/home-rows-collection-key, the diff holds only this cleanup.The Add section drawer in Settings > Home Screen still has code for Trakt-backed collection rows that can never run. It let a Trakt trending or popular preset save without a collection, limited the collection picker to matching Trakt collections, and showed two Trakt notes. No recipe preset names Trakt (the only collection preset is
collection_pick), and the server refuses new Trakt-backed rows on both admin create and profile saves (unsupported_source). This PR removes that code so the Home rows redesign does not have to carry it. The Trakt progress panel and creation flow on the admin page already went in #1883.Approach
libraryCollectionsOnlyis set). Forcollection_pickit already did.CollectionOption.source_configis gone. The Trakt filter was its only reader.collection_typestays.isTraktConfigand every path for existing Trakt rows (admin list, profile overrides, layout import), their title-only saves, anduseImportTraktCollection, which Collections import still uses. Editing an existing collection row goes throughSectionEditorDrawer's own picker, which this PR does not touch.Validation
source_config.make test-web: 773 files, 7082 tests passed.pnpm exec tsc -b,pnpm run format:check,pnpm run build: clean.pnpm run budget:check: withinperf-budget.json.pnpm run lint: 0 errors; no warnings in the touched files.make verify-local-paths: passed.Risks
section_type, preset key, or layout export/import changes.Checklist
AI Disclosure
CollectionOption.source_confighad no reader left; it was removed with a test.🤖 Generated with Claude Code
Note
Remove unused Trakt automatic-collection-creation path from
RecipeConfigDrawerCollectionParamFieldin RecipeParamFields.tsx; the selector now uses the library-filtered collection list for all presetsCollectionOptionand stops copying it inbuildAllUserCollectionOptionsin useAllUserCollections.tsMacroscope summarized 589d32f.