fix: resolve seed encoding, search param, and wiki data source issues
- Fix seed-products.ts TS error (implicit any) and BOM handling - Re-run full seed to restore correct Persian encoding in DB - Fix productService query→search param mismatch - Fix IngredientWiki hardcoded port 4000→use settingsStore - Restore seed-products-data.json from git after accidental corruption
This commit is contained in:
1 parent
804a596711
commit
7615aa0e51
74 files changed
+683
-659
No files matched your search
@@ -35,33 +35,33 @@ export default function OrderSuccess({ orderId }: { orderId: string }) {
|
||||
className="bg-white rounded-[4rem] border border-medical-gray-200 p-12 text-center shadow-2xl relative overflow-hidden"
|
||||
>
|
||||
{/* Confetti-like background elements */}
|
||||
<div className="absolute top-0 left-0 w-full h-2 bg-gradient-to-r from-canino-blue via-green-500 to-canino-blue" />
|
||||
<div className="absolute top-0 left-0 w-full h-2 bg-gradient-to-r from-canina-blue via-green-500 to-canina-blue" />
|
||||
|
||||
<div className="w-24 h-24 bg-green-50 text-green-600 rounded-full flex items-center justify-center mx-auto mb-10 shadow-inner">
|
||||
<CheckCircle2 className="w-12 h-12" />
|
||||
</div>
|
||||
|
||||
<h2 className="text-4xl font-black text-medical-gray-900 italic mb-4">سفارش شما با موفقیت ثبت شد!</h2>
|
||||
<p className="text-medical-gray-500 font-bold mb-10">شماره سفارش: <span className="text-canino-blue font-mono">{order.id}</span></p>
|
||||
<p className="text-medical-gray-500 font-bold mb-10">شماره سفارش: <span className="text-canina-blue font-mono">{order.id}</span></p>
|
||||
|
||||
{/* Empathetic Message */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ delay: 0.3 }}
|
||||
className="p-8 bg-canino-blue/5 border border-canino-blue/10 rounded-[3rem] mb-12 text-right relative"
|
||||
className="p-8 bg-canina-blue/5 border border-canina-blue/10 rounded-[3rem] mb-12 text-right relative"
|
||||
>
|
||||
<Sparkles className="absolute top-6 left-6 w-8 h-8 text-canino-blue opacity-20" />
|
||||
<Sparkles className="absolute top-6 left-6 w-8 h-8 text-canina-blue opacity-20" />
|
||||
<div className="flex items-center gap-4 mb-4">
|
||||
<div className="w-10 h-10 bg-white rounded-2xl flex items-center justify-center text-canino-blue shadow-sm">
|
||||
<div className="w-10 h-10 bg-white rounded-2xl flex items-center justify-center text-canina-blue shadow-sm">
|
||||
<Heart className="w-6 h-6 fill-current" />
|
||||
</div>
|
||||
<h4 className="text-lg font-black text-canino-blue italic">خیالت راحت باشه!</h4>
|
||||
<h4 className="text-lg font-black text-canina-blue italic">خیالت راحت باشه!</h4>
|
||||
</div>
|
||||
<p className="text-sm font-bold text-canino-blue/80 leading-relaxed">
|
||||
<p className="text-sm font-bold text-canina-blue/80 leading-relaxed">
|
||||
{activePet ? (
|
||||
<>
|
||||
انتخاب درستی برای <span className="text-canino-blue font-black">{activePet.name}</span> کردی.
|
||||
انتخاب درستی برای <span className="text-canina-blue font-black">{activePet.name}</span> کردی.
|
||||
{hasCanhydrox ? (
|
||||
` مکمل Canhydrox با فرمول آلمانیاش دقیقاً همون چیزیه که استخوانهای ${activePet.name} برای بازیگوشی دوباره بهش نیاز دارن.`
|
||||
) : (
|
||||
@@ -94,13 +94,13 @@ export default function OrderSuccess({ orderId }: { orderId: string }) {
|
||||
<div className="space-y-4">
|
||||
<button
|
||||
onClick={() => router.push('/track')}
|
||||
className="w-full bg-medical-gray-900 text-white py-5 rounded-2xl font-black text-lg hover:bg-canino-blue transition-all"
|
||||
className="w-full bg-medical-gray-900 text-white py-5 rounded-2xl font-black text-lg hover:bg-canina-blue transition-all"
|
||||
>
|
||||
مشاهده و پیگیری زنده سفارش
|
||||
</button>
|
||||
<button
|
||||
onClick={() => router.push('/shop')}
|
||||
className="flex items-center justify-center gap-2 w-full text-medical-gray-400 font-bold hover:text-canino-blue transition-colors"
|
||||
className="flex items-center justify-center gap-2 w-full text-medical-gray-400 font-bold hover:text-canina-blue transition-colors"
|
||||
>
|
||||
<ChevronLeft className="w-4 h-4" />
|
||||
بازگشت به فروشگاه
|
||||
|
||||
Reference in new issue
Block a user