Merge pull request 'fix: remove redundant use-case switcher from header' (#7) from feat/use-cases into main
ci / check (push) Successful in 1m23s

Reviewed-on: #7
This commit was merged in pull request #7.
This commit is contained in:
Noel committed 2026-11-14 20:58:19 +00:00
commit 04327dacda
1 file changed
-39
-39
View File
@@ -7,15 +7,6 @@ const engineActive = computed(() => route.path === '/')
const sensorsActive = computed(() => route.path.startsWith('/sensors')) const sensorsActive = computed(() => route.path.startsWith('/sensors'))
const useCasesActive = computed(() => route.path.startsWith('/use-cases')) const useCasesActive = computed(() => route.path.startsWith('/use-cases'))
const playgroundActive = computed(() => route.path.startsWith('/playground')) 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 = const navLinkClass =
'inline-flex h-16 items-center border-b-2 font-label-md transition-colors' 'inline-flex h-16 items-center border-b-2 font-label-md transition-colors'
@@ -106,24 +97,6 @@ watch(() => route.fullPath, closeMenu)
</NuxtLink> </NuxtLink>
</nav> </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 <button
ref="menuButton" ref="menuButton"
type="button" type="button"
@@ -168,18 +141,6 @@ watch(() => route.fullPath, closeMenu)
> >
Use cases Use cases
</NuxtLink> </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 <NuxtLink
to="/playground" to="/playground"
:class="mobileLinkClassFor(playgroundActive)" :class="mobileLinkClassFor(playgroundActive)"