Skip to content

Conversation

@raseltechnext
Copy link
Collaborator

Summary

  • What does this PR do?

Changes

How to test

Screenshots (if UI)

Checklist

  • PR title is semantic (e.g., feat: add X, fix: correct Y)
  • Linked issue (Fixes #ID)
  • Lint passes locally (pnpm lint)
  • Build pass locally (server: pnpm --filter server test)
  • Includes migrations or schema changes (if any) documented
  • Updated docs/changelog if needed

@sshahriazz sshahriazz merged commit e386626 into main Nov 11, 2025
10 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the login functionality by simplifying authentication paths and consolidating login logic into the LoginForm component.

  • Shortened authentication paths from /authentication/default/* to /auth/*
  • Moved authentication logic directly into LoginForm component, removing unnecessary prop drilling
  • Updated sign-out flow to use authClient and redirect to the new login path

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
apps/client/src/routes/paths.ts Simplified auth paths by removing /default segment from login, signup, and forgot-password routes
apps/client/src/layouts/main-layout/common/ProfileMenu.tsx Updated sign-out handler to use authClient.signOut() and redirect to the new auth path structure
apps/client/src/components/sections/authentications/default/LoginForm.tsx Consolidated login logic into the component by removing handleLogin prop and calling authClient.signIn.email directly; added loadingPosition prop to submit button
apps/client/src/app/auth/login/page.tsx Simplified page component by removing local state and login handler, now using authPaths instead of paths
Comments suppressed due to low confidence (1)

apps/client/src/layouts/main-layout/common/ProfileMenu.tsx:102

  • Avoid automated semicolon insertion (92% of all statements in the enclosing function have an explicit semicolon).
  }

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

const handleSignout = async () => {
await authClient.signOut();
router.push(authPaths.login);
}
Copy link

Copilot AI Nov 11, 2025

Choose a reason for hiding this comment

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

Missing semicolon at the end of the function declaration. JavaScript/TypeScript best practices recommend using semicolons consistently throughout the codebase.

Suggested change
}
};

Copilot uses AI. Check for mistakes.
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.

Complete Login with email and password with proper redirections setup

3 participants