feat(documents): create-document wizard MVP + service dispatch

Implements createFromWizard and createFromUpload service paths covering
the documenso-template, in-app, and upload pathways. Persists subject
FK, signers, watchers, and the per-document reminder controls
(remindersDisabled / reminderCadenceOverride) introduced in PR1. New
POST /api/v1/documents/wizard route and a functional /documents/new UI
with type/source/template/signers/reminders sections. Drag-handle
reorder, watcher autocomplete picker, and PDF preview defer to the
PR10 polish sweep.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matt Ciaccio
2026-04-28 02:43:00 +02:00
parent 2dc53842c0
commit d8f0cdd7d2
5 changed files with 656 additions and 36 deletions

View File

@@ -1,6 +1,4 @@
import Link from 'next/link';
import { Button } from '@/components/ui/button';
import { PageHeader } from '@/components/shared/page-header';
import { CreateDocumentWizard } from '@/components/documents/create-document-wizard';
interface PageProps {
params: Promise<{ portSlug: string }>;
@@ -8,17 +6,5 @@ interface PageProps {
export default async function NewDocumentPage({ params }: PageProps) {
const { portSlug } = await params;
return (
<div className="flex flex-col gap-4">
<PageHeader
title="New document"
description="The create-document wizard ships in PR6 of the Phase A rollout."
actions={
<Button asChild variant="outline">
<Link href={`/${portSlug}/documents`}>Back to documents</Link>
</Button>
}
/>
</div>
);
return <CreateDocumentWizard portSlug={portSlug} />;
}