mirror of
https://github.com/BreizhHardware/Site-comptage-heure.git
synced 2026-05-09 08:15:31 +02:00
[PR #25] [MERGED] feat: Ajouter la fonctionnalité de sélection d'utilisateurs pour l'ajout d'heures #83
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#83
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/25
Author: @BreizhHardware
Created: 11/20/2025
Status: ✅ Merged
Merged: 11/20/2025
Merged by: @BreizhHardware
Base:
dev← Head:feat/bulk-add-hours📝 Commits (1)
1ef7089feat: Ajouter la fonctionnalité de sélection d'utilisateurs pour l'ajout d'heures📊 Changes
2 files changed (+69 additions, -12 deletions)
View changed files
📝
app/admin/page.tsx(+35 -0)📝
app/api/hours/route.ts(+34 -12)📄 Description
This pull request adds the ability for admins to add hours on behalf of multiple users at once from the admin interface. The changes include updates to both the frontend (
AdminPage) and backend (/api/hoursroute) to support selecting users, validating permissions, and handling the creation of hours for multiple users.Frontend: User selection and form handling
Backend: API and permission logic
/api/hoursPOST endpoint to accept an optionaluserIdsarray and to create hour entries for each selected user. [1] [2]Closes #19
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.