Remove obsolete migration and workflow files; delete Site Builder Wizard references and related components. Update documentation to reflect the removal of the WorkflowState model and streamline the site building process.

This commit is contained in:
IGNY8 VPS (Salman)
2025-11-21 00:59:34 +00:00
parent 6bb918bad6
commit c8adfe06d1
23 changed files with 1914 additions and 3493 deletions

View File

@@ -2140,7 +2140,6 @@ export interface SiteBlueprint {
created_at: string;
updated_at: string;
pages?: PageBlueprint[];
workflow_state?: WorkflowState;
gating_messages?: string[];
}
@@ -2158,65 +2157,6 @@ export interface PageBlueprint {
updated_at: string;
}
export interface WorkflowState {
current_step: string;
completed: boolean;
blocking_reason?: string;
steps: Array<{
step: string;
status: string;
code?: string;
message?: string;
updated_at?: string;
}>;
updated_at: string;
}
export interface WizardContext {
workflow: WorkflowState;
cluster_summary: {
attached_count: number;
coverage_counts: Record<string, number>;
clusters: Array<{
id: number;
name: string;
keyword_count: number;
volume: number;
context_type?: string;
dimension_meta?: Record<string, any>;
coverage_status: string;
role: string;
metadata?: Record<string, any>;
suggested_taxonomies?: string[];
attribute_hints?: string[];
}>;
};
taxonomy_summary: {
total_taxonomies: number;
counts_by_type: Record<string, number>;
taxonomies: Array<{
id: number;
name: string;
slug: string;
taxonomy_type: string;
description?: string;
cluster_ids: number[];
metadata?: Record<string, any>;
external_reference?: string;
}>;
};
sitemap_summary?: {
pages_total: number;
pages_by_status: Record<string, number>;
pages_by_type: Record<string, number>;
};
next_actions?: {
step: string | null;
status: string;
message: string | null;
code: string | null;
};
}
export async function fetchSiteBlueprints(filters?: {
site_id?: number;
@@ -2431,21 +2371,6 @@ export async function updateSiteBlueprint(id: number, data: Partial<SiteBlueprin
});
}
export async function fetchWizardContext(blueprintId: number): Promise<WizardContext> {
return fetchAPI(`/v1/site-builder/blueprints/${blueprintId}/workflow/context/`);
}
export async function updateWorkflowStep(
blueprintId: number,
step: string,
status: string,
metadata?: Record<string, any>
): Promise<WorkflowState> {
return fetchAPI(`/v1/site-builder/blueprints/${blueprintId}/workflow/step/`, {
method: 'POST',
body: JSON.stringify({ step, status, metadata }),
});
}
// Cluster attachment endpoints
export async function attachClustersToBlueprint(