Refactor Site Management Components and Update URL Parameters
- Changed `siteId` to `id` in `useParams` across multiple site-related components for consistency. - Removed "Sites" from the sidebar settings menu. - Updated navigation links in `SiteDashboard` to reflect new paths for integrations and deployments. - Enhanced `SiteList` component with improved site management features, including modals for site creation and sector configuration. - Added functionality to handle industry and sector selection for sites, with validation for maximum selections. - Improved UI elements and alerts for better user experience in site management.
This commit is contained in:
61
frontend/src/pages/Sites/EXPECTED-PAGES-LIST.md
Normal file
61
frontend/src/pages/Sites/EXPECTED-PAGES-LIST.md
Normal file
@@ -0,0 +1,61 @@
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user