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:
@@ -3,7 +3,7 @@
|
||||
* Phase 6: Site Integration & Multi-Destination Publishing
|
||||
*/
|
||||
import React from 'react';
|
||||
import { CheckCircleIcon, XCircleIcon, ClockIcon, SyncIcon } from 'lucide-react';
|
||||
import { CheckCircleIcon, XCircleIcon, ClockIcon, RefreshCw } from 'lucide-react';
|
||||
|
||||
interface IntegrationStatusProps {
|
||||
syncEnabled: boolean;
|
||||
@@ -25,7 +25,7 @@ export default function IntegrationStatus({
|
||||
case 'failed':
|
||||
return <XCircleIcon className="w-5 h-5 text-red-500" />;
|
||||
case 'syncing':
|
||||
return <SyncIcon className="w-5 h-5 text-blue-500 animate-spin" />;
|
||||
return <RefreshCw className="w-5 h-5 text-blue-500 animate-spin" />;
|
||||
default:
|
||||
return <ClockIcon className="w-5 h-5 text-gray-400" />;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Phase 6: Site Integration & Multi-Destination Publishing
|
||||
*/
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { PlusIcon, TrashIcon, TestTubeIcon, SyncIcon } from 'lucide-react';
|
||||
import { PlusIcon, TrashIcon, TestTubeIcon, RefreshCw } from 'lucide-react';
|
||||
import Button from '../ui/button/Button';
|
||||
import { Modal } from '../ui/modal';
|
||||
import FormModal, { FormField } from '../common/FormModal';
|
||||
@@ -303,7 +303,7 @@ export default function SiteIntegrationsSection({ siteId }: SiteIntegrationsSect
|
||||
onClick={() => handleSync(integration)}
|
||||
className="flex-1"
|
||||
>
|
||||
<SyncIcon className="w-4 h-4 mr-1" />
|
||||
<RefreshCw className="w-4 h-4 mr-1" />
|
||||
Sync
|
||||
</Button>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user