Skip to content

chore(web): remove the unused Trakt row creation path - #1885

Merged
Quick104 merged 3 commits into
feat/collections-revampfrom
chore/home-rows-trakt-cleanup
Oct 4, 2026
Merged

Quick104 merged 3 commits into
feat/collections-revampfrom
chore/home-rows-trakt-cleanup

Conversation

@Quick104

@Quick104 Quick104 commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Every collection preset now needs a collection before Add section turns on, which matches what the server accepts.
  • The hint under the drawer changes from "Choose a synced collection before adding this section." to "Choose a collection before adding this section." This is the one change users see: it shows for every collection row added from Settings > Home Screen until a collection is picked. "Synced" only described Trakt collections.
  • The collection picker in that drawer lists every collection for every preset (still library collections only where libraryCollectionsOnly is set). For collection_pick it already did.
  • CollectionOption.source_config is gone. The Trakt filter was its only reader. collection_type stays.
  • Kept: isTraktConfig and every path for existing Trakt rows (admin list, profile overrides, layout import), their title-only saves, and useImportTraktCollection, which Collections import still uses. Editing an existing collection row goes through SectionEditorDrawer's own picker, which this PR does not touch.
  • No deviations from the Home rows design spec. This drawer is the old profile gallery that the redesign replaces.

Validation

  • Drawer tests were written first and failed on the base branch (wrong hint copy, and Add section was enabled for a Trakt-named preset). They now pass for a plain collection preset and a Trakt-named preset: both show the picker and the hint, keep Add section disabled, and never submit. A new test checks that collection options no longer carry 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: within perf-budget.json.
  • pnpm run lint: 0 errors; no warnings in the touched files.
  • make verify-local-paths: passed.
  • Not checked in a browser.

Risks

  • A preset that names Trakt can no longer skip the collection picker. None exists in the catalog, and the server already rejects such a row.
  • No API, Go, persisted section_type, preset key, or layout export/import changes.

Checklist

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

AI Disclosure

  • Harness: Claude Code (in T3 Code)
  • Tool(s): Claude Code subagents (implementer, independent reviewer)
  • Model(s): claude-opus-5-5[1m]
  • Involvement: Fully AI-generated, human review pending
  • Adversarial review: An independent reviewer subagent checked every caller of the drawer and picker, confirmed that the server refuses new Trakt rows and that no preset names Trakt, and ran the new tests against the old code to confirm they fail there. Verdict: approve. It raised two points. The hint copy change shows for every collection row added from Settings > Home Screen, not only Trakt presets; this description says so. CollectionOption.source_config had no reader left; it was removed with a test.

🤖 Generated with Claude Code

Note

Remove unused Trakt automatic-collection-creation path from RecipeConfigDrawer

  • Removes the Trakt-specific exemption from collection validation in RecipeConfigDrawer.tsx; Trakt-sourced collection presets now show the collection warning and cannot be submitted without a selected collection
  • Strips Trakt source inspection and the automatic-creation message from CollectionParamField in RecipeParamFields.tsx; the selector now uses the library-filtered collection list for all presets
  • Drops the source configuration field from CollectionOption and stops copying it in buildAllUserCollectionOptions in useAllUserCollections.ts
  • Updates tests: collection presets without a collection stay blocked for both ordinary and Trakt presets, and library collection options omit source config
  • Behavioral Change: Trakt presets that previously auto-created a collection on submit now require an explicit collection selection

Macroscope summarized 589d32f.

Quick104 and others added 2 commits October 4, 2026 02:37
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]>
@coderabbitai

coderabbitai Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6154086a-6a07-4f56-912f-bd331faf08e7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 4, 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-04T12:35:54.283997Z 589d32f New commits
ℹ️ 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.

Base automatically changed from fix/home-rows-collection-key to feat/collections-revamp October 4, 2026 13:45
@Quick104
Quick104 merged commit aa5d52d into feat/collections-revamp Oct 4, 2026
14 checks passed
@Quick104
Quick104 deleted the chore/home-rows-trakt-cleanup branch October 4, 2026 13:55
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