mirror of
https://github.com/BreizhHardware/Site-comptage-heure.git
synced 2026-05-09 08:15:31 +02:00
[PR #26] [MERGED] feat: Ajouter des fonctionnalités de tri et de filtrage des heures, incluant la sélection d'utilisateurs et l'ajout de timestamps #84
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#84
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/26
Author: @BreizhHardware
Created: 11/20/2025
Status: ✅ Merged
Merged: 11/20/2025
Merged by: @BreizhHardware
Base:
dev← Head:feat/sort-hours📝 Commits (1)
e825651feat: Ajouter des fonctionnalités de tri et de filtrage des heures, incluant la sélection d'utilisateurs et l'ajout de timestamps📊 Changes
9 files changed (+511 additions, -23 deletions)
View changed files
📝
.dockerignore(+1 -1)📝
app/admin/page.tsx(+103 -21)📝
app/api/hours/route.ts(+2 -0)➕
components/ui/checkbox.tsx(+32 -0)➕
components/ui/select.tsx(+187 -0)📝
package.json(+4 -1)📝
pnpm-lock.yaml(+159 -0)➕
prisma/migrations/20251120171812_add_timestamps_to_hour/migration.sql(+21 -0)📝
prisma/schema.prisma(+2 -0)📄 Description
This pull request introduces significant UI improvements and new features to the admin page, primarily by adding reusable UI components (
CheckboxandSelect), enhancing sorting/filtering options for hours management, and updating dependencies to support these changes. It also includes minor backend adjustments to expose additional data fields and a small update to.dockerignore.UI Enhancements and Feature Additions:
CheckboxandSelectcomponents using Radix UI primitives, enabling consistent and accessible form controls throughout the admin interface (components/ui/checkbox.tsx,components/ui/select.tsx). [1] [2]CheckboxandSelectcomponents for user selection, role assignment, and force deletion confirmation, replacing native HTML elements for a more unified UI (app/admin/page.tsx). [1] [2] [3]app/admin/page.tsx). [1] [2] [3]Backend and Data Layer Adjustments:
createdAtfield in responses, supporting the new sorting options in the UI (app/api/hours/route.ts). [1] [2]Hourinterface to accept an optionalcreatedAtproperty, aligning frontend types with backend data (app/admin/page.tsx).Dependency and Configuration Updates:
@radix-ui/react-checkboxand@radix-ui/react-select(and their dependencies) to the project dependencies and lockfile to support the new UI components (package.json,pnpm-lock.yaml). [1] [2] [3] [4] [5] [6]db:migratefor deploying Prisma migrations (package.json).Miscellaneous:
.dockerignoreto exclude thescripts/seed-test.jsfile, likely to prevent it from being included in Docker builds (.dockerignore).Closes #21
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.