feat: add operational use cases console
ci / check (push) Successful in 1m17s
ci / check (pull_request) Successful in 1m13s

This commit is contained in:
Noel Sabia committed 2026-11-14 21:39:15 +01:00
1 parent 78d1f0e308
commit 8d687ad05b
19 files changed
+4707 -12

No files matched your search

+51 -10
View File
@@ -5,7 +5,17 @@ const menuButton = ref<HTMLButtonElement | null>(null)
const engineActive = computed(() => route.path === '/')
const sensorsActive = computed(() => route.path.startsWith('/sensors'))
const useCasesActive = computed(() => route.path.startsWith('/use-cases'))
const playgroundActive = computed(() => route.path.startsWith('/playground'))
const activeUseCase = computed(() =>
route.query.uc === 'staffing' || route.query.uc === 'prezero' ? route.query.uc : 'routing',
)
const useCaseLinks = [
{ id: 'staffing', label: 'UC1: Staffing' },
{ id: 'routing', label: 'UC2: Smart Routing' },
{ id: 'prezero', label: 'UC3: PreZero Depot' },
] as const
const navLinkClass =
'inline-flex h-16 items-center border-b-2 font-label-md transition-colors'
@@ -80,13 +90,13 @@ watch(() => route.fullPath, closeMenu)
>
Sensors
</NuxtLink>
<span
class="inline-flex h-16 items-center border-b-2 border-transparent font-label-md text-[#94A3B8] cursor-not-allowed"
aria-disabled="true"
title="Coming soon"
<NuxtLink
to="/use-cases"
:class="desktopLinkClass(useCasesActive)"
:aria-current="useCasesActive ? 'page' : undefined"
>
Use cases
</span>
</NuxtLink>
<NuxtLink
to="/playground"
:class="desktopLinkClass(playgroundActive)"
@@ -96,6 +106,24 @@ watch(() => route.fullPath, closeMenu)
</NuxtLink>
</nav>
<div class="hidden shrink-0 items-center gap-3 xl:flex">
<div class="flex items-center rounded-lg border border-[#1e3a52] bg-[#0e2233] p-1">
<NuxtLink
v-for="item in useCaseLinks"
:key="item.id"
:to="{ path: '/use-cases', query: { uc: item.id } }"
class="rounded px-2.5 py-1 text-[12px] font-medium transition-all"
:class="
useCasesActive && activeUseCase === item.id
? 'border border-[#00C3CD]/20 bg-[#132b40] font-semibold text-[#00C3CD] shadow-sm'
: 'text-[#94A3B8] hover:text-white'
"
>
{{ item.label }}
</NuxtLink>
</div>
</div>
<button
ref="menuButton"
type="button"
@@ -132,13 +160,26 @@ watch(() => route.fullPath, closeMenu)
>
Sensors
</NuxtLink>
<span
class="inline-flex h-12 items-center justify-center font-label-md text-[#94A3B8] cursor-not-allowed"
aria-disabled="true"
title="Coming soon"
<NuxtLink
to="/use-cases"
:class="mobileLinkClassFor(useCasesActive)"
:aria-current="useCasesActive ? 'page' : undefined"
@click="closeMenu"
>
Use cases
</span>
</NuxtLink>
<div class="grid grid-cols-3 gap-1 pb-2" aria-label="Use cases">
<NuxtLink
v-for="item in useCaseLinks"
:key="item.id"
:to="{ path: '/use-cases', query: { uc: item.id } }"
class="rounded border border-[#1e3a52] bg-[#0e2233] px-1 py-2 text-center text-[10px] font-medium text-[#94A3B8]"
:class="useCasesActive && activeUseCase === item.id ? 'border-[#00C3CD]/40 text-[#00C3CD]' : ''"
@click="closeMenu"
>
{{ item.label }}
</NuxtLink>
</div>
<NuxtLink
to="/playground"
:class="mobileLinkClassFor(playgroundActive)"