Refactor Site Builder Integration and Update Docker Configuration

- Merged the site builder functionality into the main app, enhancing the SiteBuilderWizard component with new steps and improved UI.
- Updated the Docker Compose configuration by removing the separate site builder service and integrating its functionality into the igny8_sites service.
- Enhanced Vite configuration to support code-splitting for builder routes, optimizing loading times.
- Updated package dependencies to include new libraries for state management and form handling.
This commit is contained in:
IGNY8 VPS (Salman)
2025-11-18 10:35:30 +00:00
parent 8508af37c7
commit 3ea519483d
19 changed files with 1637 additions and 91 deletions

View File

@@ -0,0 +1,88 @@
export type HostingType = 'igny8_sites' | 'wordpress' | 'shopify' | 'multi';
export interface StylePreferences {
palette: string;
typography: string;
personality: string;
heroImagery: string;
}
export interface BuilderFormData {
siteId: number | null;
sectorId: number | null;
siteName: string;
businessType: string;
industry: string;
targetAudience: string;
hostingType: HostingType;
businessBrief: string;
objectives: string[];
style: StylePreferences;
}
export interface SiteBlueprint {
id: number;
name: string;
description?: string;
status: 'draft' | 'generating' | 'ready' | 'deployed';
hosting_type: HostingType;
config_json: Record<string, unknown>;
structure_json: SiteStructure | null;
created_at: string;
updated_at: string;
site?: number;
sector?: number;
}
export interface PageBlueprint {
id: number;
site_blueprint: number;
slug: string;
title: string;
type: string;
status: string;
order: number;
blocks_json: PageBlock[];
}
export interface PageBlock {
type: string;
heading?: string;
subheading?: string;
layout?: string;
content?: string[] | Record<string, unknown>;
}
export interface SiteStructure {
site?: {
name?: string;
primary_navigation?: string[];
secondary_navigation?: string[];
hero_message?: string;
tone?: string;
};
pages: Array<{
slug: string;
title: string;
type: string;
status?: string;
objective?: string;
primary_cta?: string;
blocks?: PageBlock[];
}>;
}
export interface ApiListResponse<T> {
count?: number;
next?: string | null;
previous?: string | null;
results?: T[];
data?: T[] | T;
}
export interface ApiError {
message?: string;
error?: string;
detail?: string;
}