Seed additional products, improve left rail, improve search box, add visuals to buttons, rename working documents to working docs and improve left rail nav

This commit is contained in:
2026-04-30 22:27:36 +12:00
parent 4f876372c2
commit 151676265c
10 changed files with 816 additions and 128 deletions
+17 -1
View File
@@ -100,6 +100,22 @@
}).format(new Date(value));
}
function greetingForAst() {
const astHour = Number(
new Intl.DateTimeFormat('en-AU', {
hour: 'numeric',
hour12: false,
timeZone: 'Australia/Brisbane'
}).format(new Date())
);
return astHour < 12 ? 'Good morning' : 'Good evening';
}
function firstName(name: string | null | undefined) {
return name?.trim().split(/\s+/)[0] ?? 'there';
}
function findHighestProduct(products: ProductCostBreakdown[]) {
return [...products].sort((left, right) => right.finished_product_delivered - left.finished_product_delivered)[0];
}
@@ -393,7 +409,7 @@
<p class="eyebrow">Client Workspace</p>
<span class="release-pill">{releaseStage}</span>
</div>
<h2>Hunter Premium Produce costing overview.</h2>
<h2>{greetingForAst()}, {firstName($clientSession?.name)}</h2>
<p>Track input pricing, mix performance, and delivered product outcomes from one client-facing workspace.</p>
</div>