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
@@ -44,24 +44,24 @@ export default function OrderTracking() {
|
||||
<div className="lg:hidden mb-12 space-y-4">
|
||||
<button
|
||||
onClick={() => router.back()}
|
||||
className="flex items-center gap-2 text-medical-gray-500 font-bold hover:text-canino-blue transition-colors"
|
||||
className="flex items-center gap-2 text-medical-gray-500 font-bold hover:text-canina-blue transition-colors"
|
||||
>
|
||||
<ChevronRight className="w-5 h-5 font-vazir" />
|
||||
<span>بازگشت</span>
|
||||
</button>
|
||||
|
||||
<div className="flex items-center gap-2 text-[10px] font-black text-medical-gray-400 uppercase tracking-widest overflow-x-auto whitespace-nowrap pb-2">
|
||||
<span className="cursor-pointer hover:text-canino-blue" onClick={() => router.push('/')}>کانینو</span>
|
||||
<span className="cursor-pointer hover:text-canina-blue" onClick={() => router.push('/')}>کانینا</span>
|
||||
<ChevronLeft className="w-2.5 h-2.5" />
|
||||
<span className="text-canino-blue">پیگیری سفارش</span>
|
||||
<span className="text-canina-blue">پیگیری سفارش</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Desktop Breadcrumbs */}
|
||||
<div className="hidden lg:flex items-center gap-2 text-[10px] font-black text-medical-gray-400 uppercase tracking-widest mb-12">
|
||||
<span className="cursor-pointer hover:text-canino-blue" onClick={() => router.push('/')}>خانه</span>
|
||||
<span className="cursor-pointer hover:text-canina-blue" onClick={() => router.push('/')}>خانه</span>
|
||||
<ChevronLeft className="w-2.5 h-2.5" />
|
||||
<span className="text-canino-blue">رهگیری هوشمند محموله</span>
|
||||
<span className="text-canina-blue">رهگیری هوشمند محموله</span>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center justify-between mb-12">
|
||||
@@ -78,12 +78,12 @@ export default function OrderTracking() {
|
||||
placeholder="شماره سفارش (CN-XXXXX) یا کد رهگیری پستی را وارد کنید..."
|
||||
value={searchId}
|
||||
onChange={(e) => setSearchId(e.target.value)}
|
||||
className="w-full bg-medical-gray-50 border border-medical-gray-200 rounded-2xl py-4 pr-12 pl-6 text-sm focus:ring-2 focus:ring-canino-blue/20 outline-none font-mono"
|
||||
className="w-full bg-medical-gray-50 border border-medical-gray-200 rounded-2xl py-4 pr-12 pl-6 text-sm focus:ring-2 focus:ring-canina-blue/20 outline-none font-mono"
|
||||
/>
|
||||
</div>
|
||||
<button
|
||||
onClick={handleSearch}
|
||||
className="bg-medical-gray-900 text-white px-10 py-4 rounded-2xl font-black italic hover:bg-canino-blue transition-all"
|
||||
className="bg-medical-gray-900 text-white px-10 py-4 rounded-2xl font-black italic hover:bg-canina-blue transition-all"
|
||||
>
|
||||
رهگیری آنی
|
||||
</button>
|
||||
@@ -97,7 +97,7 @@ export default function OrderTracking() {
|
||||
<div className="flex items-center justify-between mb-12">
|
||||
<div>
|
||||
<p className="text-[10px] font-black text-medical-gray-400 uppercase tracking-widest mb-1">کد رهگیری پستی</p>
|
||||
<p className="text-sm font-mono font-bold text-canino-blue">{activeOrder.trackingNumber}</p>
|
||||
<p className="text-sm font-mono font-bold text-canina-blue">{activeOrder.trackingNumber}</p>
|
||||
</div>
|
||||
<div className="text-left">
|
||||
<p className="text-[10px] font-black text-medical-gray-400 uppercase tracking-widest mb-1">تاریخ ثبت</p>
|
||||
@@ -110,7 +110,7 @@ export default function OrderTracking() {
|
||||
|
||||
{steps.map((step, i) => (
|
||||
<div key={i} className={`relative flex items-center gap-8 ${step.status === 'pending' ? 'opacity-30' : ''}`}>
|
||||
<div className={`w-12 h-12 rounded-2xl flex items-center justify-center z-10 shadow-sm transition-all ${step.status === 'completed' ? 'bg-green-600 text-white' : step.status === 'active' ? 'bg-canino-blue text-white ring-8 ring-canino-blue/10 scale-110' : 'bg-medical-gray-50 text-medical-gray-300 border border-medical-gray-100'}`}>
|
||||
<div className={`w-12 h-12 rounded-2xl flex items-center justify-center z-10 shadow-sm transition-all ${step.status === 'completed' ? 'bg-green-600 text-white' : step.status === 'active' ? 'bg-canina-blue text-white ring-8 ring-canina-blue/10 scale-110' : 'bg-medical-gray-50 text-medical-gray-300 border border-medical-gray-100'}`}>
|
||||
{step.status === 'completed' ? <CheckCircle2 className="w-6 h-6" /> : step.icon}
|
||||
</div>
|
||||
<div>
|
||||
@@ -136,13 +136,13 @@ export default function OrderTracking() {
|
||||
</div>
|
||||
<div className="mt-8 pt-6 border-t border-white/10 flex justify-between items-center font-black">
|
||||
<span className="text-xs italic">مجموع فاکتور</span>
|
||||
<span className="text-lg text-canino-blue">{activeOrder.total.toLocaleString()} تومان</span>
|
||||
<span className="text-lg text-canina-blue">{activeOrder.total.toLocaleString()} تومان</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="bg-white rounded-[2rem] p-6 border border-medical-gray-200">
|
||||
<div className="flex items-center gap-3 mb-4">
|
||||
<div className="w-10 h-10 bg-canino-blue/10 text-canino-blue rounded-xl flex items-center justify-center">
|
||||
<div className="w-10 h-10 bg-canina-blue/10 text-canina-blue rounded-xl flex items-center justify-center">
|
||||
<MapPin className="w-5 h-5" />
|
||||
</div>
|
||||
<h4 className="text-xs font-black italic">آدرس تحویل</h4>
|
||||
|
||||
Reference in new issue
Block a user