Add versioned design profile releases

This commit is contained in:
DCCONSTRUCTIONS
2026-07-11 22:34:01 +03:00
parent 50718a33a1
commit 1f2dffc031
8 changed files with 473 additions and 17 deletions
+12
View File
@@ -3,6 +3,7 @@ import type { NodedcTheme } from "@nodedc/ui-core";
export const applicationManifestSchemaVersion = "0.1.0" as const;
export type ApplicationDraftStatus = "draft";
export type DesignProfileStatus = "draft" | "published";
export interface ApplicationPageManifest {
id: string;
@@ -33,6 +34,7 @@ export interface ApplicationManifestV01 {
designProfile: {
id: string;
version: string;
status: DesignProfileStatus;
theme: NodedcTheme;
};
pages: ApplicationPageManifest[];
@@ -60,8 +62,18 @@ export interface DesignProfileSummary {
id: string;
name: string;
version: string;
status: DesignProfileStatus;
theme: NodedcTheme;
updatedAt: string;
versions: DesignProfileVersionSummary[];
latestPublishedVersion: string | null;
}
export interface DesignProfileVersionSummary {
version: string;
status: DesignProfileStatus;
theme: NodedcTheme;
publishedAt?: string;
}
export type ApplicationDraftSaveState = "idle" | "loading" | "saving" | "saved" | "error";