Skip to content

refactor: remove 7 @calcom/trpc imports from packages/features#27727

Merged
hbjORbj merged 19 commits intomainfrom
refactor/migrate-trpc-stuff-from-features-to-web
Feb 7, 2026
Merged

refactor: remove 7 @calcom/trpc imports from packages/features#27727
hbjORbj merged 19 commits intomainfrom
refactor/migrate-trpc-stuff-from-features-to-web

Conversation

@hbjORbj
Copy link
Copy Markdown
Contributor

@hbjORbj hbjORbj commented Feb 7, 2026

What does this PR do?

Moves 17 files out of packages/features/ into apps/web/modules/ and reorganizes 2 files within packages/features/ to reduce cross-package tRPC coupling.

Impact

  • 7 @calcom/trpc imports removed from packages/features/ — the moved files (useSegments, useSchedule, useApiV2AvailableSlots, BookerLayoutSelector, schedule types, FeedbackDialog, Segment) all depended on @calcom/trpc and now live in apps/web/ where tRPC usage belongs

What moved where

From To
packages/features/data-table/hooks/useSegments.ts apps/web/modules/data-table/hooks/
packages/features/schedules/lib/use-schedule/* (5 files) apps/web/modules/schedules/hooks/ + lib/
packages/features/schedules/lib/use-schedule/useTimesForSchedule.ts packages/features/schedules/hooks/ (reorganized, inlined type)
packages/features/feature-opt-in/components/* (5 files) apps/web/modules/feature-opt-in/components/
packages/features/feedback/components/FeedbackDialog.tsx apps/web/modules/feature-opt-in/components/
packages/features/settings/BookerLayoutSelector.tsx apps/web/modules/settings/components/
packages/features/Segment.tsx + test apps/web/modules/event-types/components/

No functional changes — only file moves and import path updates.

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. N/A — no docs changes needed.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

Build verification only — no functional changes. Confirm the app builds and the affected views (insights, bookings, settings/appearance, event type advanced tab, embed, billing, user tables, org privacy, out-of-office, workflows, troubleshooter) render correctly.

@paragon-review
Copy link
Copy Markdown

paragon-review bot commented Feb 7, 2026

Paragon Review Unavailable

Hi @hbjORbj! You are not toggled active by your team. Reach out to your admin.

@hbjORbj hbjORbj marked this pull request as draft February 7, 2026 08:42
@graphite-app graphite-app bot added foundation core area: core, team members only labels Feb 7, 2026
@graphite-app graphite-app bot requested a review from a team February 7, 2026 08:42
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 30 files

@devin-ai-integration devin-ai-integration bot changed the title refactor: migrate more files importing trpc into /web refactor: remove 6 @calcom/trpc imports from packages/features Feb 7, 2026
@hbjORbj hbjORbj marked this pull request as ready for review February 7, 2026 08:57
@hbjORbj hbjORbj requested a review from a team as a code owner February 7, 2026 08:57
@hbjORbj hbjORbj enabled auto-merge (squash) February 7, 2026 09:00
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 36 files

@pull-request-size pull-request-size bot added size/L and removed size/M labels Feb 7, 2026
@devin-ai-integration devin-ai-integration bot changed the title refactor: remove 6 @calcom/trpc imports from packages/features refactor: remove 7 @calcom/trpc imports from packages/features Feb 7, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 7, 2026

E2E results are ready!

@hbjORbj hbjORbj requested a review from keithwillcode February 7, 2026 10:40
@hbjORbj hbjORbj merged commit e64fad8 into main Feb 7, 2026
87 of 90 checks passed
@hbjORbj hbjORbj deleted the refactor/migrate-trpc-stuff-from-features-to-web branch February 7, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants