Go to file
2025-05-02 18:19:46 +02:00
app cleaning hard 2025-05-02 18:19:46 +02:00
components cleaning hard 2025-05-02 18:19:46 +02:00
hooks cleaning hard 2025-05-02 18:19:46 +02:00
lib cleaning hard 2025-05-02 18:19:46 +02:00
node_modules auth flow 2025-05-02 11:41:43 +02:00
prisma courrier msft oauth 2025-05-02 09:53:17 +02:00
public Initial commit 2025-04-17 11:39:15 +02:00
scripts courrier msft oauth 2025-05-02 09:15:59 +02:00
styles Initial commit 2025-04-17 11:39:15 +02:00
types auth flow 2025-05-02 12:56:20 +02:00
.DS_Store courrier multi account restore compose 2025-04-27 22:51:45 +02:00
.env auth flow 2025-05-02 12:48:01 +02:00
.gitignore without logo 2025-04-25 17:41:20 +02:00
components.json Initial commit 2025-04-17 11:39:15 +02:00
db_query.sql courrier multi account 2025-04-27 16:52:21 +02:00
DEPRECATED_FUNCTIONS.md courrier preview 2025-05-01 19:55:05 +02:00
docker-compose.yml courrier redis 2025-04-27 13:39:05 +02:00
Dockerfile Initial commit 2025-04-17 11:39:15 +02:00
global.d.ts courrier refactor rebuild 2 2025-04-27 11:03:34 +02:00
keycloak-user-creation-workflow.json Initial commit 2025-04-17 11:39:15 +02:00
middleware.ts auth flow 2025-05-02 13:01:33 +02:00
next-env.d.ts without logo 2025-04-25 17:41:20 +02:00
next.config.js cleaning 2025-05-02 18:05:28 +02:00
package-lock.json auth flow 2025-05-02 11:41:43 +02:00
package.json auth flow 2025-05-02 11:48:24 +02:00
postcss.config.mjs Initial commit 2025-04-17 11:39:15 +02:00
README.md cleaning hard 2025-05-02 18:19:46 +02:00
tailwind.config.ts carnet 2025-04-20 11:25:34 +02:00
tsconfig.json Initial commit 2025-04-17 11:39:15 +02:00
yarn.lock auth flow 2025-05-02 11:41:43 +02:00

NeahFront9

This project is a modern Next.js dashboard application with various widgets and components.

Code Refactoring

The codebase is being systematically refactored to improve:

  1. Code Organization: Moving from monolithic components to modular, reusable ones
  2. Maintainability: Implementing custom hooks for data fetching and state management
  3. Performance: Reducing duplicate code and optimizing renders
  4. Consistency: Creating unified utilities for common operations

Completed Refactoring

The following refactoring tasks have been completed:

Utility Modules

  • Status Utilities (lib/utils/status-utils.ts): Centralized task status color and label handling
  • Date Utilities (lib/utils/date-utils.ts): Common date validation and formatting functions

Custom Hooks

  • Task Hook (hooks/use-tasks.ts): Reusable hook for fetching and managing task data
  • Calendar Events Hook (hooks/use-calendar-events.ts): Reusable hook for calendar event handling

Updated Components

  • Duties/Flow Component (components/flow.tsx): Simplified to use the custom task hook
  • Calendar Component (components/calendar.tsx): Refactored to use the custom calendar events hook

In Progress

  • More components will be refactored to follow the same patterns
  • State management improvements across the application
  • Better UI responsiveness and accessibility

API Documentation

A documentation endpoint has been created to track code updates:

GET /api/code-updates

This returns a JSON object with details of all refactoring changes made to the codebase.

Development

To run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.