ui(deploy): router blocker + DS dialog for unsaved edits

- Add deployedConfigSnapshot field to Deployment interface (mirrors server shape)
- Remove the Task 10.3 cast in handleRestore now that the type has the field
- New useUnsavedChangesBlocker hook (react-router useBlocker, v7.13.1)
- Wire AlertDialog into AppDeploymentPage for in-app navigation guard

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-22 23:13:36 +02:00
parent b1bdb88ea4
commit 3a649f40cd
3 changed files with 46 additions and 3 deletions

View File

@@ -41,6 +41,11 @@ export interface Deployment {
deployedAt: string | null;
stoppedAt: string | null;
createdAt: string;
deployedConfigSnapshot?: {
jarVersionId: string;
agentConfig: Record<string, unknown> | null;
containerConfig: Record<string, unknown>;
} | null;
}
/**