Skip to content

[LOCKLITE-112 & LOCKLITE-131] Create login page#69

Merged
vbetsch merged 20 commits intodevelopfrom
refactor/112-split-next-ui-api-routes
Aug 5, 2025
Merged

[LOCKLITE-112 & LOCKLITE-131] Create login page#69
vbetsch merged 20 commits intodevelopfrom
refactor/112-split-next-ui-api-routes

Conversation

@vbetsch
Copy link
Owner

@vbetsch vbetsch commented Aug 5, 2025

Split UI and API routes

@vbetsch vbetsch requested a review from Copilot August 5, 2025 20:31
@vbetsch vbetsch self-assigned this Aug 5, 2025
@vbetsch vbetsch added the ui About templating and styling label Aug 5, 2025
@notion-workspace
Copy link

Copy link
Contributor

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 creates a login page and reorganizes the application structure by splitting UI and API routes. The main purpose is to establish proper authentication flow with a dedicated login page under the /ui route structure.

Key changes:

  • Created a new login page at /ui/login with proper authentication flow
  • Refactored PageContainer component to accept a title prop for consistent page layout
  • Reorganized import paths to reflect the new UI structure and component organization

Reviewed Changes

Copilot reviewed 12 out of 14 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/modules/ui/router/routes.enum.ts Defines route constants for UI paths including login, workspace, and homepage
src/modules/ui/components/auth/molecules/SignInForm.tsx New sign-in form component with proper session handling and error management
src/modules/shared/auth/session-status.enum.ts Enum for NextAuth session status constants
src/modules/ui/components/common/PageContainer.tsx Enhanced to accept title prop and provide consistent page layout
src/app/ui/login/page.tsx New login page component using the refactored SignInForm
src/lib/auth.ts Updated to use route enum constants for sign-in/sign-out pages
src/app/ui/page.tsx Updated to redirect to login instead of workspace
src/app/ui/workspace/page.tsx Refactored to use new PageContainer with title prop
src/modules/ui/components/vaults/organisms/DynamicVaultsList.tsx Updated import paths to reflect new component organization
src/app/login/page.tsx Removed old login page implementation
src/app/login/layout.tsx Removed old login layout
src/app/ui/workspace/layout.tsx Removed unnecessary workspace layout

@vbetsch vbetsch changed the title [LOCKLITE-112] Create login page [LOCKLITE-112 & LOCKLITE-131] Create login page Aug 5, 2025
@notion-workspace
Copy link

@vbetsch vbetsch merged commit db81a5d into develop Aug 5, 2025
4 checks passed
@vbetsch vbetsch deleted the refactor/112-split-next-ui-api-routes branch August 5, 2025 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ui About templating and styling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants