feat(wiki): add complete scientific terms dictionary for all product ingredients

- Add colloidal silver, retinol palmitate, grapefruit seed extract, bovine blood/serum, argan/walnut/rosehip oils, etc.
- Map all product ingredients across all categories to Wiki scientific terms
- Update IngredientWiki matching rules for 100% ingredient coverage
This commit is contained in:
parsa aghaei committed 2026-07-21 12:19:56 +03:30
1 parent f762105f09
commit fcc738f25c
3 files changed
+141 -26

No files matched your search

+6 -6
View File
@@ -32,15 +32,15 @@ export default function Tooltip({ termKey, children, onWikiNavigate }: TooltipPr
initial={{ opacity: 0, y: 10, scale: 0.95 }}
animate={{ opacity: 1, y: 0, scale: 1 }}
exit={{ opacity: 0, y: 10, scale: 0.95 }}
className="absolute bottom-full left-1/2 -translate-x-1/2 mb-3 w-64 p-4 bg-medical-gray-900 text-white rounded-2xl shadow-2xl z-[100] text-sm"
className="absolute bottom-full left-1/2 -translate-x-1/2 mb-3 w-72 p-5 bg-white text-medical-gray-900 rounded-2xl shadow-2xl border border-medical-gray-200 z-[100] text-sm"
dir="rtl"
>
<div className="flex items-center gap-2 mb-2 text-canina-blue">
<Info className="w-4 h-4" />
<span className="font-black text-[10px] uppercase tracking-widest text-canina-blue">دانشنامه علمی کانینا</span>
<span className="font-black text-[11px] uppercase tracking-widest text-canina-blue">دانشنامه علمی کانینا</span>
</div>
<h5 className="font-black text-sm text-white mb-2 leading-snug">{termData.term}</h5>
<p className="text-gray-200 text-xs leading-relaxed mb-3 font-medium">
<h5 className="font-black text-base text-medical-gray-900 mb-2 leading-snug">{termData.term}</h5>
<p className="text-medical-gray-600 text-xs leading-relaxed mb-4 font-bold">
{termData.definition}
</p>
{termData.wikiId && (
@@ -49,14 +49,14 @@ export default function Tooltip({ termKey, children, onWikiNavigate }: TooltipPr
e.stopPropagation();
onWikiNavigate?.(termData.wikiId!);
}}
className="flex items-center gap-1.5 text-canina-blue hover:text-cyan-300 transition-colors text-xs font-black cursor-pointer pt-1 border-t border-white/10 w-full"
className="flex items-center justify-between text-canina-blue hover:text-blue-700 transition-colors text-xs font-black cursor-pointer pt-2 border-t border-medical-gray-100 w-full"
>
<span>مطالعه مقاله کامل</span>
<ExternalLink className="w-3.5 h-3.5" />
</button>
)}
{/* Arrow */}
<div className="absolute top-full left-1/2 -translate-x-1/2 border-8 border-transparent border-t-medical-gray-900" />
<div className="absolute top-full left-1/2 -translate-x-1/2 border-8 border-transparent border-t-white" />
</motion.div>
)}
</AnimatePresence>