feat: Add WordPress button, settings navigation, and placeholder pages

This commit is contained in:
dwindown
2025-11-05 10:27:16 +07:00
parent 7c24602965
commit 12e982b3e5
6 changed files with 122 additions and 19 deletions

View File

@@ -103,15 +103,21 @@ function getStaticFallbackTree(): MainNode[] {
path: '/settings',
icon: 'settings',
children: [
{ label: 'General', mode: 'bridge', href: `${admin}?page=wc-settings&tab=general` },
{ label: 'Products', mode: 'bridge', href: `${admin}?page=wc-settings&tab=products` },
{ label: 'Tax', mode: 'bridge', href: `${admin}?page=wc-settings&tab=tax` },
{ label: 'Shipping', mode: 'bridge', href: `${admin}?page=wc-settings&tab=shipping` },
{ label: 'Payments', mode: 'bridge', href: `${admin}?page=wc-settings&tab=checkout` },
{ label: 'Accounts & Privacy', mode: 'bridge', href: `${admin}?page=wc-settings&tab=account` },
{ label: 'Emails', mode: 'bridge', href: `${admin}?page=wc-settings&tab=email` },
{ label: 'Integration', mode: 'bridge', href: `${admin}?page=wc-settings&tab=integration` },
// WooNooW Settings
{ label: 'WooNooW', mode: 'spa', path: '/settings' },
// WooCommerce Settings (Most Used First)
{ label: 'General', mode: 'spa', path: '/settings/general' },
{ label: 'Payments', mode: 'spa', path: '/settings/payments' },
{ label: 'Shipping', mode: 'spa', path: '/settings/shipping' },
{ label: 'Products', mode: 'spa', path: '/settings/products' },
{ label: 'Tax', mode: 'spa', path: '/settings/tax' },
{ label: 'Accounts & Privacy', mode: 'spa', path: '/settings/accounts' },
{ label: 'Emails', mode: 'spa', path: '/settings/emails' },
// Less Common (Bridge to WP Admin for now)
{ label: 'Advanced', mode: 'bridge', href: `${admin}?page=wc-settings&tab=advanced` },
{ label: 'Integration', mode: 'bridge', href: `${admin}?page=wc-settings&tab=integration` },
{ label: 'Status', mode: 'bridge', href: `${admin}?page=wc-status` },
{ label: 'Extensions', mode: 'bridge', href: `${admin}?page=wc-addons` },
],