feat: enhance authentication and routing with constants; add sidebar configurations for KIR and LUCY
User description
feat: enhance authentication and routing with constants; add sidebar configurations for KIR and LUCY
PR Type
Enhancement
Description
• Authentication System: Added comprehensive authentication with NextAuth.js, supporting both Azure AD and email/password credentials with bcrypt hashing and database integration • Database Infrastructure: Implemented complete Prisma schema with SQL Server support, Azure Key Vault integration for connection strings, and client factory pattern • API Framework: Created standardized API response utilities, dynamic database table routes, and Prisma context middleware for consistent server-side operations • Logging System: Built comprehensive logging infrastructure with Winston logger, custom database transport, and multiple log levels • UI Components: Enhanced existing components (Table, Badge, Modal, BottomSheet) and added new ones (AlertDialog, TooltipText improvements) with better theming and mobile responsiveness • KIR Application Features: Added complete return policy management with return types, product categorization, and policy mapping functionality including CRUD operations • LUCY Application: Created contact management system with API endpoints and store integration • Routing & Navigation: Expanded route paths for both KIR and LUCY applications with updated sidebar configurations • Constants & Configuration: Organized UI constants, error messages, API headers, and authentication constants for better maintainability • Mobile Support: Enhanced mobile responsiveness across components with BottomSheet integration and responsive layouts
Diagram Walkthrough
flowchart LR
Auth["Authentication System"] --> DB["Database Infrastructure"]
Auth --> API["API Framework"]
DB --> Logging["Logging System"]
API --> KIR["KIR Features"]
API --> LUCY["LUCY Features"]
KIR --> ReturnPolicy["Return Policy Management"]
KIR --> LogsPage["Enhanced Logs Page"]
LUCY --> Contacts["Contact Management"]
UI["UI Components"] --> KIR
UI --> LUCY
Constants["Constants & Config"] --> UI
Mobile["Mobile Support"] --> UI
File Walkthrough
Relevant files | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Enhancement | 79 files
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Formatting | 3 files
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Configuration changes | 2 files
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Dependencies | 1 files
|