Skip to content

Conversation

@hbjORbj
Copy link
Contributor

@hbjORbj hbjORbj commented Jan 25, 2026

What does this PR do?

This PR is part of breaking down #26571 into smaller, reviewable PRs.

Moves auth-related components and hooks from packages/features/auth/ to apps/web/modules/auth/:

Components moved:

  • SAMLLogin.tsxapps/web/modules/auth/components/SAMLLogin.tsx
  • Turnstile.tsxapps/web/modules/auth/components/Turnstile.tsx

Hooks moved:

  • useLastUsed.tsxapps/web/modules/auth/hooks/useLastUsed.tsx
  • useRedirectToLoginIfUnauthenticated.tsxapps/web/modules/auth/hooks/useRedirectToLoginIfUnauthenticated.tsx
  • useRedirectToOnboardingIfNeeded.tsxapps/web/modules/auth/hooks/useRedirectToOnboardingIfNeeded.tsx

All import paths in consuming files have been updated accordingly.

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 documentation changes needed.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

…ps/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

Co-Authored-By: benny@cal.com <sldisek783@gmail.com>
Comment on lines -1 to -7
vi.mock("@calcom/features/auth/Turnstile", () => ({
default: ({ onVerify }: { onVerify: (token: string) => void }) => (
<div data-testid="turnstile-captcha" onClick={() => onVerify("test-token")}>
Mock Captcha
</div>
),
}));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not consumed anywhere

@hbjORbj hbjORbj marked this pull request as ready for review January 26, 2026 09:52
@hbjORbj hbjORbj requested a review from keithwillcode January 26, 2026 09:53
@graphite-app graphite-app bot requested a review from a team January 26, 2026 09:53
@graphite-app graphite-app bot added the core area: core, team members only label Jan 26, 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 12 files

@hbjORbj hbjORbj enabled auto-merge (squash) January 26, 2026 10:04
@hbjORbj hbjORbj merged commit 7b8272e into main Jan 26, 2026
60 checks passed
@hbjORbj hbjORbj deleted the devin/1769363224-move-more-trpc-components branch January 26, 2026 12:58
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.

3 participants