feat(applications): add discard functionality for draft applications and update UI

This commit is contained in:
Nati
2026-08-31 07:11:05 +00:00
parent 9c81731759
commit 16ac650f5f
7 changed files with 150 additions and 21 deletions

View File

@@ -172,6 +172,15 @@ const handlers: MockHandler[] = [
return detail ? clone(detail) : undefined;
},
},
{
method: 'DELETE',
pattern: /^\/license-applications\/([\w-]+)$/,
respond: (_req, match) => {
delete mockApplications[match[1]];
delete mockApplicationDetails[match[1]];
return { deleted: true };
},
},
{
method: 'PATCH',
pattern: /^\/license-applications\/([\w-]+)\/sections\/([\w-]+)$/,