chore(catalog): simplify nested page headers, remove charts
Some checks failed
Build Docker Image / build (push) Has been cancelled

- Remove chart components and unused price history code
- Simplify headers to show only hint text
- Keep navigation badges in search bar
This commit is contained in:
Ruslan Bakiev
2026-01-19 12:16:58 +07:00
parent 42c8688561
commit fd057528dc
7 changed files with 11 additions and 501 deletions

View File

@@ -19,28 +19,8 @@
</template>
<template #header>
<!-- Not Found -->
<Card v-if="!isLoading && !hub" padding="lg">
<Stack align="center" gap="4">
<IconCircle tone="primary">
<Icon name="lucide:map-pin" size="24" />
</IconCircle>
<Heading :level="2">{{ t('catalogHub.not_found.title') }}</Heading>
<Text tone="muted">{{ t('catalogHub.not_found.subtitle') }}</Text>
<Button @click="navigateTo(localePath('/catalog'))">
{{ t('catalogHub.actions.back_to_catalog') }}
</Button>
</Stack>
</Card>
<!-- Content Header -->
<Stack v-else gap="4">
<!-- Header -->
<div>
<Heading :level="1">{{ hub?.name }}</Heading>
<Text tone="muted" size="sm">{{ hub?.country }}</Text>
</div>
</Stack>
<Text v-if="!isLoading && !hub" tone="muted">Хаб не найден</Text>
<Text v-else-if="!isLoading" tone="muted">Выберите товар</Text>
</template>
<template #card="{ item }">