Skip to content

Remove unused site files and conversation copy interfaces - #1547

Merged
manudeli merged 1 commit into
mainfrom
chore/remove-unused-files-and-interfaces
Nov 22, 2026
Merged

manudeli merged 1 commit into
mainfrom
chore/remove-unused-files-and-interfaces

Conversation

@manudeli

@manudeli manudeli commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Remove the unused FeatureGrid component and useInlineEdit hook.
  • Remove the unreferenced AdGate and its legacy ad preference hook and settings store.
  • Remove the unused ConversationSourceRef and BranchProvenance interface declarations.
  • Prune the corresponding Knip ignore entries and the two obsolete entries from Remove unused ShopHero3D and direct maath dependency #1541.

Verification

  • Checked the removed module paths and symbols for references across the repository.
  • Knip passed with configuration hints treated as errors.
  • All 23 focused TanChat tests passed across retry source, reasoning continuity, and file deliveries.

Summary by CodeRabbit

  • Chores
    • Updated project checks to include previously excluded files and a dependency.
  • Refactor
    • Removed unused internal components, settings utilities, and conversation metadata types. No user-facing changes are described in this update.

@changeset-bot

changeset-bot Bot commented Nov 22, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 71b2517

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request removes several exported components, hooks, store types, and conversation interfaces. It also removes Knip ignore entries for files and a dependency.

Changes: Application Code Cleanup

Layer / File(s) Summary
Remove application exports and Knip ignores
src/components/FeatureGrid.tsx, src/contexts/AdsContext.tsx, src/hooks/useAdPreference.ts, src/hooks/useInlineEdit.ts, src/stores/userSettings.ts, knip.jsonc
The component, hooks, context export, and store exports are removed. Knip no longer ignores the listed files or maath; ShopStrip.tsx remains ignored.

Conversation Type Cleanup

Layer / File(s) Summary
Remove conversation provenance interfaces
src/chat/core/conversation-copy.ts
The exported ConversationSourceRef and BranchProvenance interfaces are removed.

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

Change: Refactor

Possibly related PRs

Suggested reviewers: tannerlinsley, sukvvon

Merge Risk: Minimal · up to 71b25

This cleanup removes unused code and stale lint-ignore entries with no remaining references found, so it should not change runtime behavior and looks safe to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title says the PR removes unused site files and conversation copy interfaces. The changeset deletes the FeatureGrid component, AdGate and its ad preference hook, the useInlineEdit hook, the userSe…
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.
Full details: Title check

Explanation

The title says the PR removes unused site files and conversation copy interfaces. The changeset deletes the FeatureGrid component, AdGate and its ad preference hook, the useInlineEdit hook, the userSettings store, and the ConversationSourceRef and BranchProvenance interfaces, and it prunes Knip ignore entries. The title matches the main change and names both kinds of removal. It is concise and specific enough for a teammate to understand the primary change.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · 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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c2497971-cb94-4a74-88ce-b1f7922a28ad
Commits

Reviewing files that changed from the base of the PR and between e99ceed and 71b2517.

Files selected for processing: 7

  • knip.jsonc
  • src/chat/core/conversation-copy.ts
  • src/components/FeatureGrid.tsx
  • src/contexts/AdsContext.tsx
  • src/hooks/useAdPreference.ts
  • src/hooks/useInlineEdit.ts
  • src/stores/userSettings.ts
Files with no reviewable changes: 7

  • knip.jsonc
  • src/chat/core/conversation-copy.ts
  • src/components/FeatureGrid.tsx
  • src/contexts/AdsContext.tsx
  • src/hooks/useAdPreference.ts
  • src/hooks/useInlineEdit.ts
  • src/stores/userSettings.ts

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

@github-actions

Copy link
Copy Markdown
Asset Main PR merge build Change
JavaScript 19592.05 KiB 19592.05 KiB 0.00 KiB (0.00%)
JavaScript (gzip) 6447.84 KiB 6448.57 KiB 🔴 +0.73 KiB (+0.01%)
CSS 795.07 KiB 795.02 KiB 🟢 -0.05 KiB (-0.01%)
CSS (gzip) 121.71 KiB 121.69 KiB 🟢 -0.01 KiB (-0.01%)
Page Main (gzip) PR merge build (gzip) Change
/ 594.23 KiB 594.25 KiB 🔴 +0.02 KiB (+0.00%)
/libraries 536.94 KiB 536.93 KiB 🟢 -0.01 KiB (-0.00%)
/start/latest 561.72 KiB 561.73 KiB 🔴 +0.02 KiB (+0.00%)
/router/latest 562.01 KiB 562.03 KiB 🔴 +0.01 KiB (+0.00%)
/query/latest 560.46 KiB 560.48 KiB 🔴 +0.01 KiB (+0.00%)
/table/latest 593.28 KiB 593.28 KiB 🔴 +0.01 KiB (+0.00%)
/charts/latest 642.58 KiB 642.59 KiB 🔴 +0.01 KiB (+0.00%)
/ai/latest 587.37 KiB 587.41 KiB 🔴 +0.04 KiB (+0.01%)
Docs article 548.00 KiB 548.00 KiB 🟢 -0.00 KiB (-0.00%)
Framework docs article 548.00 KiB 548.00 KiB 🟢 -0.00 KiB (-0.00%)
/blog 541.14 KiB 541.14 KiB 🔴 +0.00 KiB (+0.00%)
/maintainers 540.23 KiB 540.22 KiB 🟢 -0.01 KiB (-0.00%)
/showcase 538.19 KiB 538.18 KiB 🟢 -0.01 KiB (-0.00%)
/chat 536.68 KiB 536.67 KiB 🟢 -0.01 KiB (-0.00%)
/chat/c/:conversationId 537.39 KiB 537.38 KiB 🟢 -0.01 KiB (-0.00%)

Page sizes sum the JS and CSS in the TanStack Start manifest for each route and its layouts. Shared files count once per page.

Compared with main at e99ceed. Gzip sizes are summed per file. Build run

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
tanstack-com 71b2517 Commit Preview URL

Branch Preview URL
Nov 22 2026, 04:37 PM

@manudeli
manudeli merged commit a205832 into main Nov 22, 2026
11 checks passed
@manudeli
manudeli deleted the chore/remove-unused-files-and-interfaces branch November 22, 2026 16:42
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