Upload feature (e): wire inline upload (registratie beroep) + documenten step (herregistratie)
- Fold UploadState into both wizard machines; route via { tag: 'Upload', msg }
- Gate step validation on requiredCategoriesSatisfied; include deliveryRefs in submit
- Shared createUploadController (effectful glue: categories, transport, focus-poll, File map)
- rejectReason pure format validator + specs; bump registratie storage key to v2
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -11,7 +11,7 @@ import { runSubmit, SUBMIT_FAILED } from '@shared/application/submit';
|
||||
*/
|
||||
export function submitRegistratie(client: ApiClient, data: ValidRegistratie): Promise<Result<string, string>> {
|
||||
return runSubmit(async () => {
|
||||
const res = await client.registrations({ diplomaHerkomst: data.diplomaHerkomst });
|
||||
const res = await client.registrations({ diplomaHerkomst: data.diplomaHerkomst, documents: data.documents });
|
||||
return res.referentie ?? '';
|
||||
}, SUBMIT_FAILED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user