Enhance Site Builder Functionality and UI Components

- Added a new method to fetch blueprints from the API, improving data retrieval for site structures.
- Updated the WizardPage component to include a progress modal for better user feedback during site structure generation.
- Refactored state management in builderStore to track structure generation tasks, enhancing the overall user experience.
- Replaced SyncIcon with RefreshCw in integration components for a more consistent iconography.
- Improved the site structure generation prompt in utils.py to provide clearer instructions for AI-driven site architecture.
This commit is contained in:
IGNY8 VPS (Salman)
2025-11-18 15:25:34 +00:00
parent 040ba79621
commit 1ceeabed67
10 changed files with 302 additions and 14 deletions

View File

@@ -31,6 +31,10 @@ export interface GenerateStructurePayload {
}
export const builderApi = {
async getBlueprint(blueprintId: number): Promise<SiteBlueprint> {
const res = await client.get(`/blueprints/${blueprintId}/`);
return res.data;
},
async listBlueprints(): Promise<SiteBlueprint[]> {
const res = await client.get('/blueprints/');
if (Array.isArray(res.data?.results)) {