From 464f38b0628258a7d1a54c68bb6fbc226aea7467 Mon Sep 17 00:00:00 2001 From: Sadrinho27 Date: Fri, 7 Nov 2025 19:40:42 +0100 Subject: [PATCH] Added the created_at and updated_at folder attributes in the interface --- app/dashboard/page.tsx | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/app/dashboard/page.tsx b/app/dashboard/page.tsx index 8d53ca3..1c82c2a 100644 --- a/app/dashboard/page.tsx +++ b/app/dashboard/page.tsx @@ -235,7 +235,7 @@ export default function DashboardPage() {

{folder.name}

- {/* ID du dossier supprimé */} + {/* Texte sous le nom du dossier */}
@@ -258,7 +258,24 @@ export default function DashboardPage() {

{selectedFolder.name}

{selectedFolder.description}

- {/* Badge ID supprimé */} +
+
+ + + Créé le: {new Date(selectedFolder.created_at).toLocaleString('fr-FR', { + day: '2-digit', month: '2-digit', year: 'numeric', hour: '2-digit', minute: '2-digit' + })} + +
+
+ + + Modifié le: {new Date(selectedFolder.updated_at).toLocaleString('fr-FR', { + day: '2-digit', month: '2-digit', year: 'numeric', hour: '2-digit', minute: '2-digit' + })} + +
+
{/* Contenu Colonne 2 */} @@ -292,7 +309,7 @@ export default function DashboardPage() { Fichiers - + {/* {selectedFolder.files && selectedFolder.files.length > 0 ? (
{selectedFolder.files.map((file, index) => ( @@ -310,7 +327,7 @@ export default function DashboardPage() { ) : (

Aucun fichier dans ce dossier.

)} - + */}