Improve hub page: new RouteStepper, HubProductCard with ApexCharts
All checks were successful
Build Docker Image / build (push) Successful in 4m57s

- Redesign RouteStepper: nodes connected by lines with distance on line
- Add HubProductCard component with sparkline chart background
- Auto-select first product when hub page loads
- Remove placeholder with package-x icon
- Add ApexCharts plugin for charts
- Pass startName/endName to RouteStepper for route visualization
This commit is contained in:
Ruslan Bakiev
2026-01-15 15:45:26 +07:00
parent 97f346ba83
commit 5b620f77b3
7 changed files with 275 additions and 31 deletions

View File

@@ -12,7 +12,12 @@
</div>
<!-- Route stepper -->
<RouteStepper v-if="stages.length > 0" :stages="stages" />
<RouteStepper
v-if="stages.length > 0"
:stages="stages"
:start-name="startName"
:end-name="endName"
/>
</Card>
</template>
@@ -26,6 +31,8 @@ const props = withDefaults(defineProps<{
currency?: string | null
unit?: string | null
stages?: RouteStage[]
startName?: string
endName?: string
}>(), {
stages: () => []
})