From 572c290f481a3932e6d7636de40291aaa33216c7 Mon Sep 17 00:00:00 2001 From: Krao Hasanee Date: Wed, 13 May 2026 11:33:01 -0400 Subject: [PATCH] Rename client project buttons to '+ New Project' Co-Authored-By: Claude Sonnet 4.6 --- src/pages/client/MyProjects.jsx | 91 +++++++++++++++++++++------------ 1 file changed, 57 insertions(+), 34 deletions(-) diff --git a/src/pages/client/MyProjects.jsx b/src/pages/client/MyProjects.jsx index ae841cc..6a8549f 100755 --- a/src/pages/client/MyProjects.jsx +++ b/src/pages/client/MyProjects.jsx @@ -4,8 +4,9 @@ import Layout from '../../components/Layout'; import StatusBadge from '../../components/StatusBadge'; import { supabase } from '../../lib/supabase'; import { useAuth } from '../../context/AuthContext'; +import { withTimeout } from '../../lib/withTimeout'; -const vLabel = (v) => 'v' + String(v || 0).padStart(2, '0'); +const rLabel = (v) => 'R' + String(v || 0).padStart(2, '0'); function ProjectGroup({ project, tasks, submissions, currentUserId, filter }) { const [open, setOpen] = useState(true); @@ -20,9 +21,10 @@ function ProjectGroup({ project, tasks, submissions, currentUserId, filter }) { if (filter === 'mine' && filteredTasks.length === 0) return null; return ( -
+
{/* Project header — clickable to collapse */}
- + New Request + + New Project
- {/* Filter toggle */} -
- - +
+
+
+
Filter
+
+ + +
+
+ +
{projects.length === 0 ? (

No projects yet

Submit a request and a project will be created automatically.

- Submit Request + + New Project
) : ( projects.map(project => (