mirror of
https://github.com/BreizhHardware/Site-comptage-heure.git
synced 2026-05-09 16:25:23 +02:00
[PR #6] [MERGED] Dev #68
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
BreizhHardware/Site-comptage-heure#68
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/BreizhHardware/Site-comptage-heure/pull/6
Author: @BreizhHardware
Created: 10/18/2025
Status: ✅ Merged
Merged: 10/18/2025
Merged by: @BreizhHardware
Base:
main← Head:dev📝 Commits (3)
8ccca75feat: update Docker setup to create uploads directory and ensure data persistencea6ac1e8feat: implement user password reset functionality and enhance settings context736d327feat: add success and error notifications for hour validation and addition📊 Changes
16 files changed (+760 additions, -1340 deletions)
View changed files
📝
.gitignore(+7 -1)📝
Dockerfile(+1 -2)📝
app/admin/page.tsx(+177 -49)📝
app/api/auth/change-password/route.ts(+2 -0)📝
app/api/hours/[id]/route.ts(+1 -1)📝
app/api/hours/route.ts(+6 -0)📝
app/api/users/[id]/route.ts(+26 -0)➕
app/api/users/route.ts(+25 -0)📝
app/dashboard/page.tsx(+12 -3)📝
components/Header.tsx(+8 -20)📝
components/providers.tsx(+4 -1)➕
context/SettingsContext.tsx(+45 -0)📝
docker-compose.yml(+1 -0)📝
package.json(+2 -0)📝
pnpm-lock.yaml(+438 -1260)📝
prisma/schema.prisma(+5 -3)📄 Description
This pull request introduces several enhancements and new features to the admin panel, focusing on improved user management, password reset functionality, and better feedback for administrative actions. It also includes backend changes to support these features, such as new API endpoints and updates to existing ones. The most important changes are grouped below.
User Management and Password Reset Functionality
/api/usersendpoint and frontend integration to allowSUPER_ADMINusers to fetch, display, and manage all users in the admin panel. [1] [2] [3]Feedback and Validation Improvements
Refactoring and Data Consistency
idtypes to strings across the frontend and backend for consistency. [1] [2]Minor UI and UX Improvements
Backend and Security Enhancements
dynamic = 'force-dynamic'to password change and user endpoints for proper Next.js API behavior. [1] [2]validatedByIdfor better relational integrity. (app/api/hours/[id]/route.tsL30-R30)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.