v0.1.14 - b2b portal
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
Layers,
|
||||
LayoutDashboard,
|
||||
ShieldCheck,
|
||||
ShoppingCart,
|
||||
TrendingUp
|
||||
} from 'lucide-svelte';
|
||||
import type { ComponentType } from 'svelte';
|
||||
@@ -112,6 +113,14 @@ export const throughputItem: NavItem = {
|
||||
badge: 'test'
|
||||
};
|
||||
|
||||
export const orderingItem: NavItem = {
|
||||
href: '/ordering',
|
||||
label: 'Ordering',
|
||||
shortLabel: 'OR',
|
||||
icon: ShoppingCart,
|
||||
moduleKey: 'ordering'
|
||||
};
|
||||
|
||||
export const workingDocumentItems: NavItem[] = [
|
||||
// Mix Master remains available through the existing route and access logic,
|
||||
// but is temporarily hidden from the sidebar.
|
||||
@@ -210,6 +219,7 @@ export function buildClientNavEntries(visible: {
|
||||
dashboard?: NavItem | null;
|
||||
costing: NavItem[];
|
||||
throughput?: NavItem | null;
|
||||
ordering?: NavItem | null;
|
||||
reporting?: NavItem | null;
|
||||
}): NavEntry[] {
|
||||
const entries: NavEntry[] = [];
|
||||
@@ -225,6 +235,10 @@ export function buildClientNavEntries(visible: {
|
||||
});
|
||||
}
|
||||
|
||||
if (visible.ordering) {
|
||||
entries.push({ kind: 'item', item: visible.ordering });
|
||||
}
|
||||
|
||||
if (visible.throughput) {
|
||||
entries.push({ kind: 'item', item: visible.throughput });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user