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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user