Unify catalog cards and fix offer point color
Some checks failed
Build Docker Image / build (push) Failing after 3m51s

- Change point color on /catalog/offers to green (#22c55e)
- Replace custom route card with OfferResultCard on supplier hub page
This commit is contained in:
Ruslan Bakiev
2026-01-19 10:53:27 +07:00
parent 804bd9c95d
commit bfbab9cef4
2 changed files with 20 additions and 41 deletions

View File

@@ -7,7 +7,7 @@
use-server-clustering
cluster-node-type="offer"
map-id="offers-products-map"
point-color="#3b82f6"
point-color="#22c55e"
:hovered-id="hoveredProductId"
@update:hovered-id="hoveredProductId = $event"
>
@@ -80,15 +80,8 @@ const goToProduct = (productId: string) => {
navigateTo(localePath(`/catalog/offers/${productId}`))
}
// Mock price history generator (seeded by uuid for consistent results)
const getMockPriceHistory = (uuid: string): number[] => {
const seed = uuid.split('').reduce((acc, char) => acc + char.charCodeAt(0), 0)
const basePrice = 100 + (seed % 200)
return Array.from({ length: 7 }, (_, i) => {
const variation = Math.sin(seed + i * 0.5) * 20 + Math.cos(seed * 0.3 + i) * 10
return Math.round(basePrice + variation)
})
}
// Price history - empty for now, will be populated from real data
const getPriceHistory = (_uuid: string): number[] => []
// Initialize
await init()