From bd05aaa87d56250128aa417bddce53013cc24473 Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 1 Jun 2026 16:50:00 +0200 Subject: [PATCH] feat(mentor): email all team members button on project detail Co-Authored-By: Claude Opus 4.8 (1M context) --- .../(mentor)/mentor/projects/[id]/page.tsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/app/(mentor)/mentor/projects/[id]/page.tsx b/src/app/(mentor)/mentor/projects/[id]/page.tsx index 9a26169..2cd094f 100644 --- a/src/app/(mentor)/mentor/projects/[id]/page.tsx +++ b/src/app/(mentor)/mentor/projects/[id]/page.tsx @@ -344,6 +344,25 @@ function ProjectDetailContent({ projectId }: { projectId: string }) { + {(() => { + const emails = (project.teamMembers ?? []) + .map((m) => m.user.email) + .filter((e): e is string => !!e) + if (emails.length === 0) return null + const mailto = `mailto:${emails.join(',')}?subject=${encodeURIComponent( + `MOPC Mentorship — ${project.title}`, + )}` + return ( +
+ +
+ ) + })()} {/* Team Lead */} {teamLead && (