[PR #5] [MERGED] feat: add total summary section to dashboard and ensure upload directory creation #67

Closed
opened 2026-05-06 12:18:33 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/BreizhHardware/Site-comptage-heure/pull/5
Author: @BreizhHardware
Created: 10/17/2025
Status: Merged
Merged: 10/17/2025
Merged by: @BreizhHardware

Base: mainHead: dev


📝 Commits (1)

  • bca898a feat: add total summary section to dashboard and ensure upload directory creation

📊 Changes

3 files changed (+24 additions, -20 deletions)

View changed files

📝 app/admin/page.tsx (+5 -2)
📝 app/api/upload/route.ts (+2 -1)
📝 app/dashboard/page.tsx (+17 -17)

📄 Description

This pull request introduces improvements to both the file upload API and the dashboard UI, along with minor formatting updates to the admin page. The most significant changes are the enhancement of the upload route to ensure directory existence before saving files and the repositioning of the totals summary in the dashboard for better visibility.

File upload improvements:

  • Ensured the upload directory exists before writing files by adding a call to mkdir with the { recursive: true } option in app/api/upload/route.ts. This prevents errors when the uploads directory is missing. [1] [2]

Dashboard UI enhancements:

  • Moved the "Totaux" (Totals) summary section to the top of the dashboard page in app/dashboard/page.tsx for increased prominence and improved user experience. [1] [2]

Admin page formatting:

  • Improved label and dialog description formatting for better readability in app/admin/page.tsx. [1] [2]

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/BreizhHardware/Site-comptage-heure/pull/5 **Author:** [@BreizhHardware](https://github.com/BreizhHardware) **Created:** 10/17/2025 **Status:** ✅ Merged **Merged:** 10/17/2025 **Merged by:** [@BreizhHardware](https://github.com/BreizhHardware) **Base:** `main` ← **Head:** `dev` --- ### 📝 Commits (1) - [`bca898a`](https://github.com/BreizhHardware/Site-comptage-heure/commit/bca898a447805ab097cba95291bbfc896606fb18) feat: add total summary section to dashboard and ensure upload directory creation ### 📊 Changes **3 files changed** (+24 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `app/admin/page.tsx` (+5 -2) 📝 `app/api/upload/route.ts` (+2 -1) 📝 `app/dashboard/page.tsx` (+17 -17) </details> ### 📄 Description This pull request introduces improvements to both the file upload API and the dashboard UI, along with minor formatting updates to the admin page. The most significant changes are the enhancement of the upload route to ensure directory existence before saving files and the repositioning of the totals summary in the dashboard for better visibility. **File upload improvements:** * Ensured the upload directory exists before writing files by adding a call to `mkdir` with the `{ recursive: true }` option in `app/api/upload/route.ts`. This prevents errors when the `uploads` directory is missing. [[1]](diffhunk://#diff-d6f2e1330bd21210549d263dde51d9b36a44b16f644baebe704a128ddf5394f5L2-R2) [[2]](diffhunk://#diff-d6f2e1330bd21210549d263dde51d9b36a44b16f644baebe704a128ddf5394f5R32) **Dashboard UI enhancements:** * Moved the "Totaux" (Totals) summary section to the top of the dashboard page in `app/dashboard/page.tsx` for increased prominence and improved user experience. [[1]](diffhunk://#diff-e16c1c1133d5d72341ada507f3e06fa37dd79de574403f158159ff934f9b5013R153-R169) [[2]](diffhunk://#diff-e16c1c1133d5d72341ada507f3e06fa37dd79de574403f158159ff934f9b5013L295-L311) **Admin page formatting:** * Improved label and dialog description formatting for better readability in `app/admin/page.tsx`. [[1]](diffhunk://#diff-a7c2b21269eaaa6f291a758c44939732a9f1d9fe8e0d71a3a7822b813a196f43L614-R616) [[2]](diffhunk://#diff-a7c2b21269eaaa6f291a758c44939732a9f1d9fe8e0d71a3a7822b813a196f43L633-R636) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-06 12:18:33 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
BreizhHardware/Site-comptage-heure#67
No description provided.