From 7e9663fa06bbd8fd4e778b51753326684346a857 Mon Sep 17 00:00:00 2001 From: ponzischeme89 Date: Tue, 28 Apr 2026 16:33:30 +1200 Subject: [PATCH] Move working documents to it's own area --- .../src/lib/components/ClientShell.svelte | 206 ++++++++++++++++-- frontend/src/routes/+page.svelte | 10 +- 2 files changed, 189 insertions(+), 27 deletions(-) diff --git a/frontend/src/lib/components/ClientShell.svelte b/frontend/src/lib/components/ClientShell.svelte index 6c88d17..ba15947 100644 --- a/frontend/src/lib/components/ClientShell.svelte +++ b/frontend/src/lib/components/ClientShell.svelte @@ -13,26 +13,34 @@ keywords: string; }; - const navigation = [ - { href: '/', label: 'Overview', shortLabel: 'OV' }, + type NavItem = { + href: string; + label: string; + shortLabel: string; + icon?: 'home'; + }; + + const dashboardItem: NavItem = { href: '/', label: 'Dashboard', shortLabel: 'DB', icon: 'home' }; + const workingDocumentItems: NavItem[] = [ { href: '/raw-materials', label: 'Raw Materials', shortLabel: 'RM' }, { href: '/mixes', label: 'Mix Master', shortLabel: 'MM' }, { href: '/products', label: 'Products', shortLabel: 'PR' }, { href: '/scenarios', label: 'Scenarios', shortLabel: 'SC' } ]; + const navigation = [dashboardItem, ...workingDocumentItems]; const footerLinks = [ { href: '/products', label: 'Delivered Pricing', shortLabel: 'DP' }, { href: '/scenarios', label: 'Planning View', shortLabel: 'PV' } ]; - const primaryBottomNavigation = navigation.slice(0, 4); + const primaryBottomNavigation = [dashboardItem, ...workingDocumentItems.slice(0, 3)]; const searchItems: SearchItem[] = [ { href: '/', - label: 'Open Hunter Overview', + label: 'Open Dashboard', description: 'Jump to the Hunter Premium Produce workspace summary.', - keywords: 'hunter premium produce overview dashboard workspace' + keywords: 'hunter premium produce overview dashboard workspace home' }, { href: '/raw-materials', @@ -92,7 +100,7 @@ } function pageTitle(pathname: string) { - return navigation.find((item) => matchesRoute(item.href, pathname))?.label ?? 'Overview'; + return navigation.find((item) => matchesRoute(item.href, pathname))?.label ?? 'Dashboard'; } function pageDescription(pathname: string) { @@ -248,14 +256,48 @@ + + @@ -389,7 +431,35 @@