feat: Show settings submenu in all modes for consistent experience
This commit is contained in:
@@ -102,31 +102,26 @@ function getStaticFallbackTree(): MainNode[] {
|
|||||||
label: 'Settings',
|
label: 'Settings',
|
||||||
path: '/settings',
|
path: '/settings',
|
||||||
icon: 'settings',
|
icon: 'settings',
|
||||||
// Only show submenu in standalone mode
|
// Settings submenu available in all modes for consistent experience
|
||||||
get children() {
|
children: [
|
||||||
const isStandalone = (window as any).WNW_CONFIG?.standaloneMode;
|
// WooNooW Settings
|
||||||
if (!isStandalone) return [];
|
{ label: 'WooNooW', mode: 'spa' as const, path: '/settings' },
|
||||||
|
|
||||||
return [
|
// WooCommerce Settings (Most Used First)
|
||||||
// WooNooW Settings
|
{ label: 'General', mode: 'spa' as const, path: '/settings/general' },
|
||||||
{ label: 'WooNooW', mode: 'spa' as const, path: '/settings' },
|
{ label: 'Payments', mode: 'spa' as const, path: '/settings/payments' },
|
||||||
|
{ label: 'Shipping', mode: 'spa' as const, path: '/settings/shipping' },
|
||||||
// WooCommerce Settings (Most Used First)
|
{ label: 'Products', mode: 'spa' as const, path: '/settings/products' },
|
||||||
{ label: 'General', mode: 'spa' as const, path: '/settings/general' },
|
{ label: 'Tax', mode: 'spa' as const, path: '/settings/tax' },
|
||||||
{ label: 'Payments', mode: 'spa' as const, path: '/settings/payments' },
|
{ label: 'Accounts & Privacy', mode: 'spa' as const, path: '/settings/accounts' },
|
||||||
{ label: 'Shipping', mode: 'spa' as const, path: '/settings/shipping' },
|
{ label: 'Emails', mode: 'spa' as const, path: '/settings/emails' },
|
||||||
{ label: 'Products', mode: 'spa' as const, path: '/settings/products' },
|
|
||||||
{ label: 'Tax', mode: 'spa' as const, path: '/settings/tax' },
|
// Less Common (Bridge to WP Admin for now)
|
||||||
{ label: 'Accounts & Privacy', mode: 'spa' as const, path: '/settings/accounts' },
|
{ label: 'Advanced', mode: 'bridge' as const, href: `${admin}?page=wc-settings&tab=advanced` },
|
||||||
{ label: 'Emails', mode: 'spa' as const, path: '/settings/emails' },
|
{ label: 'Integration', mode: 'bridge' as const, href: `${admin}?page=wc-settings&tab=integration` },
|
||||||
|
{ label: 'Status', mode: 'bridge' as const, href: `${admin}?page=wc-status` },
|
||||||
// Less Common (Bridge to WP Admin for now)
|
{ label: 'Extensions', mode: 'bridge' as const, href: `${admin}?page=wc-addons` },
|
||||||
{ label: 'Advanced', mode: 'bridge' as const, href: `${admin}?page=wc-settings&tab=advanced` },
|
],
|
||||||
{ label: 'Integration', mode: 'bridge' as const, href: `${admin}?page=wc-settings&tab=integration` },
|
|
||||||
{ label: 'Status', mode: 'bridge' as const, href: `${admin}?page=wc-status` },
|
|
||||||
{ label: 'Extensions', mode: 'bridge' as const, href: `${admin}?page=wc-addons` },
|
|
||||||
];
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user