Add redirects for /login and /register paths to Clerk auth pages#180
Add redirects for /login and /register paths to Clerk auth pages#180
Conversation
WalkthroughAdded Clerk redirect components and routes: imported Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: Repository: TaskRatchet/coderabbit/.coderabbit.yaml Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (3)📓 Common learnings📚 Learning: 2025-08-12T21:38:27.063ZApplied to files:
📚 Learning: 2025-08-16T19:53:45.147ZApplied to files:
Comment |
Outdated dependencies |
Bundle StatsHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger
Smaller No assets were smaller Unchanged
|
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: Repository: TaskRatchet/coderabbit/.coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
src/App.tsx(2 hunks)
🧰 Additional context used
🧠 Learnings (3)
📓 Common learnings
Learnt from: narthur
PR: TaskRatchet/taskratchet-web#166
File: global-setup.ts:25-25
Timestamp: 2025-08-12T21:38:27.063Z
Learning: The project uses __mocks__/clerk/clerk-react.tsx to provide mock implementations for Clerk authentication components and hooks instead of inline mocking in global-setup.ts. The mock file exports ClerkProvider, Protect, RedirectToSignIn, SignedIn, UserButton components and useUser/useClerk hooks with test-friendly return values.
📚 Learning: 2025-08-12T21:38:27.063Z
Learnt from: narthur
PR: TaskRatchet/taskratchet-web#166
File: global-setup.ts:25-25
Timestamp: 2025-08-12T21:38:27.063Z
Learning: The project uses __mocks__/clerk/clerk-react.tsx to provide mock implementations for Clerk authentication components and hooks instead of inline mocking in global-setup.ts. The mock file exports ClerkProvider, Protect, RedirectToSignIn, SignedIn, UserButton components and useUser/useClerk hooks with test-friendly return values.
Applied to files:
src/App.tsx
📚 Learning: 2025-08-16T19:53:45.147Z
Learnt from: narthur
PR: TaskRatchet/taskratchet-web#166
File: src/components/organisms/NavBar.tsx:40-49
Timestamp: 2025-08-16T19:53:45.147Z
Learning: In the TaskRatchet project, NavBar.spec.tsx still uses the old useSession mock and doesn't test the new Clerk authentication integration with useUser and useClerk hooks, so tests pass even when the Clerk mock returns session: null.
Applied to files:
src/App.tsx
🧬 Code graph analysis (1)
src/App.tsx (1)
__mocks__/@clerk/clerk-react.tsx (1)
RedirectToSignIn(11-13)
Docstrings generation was requested by @narthur. * #180 (comment) The following files were modified: * `__mocks__/@clerk/clerk-react.tsx` * `src/App.tsx`
|
Note Generated docstrings for this pull request at #181 |
There are still links to /login and /register, so we can't actually remove them entirely. Instead we need to set them up to redirect to Clerk login and register pages. This PR makes the change.
Summary by CodeRabbit