feat: implement DEV_TICKETS including product categories seeding, SEO metaTitle/metaDescription, scientificTagline, requiresRx notice, and suitableFor normalization
Deploy Canina / deploy (push) Successful in 2m19s
E2E Playwright Tests / Run Full E2E & Security Suites (push) Failing after 7s

This commit is contained in:
parsa committed 2026-09-24 03:20:46 +03:30
1 parent 913e6acd3d
commit d6d4158cbe
7 files changed
+116 -24

No files matched your search

@@ -526,7 +526,7 @@ export default function ProductPage({ productSlug }: { productSlug: string }) {
>
<SafeImage
src={activeMedia?.url || product.image}
alt={product.name}
alt={product.featuredImageAlt || product.nameFa || product.name}
priority={true}
sizes="(max-width: 768px) 100vw, 400px"
className="w-full h-full"
@@ -727,14 +727,39 @@ export default function ProductPage({ productSlug }: { productSlug: string }) {
{product.nameEn}
</h2>
)}
</div>
<p className="text-base sm:text-xl text-canina-blue font-bold italic opacity-80 leading-relaxed max-w-2xl font-vazir mb-4 text-center md:text-right" dir="rtl">
{isMounted && pets.length > 0 ? (
product.optimisticTemplate?.replace("[PetName]", activePet?.name || "").replace("[OnSet]", product.onSetOfAction || "به زودی")
) : (
product.scientificTagline
{product.scientificTagline && (
<div className="mt-1 text-xs sm:text-sm md:text-base text-canina-blue font-bold font-vazir flex items-center justify-center md:justify-start gap-1.5" dir="rtl">
<span className="w-1.5 h-1.5 rounded-full bg-canina-blue shrink-0" />
<span>{product.scientificTagline}</span>
</div>
)}
</p>
</div>
{/* B4 / Pet Optimistic OnSet Template (if pet selected) */}
{isMounted && pets.length > 0 && product.optimisticTemplate && (
<p className="text-xs sm:text-sm text-canina-blue font-bold italic opacity-90 leading-relaxed max-w-2xl font-vazir mb-3 text-center md:text-right" dir="rtl">
{product.optimisticTemplate?.replace("[PetName]", activePet?.name || "").replace("[OnSet]", product.onSetOfAction || "به زودی")}
</p>
)}
{/* A9: Veterinary Prescription Notice (requiresRx) */}
{product.requiresRx && (
<div className="w-full text-right bg-amber-50 border-r-4 border-amber-500 p-3 sm:p-4 rounded-2xl mb-3 flex items-start gap-3 shadow-2xs" dir="rtl">
<div className="w-8 h-8 rounded-xl bg-amber-500/10 text-amber-700 flex items-center justify-center shrink-0 mt-0.5">
<Stethoscope className="w-4 h-4" />
</div>
<div className="space-y-1">
<div className="flex items-center gap-2">
<span className="text-xs font-black text-amber-950 font-vazir">داروی تخصصی تحت نظارت دامپزشکی (Rx Required)</span>
<span className="text-[10px] bg-amber-200/80 text-amber-900 font-black px-2 py-0.5 rounded-full">نسخه‌ای</span>
</div>
<p className="text-[11px] sm:text-xs text-amber-900/90 font-medium font-vazir leading-relaxed">
این فرآورده دارویی بالینی با دوز درمانی ویژه می‌باشد. جهت تضمین سلامت پت، مصرف آن تحت نظر دامپزشک توصیه شده و ارسال سفارش پس از هماهنگی واحد پشتیبانی تخصصی انجام خواهد گرفت.
</p>
</div>
</div>
)}
{fullProduct.shortDescription && (
<div className="w-full text-right bg-canina-blue/5 border-r-4 border-canina-blue p-4 sm:p-6 rounded-2xl mb-2">
<p className="text-sm sm:text-lg text-medical-gray-600 font-bold leading-relaxed font-vazir">