Refactor Dropdown Handlers and Update WordPress Integration

- Updated dropdown onChange handlers across multiple components to use direct value passing instead of event target value for improved clarity and consistency.
- Changed `url` to `site_url` in WordPress integration configuration for better semantic clarity.
- Enhanced Vite configuration to include `fast-deep-equal` for compatibility with `react-dnd`.
- Updated navigation paths in `SiteContentEditor` and `SiteList` for consistency with new routing structure.
This commit is contained in:
IGNY8 VPS (Salman)
2025-11-18 08:38:59 +00:00
parent b05421325c
commit 8508af37c7
12 changed files with 69 additions and 56 deletions

View File

@@ -10,6 +10,7 @@ export interface SiteIntegration {
platform: 'wordpress' | 'shopify' | 'custom';
platform_type: 'cms' | 'ecommerce' | 'custom_api';
config_json: Record<string, any>;
credentials_json?: Record<string, any>;
is_active: boolean;
sync_enabled: boolean;
last_sync_at?: string;
@@ -23,7 +24,7 @@ export interface CreateIntegrationData {
platform: 'wordpress' | 'shopify' | 'custom';
platform_type?: 'cms' | 'ecommerce' | 'custom_api';
config_json: Record<string, any>;
credentials?: Record<string, string>;
credentials_json?: Record<string, string>;
is_active?: boolean;
sync_enabled?: boolean;
}
@@ -126,10 +127,10 @@ export const integrationApi = {
platform: 'wordpress',
platform_type: 'cms',
config_json: {
url: data.url,
username: data.username,
site_url: data.url,
},
credentials: {
credentials_json: {
username: data.username,
app_password: data.app_password,
},
is_active: data.is_active ?? true,