ud
This commit is contained in:
@@ -1,61 +0,0 @@
|
||||
# Expected Frontend Pages - Sites Module
|
||||
|
||||
## Currently Available Pages (4)
|
||||
|
||||
1. **Site List** (`/sites`) - Basic list with filters
|
||||
2. **Site Builder** (`/sites/builder`) - Placeholder only
|
||||
3. **Blueprints** (`/sites/blueprints`) - Placeholder only
|
||||
4. **Sites Management** (`/settings/sites`) - Should be merged into Site List
|
||||
|
||||
## Expected Pages (16 Total)
|
||||
|
||||
### Site Management Pages (12)
|
||||
|
||||
| Page | Route | Status | Description |
|
||||
|------|-------|--------|-------------|
|
||||
| **All Sites** | `/sites` | ✅ Exists | Site list with filters, search, type badges |
|
||||
| **Site Dashboard** | `/sites/:id` | ✅ Exists | Individual site dashboard with stats |
|
||||
| **Site Content** | `/sites/:id/content` | ✅ Exists | Content list for a site |
|
||||
| **Site Editor** | `/sites/:id/editor` | ✅ Exists | Site content editor |
|
||||
| **Page Manager** | `/sites/:id/pages` | ✅ Exists | Manage pages for a site |
|
||||
| **New Page** | `/sites/:id/pages/new` | ✅ Exists | Create new page |
|
||||
| **Edit Page** | `/sites/:id/pages/:pageId/edit` | ✅ Exists | Edit existing page |
|
||||
| **Post Editor** | `/sites/:id/posts/:postId` | ✅ Exists | View/edit post |
|
||||
| **Edit Post** | `/sites/:id/posts/:postId/edit` | ✅ Exists | Edit post |
|
||||
| **Site Preview** | `/sites/:id/preview` | ✅ Exists | Preview site |
|
||||
| **Site Settings** | `/sites/:id/settings` | ✅ Exists | Site settings (General, SEO, OG, Schema, Integrations) |
|
||||
| **Site Management** | `/sites/manage` | ✅ Exists | Site management dashboard |
|
||||
|
||||
### Site Builder Pages (3)
|
||||
|
||||
| Page | Route | Status | Description |
|
||||
|------|-------|--------|-------------|
|
||||
| **Site Builder Wizard** | `/sites/builder` | ⚠️ Placeholder | AI-powered site creation wizard (needs migration) |
|
||||
| **Site Builder Preview** | `/sites/builder/preview` | ⚠️ Placeholder | Preview site during building (needs migration) |
|
||||
| **Blueprints** | `/sites/blueprints` | ⚠️ Placeholder | View and manage all site blueprints (needs migration) |
|
||||
|
||||
### Settings Pages (1)
|
||||
|
||||
| Page | Route | Status | Description |
|
||||
|------|-------|--------|-------------|
|
||||
| **Sites Settings** | `/settings/sites` | ❌ Should be removed | Site configuration (should be merged into Site List) |
|
||||
|
||||
## Issues to Fix
|
||||
|
||||
1. **Sites in Settings dropdown** - Broken UX, should be removed
|
||||
2. **Site management features** - Should be merged into Site List page
|
||||
3. **Wizard is placeholder** - Needs full migration from site-builder container
|
||||
4. **Pages incomplete** - Many pages exist but lack full functionality
|
||||
|
||||
## Required Features for Site List
|
||||
|
||||
- Create new site (modal)
|
||||
- Edit site (modal)
|
||||
- Delete site (with confirmation)
|
||||
- Toggle site active/inactive
|
||||
- Configure sectors for site (modal)
|
||||
- View site details
|
||||
- Site cards with all information
|
||||
- Industry/sector badges
|
||||
- Status indicators
|
||||
|
||||
@@ -1,92 +0,0 @@
|
||||
# Sites Module Fixes Summary
|
||||
|
||||
## ✅ Completed Fixes
|
||||
|
||||
### 1. Removed Sites from Settings Dropdown
|
||||
- **File**: `frontend/src/layout/AppSidebar.tsx`
|
||||
- **Change**: Removed "Sites" from Settings submenu
|
||||
- **Result**: Sites now only accessible from main "Sites" menu in WORKFLOWS section
|
||||
|
||||
### 2. Merged Site Management into Site List Page
|
||||
- **File**: `frontend/src/pages/Sites/List.tsx`
|
||||
- **Changes**:
|
||||
- Added all site management functionality from Settings/Sites.tsx
|
||||
- Added create/edit site modals
|
||||
- Added sectors configuration modal
|
||||
- Added site details/edit modal with delete option
|
||||
- Added toggle switch for active/inactive status
|
||||
- Updated site cards to match Settings/Sites.tsx style
|
||||
- Added industry/sector badges
|
||||
- Added site type badges
|
||||
- Added integration count badges
|
||||
- Added "Create with Builder" button alongside "Add Site"
|
||||
- Added info alert about site configuration
|
||||
|
||||
### 3. Updated Site Cards
|
||||
- **Features Added**:
|
||||
- Site icon
|
||||
- Site description display
|
||||
- Domain display
|
||||
- Industry name badge
|
||||
- Sector count badge (X / 5 Sectors)
|
||||
- Integration count badge
|
||||
- Site type badge (Site Builder / WordPress)
|
||||
- Active/Inactive status indicator with colored circle
|
||||
- Settings button (opens sectors modal)
|
||||
- Details button (opens edit modal)
|
||||
- Toggle switch for active/inactive
|
||||
|
||||
## ⚠️ Still Needs Work
|
||||
|
||||
### 1. Site Builder Wizard Migration
|
||||
- **Current Status**: Placeholder only (`/sites/builder`)
|
||||
- **Needs**: Full migration from `site-builder` container
|
||||
- **Files to Migrate**:
|
||||
- `site-builder/src/pages/wizard/WizardPage.tsx`
|
||||
- `site-builder/src/pages/wizard/steps/*.tsx` (4 step components)
|
||||
- `site-builder/src/state/builderStore.ts`
|
||||
- `site-builder/src/api/builder.api.ts`
|
||||
- `site-builder/src/types/siteBuilder.ts`
|
||||
- **Target Location**: `frontend/src/pages/Sites/Builder/Wizard.tsx`
|
||||
|
||||
### 2. Blueprints Page
|
||||
- **Current Status**: Placeholder only (`/sites/blueprints`)
|
||||
- **Needs**: Full implementation to list and manage site blueprints
|
||||
|
||||
### 3. Site Builder Preview
|
||||
- **Current Status**: Placeholder only (`/sites/builder/preview`)
|
||||
- **Needs**: Full preview canvas implementation
|
||||
|
||||
### 4. Other Site Pages
|
||||
- Many pages exist but may need complete functionality:
|
||||
- Site Dashboard (`/sites/:id`)
|
||||
- Site Content (`/sites/:id/content`)
|
||||
- Site Editor (`/sites/:id/editor`)
|
||||
- Page Manager (`/sites/:id/pages`)
|
||||
- Post Editor (`/sites/:id/posts/:postId`)
|
||||
- Site Preview (`/sites/:id/preview`)
|
||||
- Site Settings (`/sites/:id/settings`)
|
||||
|
||||
## 📋 Expected Pages List
|
||||
|
||||
See `EXPECTED-PAGES-LIST.md` for complete list of all expected frontend pages.
|
||||
|
||||
## 🎯 Next Steps
|
||||
|
||||
1. **Priority 1**: Migrate Site Builder Wizard
|
||||
- Copy wizard components from site-builder container
|
||||
- Adapt to main app structure
|
||||
- Ensure API calls work correctly
|
||||
- Test full wizard flow
|
||||
|
||||
2. **Priority 2**: Implement Blueprints Page
|
||||
- List all site blueprints
|
||||
- Show blueprint status
|
||||
- Allow editing/deleting blueprints
|
||||
- Link to wizard for creating new blueprints
|
||||
|
||||
3. **Priority 3**: Verify Other Pages
|
||||
- Check each page has complete functionality
|
||||
- Add missing features
|
||||
- Ensure proper navigation between pages
|
||||
|
||||
Reference in New Issue
Block a user