Skip to content

Comments

refactor: move feature-flags, calendars, and schedules components from packages/features to apps/web/modules#27222

Merged
hbjORbj merged 35 commits intomainfrom
devin/1769362470-move-auth-calendars-schedules-to-web
Jan 29, 2026
Merged

refactor: move feature-flags, calendars, and schedules components from packages/features to apps/web/modules#27222
hbjORbj merged 35 commits intomainfrom
devin/1769362470-move-auth-calendars-schedules-to-web

Conversation

@hbjORbj
Copy link
Contributor

@hbjORbj hbjORbj commented Jan 25, 2026

What does this PR do?

This is a PR extracting simple migrations from #26571 (which is too large to review at 244 files).

Moves tRPC-dependent UI components from packages/features to apps/web/modules to eliminate circular dependencies:

Feature flags:

  • FlagAdminList.tsx, AssignFeatureSheet.tsxapps/web/modules/feature-flags/components/
  • hooks/index.tsapps/web/modules/feature-flags/hooks/
  • flag-listing-view.tsxapps/web/modules/feature-flags/views/

Calendars:

  • AdditionalCalendarSelector.tsx, NoAvailabilityDialog.tsxapps/web/modules/calendars/components/
  • DatePicker.tsxapps/web/modules/calendars/DatePicker.tsx
  • DestinationCalendarSelector.tsxpackages/features/calendars/components/ (reorganized within packages/features)

Schedules:

  • Schedule.tsx, NewScheduleButton.tsxapps/web/modules/schedules/components/
  • date-override-list.test.tsx moved with component

Type refactoring (to remove tRPC RouterOutputs dependency):

  • DateOverrideList.tsx - replaced RouterOutputs["viewer"]["travelSchedules"]["get"] with local TravelSchedule interface
  • ScheduleListItem.tsx - replaced RouterOutputs["viewer"]["availability"]["list"]["schedules"][number] with local Schedule interface
  • DestinationCalendarSelector.tsx - replaced RouterOutputs["viewer"]["calendars"]["connectedCalendars"] with local interfaces

…m packages/features to apps/web/modules

Co-Authored-By: benny@cal.com <sldisek783@gmail.com>
@devin-ai-integration
Copy link
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

hbjORbj and others added 8 commits January 26, 2026 02:50
…and update imports

Co-Authored-By: benny@cal.com <sldisek783@gmail.com>
…dars-schedules-to-web' into devin/1769362470-move-auth-calendars-schedules-to-web

Co-Authored-By: benny@cal.com <sldisek783@gmail.com>
…dars-schedules-to-web' into devin/1769362470-move-auth-calendars-schedules-to-web
@pull-request-size pull-request-size bot added size/L and removed size/M labels Jan 25, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 26, 2026

E2E results are ready!

@@ -187,23 +187,6 @@ const CopyButton = ({
);
};

const Schedule = <
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved to apps/web/modules/schedules/components/Schedule.tsx

@hbjORbj hbjORbj marked this pull request as ready for review January 28, 2026 12:10
@hbjORbj hbjORbj requested review from a team as code owners January 28, 2026 12:10
@graphite-app graphite-app bot added foundation core area: core, team members only labels Jan 28, 2026
Copy link
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

@hbjORbj hbjORbj enabled auto-merge (squash) January 29, 2026 07:27
ThyMinimalDev
ThyMinimalDev previously approved these changes Jan 29, 2026
Copy link
Contributor

@ThyMinimalDev ThyMinimalDev left a comment

Choose a reason for hiding this comment

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

awesome, nice types to replace trpc router outputs infered types

@ThyMinimalDev
Copy link
Contributor

DevinAI can you fix type checks issues, it's mostly duplicate identifier errors

…or import path

Co-Authored-By: benny@cal.com <sldisek783@gmail.com>
@devin-ai-integration
Copy link
Contributor

Fixed the duplicate identifier errors. The issue was in packages/platform/atoms/destination-calendar/DestinationCalendarSelector.tsx:

  1. Removed duplicate React imports (useState, useEffect, useMemo were imported twice)
  2. Fixed the import path from @calcom/features/calendars/DestinationCalendarSelector to @calcom/features/calendars/components/DestinationCalendarSelector

All CI checks are now passing.

@hbjORbj hbjORbj merged commit c7ee398 into main Jan 29, 2026
49 checks passed
@hbjORbj hbjORbj deleted the devin/1769362470-move-auth-calendars-schedules-to-web branch January 29, 2026 14:41
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