Fix SelectionPanel styling + add product filtering by supplier/hub
All checks were successful
Build Docker Image / build (push) Successful in 4m3s

- SelectionPanel header: dark glass style instead of white
- useCatalogProducts: filter by supplierId or hubId using dedicated queries
- catalog/index: connect filters from query params to composable
This commit is contained in:
Ruslan Bakiev
2026-01-24 11:13:22 +07:00
parent 2fc4dfb834
commit 7c566aeafc
3 changed files with 101 additions and 17 deletions

View File

@@ -1,10 +1,10 @@
<template>
<div class="flex flex-col h-full -m-4">
<!-- Header + Search (white glass, sticky) -->
<div class="sticky top-0 z-10 p-4 rounded-t-xl bg-white/90 backdrop-blur-md border-b border-white/20">
<!-- Header + Search (dark glass, sticky) -->
<div class="sticky top-0 z-10 p-4 rounded-t-xl bg-black/50 backdrop-blur-md border-b border-white/10">
<div class="flex items-center justify-between mb-2">
<h3 class="font-semibold text-base text-base-content">{{ title }}</h3>
<button class="btn btn-ghost btn-xs btn-circle text-base-content/60 hover:text-base-content" @click="emit('close')">
<h3 class="font-semibold text-base text-white">{{ title }}</h3>
<button class="btn btn-ghost btn-xs btn-circle text-white/60 hover:text-white" @click="emit('close')">
<Icon name="lucide:x" size="16" />
</button>
</div>
@@ -12,7 +12,7 @@
v-model="searchQuery"
type="text"
:placeholder="searchPlaceholder"
class="input input-sm w-full bg-white/50 border-base-300/50 text-base-content placeholder:text-base-content/50"
class="input input-sm w-full bg-white/10 border-white/20 text-white placeholder:text-white/50"
/>
</div>
@@ -22,7 +22,7 @@
<span class="loading loading-spinner loading-md" />
</div>
<div v-else-if="filteredItems.length === 0" class="text-center py-8 text-base-content/60">
<div v-else-if="filteredItems.length === 0" class="text-center py-8 text-white/60">
<Icon name="lucide:search-x" size="32" class="mb-2" />
<p>{{ $t('catalog.empty.noResults') }}</p>
</div>
@@ -86,7 +86,7 @@
ref="loadMoreSentinel"
class="flex items-center justify-center py-4"
>
<span v-if="loadingMore" class="loading loading-spinner loading-sm text-base-content/60" />
<span v-if="loadingMore" class="loading loading-spinner loading-sm text-white/60" />
</div>
</div>
</div>