feat: Show settings submenu in all modes for consistent experience
This commit is contained in:
@@ -102,31 +102,26 @@ function getStaticFallbackTree(): MainNode[] {
|
||||
label: 'Settings',
|
||||
path: '/settings',
|
||||
icon: 'settings',
|
||||
// Only show submenu in standalone mode
|
||||
get children() {
|
||||
const isStandalone = (window as any).WNW_CONFIG?.standaloneMode;
|
||||
if (!isStandalone) return [];
|
||||
// Settings submenu available in all modes for consistent experience
|
||||
children: [
|
||||
// WooNooW Settings
|
||||
{ label: 'WooNooW', mode: 'spa' as const, path: '/settings' },
|
||||
|
||||
return [
|
||||
// WooNooW Settings
|
||||
{ label: 'WooNooW', mode: 'spa' as const, path: '/settings' },
|
||||
// WooCommerce Settings (Most Used First)
|
||||
{ label: 'General', mode: 'spa' as const, path: '/settings/general' },
|
||||
{ label: 'Payments', mode: 'spa' as const, path: '/settings/payments' },
|
||||
{ label: 'Shipping', mode: 'spa' as const, path: '/settings/shipping' },
|
||||
{ label: 'Products', mode: 'spa' as const, path: '/settings/products' },
|
||||
{ label: 'Tax', mode: 'spa' as const, path: '/settings/tax' },
|
||||
{ label: 'Accounts & Privacy', mode: 'spa' as const, path: '/settings/accounts' },
|
||||
{ label: 'Emails', mode: 'spa' as const, path: '/settings/emails' },
|
||||
|
||||
// WooCommerce Settings (Most Used First)
|
||||
{ label: 'General', mode: 'spa' as const, path: '/settings/general' },
|
||||
{ label: 'Payments', mode: 'spa' as const, path: '/settings/payments' },
|
||||
{ label: 'Shipping', mode: 'spa' as const, path: '/settings/shipping' },
|
||||
{ label: 'Products', mode: 'spa' as const, path: '/settings/products' },
|
||||
{ label: 'Tax', mode: 'spa' as const, path: '/settings/tax' },
|
||||
{ label: 'Accounts & Privacy', mode: 'spa' as const, path: '/settings/accounts' },
|
||||
{ label: 'Emails', mode: 'spa' as const, path: '/settings/emails' },
|
||||
|
||||
// Less Common (Bridge to WP Admin for now)
|
||||
{ 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` },
|
||||
];
|
||||
},
|
||||
// Less Common (Bridge to WP Admin for now)
|
||||
{ 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