From fc296b44d86e46676478ee23eb17a95c994228e5 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 25 Jul 2025 19:34:52 -0500 Subject: [PATCH] Filesystem export --- src/components/ProjectSidebar.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/ProjectSidebar.tsx b/src/components/ProjectSidebar.tsx index f9c35926..f97e472e 100644 --- a/src/components/ProjectSidebar.tsx +++ b/src/components/ProjectSidebar.tsx @@ -149,7 +149,13 @@ export function ProjectSidebar({ const url = URL.createObjectURL(content); const link = document.createElement('a'); link.href = url; - link.download = selectedProject ? `${selectedProject.name}-files.zip` : 'project-files.zip'; + + // Generate filename with date + const now = new Date(); + const dateStr = now.toISOString().split('T')[0]; // YYYY-MM-DD format + const projectName = selectedProject?.name || 'shakespeare'; + link.download = `${projectName}-${dateStr}.zip`; + document.body.appendChild(link); link.click(); document.body.removeChild(link); @@ -213,7 +219,7 @@ export function ProjectSidebar({