diff --git a/atlas/app/admin/closeout/[token]/page.tsx b/atlas/app/admin/closeout/[token]/page.tsx index d45ba73..5e58988 100644 --- a/atlas/app/admin/closeout/[token]/page.tsx +++ b/atlas/app/admin/closeout/[token]/page.tsx @@ -15,7 +15,7 @@ const CAP = 4; const LABEL: Record = { blurb: "Description", tech: "Tech stack", topics: "Topics", repoUrl: "Repository", prodUrl: "Live site / demo", contacts: "Client contacts (admin-only)", clientUrl: "Client website", clientDesc: "About the client (public)", - codePrivate: "Code", presentationUrl: "Final presentation", reportUrl: "Final report", + codePrivate: "Code", presentationUrl: "Final presentation", reportUrl: "Final report", pdUrl: "Project description (PD)", }; const SEV = { blocker: "var(--danger)", warning: "var(--amber-ink)" } as const; @@ -217,7 +217,7 @@ export default function CloseoutReview({ params }: { params: Promise<{ token: st
{LABEL[f.field] ?? f.field} {/* Per-semester deliverables land on this term's run, not the project. */} - {(f.field === "presentationUrl" || f.field === "reportUrl") && ` · ${r.term || "this semester"}`} + {(f.field === "presentationUrl" || f.field === "reportUrl" || f.field === "pdUrl") && ` · ${r.term || "this semester"}`}
{show(f.before)}
diff --git a/atlas/app/api/closeout/[token]/approve/route.ts b/atlas/app/api/closeout/[token]/approve/route.ts index f2d72fd..892bede 100644 --- a/atlas/app/api/closeout/[token]/approve/route.ts +++ b/atlas/app/api/closeout/[token]/approve/route.ts @@ -74,6 +74,7 @@ export async function POST(req: Request, { params }: { params: Promise<{ token: codePrivate: draft.codePublic ? draft.codePublic === "no" : null, presentationUrl: draft.presentationUrl, reportUrl: draft.reportUrl, + pdUrl: draft.pdUrl, course: draft.course, } : undefined, diff --git a/atlas/app/api/closeout/[token]/route.ts b/atlas/app/api/closeout/[token]/route.ts index 7fcd864..90b737e 100644 --- a/atlas/app/api/closeout/[token]/route.ts +++ b/atlas/app/api/closeout/[token]/route.ts @@ -28,6 +28,7 @@ export async function GET(_req: Request, { params }: { params: Promise<{ token: codePrivate: project?.codePrivate ?? false, presentationUrl: termRun?.presentationUrl ?? "", reportUrl: termRun?.reportUrl ?? "", + pdUrl: termRun?.pdUrl ?? "", }, before, draft diff --git a/atlas/app/contribute/[token]/CloseoutClient.tsx b/atlas/app/contribute/[token]/CloseoutClient.tsx index 32a433e..80a026b 100644 --- a/atlas/app/contribute/[token]/CloseoutClient.tsx +++ b/atlas/app/contribute/[token]/CloseoutClient.tsx @@ -395,7 +395,6 @@ export default function CloseoutClient({ ["title", "Project name", "e.g. Food Pantry Finder", true, 200], ["partner", "Client or partner", "e.g. City of Boston", true, 200], ["course", "Course", "e.g. DS519", true, 40], - ["pdUrl", "Project description link", "https://docs.google.com/…", false, 500], ] as const ).map(([k, lab, ph, req, max]) => (
@@ -404,8 +403,7 @@ export default function CloseoutClient({ )} + + + set("pdUrl", e.target.value)} + placeholder="https://docs.google.com/document/d/…" + /> +
We check the sharing setting when you save.
+ + + +
+