feat: complete product management with dynamic FAQs, PAO, storage conditions, safety guidelines and key highlights
This commit is contained in:
1 parent
ddd0dcbab6
commit
101611d8a7
18 files changed
+6922
-6483
No files matched your search
@@ -442,6 +442,20 @@ export class AdminService {
|
||||
const marginWholesale =
|
||||
data.marginWholesalePercent ?? data.wholesaleMarginPercent;
|
||||
|
||||
const dosageConfigData: Record<string, any> = {
|
||||
...(data.dosageConfig || {}),
|
||||
...(data.feedingAdvice !== undefined ? { feedingAdvice: data.feedingAdvice } : {}),
|
||||
...(data.showFaqs !== undefined ? { showFaqs: data.showFaqs } : {}),
|
||||
...(data.faqs !== undefined ? { faqs: data.faqs } : {}),
|
||||
...(data.paoMonths !== undefined ? { paoMonths: data.paoMonths } : {}),
|
||||
...(data.storageInfo !== undefined ? { storageInfo: data.storageInfo } : {}),
|
||||
...(data.precautions !== undefined ? { precautions: data.precautions } : {}),
|
||||
...(data.lifeStage !== undefined ? { lifeStage: data.lifeStage } : {}),
|
||||
...(data.keyHighlights !== undefined ? { keyHighlights: data.keyHighlights } : {}),
|
||||
...(data.isPreorder !== undefined ? { isPreorder: data.isPreorder } : {}),
|
||||
...(data.preorderDeposit !== undefined ? { preorderDeposit: data.preorderDeposit } : {}),
|
||||
};
|
||||
|
||||
const product = await this.prisma.product.create({
|
||||
data: {
|
||||
artNo: data.artNo || `ART-${Date.now()}`,
|
||||
@@ -474,6 +488,7 @@ export class AdminService {
|
||||
unit: data.unit || 'عدد',
|
||||
packageSize: data.packageSize || 100,
|
||||
dosageLogic: data.dosageLogic || '',
|
||||
dosageConfig: Object.keys(dosageConfigData).length > 0 ? dosageConfigData : undefined,
|
||||
suitableFor: data.suitableFor || 'سگ',
|
||||
imageUrl: data.imageUrl || '',
|
||||
images: Array.isArray(data.images)
|
||||
@@ -535,6 +550,22 @@ export class AdminService {
|
||||
const marginWholesale =
|
||||
data.marginWholesalePercent ?? data.wholesaleMarginPercent;
|
||||
|
||||
const existingDosageConfig = (existing.dosageConfig as Record<string, any>) || {};
|
||||
const updatedDosageConfig: Record<string, any> = {
|
||||
...existingDosageConfig,
|
||||
...(data.dosageConfig || {}),
|
||||
...(data.feedingAdvice !== undefined ? { feedingAdvice: data.feedingAdvice } : {}),
|
||||
...(data.showFaqs !== undefined ? { showFaqs: data.showFaqs } : {}),
|
||||
...(data.faqs !== undefined ? { faqs: data.faqs } : {}),
|
||||
...(data.paoMonths !== undefined ? { paoMonths: data.paoMonths } : {}),
|
||||
...(data.storageInfo !== undefined ? { storageInfo: data.storageInfo } : {}),
|
||||
...(data.precautions !== undefined ? { precautions: data.precautions } : {}),
|
||||
...(data.lifeStage !== undefined ? { lifeStage: data.lifeStage } : {}),
|
||||
...(data.keyHighlights !== undefined ? { keyHighlights: data.keyHighlights } : {}),
|
||||
...(data.isPreorder !== undefined ? { isPreorder: data.isPreorder } : {}),
|
||||
...(data.preorderDeposit !== undefined ? { preorderDeposit: data.preorderDeposit } : {}),
|
||||
};
|
||||
|
||||
const product = await this.prisma.product.update({
|
||||
where: { id },
|
||||
data: {
|
||||
@@ -568,6 +599,7 @@ export class AdminService {
|
||||
unit: data.unit,
|
||||
packageSize: data.packageSize,
|
||||
dosageLogic: data.dosageLogic,
|
||||
dosageConfig: updatedDosageConfig,
|
||||
suitableFor: data.suitableFor,
|
||||
imageUrl: data.imageUrl,
|
||||
images: Array.isArray(data.images)
|
||||
|
||||
@@ -264,4 +264,47 @@ export class ProductDto {
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
preorderDeposit?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'دستور مصرف و توصیه بالینی' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
feedingAdvice?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'نمایش بخش سوالات متداول' })
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
showFaqs?: boolean;
|
||||
|
||||
@ApiPropertyOptional({ description: 'پرسش و پاسخهای متداول محصول' })
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
faqs?: Array<{ question: string; answer: string }>;
|
||||
|
||||
@ApiPropertyOptional({ description: 'مدت زمان ماندگاری پس از باز شدن (PAO)' })
|
||||
@IsOptional()
|
||||
paoMonths?: number | string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'شرایط نگهداری استاندارد' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
storageInfo?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'تداخلات و توصیههای احتیاطی' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
precautions?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'رده سنی و شرایط مصرف' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
lifeStage?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'نکات کلیدی بالای صفحه (Bullet Points)' })
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
keyHighlights?: string[];
|
||||
|
||||
@ApiPropertyOptional({ description: 'پیکربندی جامع دوز و دادههای تکمیلی' })
|
||||
@IsOptional()
|
||||
dosageConfig?: Record<string, any>;
|
||||
}
|
||||
@@ -106,6 +106,15 @@ export interface Product {
|
||||
isPreorder?: boolean;
|
||||
preorderDeposit?: string | number;
|
||||
totalSold?: number;
|
||||
feedingAdvice?: string;
|
||||
showFaqs?: boolean;
|
||||
faqs?: Array<{ question: string; answer: string }>;
|
||||
paoMonths?: number | string;
|
||||
storageInfo?: string;
|
||||
precautions?: string;
|
||||
lifeStage?: string;
|
||||
keyHighlights?: string[];
|
||||
dosageConfig?: Record<string, any>;
|
||||
}
|
||||
|
||||
export default function Products() {
|
||||
@@ -259,6 +268,14 @@ export default function Products() {
|
||||
pdfTitle: '',
|
||||
pdfDescription: '',
|
||||
pdfCover: '',
|
||||
feedingAdvice: '',
|
||||
showFaqs: true,
|
||||
faqs: [] as Array<{ question: string; answer: string }>,
|
||||
paoMonths: '12' as number | string,
|
||||
storageInfo: '',
|
||||
precautions: '',
|
||||
lifeStage: 'مناسب تمام سنین و دوران بارداری و شیردهی',
|
||||
keyHighlights: ['', '', '', ''] as string[],
|
||||
symptoms: [] as string[],
|
||||
isPreorder: false,
|
||||
preorderDeposit: '' as number | string,
|
||||
@@ -392,6 +409,16 @@ export default function Products() {
|
||||
wMargin = Math.round(((Number(wPrice) - Number(bPrice)) / Number(bPrice)) * 100);
|
||||
}
|
||||
|
||||
const dosageConfig = (product.dosageConfig as Record<string, any>) || {};
|
||||
const initialFaqs = dosageConfig.faqs || product.faqs || [];
|
||||
const initialHighlights = dosageConfig.keyHighlights || product.keyHighlights || ['', '', '', ''];
|
||||
const paddedHighlights = [
|
||||
initialHighlights[0] || '',
|
||||
initialHighlights[1] || '',
|
||||
initialHighlights[2] || '',
|
||||
initialHighlights[3] || '',
|
||||
];
|
||||
|
||||
setFormData({
|
||||
artNo: product.artNo || '',
|
||||
nameFa: product.nameFa || '',
|
||||
@@ -409,6 +436,14 @@ export default function Products() {
|
||||
unit: product.unit || '',
|
||||
packageSize: product.packageSize !== undefined && product.packageSize !== null ? Number(product.packageSize) : '',
|
||||
dosageLogic: product.dosageLogic || '',
|
||||
feedingAdvice: dosageConfig.feedingAdvice || product.feedingAdvice || product.dosageLogic || '',
|
||||
showFaqs: dosageConfig.showFaqs !== undefined ? Boolean(dosageConfig.showFaqs) : (product.showFaqs !== undefined ? Boolean(product.showFaqs) : true),
|
||||
faqs: Array.isArray(initialFaqs) ? initialFaqs : [],
|
||||
paoMonths: dosageConfig.paoMonths !== undefined ? dosageConfig.paoMonths : (product.paoMonths !== undefined ? product.paoMonths : '12'),
|
||||
storageInfo: dosageConfig.storageInfo || product.storageInfo || '',
|
||||
precautions: dosageConfig.precautions || product.precautions || '',
|
||||
lifeStage: dosageConfig.lifeStage || product.lifeStage || 'مناسب تمام سنین و دوران بارداری و شیردهی',
|
||||
keyHighlights: paddedHighlights,
|
||||
suitableFor: product.suitableFor || 'سگ و گربه',
|
||||
imageUrl: product.imageUrl || '',
|
||||
slug: product.slug || '',
|
||||
@@ -450,7 +485,21 @@ export default function Products() {
|
||||
wholesaleMarginPercent: pricingSettings.defaultWholesaleMarginPercent,
|
||||
roundingStep: '',
|
||||
roundingMode: '',
|
||||
priceDisplay: '', unit: '', packageSize: '', dosageLogic: '', suitableFor: 'سگ و گربه',
|
||||
priceDisplay: '', unit: '', packageSize: '', dosageLogic: '',
|
||||
feedingAdvice: '',
|
||||
showFaqs: true,
|
||||
faqs: [],
|
||||
paoMonths: '12',
|
||||
storageInfo: 'در جای خشک، خنک (دمای زیر ۲۵ درجه سانتیگراد) و دور از تابش مستقیم نور خورشید نگهداری شود.',
|
||||
precautions: 'دور از دسترس کودکان نگهداری شود. در صورت مصرف همزمان با سایر پمادها یا اسپریهای درمانی، حداقل ۲۰ دقیقه فاصله زمانی رعایت شود.',
|
||||
lifeStage: 'مناسب تمام سنین و دوران بارداری و شیردهی',
|
||||
keyHighlights: [
|
||||
'۱۰۰٪ فرمولاسیون طبیعی و بدون نگهدارنده مضر',
|
||||
'ایمن و بدون سمیت در صورت لیسیدن محدود',
|
||||
'گرید دارویی و استاندارد صنعتی آلمان (GMP)',
|
||||
'مناسب تمام سنین و دوران بارداری و شیردهی'
|
||||
],
|
||||
suitableFor: 'سگ و گربه',
|
||||
imageUrl: '', metaTitle: '', metaDescription: '', keywords: '', canonicalUrl: '', slug: '',
|
||||
stockStatus: 'IN_STOCK', noIndex: false, noFollow: false, ogImage: '', featuredImageAlt: '',
|
||||
images: [],
|
||||
@@ -699,7 +748,14 @@ export default function Products() {
|
||||
noIndex: Boolean(formData.noIndex),
|
||||
noFollow: Boolean(formData.noFollow),
|
||||
ogImage: (formData.ogImage || '').trim() || undefined,
|
||||
featuredImageAlt: (formData.featuredImageAlt || '').trim() || undefined,
|
||||
feedingAdvice: (formData.feedingAdvice || '').trim() || undefined,
|
||||
showFaqs: Boolean(formData.showFaqs),
|
||||
faqs: formData.faqs || [],
|
||||
paoMonths: formData.paoMonths !== '' ? formData.paoMonths : undefined,
|
||||
storageInfo: (formData.storageInfo || '').trim() || undefined,
|
||||
precautions: (formData.precautions || '').trim() || undefined,
|
||||
lifeStage: (formData.lifeStage || '').trim() || undefined,
|
||||
keyHighlights: formData.keyHighlights ? formData.keyHighlights.filter(h => h && h.trim().length > 0) : [],
|
||||
slug: derivedSlug,
|
||||
symptoms: formData.symptoms || [],
|
||||
isPreorder: Boolean(formData.isPreorder),
|
||||
@@ -1120,6 +1176,8 @@ export default function Products() {
|
||||
<div className="flex border-b border-gray-100 px-5 sm:px-6 pt-2 gap-3 sm:gap-4 overflow-x-auto shrink-0 bg-gray-50/50">
|
||||
{[
|
||||
{ id: 'general', label: 'اطلاعات پایه' },
|
||||
{ id: 'technical', label: 'مشخصات علمی و نگهداری' },
|
||||
{ id: 'faq', label: 'پرسشهای متداول (FAQ)' },
|
||||
{ id: 'pricing', label: 'موجودی و قیمت' },
|
||||
{ id: 'seo', label: 'سئو (SEO)' },
|
||||
{ id: 'media', label: 'رسانه' }
|
||||
@@ -1253,15 +1311,21 @@ export default function Products() {
|
||||
</div>
|
||||
<div className="space-y-2 md:col-span-2">
|
||||
<label className="text-sm font-bold text-gray-700 flex items-center gap-1.5">
|
||||
<span>منطق دوز مصرفی (Dosage Logic)</span>
|
||||
<span>دستور مصرف بالینی و راهنمای دوز (Feeding Advice)</span>
|
||||
<div className="group relative inline-block">
|
||||
<HelpCircle className="w-3.5 h-3.5 text-gray-400 hover:text-purple-600 cursor-help" />
|
||||
<div className="absolute bottom-full right-1/2 translate-x-1/2 mb-2 hidden group-hover:block w-52 p-2.5 bg-gray-900 text-white text-[10px] rounded-lg shadow-xl text-center z-30 font-vazir leading-relaxed">
|
||||
فرمول نحوه مصرف روزانه کالا بر اساس وزن پت (مثال: ۲ میلیلیتر به ازای هر ۵ کیلوگرم وزن).
|
||||
<div className="absolute bottom-full right-1/2 translate-x-1/2 mb-2 hidden group-hover:block w-64 p-2.5 bg-gray-900 text-white text-[10px] rounded-lg shadow-xl text-center z-30 font-vazir leading-relaxed">
|
||||
راهنمای دقیق مصرف برای خریدار در صفحه محصول (مثال: روزانه ۱ قرص به ازای ۱۰ کیلوگرم وزن همراه با غذا).
|
||||
</div>
|
||||
</div>
|
||||
</label>
|
||||
<textarea rows={2} value={formData.dosageLogic} onChange={(e) => setFormData({ ...formData, dosageLogic: e.target.value })} className="w-full px-4 py-3 rounded-xl border border-gray-200 focus:border-purple-500 outline-none"></textarea>
|
||||
<textarea
|
||||
rows={2}
|
||||
value={formData.feedingAdvice}
|
||||
onChange={(e) => setFormData({ ...formData, feedingAdvice: e.target.value })}
|
||||
placeholder="مثال: روزانه ۱ قرص به ازای هر ۱۰ کیلوگرم وزن بدن، ترجیحاً همراه با غذای اصلی مصرف شود."
|
||||
className="w-full px-4 py-3 rounded-xl border border-gray-200 focus:border-purple-500 outline-none font-vazir text-sm"
|
||||
/>
|
||||
</div>
|
||||
<div className="space-y-2 md:col-span-2">
|
||||
<label className="text-sm font-bold text-gray-700 flex items-center gap-1.5">
|
||||
@@ -1350,32 +1414,329 @@ export default function Products() {
|
||||
<p className="text-[11px] text-gray-400 font-medium">از منوی پیشنهادی انتخاب کنید یا علامت جدید بنویسید و کلید Enter را بزنید.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Dosage Calculator Field in General Tab */}
|
||||
<div className="space-y-2 pt-2 border-t border-gray-100">
|
||||
<label className="text-sm font-bold text-gray-700 flex items-center justify-between">
|
||||
<span className="flex items-center gap-1.5">
|
||||
<span>دستور مصرف بالینی و راهنمای دوز مصرفی</span>
|
||||
<div className="group relative inline-block">
|
||||
<HelpCircle className="w-3.5 h-3.5 text-gray-400 hover:text-purple-600 cursor-help" />
|
||||
<div className="absolute bottom-full right-1/2 translate-x-1/2 mb-2 hidden group-hover:block w-64 p-2.5 bg-gray-900 text-white text-[10px] rounded-lg shadow-xl text-center z-30 font-vazir leading-relaxed">
|
||||
دستور مصرف روان و فارسی کالا (مانند: روزانه ۱ قرص به ازای هر ۱۰ کیلوگرم وزن بدن). این متن در کاتالوگ آنلاین و صفحه مشخصات کالا به صورت برجسته نمایش داده میشود.
|
||||
{/* Technical & Storage Tab */}
|
||||
<div className={activeTab === 'technical' ? 'block space-y-5' : 'hidden'}>
|
||||
{/* PAO & Storage Card */}
|
||||
<div className="bg-white p-5 rounded-2xl border border-gray-200 shadow-sm space-y-4">
|
||||
<h4 className="text-sm font-black text-gray-800 flex items-center gap-2 border-b pb-2">
|
||||
<Thermometer className="w-4 h-4 text-purple-600" />
|
||||
<span>ماندگاری پس از باز شدن (PAO) و شرایط نگهداری</span>
|
||||
</h4>
|
||||
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
<div className="space-y-2">
|
||||
<label className="text-xs font-bold text-gray-700 flex items-center justify-between">
|
||||
<span>مدت زمان مجاز مصرف پس از باز شدن (PAO)</span>
|
||||
<span className="text-[10px] text-purple-600 font-bold">نماد استاندارد دارویی</span>
|
||||
</label>
|
||||
<div className="flex items-center gap-2">
|
||||
<input
|
||||
type="text"
|
||||
value={formData.paoMonths}
|
||||
onChange={(e) => setFormData({ ...formData, paoMonths: e.target.value })}
|
||||
placeholder="مثال: 12 یا 6 یا ۲۴ ماه"
|
||||
className="w-full px-4 py-2.5 rounded-xl border border-gray-200 focus:border-purple-500 outline-none text-xs font-bold font-vazir"
|
||||
/>
|
||||
</div>
|
||||
<div className="flex items-center gap-1.5 flex-wrap pt-1">
|
||||
{['3', '6', '12', '24', 'بدون محدودیت'].map((pao) => (
|
||||
<button
|
||||
key={pao}
|
||||
type="button"
|
||||
onClick={() => setFormData({ ...formData, paoMonths: pao })}
|
||||
className={`px-2.5 py-1 text-[11px] font-bold rounded-lg border transition-all ${
|
||||
String(formData.paoMonths) === pao
|
||||
? 'bg-purple-600 text-white border-purple-600 shadow-xs'
|
||||
: 'bg-gray-50 text-gray-700 border-gray-200 hover:border-purple-300'
|
||||
}`}
|
||||
>
|
||||
{pao === 'بدون محدودیت' ? pao : `${pao} ماه`}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="space-y-2">
|
||||
<label className="text-xs font-bold text-gray-700 flex items-center justify-between">
|
||||
<span>شرایط استاندارد نگهداری</span>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setFormData({
|
||||
...formData,
|
||||
storageInfo: 'در جای خشک، خنک (دمای زیر ۲۵ درجه سانتیگراد) و دور از تابش مستقیم نور خورشید نگهداری شود.'
|
||||
})}
|
||||
className="text-[10px] text-purple-600 hover:underline font-bold"
|
||||
>
|
||||
درج پیشفرض Canina ⚡
|
||||
</button>
|
||||
</label>
|
||||
<textarea
|
||||
rows={3}
|
||||
value={formData.storageInfo}
|
||||
onChange={(e) => setFormData({ ...formData, storageInfo: e.target.value })}
|
||||
placeholder="در جای خشک، خنک (دمای زیر ۲۵ درجه سانتیگراد) و دور از تابش مستقیم نور خورشید نگهداری شود."
|
||||
className="w-full px-4 py-2.5 rounded-xl border border-gray-200 focus:border-purple-500 outline-none text-xs leading-relaxed font-vazir"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Safety & Precautions Card */}
|
||||
<div className="bg-white p-5 rounded-2xl border border-gray-200 shadow-sm space-y-4">
|
||||
<h4 className="text-sm font-black text-gray-800 flex items-center gap-2 border-b pb-2">
|
||||
<AlertTriangle className="w-4 h-4 text-amber-500" />
|
||||
<span>رده سنی، ایمنی و تداخلات دارویی</span>
|
||||
</h4>
|
||||
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
<div className="space-y-2">
|
||||
<label className="text-xs font-bold text-gray-700 block">رده سنی و دوران بارداری/شیردهی</label>
|
||||
<input
|
||||
type="text"
|
||||
value={formData.lifeStage}
|
||||
onChange={(e) => setFormData({ ...formData, lifeStage: e.target.value })}
|
||||
placeholder="مثال: مناسب تمام سنین و دوران بارداری و شیردهی"
|
||||
className="w-full px-4 py-2.5 rounded-xl border border-gray-200 focus:border-purple-500 outline-none text-xs font-bold font-vazir"
|
||||
/>
|
||||
<div className="flex items-center gap-1.5 flex-wrap pt-1">
|
||||
{[
|
||||
'مناسب تمام سنین و دوران بارداری و شیردهی',
|
||||
'مخصوص سگ و گربههای بالغ',
|
||||
'مخصوص تولهها و دوران رشد',
|
||||
'مخصوص حیوانات مسن (Senior)'
|
||||
].map((stage) => (
|
||||
<button
|
||||
key={stage}
|
||||
type="button"
|
||||
onClick={() => setFormData({ ...formData, lifeStage: stage })}
|
||||
className="px-2 py-0.5 text-[10px] font-bold rounded-md bg-gray-100 text-gray-600 hover:bg-purple-50 hover:text-purple-700 transition-colors"
|
||||
>
|
||||
{stage}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="space-y-2">
|
||||
<label className="text-xs font-bold text-gray-700 flex items-center justify-between">
|
||||
<span>تداخلات دارویی و فواصل مصرف (Precautions)</span>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setFormData({
|
||||
...formData,
|
||||
precautions: 'دور از دسترس کودکان نگهداری شود. در صورت مصرف همزمان با سایر پمادها یا اسپریهای درمانی، حداقل ۲۰ دقیقه فاصله زمانی رعایت شود.'
|
||||
})}
|
||||
className="text-[10px] text-amber-700 hover:underline font-bold"
|
||||
>
|
||||
درج احتیاط استاندارد ⚡
|
||||
</button>
|
||||
</label>
|
||||
<textarea
|
||||
rows={3}
|
||||
value={formData.precautions}
|
||||
onChange={(e) => setFormData({ ...formData, precautions: e.target.value })}
|
||||
placeholder="دور از دسترس کودکان نگهداری شود. پس از هربار مصرف درب محصول را محکم ببندید."
|
||||
className="w-full px-4 py-2.5 rounded-xl border border-gray-200 focus:border-purple-500 outline-none text-xs leading-relaxed font-vazir"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Above-the-fold Highlights Card */}
|
||||
<div className="bg-white p-5 rounded-2xl border border-gray-200 shadow-sm space-y-4">
|
||||
<div className="flex items-center justify-between border-b pb-2">
|
||||
<h4 className="text-sm font-black text-gray-800 flex items-center gap-2">
|
||||
<Sparkles className="w-4 h-4 text-emerald-600" />
|
||||
<span>نکات کلیدی بالای صفحه (Above-the-Fold Key Highlights)</span>
|
||||
</h4>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setFormData({
|
||||
...formData,
|
||||
keyHighlights: [
|
||||
'۱۰۰٪ فرمولاسیون طبیعی و بدون نگهدارنده مضر',
|
||||
'ایمن و بدون سمیت در صورت لیسیدن محدود',
|
||||
'گرید دارویی و استاندارد صنعتی آلمان (GMP)',
|
||||
formData.lifeStage || 'مناسب تمام سنین و دوران بارداری و شیردهی'
|
||||
]
|
||||
})}
|
||||
className="text-xs text-emerald-700 hover:underline font-bold flex items-center gap-1"
|
||||
>
|
||||
درج ۴ ویژگی پیشنهادی ⚡
|
||||
</button>
|
||||
</div>
|
||||
<p className="text-[11px] text-gray-500 font-medium">
|
||||
این ۴ نکته با آیکون تیک سبز در بالای صفحه محصول کنار خلاصه و قیمت برای تصمیمگیری سریع خریدار نمایش داده میشوند.
|
||||
</p>
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 gap-3">
|
||||
{[0, 1, 2, 3].map((idx) => (
|
||||
<div key={idx} className="space-y-1">
|
||||
<label className="text-[11px] font-bold text-gray-600">نکته کلیدی {idx + 1}</label>
|
||||
<input
|
||||
type="text"
|
||||
value={formData.keyHighlights[idx] || ''}
|
||||
onChange={(e) => {
|
||||
const newHl = [...(formData.keyHighlights || ['', '', '', ''])];
|
||||
newHl[idx] = e.target.value;
|
||||
setFormData({ ...formData, keyHighlights: newHl });
|
||||
}}
|
||||
placeholder={`نکته کلیدی ${idx + 1}...`}
|
||||
className="w-full px-3 py-2 rounded-xl border border-gray-200 focus:border-emerald-500 outline-none text-xs font-bold font-vazir"
|
||||
/>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* FAQ Tab */}
|
||||
<div className={activeTab === 'faq' ? 'block space-y-5' : 'hidden'}>
|
||||
{/* Top FAQ Controls */}
|
||||
<div className="bg-white p-5 rounded-2xl border border-gray-200 shadow-sm space-y-4">
|
||||
<div className="flex flex-col sm:flex-row sm:items-center justify-between gap-3 border-b pb-4">
|
||||
<div>
|
||||
<h4 className="text-sm font-black text-gray-800 flex items-center gap-2">
|
||||
<HelpCircle className="w-4 h-4 text-purple-600" />
|
||||
<span>بخش پرسش و پاسخهای متداول محصول (Product FAQs)</span>
|
||||
</h4>
|
||||
<p className="text-xs text-gray-500 mt-0.5">مدیریت آکاردئون پرسشهای متداول در صفحه کالا و ثبت خودکار در سئوی گوگل (FAQPage Schema)</p>
|
||||
</div>
|
||||
<div className="flex items-center gap-2 shrink-0">
|
||||
<label className="relative inline-flex items-center cursor-pointer">
|
||||
<input
|
||||
type="checkbox"
|
||||
className="sr-only peer"
|
||||
checked={formData.showFaqs}
|
||||
onChange={(e) => setFormData({ ...formData, showFaqs: e.target.checked })}
|
||||
/>
|
||||
<div className="w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-purple-600"></div>
|
||||
</label>
|
||||
<span className="text-xs font-bold text-gray-700">
|
||||
{formData.showFaqs ? 'بخش FAQ فعال است' : 'بخش FAQ غیرفعال است'}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center justify-between flex-wrap gap-2 pt-1">
|
||||
<Button
|
||||
type="button"
|
||||
variant="outline"
|
||||
size="sm"
|
||||
startIcon={Plus}
|
||||
onClick={() => {
|
||||
setFormData({
|
||||
...formData,
|
||||
faqs: [...(formData.faqs || []), { question: '', answer: '' }]
|
||||
});
|
||||
}}
|
||||
className="border-purple-200 text-purple-700 hover:bg-purple-50 text-xs font-bold"
|
||||
>
|
||||
افزودن سوال جدید
|
||||
</Button>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => {
|
||||
const name = formData.nameFa || 'این محصول';
|
||||
setFormData({
|
||||
...formData,
|
||||
faqs: [
|
||||
{
|
||||
question: `آیا لیسیدن ${name} توسط حیوان خطرناک است؟`,
|
||||
answer: `خیر، ترکیبات این محصول با استانداردهای دارویی آلمان فرموله شده و فاقد مواد نگهدارنده شیمیایی مضر است. لیسیدن محدود آن باعث مسمومیت نمیشود؛ اما جهت اثربخشی و جذب حداکثری، پیشنهاد میشود ۱۰ تا ۱۵ دقیقه حواس حیوان پرت شود.`
|
||||
},
|
||||
{
|
||||
question: `مدت زمان ماندگاری و شرایط نگهداری ${name} چگونه است؟`,
|
||||
answer: `این محصول در جای خشک، خنک (دمای زیر ۲۵ درجه سانتیگراد) و دور از تابش مستقیم نور خورشید نگهداری شود. مدت زمان مجاز مصرف پس از باز شدن درب (PAO) ${formData.paoMonths ? `${formData.paoMonths} ماه` : '۱۲ ماه'} میباشد.`
|
||||
},
|
||||
{
|
||||
question: `آیا برای تولهها و حیوانات باردار یا شیرده قابل استفاده است؟`,
|
||||
answer: `بله، با توجه به فرمولاسیون ۱۰۰٪ طبیعی و عدم وجود هورمون یا مواد شیمیایی سنتتیک، استفاده از این محصول برای تمامی ردههای سنی و دوران حساس بارداری و شیردهی طبق دستورالعمل ایمن است.`
|
||||
},
|
||||
{
|
||||
question: `در صورت استفاده همزمان با سایر داروها یا پمادها چه نکاتی باید رعایت شود؟`,
|
||||
answer: `جهت جلوگیری از تداخل در جذب، توصیه میشود بین استفاده از این محصول و سایر داروها، اسپریها یا مکملهای درمانی حداقل ۲۰ الی ۳۰ دقیقه فاصله زمانی رعایت شود.`
|
||||
}
|
||||
]
|
||||
});
|
||||
toast.success('سوالات متداول استاندارد کاتالوگ بارگذاری شدند');
|
||||
}}
|
||||
className="text-xs text-purple-600 hover:text-purple-800 font-bold flex items-center gap-1 hover:underline"
|
||||
>
|
||||
درج سوالات متداول پیشنهادی کاتالوگ Canina ⚡
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* FAQ Items List */}
|
||||
{formData.faqs && formData.faqs.length > 0 ? (
|
||||
<div className="space-y-3">
|
||||
{formData.faqs.map((faq, idx) => (
|
||||
<div key={idx} className="bg-white p-4 rounded-2xl border border-gray-200 shadow-xs space-y-3 relative group">
|
||||
<div className="flex items-center justify-between gap-2 border-b border-gray-100 pb-2">
|
||||
<span className="text-xs font-black text-purple-700 bg-purple-50 px-2.5 py-0.5 rounded-full">
|
||||
سوال {idx + 1}
|
||||
</span>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => {
|
||||
const newFaqs = formData.faqs.filter((_, i) => i !== idx);
|
||||
setFormData({ ...formData, faqs: newFaqs });
|
||||
}}
|
||||
className="text-red-400 hover:text-red-600 p-1 rounded-lg hover:bg-red-50 transition-colors"
|
||||
title="حذف این سوال"
|
||||
>
|
||||
<Trash2 className="w-4 h-4" />
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div className="space-y-1.5">
|
||||
<label className="text-xs font-bold text-gray-700">متن پرسش:</label>
|
||||
<input
|
||||
type="text"
|
||||
value={faq.question}
|
||||
onChange={(e) => {
|
||||
const updated = [...formData.faqs];
|
||||
updated[idx].question = e.target.value;
|
||||
setFormData({ ...formData, faqs: updated });
|
||||
}}
|
||||
placeholder="مثال: آیا لیسیدن این محصول خطرناک است؟"
|
||||
className="w-full px-3 py-2 rounded-xl border border-gray-200 focus:border-purple-500 outline-none text-xs font-bold font-vazir"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="space-y-1.5">
|
||||
<label className="text-xs font-bold text-gray-700">متن پاسخ علمی و کامل:</label>
|
||||
<textarea
|
||||
rows={3}
|
||||
value={faq.answer}
|
||||
onChange={(e) => {
|
||||
const updated = [...formData.faqs];
|
||||
updated[idx].answer = e.target.value;
|
||||
setFormData({ ...formData, faqs: updated });
|
||||
}}
|
||||
placeholder="پاسخ کامل و علمی را وارد نمایید..."
|
||||
className="w-full px-3 py-2 rounded-xl border border-gray-200 focus:border-purple-500 outline-none text-xs leading-relaxed font-vazir"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</span>
|
||||
<span className="text-xs text-purple-600 font-bold">متن راهنمای بالینی</span>
|
||||
</label>
|
||||
<textarea
|
||||
rows={3}
|
||||
value={formData.dosageLogic}
|
||||
onChange={(e) => setFormData({ ...formData, dosageLogic: e.target.value })}
|
||||
placeholder="مثال: روزانه ۱ قرص به ازای هر ۱۰ کیلوگرم وزن بدن، همراه با وعده غذایی مصرف شود."
|
||||
className="w-full px-4 py-3 rounded-xl border border-gray-200 focus:border-purple-500 outline-none text-xs font-vazir"
|
||||
/>
|
||||
<p className="text-[11px] text-gray-400">
|
||||
این متن در بخش مشخصات علمی کالا، ماشینحساب دوز و کاتالوگ آنلاین برای پزشکان و خریداران نمایش داده میشود.
|
||||
</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
) : (
|
||||
<div className="bg-white p-8 rounded-2xl border border-dashed border-gray-300 text-center space-y-3">
|
||||
<div className="w-12 h-12 rounded-2xl bg-purple-50 text-purple-600 flex items-center justify-center mx-auto">
|
||||
<HelpCircle className="w-6 h-6" />
|
||||
</div>
|
||||
<div className="space-y-1">
|
||||
<h5 className="text-sm font-black text-gray-800">هیچ پرسش و پاسخی ثبت نشده است</h5>
|
||||
<p className="text-xs text-gray-500 max-w-md mx-auto">
|
||||
میتوانید با کلیک بر روی «درج سوالات متداول پیشنهادی»، پرسشهای متداول کاتالوگ دارویی را به صورت خودکار بارگذاری و سپس شخصیسازی نمایید.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Pricing Tab */}
|
||||
@@ -1795,22 +2156,6 @@ export default function Products() {
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="space-y-2 col-span-1 md:col-span-2 pt-2">
|
||||
<label className="text-sm font-bold text-gray-700 flex items-center justify-between">
|
||||
<span>منطق و دوز دقیق مصرفی (Dosage Calculator Fields)</span>
|
||||
<span className="text-xs text-purple-600 font-bold">فرمت JSON یا راهنمای متنی</span>
|
||||
</label>
|
||||
<textarea
|
||||
rows={3}
|
||||
value={formData.dosageLogic}
|
||||
onChange={(e) => setFormData({ ...formData, dosageLogic: e.target.value })}
|
||||
placeholder='{"baseDosage": 1, "perKg": 10, "unit": "قرص", "maxPerDay": 3}'
|
||||
className="w-full px-4 py-3 rounded-xl border border-gray-200 focus:border-purple-500 outline-none font-mono text-xs"
|
||||
/>
|
||||
<p className="text-[11px] text-gray-400">
|
||||
این مقادیر توسط محاسبهگر هوشمند دوز مکمل در فرانتاند خوانده میشود.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -243,34 +243,36 @@ export default async function ShopProductPage({ params }: { params: Promise<{ sl
|
||||
const graphEntities: Record<string, unknown>[] = [productJsonLd, breadcrumbJsonLd];
|
||||
|
||||
// 1. FAQPage Schema if faqs exist or derived
|
||||
const productFaqs = (product.faqs && product.faqs.length > 0) ? product.faqs : [
|
||||
{
|
||||
question: `آیا لیسیدن ${product.nameFa || product.name} توسط حیوان خطرناک است؟`,
|
||||
answer: `خیر، ترکیبات این محصول با استانداردهای دارویی آلمان فرموله شده و فاقد مواد نگهدارنده شیمیایی مضر است. لیسیدن محدود آن باعث مسمومیت نمیشود؛ اما جهت اثربخشی و جذب حداکثری، پیشنهاد میشود ۱۰ تا ۱۵ دقیقه حواس حیوان پرت شود یا از پاپوش/محافظ استفاده گردد.`
|
||||
},
|
||||
{
|
||||
question: `مدت زمان ماندگاری و شرایط نگهداری ${product.nameFa || product.name} چگونه است؟`,
|
||||
answer: `این محصول در جای خشک، خنک (دمای زیر ۲۵ درجه سانتیگراد) و دور از تابش مستقیم نور خورشید نگهداری شود. مدت زمان مجاز مصرف پس از باز شدن درب (PAO) ۱۲ ماه میباشد.`
|
||||
},
|
||||
{
|
||||
question: `آیا برای تولهها و سگهای باردار یا شیرده قابل استفاده است؟`,
|
||||
answer: `بله، با توجه به فرمولاسیون طبیعی و عدم وجود هورمون یا مواد شیمیایی سنگین، استفاده از این محصول برای تمامی ردههای سنی (تولهها، سگهای بالغ و مسن) و دوران حساس بارداری و شیردهی طبق دستورالعمل ایمن است.`
|
||||
}
|
||||
];
|
||||
if (product.showFaqs !== false) {
|
||||
const productFaqs = (product.faqs && Array.isArray(product.faqs) && product.faqs.length > 0) ? product.faqs : [
|
||||
{
|
||||
question: `آیا لیسیدن ${product.nameFa || product.name} توسط حیوان خطرناک است؟`,
|
||||
answer: `خیر، ترکیبات این محصول با استانداردهای دارویی آلمان فرموله شده و فاقد مواد نگهدارنده شیمیایی مضر است. لیسیدن محدود آن باعث مسمومیت نمیشود؛ اما جهت اثربخشی و جذب حداکثری، پیشنهاد میشود ۱۰ تا ۱۵ دقیقه حواس حیوان پرت شود یا از پاپوش/محافظ استفاده گردد.`
|
||||
},
|
||||
{
|
||||
question: `مدت زمان ماندگاری و شرایط نگهداری ${product.nameFa || product.name} چگونه است؟`,
|
||||
answer: `این محصول در جای خشک، خنک (دمای زیر ۲۵ درجه سانتیگراد) و دور از تابش مستقیم نور خورشید نگهداری شود. مدت زمان مجاز مصرف پس از باز شدن درب (PAO) ${product.paoMonths ? `${product.paoMonths} ماه` : '۱۲ ماه'} میباشد.`
|
||||
},
|
||||
{
|
||||
question: `آیا برای تولهها و سگهای باردار یا شیرده قابل استفاده است؟`,
|
||||
answer: `بله، با توجه به فرمولاسیون طبیعی و عدم وجود هورمون یا مواد شیمیایی سنگین، استفاده از این محصول برای تمامی ردههای سنی (تولهها، سگهای بالغ و مسن) و دوران حساس بارداری و شیردهی طبق دستورالعمل ایمن است.`
|
||||
}
|
||||
];
|
||||
|
||||
if (productFaqs.length > 0) {
|
||||
graphEntities.push({
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'FAQPage',
|
||||
mainEntity: productFaqs.map(f => ({
|
||||
'@type': 'Question',
|
||||
name: f.question,
|
||||
acceptedAnswer: {
|
||||
'@type': 'Answer',
|
||||
text: f.answer
|
||||
}
|
||||
}))
|
||||
});
|
||||
if (productFaqs.length > 0) {
|
||||
graphEntities.push({
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'FAQPage',
|
||||
mainEntity: productFaqs.map(f => ({
|
||||
'@type': 'Question',
|
||||
name: f.question,
|
||||
acceptedAnswer: {
|
||||
'@type': 'Answer',
|
||||
text: f.answer
|
||||
}
|
||||
}))
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// 2. AudioObject Schema for AI Podcast
|
||||
|
||||
@@ -688,32 +688,30 @@ export default function ProductPage({ productSlug }: { productSlug: string }) {
|
||||
)}
|
||||
|
||||
{/* Above-the-fold Fast Decision Highlights (CRO) */}
|
||||
<div className="w-full grid grid-cols-1 sm:grid-cols-2 gap-2 sm:gap-2.5 pt-2">
|
||||
<div className="flex items-center gap-2.5 p-2.5 sm:p-3 rounded-2xl bg-white border border-medical-gray-200/80 shadow-2xs text-right">
|
||||
<div className="w-6 h-6 rounded-lg bg-emerald-50 text-emerald-600 flex items-center justify-center shrink-0">
|
||||
<CheckCircle2 className="w-4 h-4" />
|
||||
{(() => {
|
||||
const defaultHighlights = [
|
||||
"۱۰۰٪ فرمولاسیون طبیعی و بدون نگهدارنده مضر",
|
||||
"ایمن و بدون سمیت در صورت لیسیدن محدود",
|
||||
"گرید دارویی و استاندارد صنعتی آلمان (GMP)",
|
||||
fullProduct.lifeStage || "مناسب تمام سنین و دوران بارداری و شیردهی"
|
||||
];
|
||||
const highlights = (fullProduct.keyHighlights && Array.isArray(fullProduct.keyHighlights) && fullProduct.keyHighlights.length > 0)
|
||||
? fullProduct.keyHighlights
|
||||
: defaultHighlights;
|
||||
|
||||
return (
|
||||
<div className="w-full grid grid-cols-1 sm:grid-cols-2 gap-2 sm:gap-2.5 pt-2">
|
||||
{highlights.map((hl, idx) => (
|
||||
<div key={idx} className="flex items-center gap-2.5 p-2.5 sm:p-3 rounded-2xl bg-white border border-medical-gray-200/80 shadow-2xs text-right">
|
||||
<div className="w-6 h-6 rounded-lg bg-emerald-50 text-emerald-600 flex items-center justify-center shrink-0">
|
||||
<CheckCircle2 className="w-4 h-4" />
|
||||
</div>
|
||||
<span className="text-xs font-black text-medical-gray-800 font-vazir">{hl}</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
<span className="text-xs font-black text-medical-gray-800 font-vazir">۱۰۰٪ فرمولاسیون طبیعی و بدون نگهدارنده مضر</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-2.5 p-2.5 sm:p-3 rounded-2xl bg-white border border-medical-gray-200/80 shadow-2xs text-right">
|
||||
<div className="w-6 h-6 rounded-lg bg-emerald-50 text-emerald-600 flex items-center justify-center shrink-0">
|
||||
<CheckCircle2 className="w-4 h-4" />
|
||||
</div>
|
||||
<span className="text-xs font-black text-medical-gray-800 font-vazir">ایمن و بدون سمیت در صورت لیسیدن محدود</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-2.5 p-2.5 sm:p-3 rounded-2xl bg-white border border-medical-gray-200/80 shadow-2xs text-right">
|
||||
<div className="w-6 h-6 rounded-lg bg-emerald-50 text-emerald-600 flex items-center justify-center shrink-0">
|
||||
<CheckCircle2 className="w-4 h-4" />
|
||||
</div>
|
||||
<span className="text-xs font-black text-medical-gray-800 font-vazir">گرید دارویی و استاندارد صنعتی آلمان (GMP)</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-2.5 p-2.5 sm:p-3 rounded-2xl bg-white border border-medical-gray-200/80 shadow-2xs text-right">
|
||||
<div className="w-6 h-6 rounded-lg bg-emerald-50 text-emerald-600 flex items-center justify-center shrink-0">
|
||||
<CheckCircle2 className="w-4 h-4" />
|
||||
</div>
|
||||
<span className="text-xs font-black text-medical-gray-800 font-vazir">مناسب تمام سنین و دوران بارداری و شیردهی</span>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
})()}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1052,10 +1050,10 @@ export default function ProductPage({ productSlug }: { productSlug: string }) {
|
||||
<div>
|
||||
<h5 className="text-xs font-black text-medical-gray-900 mb-1">شرایط نگهداری و ماندگاری (PAO)</h5>
|
||||
<p className="text-[11px] text-medical-gray-500 font-bold leading-normal mb-1">
|
||||
{product.storage || "در جای خشک، خنک (دمای زیر ۲۵ درجه سانتیگراد) و دور از تابش مستقیم نور خورشید نگهداری شود."}
|
||||
{product.storageInfo || product.storage || "در جای خشک، خنک (دمای زیر ۲۵ درجه سانتیگراد) و دور از تابش مستقیم نور خورشید نگهداری شود."}
|
||||
</p>
|
||||
<span className="inline-flex items-center gap-1 text-[10px] font-black text-canina-blue bg-canina-blue/10 px-2 py-0.5 rounded-full">
|
||||
⏳ ماندگاری پس از باز شدن درب (PAO): ۱۲ ماه
|
||||
⏳ ماندگاری پس از باز شدن درب (PAO): {product.paoMonths ? `${product.paoMonths} ماه` : '۱۲ ماه'}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1065,7 +1063,7 @@ export default function ProductPage({ productSlug }: { productSlug: string }) {
|
||||
<div>
|
||||
<h5 className="text-xs font-black text-amber-900 mb-1">تداخلات و نکات احتیاطی (Precautions)</h5>
|
||||
<p className="text-[11px] text-amber-800 font-bold leading-normal mb-1">
|
||||
{product.contraindications?.join(" • ") || "دور از دسترس کودکان نگهداری شود. پس از هربار مصرف درب محصول را محکم ببندید."}
|
||||
{product.precautions || product.contraindications?.join(" • ") || "دور از دسترس کودکان نگهداری شود. پس از هربار مصرف درب محصول را محکم ببندید."}
|
||||
</p>
|
||||
<p className="text-[10px] text-amber-700 font-bold">
|
||||
⚠️ در صورت مصرف همزمان با سایر پمادها/اسپریهای درمانی، حداقل ۲۰ دقیقه فاصله زمانی رعایت شود.
|
||||
@@ -1212,14 +1210,16 @@ export default function ProductPage({ productSlug }: { productSlug: string }) {
|
||||
|
||||
{/* FAQ Section */}
|
||||
{(() => {
|
||||
const displayFaqs = (product.faqs && product.faqs.length > 0) ? product.faqs : [
|
||||
if (product.showFaqs === false) return null;
|
||||
|
||||
const defaultFaqs = [
|
||||
{
|
||||
question: `آیا لیسیدن ${product.nameFa || product.name} توسط حیوان خطرناک است؟`,
|
||||
answer: `خیر، ترکیبات این محصول با استانداردهای دارویی آلمان فرموله شده و فاقد مواد نگهدارنده شیمیایی مضر است. لیسیدن محدود آن باعث مسمومیت نمیشود؛ اما جهت اثربخشی و جذب حداکثری، پیشنهاد میشود ۱۰ تا ۱۵ دقیقه حواس حیوان پرت شود یا از پاپوش/محافظ استفاده گردد.`
|
||||
},
|
||||
{
|
||||
question: `مدت زمان ماندگاری و شرایط نگهداری ${product.nameFa || product.name} چگونه است؟`,
|
||||
answer: `این محصول در جای خشک، خنک (دمای زیر ۲۵ درجه سانتیگراد) و دور از تابش مستقیم نور خورشید نگهداری شود. مدت زمان مجاز مصرف پس از باز شدن درب (PAO) ۱۲ ماه میباشد.`
|
||||
answer: `این محصول در جای خشک، خنک (دمای زیر ۲۵ درجه سانتیگراد) و دور از تابش مستقیم نور خورشید نگهداری شود. مدت زمان مجاز مصرف پس از باز شدن درب (PAO) ${product.paoMonths ? `${product.paoMonths} ماه` : '۱۲ ماه'} میباشد.`
|
||||
},
|
||||
{
|
||||
question: `آیا برای تولهها و سگهای باردار یا شیرده قابل استفاده است؟`,
|
||||
@@ -1231,6 +1231,10 @@ export default function ProductPage({ productSlug }: { productSlug: string }) {
|
||||
}
|
||||
];
|
||||
|
||||
const displayFaqs = (product.faqs && Array.isArray(product.faqs) && product.faqs.length > 0)
|
||||
? product.faqs
|
||||
: defaultFaqs;
|
||||
|
||||
return (
|
||||
<section className="pt-10">
|
||||
<div className="flex items-center gap-4 mb-8">
|
||||
|
||||
@@ -94,6 +94,13 @@ export interface Product {
|
||||
}>;
|
||||
relatedProducts?: string[];
|
||||
faqs?: FAQ[];
|
||||
showFaqs?: boolean;
|
||||
paoMonths?: number | string;
|
||||
storageInfo?: string;
|
||||
precautions?: string;
|
||||
lifeStage?: string;
|
||||
keyHighlights?: string[];
|
||||
dosageConfig?: Record<string, any>;
|
||||
}
|
||||
|
||||
export const INGREDIENTS_WIKI: IngredientInfo[] = [
|
||||
|
||||
@@ -37,6 +37,8 @@ interface BackendProduct {
|
||||
onSetOfAction?: string;
|
||||
optimisticTemplate?: string;
|
||||
feedingAdvice?: string;
|
||||
dosageConfig?: Record<string, any>;
|
||||
faqs?: Array<{ question: string; answer: string }>;
|
||||
slug?: string;
|
||||
imageUrl?: string;
|
||||
image?: string;
|
||||
@@ -130,11 +132,21 @@ export class ProductService {
|
||||
benefits: data.benefits || '',
|
||||
suitableFor: (data.suitableFor as PetType) || 'سگ',
|
||||
requiresRx: Boolean(data.requiresRx),
|
||||
storage: data.storage,
|
||||
storage: (data.dosageConfig as Record<string, any>)?.storageInfo || data.storage,
|
||||
specialBadge: data.specialBadge,
|
||||
onSetOfAction: data.onSetOfAction,
|
||||
optimisticTemplate: data.optimisticTemplate,
|
||||
feedingAdvice: data.dosageLogic || data.feedingAdvice || '',
|
||||
feedingAdvice: (data.dosageConfig as Record<string, any>)?.feedingAdvice || data.dosageLogic || data.feedingAdvice || '',
|
||||
showFaqs: (data.dosageConfig as Record<string, any>)?.showFaqs !== undefined ? Boolean((data.dosageConfig as Record<string, any>).showFaqs) : true,
|
||||
faqs: (data.dosageConfig as Record<string, any>)?.faqs && Array.isArray((data.dosageConfig as Record<string, any>).faqs) && (data.dosageConfig as Record<string, any>).faqs.length > 0
|
||||
? (data.dosageConfig as Record<string, any>).faqs
|
||||
: (local?.faqs || []),
|
||||
paoMonths: (data.dosageConfig as Record<string, any>)?.paoMonths || undefined,
|
||||
storageInfo: (data.dosageConfig as Record<string, any>)?.storageInfo || data.storage || undefined,
|
||||
precautions: (data.dosageConfig as Record<string, any>)?.precautions || undefined,
|
||||
lifeStage: (data.dosageConfig as Record<string, any>)?.lifeStage || undefined,
|
||||
keyHighlights: (data.dosageConfig as Record<string, any>)?.keyHighlights || undefined,
|
||||
dosageConfig: (data.dosageConfig as Record<string, any>) || undefined,
|
||||
slug: data.slug,
|
||||
image: (() => {
|
||||
if (!data.imageUrl) return local?.image || '/assets/images/hero-section-image.png';
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"1": "app.module.ts",
|
||||
"2": "AdminTransactionFilterDto",
|
||||
"3": "productService.ts",
|
||||
"4": "api",
|
||||
"4": "PetProfile.tsx",
|
||||
"5": "CmsController",
|
||||
"6": "TicketsService",
|
||||
"7": "SmsSettingsPage.tsx",
|
||||
@@ -13,7 +13,7 @@
|
||||
"11": "WikiController",
|
||||
"12": "index.ts",
|
||||
"13": "app-audit-verification.e2e-spec.js",
|
||||
"14": "UserDashboard.tsx",
|
||||
"14": "toPersian",
|
||||
"15": "src/services/api.ts",
|
||||
"16": "DoctorQueryDto",
|
||||
"17": "schema.ts",
|
||||
@@ -57,7 +57,7 @@
|
||||
"55": "UITexts.tsx",
|
||||
"56": "Orders.tsx",
|
||||
"57": "Role & Core Objective",
|
||||
"58": "components/Skeleton.tsx",
|
||||
"58": "UserDashboard.tsx",
|
||||
"59": "compilerOptions",
|
||||
"60": "CreateUserDto",
|
||||
"61": "ProductPage.tsx",
|
||||
@@ -89,10 +89,10 @@
|
||||
"87": "dependencies",
|
||||
"88": "payment.controller.ts",
|
||||
"89": "seed-products.ts",
|
||||
"90": "useCartStore",
|
||||
"90": "OrderService",
|
||||
"91": "Reconciled Audit Roles & Assignments",
|
||||
"92": "OrdersService",
|
||||
"93": "HomeClient.tsx",
|
||||
"93": "ArchivePage.tsx",
|
||||
"94": "Phase 3.1 — Human Review Preparation and Master Backlog Critique",
|
||||
"95": "wiki/[slug]/page.tsx",
|
||||
"96": "compilerOptions",
|
||||
@@ -121,13 +121,13 @@
|
||||
"119": "compilerOptions",
|
||||
"120": "compilerOptions",
|
||||
"121": "backend/README.md",
|
||||
"122": "AdminService",
|
||||
"122": "AdminController",
|
||||
"123": "UsersService",
|
||||
"124": "Repository Map",
|
||||
"125": "validate_integrity.js",
|
||||
"126": "admin-panel/package.json",
|
||||
"127": "Sahel-Font",
|
||||
"128": "ProductDto",
|
||||
"128": "AdminService",
|
||||
"129": "Reports.tsx",
|
||||
"130": "Sahel-Font",
|
||||
"131": "Role & Core Objective",
|
||||
@@ -144,13 +144,13 @@
|
||||
"142": "start-dev.js",
|
||||
"143": "generate-openapi.js",
|
||||
"144": "SafeImage.tsx",
|
||||
"145": "RouteErrorBoundary",
|
||||
"145": "ConfirmModal.tsx",
|
||||
"146": "System Discovery",
|
||||
"147": "HomeController",
|
||||
"148": "track/page.tsx",
|
||||
"149": "trust-seals/page.tsx",
|
||||
"150": "Product Requirement Document (PRD)",
|
||||
"151": "Body",
|
||||
"151": "AuthService",
|
||||
"152": "auth.service.ts",
|
||||
"153": "exclude",
|
||||
"154": "Baseline Command Plan & Reconciled Command History",
|
||||
@@ -184,7 +184,7 @@
|
||||
"182": "🎨 Frontend & Admin Panel Technical Review (06_dev_frontend)",
|
||||
"183": "🚀 SEO & Content Strategy Review (12_seo_content)",
|
||||
"184": "MetricsController",
|
||||
"185": "eslint-config-prettier",
|
||||
"185": "eslint",
|
||||
"186": "seed-ui-texts.ts",
|
||||
"187": "seed-wiki.ts",
|
||||
"188": "update-blog.dto.ts",
|
||||
@@ -196,8 +196,8 @@
|
||||
"194": "Raw Finding Verification & Disposition Report",
|
||||
"195": "React + TypeScript + Vite",
|
||||
"196": "Select.tsx",
|
||||
"197": "lib/services/api.ts",
|
||||
"198": "Reviews.tsx",
|
||||
"197": "userStore.ts",
|
||||
"198": "@tailwindcss/postcss",
|
||||
"199": "SmsLogQueryDto",
|
||||
"200": "application/README.md",
|
||||
"201": "deploy.sh",
|
||||
@@ -293,7 +293,6 @@
|
||||
"292": "Production Docker Compose",
|
||||
"293": "Staging Docker Compose",
|
||||
"294": "ZibalService",
|
||||
"295": "eslint-config-next",
|
||||
"297": "ZibalEBankService",
|
||||
"298": ".initiateOrderPayment",
|
||||
"299": "@tailwindcss/postcss",
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"0": "b0118f68a3e7f0ad", "1": "e4046ac869c06e2a", "2": "5404a2dafca5cc88", "3": "c23fe3cd2539e302", "4": "8c31442093ce08d9", "5": "5c838bbe8b11b72d", "6": "485f4eebcc9ce0a0", "7": "39d16c91943d85e4", "8": "fcefadc85619aeb4", "9": "5755748a15e41acd", "10": "9fd3e3fe63f8508d", "11": "6e67e4bc78994a71", "12": "0f987d4c17ae1a5e", "13": "85d482ba1c55c7df", "14": "1293833acf2863cd", "15": "8215e9152a059d32", "16": "bbaf7539ddd300b0", "17": "690dc63010f5642d", "18": "9b2edf03220036ad", "19": "94f61b306b735eaf", "20": "b8abf3d4ac15fc65", "21": "348a157457fdbd8e", "22": "7197798a32778fd4", "23": "b64d81a71800bd4b", "24": "4eda46a5b0695ef6", "25": "90b79d6027d60d30", "26": "6bd6f2633370820c", "27": "7664e56213a29331", "28": "942c4f9928c60a45", "29": "0614b98d9013b5f5", "30": "53ff49b3d54f0fba", "31": "2153ddcd7477dfb7", "32": "57d253df3e52fe5b", "33": "f6363d5030c40f8a", "34": "e89579446dcd5c0b", "35": "9b99d0f0877d6f8e", "36": "b73994254301dd0e", "37": "1c9a1f4c72613346", "38": "58fe18c423dae025", "39": "f38c905c9af9edc0", "40": "2078e6143c52e5cc", "41": "7abb5bc6a0e4f65f", "42": "e6a9e884d8c67c3c", "43": "7478d6755ca2248a", "44": "b4c82af1f2f566f7", "45": "7dd5c61562c827a8", "46": "bf5a253cc5340107", "47": "65e41c1c22dcd058", "48": "4c613615c4fd913d", "49": "841013681f4e6e8c", "50": "14f7a9ad3f077af0", "51": "f72c06a6893d6e7d", "52": "cbd16be3d8438cc9", "53": "cb17af4eb831480f", "54": "11d8babec70bc593", "55": "29ebd59bd1656ccc", "56": "fd66604fe6af00d0", "57": "0f62727f3b4907c0", "58": "800f5fcfebc515bf", "59": "7369e85febb97f1a", "60": "c6c447509b3d2e2d", "61": "4fd59b99c61ba2bc", "62": "34353a95a4a894bc", "63": "2b0ee366d6136717", "64": "3b9521f7d7986eaa", "65": "7c8879ab4d4b8fd8", "66": "9e3f473a182524cb", "67": "7ffd1e65abbcb4a5", "68": "416613e8b816b37e", "69": "31a5a53f1fe77e46", "70": "01d4f9d6d9f3b08a", "71": "f8074a6ed2fe0f74", "72": "69d0f8b228227690", "73": "22456307ff273d80", "74": "052b406dd604a774", "75": "ca4d94b36734b0d0", "76": "2646e1b475b959d2", "77": "62430df45afa65b5", "78": "0273bbf045eb1528", "79": "ba7bc17581366c9a", "80": "0727bb53199085fc", "81": "91393683c97d1773", "82": "36d253e9d0d7547b", "83": "71d2ce6fb684bc0e", "84": "70497658d0e0cea6", "85": "46fdda0ed14ffed5", "86": "e3d13e2060945d3f", "87": "59fc058419aa2d03", "88": "59123834c779a243", "89": "656f816eb51f2ab1", "90": "c2ebc58f30566be7", "91": "25a6695f5783d2be", "92": "f75e20ed3498bb17", "93": "2f4dffdc53819efe", "94": "f7a706f5fcb260c3", "95": "cc4a1f718f64a4f5", "96": "3fef84a1b6832b0b", "97": "b494882769fccb9f", "98": "5bbc8944b2ba2d8f", "99": "9531a7faa4f8e585", "100": "3c1d9844d072bd2a", "101": "b3c5433df880f335", "102": "e036dbd1de0f8b38", "103": "ac7cb5ec7d5c0802", "104": "cb4d9aff34fa7615", "105": "622f83f2eb300a25", "106": "d5634cade0881f01", "107": "aebd7f40b03c71be", "108": "d22ca660bfec069b", "109": "6d16ccde1291c9d4", "110": "d228746e85ead3af", "111": "b55ba9125ffb5729", "112": "5f50a360f18a880b", "113": "cbb795872ce2b286", "114": "c6b57d78299a27b3", "115": "431370e69d5e5e6e", "116": "db70db08c00162df", "117": "9a1080686fc7c39b", "118": "77fd76193df9f573", "119": "28355f848c862b6e", "120": "25f77f5455bdc96a", "121": "9141a0ede9461fd5", "122": "dd12c9a60b04383f", "123": "bf252d1de653edb8", "124": "3ceda88239910d9a", "125": "9409b3b8a334f51d", "126": "ac95a9f152e3d1c4", "127": "a7299f20633c0236", "128": "94a621126f7ba89f", "129": "989c014f76b74793", "130": "7f405315686459b9", "131": "44c7924c829cc215", "132": "17ecb7325285cf7a", "133": "4487fd85ddc13c93", "134": "73382a9ef9d08673", "135": "c4abf0eb38ef740d", "136": "07d37aeefbe50e21", "137": "70b58e32c2890fdd", "138": "f2c7afb0c277c4b7", "139": "3ae63656c43c37a7", "140": "167643bcbbc26244", "141": "dcffd9ad7a1f7df6", "142": "f47469d48b3776b5", "143": "1b0ef1cf87b53de3", "144": "5659330d1d862495", "145": "ed938bf48ae6ca6c", "146": "c7ddffce8605b65b", "147": "4ece6985263357c4", "148": "2b8d338593a71266", "149": "f6f85b389abb3f1e", "150": "5910eeefe2f97a20", "151": "1cd8ce60290be4cb", "152": "577eb25975a74356", "153": "6cfdd09a6fdd9ff9", "154": "66efafa1e86d8081", "155": "562a328c3cebc9b1", "156": "4a8bdc6821207fa3", "157": "dd5f624dc488c627", "158": "e2d92a42663cd9e5", "159": "a2fe690317aef2ee", "160": "e30004421d79ffeb", "161": "cd66a5f43cd3407d", "162": "fa2d7dcf52348095", "163": "75efc6457f7fce22", "164": "8375a4fbf0573a52", "165": "edb079558c6f3d59", "166": "1d80b74f885d6716", "167": "3cd15de82f23093a", "168": "7a77349497fcdf37", "169": "85cd9ca1246dc437", "170": "3e93071fc4a80e95", "171": "6114ccb7b9036e33", "172": "f3d92800d756dd79", "173": "2aa85a497fd142d7", "174": "35d3a2679371e9a4", "175": "b8f35a499b36a57a", "176": "0d44525833f54b67", "177": "0dd5439f11354ec2", "178": "4a0995c91344bedb", "179": "6ddbf62ac93920e1", "180": "4ac5f9965007617d", "181": "cff999497d56b512", "182": "06b38ffa6f58195d", "183": "ee705c178d6958bb", "184": "038915bd030e573c", "185": "f6ddba6f531d6b96", "186": "867babdd40f0c3fc", "187": "298144d1548a7dee", "188": "00d275127a7e435e", "189"Line truncated
|
||||
{"0": "b0118f68a3e7f0ad", "1": "e4046ac869c06e2a", "2": "5404a2dafca5cc88", "3": "0beaf63b7d26a8ab", "4": "e27aa52fbca9430b", "5": "5c838bbe8b11b72d", "6": "485f4eebcc9ce0a0", "7": "39d16c91943d85e4", "8": "fcefadc85619aeb4", "9": "2ef136da6eb5ea16", "10": "9fd3e3fe63f8508d", "11": "6e67e4bc78994a71", "12": "0f987d4c17ae1a5e", "13": "85d482ba1c55c7df", "14": "7b056c44573ed6a4", "15": "277972da7c33bee5", "16": "bbaf7539ddd300b0", "17": "690dc63010f5642d", "18": "9b2edf03220036ad", "19": "94e93941c260184b", "20": "b8abf3d4ac15fc65", "21": "348a157457fdbd8e", "22": "22c17628c0a226f1", "23": "b64d81a71800bd4b", "24": "4eda46a5b0695ef6", "25": "90b79d6027d60d30", "26": "6bd6f2633370820c", "27": "7664e56213a29331", "28": "942c4f9928c60a45", "29": "0614b98d9013b5f5", "30": "53ff49b3d54f0fba", "31": "2153ddcd7477dfb7", "32": "c88f00b47aecaf15", "33": "f6363d5030c40f8a", "34": "e89579446dcd5c0b", "35": "9b99d0f0877d6f8e", "36": "b73994254301dd0e", "37": "1c9a1f4c72613346", "38": "58fe18c423dae025", "39": "f38c905c9af9edc0", "40": "2078e6143c52e5cc", "41": "7abb5bc6a0e4f65f", "42": "e6a9e884d8c67c3c", "43": "7478d6755ca2248a", "44": "b4c82af1f2f566f7", "45": "7dd5c61562c827a8", "46": "bf5a253cc5340107", "47": "65e41c1c22dcd058", "48": "4c613615c4fd913d", "49": "841013681f4e6e8c", "50": "6310102a388e24e9", "51": "82d9dd470c2d36a0", "52": "cbd16be3d8438cc9", "53": "cb17af4eb831480f", "54": "4f876a49066a6109", "55": "29ebd59bd1656ccc", "56": "fd66604fe6af00d0", "57": "0f62727f3b4907c0", "58": "e677a556052a0070", "59": "7369e85febb97f1a", "60": "a1f1ec6c76743b8f", "61": "a590ea18496f2f23", "62": "34353a95a4a894bc", "63": "2b0ee366d6136717", "64": "3b9521f7d7986eaa", "65": "c37a2ff1611860d4", "66": "39efa3955309f491", "67": "7ffd1e65abbcb4a5", "68": "7cbde011ea9b40e4", "69": "31a5a53f1fe77e46", "70": "01d4f9d6d9f3b08a", "71": "f8074a6ed2fe0f74", "72": "69d0f8b228227690", "73": "22456307ff273d80", "74": "052b406dd604a774", "75": "ca4d94b36734b0d0", "76": "2646e1b475b959d2", "77": "62430df45afa65b5", "78": "0273bbf045eb1528", "79": "ba7bc17581366c9a", "80": "0727bb53199085fc", "81": "91393683c97d1773", "82": "36d253e9d0d7547b", "83": "71d2ce6fb684bc0e", "84": "70497658d0e0cea6", "85": "46fdda0ed14ffed5", "86": "e3d13e2060945d3f", "87": "59fc058419aa2d03", "88": "59123834c779a243", "89": "656f816eb51f2ab1", "90": "81c4329d470b7826", "91": "25a6695f5783d2be", "92": "f75e20ed3498bb17", "93": "3f9800119f707469", "94": "f7a706f5fcb260c3", "95": "cc4a1f718f64a4f5", "96": "3fef84a1b6832b0b", "97": "b494882769fccb9f", "98": "5bbc8944b2ba2d8f", "99": "9531a7faa4f8e585", "100": "3c1d9844d072bd2a", "101": "b3c5433df880f335", "102": "e036dbd1de0f8b38", "103": "ac7cb5ec7d5c0802", "104": "c9ebbbfac60d175b", "105": "622f83f2eb300a25", "106": "d5634cade0881f01", "107": "aebd7f40b03c71be", "108": "d22ca660bfec069b", "109": "6d16ccde1291c9d4", "110": "d228746e85ead3af", "111": "b55ba9125ffb5729", "112": "5f50a360f18a880b", "113": "cbb795872ce2b286", "114": "c6b57d78299a27b3", "115": "fe5d64fbdd78e1dc", "116": "db70db08c00162df", "117": "9a1080686fc7c39b", "118": "77fd76193df9f573", "119": "28355f848c862b6e", "120": "25f77f5455bdc96a", "121": "9141a0ede9461fd5", "122": "f2f5b22d765f0b2d", "123": "bf252d1de653edb8", "124": "3ceda88239910d9a", "125": "9409b3b8a334f51d", "126": "ac95a9f152e3d1c4", "127": "a7299f20633c0236", "128": "19b11cd45854709c", "129": "989c014f76b74793", "130": "7f405315686459b9", "131": "44c7924c829cc215", "132": "17ecb7325285cf7a", "133": "4487fd85ddc13c93", "134": "73382a9ef9d08673", "135": "c4abf0eb38ef740d", "136": "07d37aeefbe50e21", "137": "70b58e32c2890fdd", "138": "f2c7afb0c277c4b7", "139": "3ae63656c43c37a7", "140": "167643bcbbc26244", "141": "dcffd9ad7a1f7df6", "142": "f47469d48b3776b5", "143": "1b0ef1cf87b53de3", "144": "e3be70d9ac9dc597", "145": "20b9b49e75badf1a", "146": "c7ddffce8605b65b", "147": "4ece6985263357c4", "148": "2b8d338593a71266", "149": "f6f85b389abb3f1e", "150": "5910eeefe2f97a20", "151": "54decf0dc3db231e", "152": "577eb25975a74356", "153": "6cfdd09a6fdd9ff9", "154": "66efafa1e86d8081", "155": "562a328c3cebc9b1", "156": "4a8bdc6821207fa3", "157": "dd5f624dc488c627", "158": "e2d92a42663cd9e5", "159": "a2fe690317aef2ee", "160": "e30004421d79ffeb", "161": "cd66a5f43cd3407d", "162": "fa2d7dcf52348095", "163": "75efc6457f7fce22", "164": "8375a4fbf0573a52", "165": "edb079558c6f3d59", "166": "1d80b74f885d6716", "167": "3cd15de82f23093a", "168": "7a77349497fcdf37", "169": "85cd9ca1246dc437", "170": "3e93071fc4a80e95", "171": "6114ccb7b9036e33", "172": "f3d92800d756dd79", "173": "2aa85a497fd142d7", "174": "35d3a2679371e9a4", "175": "b8f35a499b36a57a", "176": "0d44525833f54b67", "177": "0dd5439f11354ec2", "178": "4a0995c91344bedb", "179": "6ddbf62ac93920e1", "180": "4ac5f9965007617d", "181": "cff999497d56b512", "182": "06b38ffa6f58195d", "183": "ee705c178d6958bb", "184": "038915bd030e573c", "185": "70e62553403661a3", "186": "867babdd40f0c3fc", "187": "298144d1548a7dee", "188": "00d275127a7e435e", "189"Line truncated
|
||||
@@ -3,7 +3,7 @@
|
||||
"1": "app.module.ts",
|
||||
"2": "AdminTransactionFilterDto",
|
||||
"3": "productService.ts",
|
||||
"4": "PetProfile.tsx",
|
||||
"4": "api",
|
||||
"5": "CmsController",
|
||||
"6": "TicketsService",
|
||||
"7": "SmsSettingsPage.tsx",
|
||||
@@ -13,7 +13,7 @@
|
||||
"11": "WikiController",
|
||||
"12": "index.ts",
|
||||
"13": "app-audit-verification.e2e-spec.js",
|
||||
"14": "toPersian",
|
||||
"14": "UserDashboard.tsx",
|
||||
"15": "src/services/api.ts",
|
||||
"16": "DoctorQueryDto",
|
||||
"17": "schema.ts",
|
||||
@@ -57,7 +57,7 @@
|
||||
"55": "UITexts.tsx",
|
||||
"56": "Orders.tsx",
|
||||
"57": "Role & Core Objective",
|
||||
"58": "UserDashboard.tsx",
|
||||
"58": "components/Skeleton.tsx",
|
||||
"59": "compilerOptions",
|
||||
"60": "CreateUserDto",
|
||||
"61": "ProductPage.tsx",
|
||||
@@ -89,10 +89,10 @@
|
||||
"87": "dependencies",
|
||||
"88": "payment.controller.ts",
|
||||
"89": "seed-products.ts",
|
||||
"90": "OrderService",
|
||||
"90": "useCartStore",
|
||||
"91": "Reconciled Audit Roles & Assignments",
|
||||
"92": "OrdersService",
|
||||
"93": "ArchivePage.tsx",
|
||||
"93": "HomeClient.tsx",
|
||||
"94": "Phase 3.1 — Human Review Preparation and Master Backlog Critique",
|
||||
"95": "wiki/[slug]/page.tsx",
|
||||
"96": "compilerOptions",
|
||||
@@ -121,13 +121,13 @@
|
||||
"119": "compilerOptions",
|
||||
"120": "compilerOptions",
|
||||
"121": "backend/README.md",
|
||||
"122": "AdminController",
|
||||
"122": "AdminService",
|
||||
"123": "UsersService",
|
||||
"124": "Repository Map",
|
||||
"125": "validate_integrity.js",
|
||||
"126": "admin-panel/package.json",
|
||||
"127": "Sahel-Font",
|
||||
"128": "AdminService",
|
||||
"128": "ProductDto",
|
||||
"129": "Reports.tsx",
|
||||
"130": "Sahel-Font",
|
||||
"131": "Role & Core Objective",
|
||||
@@ -150,7 +150,7 @@
|
||||
"148": "track/page.tsx",
|
||||
"149": "trust-seals/page.tsx",
|
||||
"150": "Product Requirement Document (PRD)",
|
||||
"151": "AuthService",
|
||||
"151": "Body",
|
||||
"152": "auth.service.ts",
|
||||
"153": "exclude",
|
||||
"154": "Baseline Command Plan & Reconciled Command History",
|
||||
@@ -196,7 +196,7 @@
|
||||
"194": "Raw Finding Verification & Disposition Report",
|
||||
"195": "React + TypeScript + Vite",
|
||||
"196": "Select.tsx",
|
||||
"197": "userStore.ts",
|
||||
"197": "lib/services/api.ts",
|
||||
"198": "Reviews.tsx",
|
||||
"199": "SmsLogQueryDto",
|
||||
"200": "application/README.md",
|
||||
@@ -232,6 +232,7 @@
|
||||
"230": "instructions.md",
|
||||
"231": "@nestjs/schematics",
|
||||
"232": "prisma",
|
||||
"233": "tailwindcss",
|
||||
"234": "source-map-support",
|
||||
"235": "ts-loader",
|
||||
"236": "ts-node",
|
||||
@@ -293,7 +294,6 @@
|
||||
"293": "Staging Docker Compose",
|
||||
"294": "ZibalService",
|
||||
"295": "eslint-config-next",
|
||||
"296": "@tailwindcss/postcss",
|
||||
"297": "ZibalEBankService",
|
||||
"298": ".initiateOrderPayment",
|
||||
"299": "@tailwindcss/postcss",
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
# Graph Report - canina (2026-09-02)
|
||||
|
||||
## Corpus Check
|
||||
- 599 files · ~1,079,429 words
|
||||
- 599 files · ~1,079,434 words
|
||||
- Verdict: corpus is large enough that graph structure adds value.
|
||||
|
||||
## Summary
|
||||
- 4208 nodes · 7642 edges · 312 communities (211 shown, 101 thin omitted)
|
||||
- 4208 nodes · 7642 edges · 312 communities (214 shown, 98 thin omitted)
|
||||
- Extraction: 96% EXTRACTED · 4% INFERRED · 0% AMBIGUOUS · INFERRED: 288 edges (avg confidence: 0.79)
|
||||
- Token cost: 0 input · 0 output
|
||||
|
||||
## Graph Freshness
|
||||
- Built from commit: `3cbcad7b`
|
||||
- Built from commit: `6fa1f2c9`
|
||||
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
|
||||
- Run `graphify update .` after code changes (no API cost).
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
- app.module.ts
|
||||
- AdminTransactionFilterDto
|
||||
- productService.ts
|
||||
- PetProfile.tsx
|
||||
- api
|
||||
- CmsController
|
||||
- TicketsService
|
||||
- SmsSettingsPage.tsx
|
||||
@@ -29,7 +29,7 @@
|
||||
- WikiController
|
||||
- index.ts
|
||||
- app-audit-verification.e2e-spec.js
|
||||
- toPersian
|
||||
- UserDashboard.tsx
|
||||
- src/services/api.ts
|
||||
- DoctorQueryDto
|
||||
- schema.ts
|
||||
@@ -72,7 +72,7 @@
|
||||
- UITexts.tsx
|
||||
- Orders.tsx
|
||||
- Role & Core Objective
|
||||
- UserDashboard.tsx
|
||||
- components/Skeleton.tsx
|
||||
- compilerOptions
|
||||
- CreateUserDto
|
||||
- ProductPage.tsx
|
||||
@@ -104,10 +104,10 @@
|
||||
- dependencies
|
||||
- payment.controller.ts
|
||||
- seed-products.ts
|
||||
- OrderService
|
||||
- useCartStore
|
||||
- Reconciled Audit Roles & Assignments
|
||||
- OrdersService
|
||||
- ArchivePage.tsx
|
||||
- HomeClient.tsx
|
||||
- Phase 3.1 — Human Review Preparation and Master Backlog Critique
|
||||
- wiki/[slug]/page.tsx
|
||||
- compilerOptions
|
||||
@@ -136,13 +136,13 @@
|
||||
- compilerOptions
|
||||
- compilerOptions
|
||||
- backend/README.md
|
||||
- AdminController
|
||||
- AdminService
|
||||
- UsersService
|
||||
- Repository Map
|
||||
- validate_integrity.js
|
||||
- admin-panel/package.json
|
||||
- Sahel-Font
|
||||
- AdminService
|
||||
- ProductDto
|
||||
- Reports.tsx
|
||||
- Sahel-Font
|
||||
- Role & Core Objective
|
||||
@@ -165,7 +165,7 @@
|
||||
- track/page.tsx
|
||||
- trust-seals/page.tsx
|
||||
- Product Requirement Document (PRD)
|
||||
- AuthService
|
||||
- Body
|
||||
- auth.service.ts
|
||||
- exclude
|
||||
- Baseline Command Plan & Reconciled Command History
|
||||
@@ -210,7 +210,7 @@
|
||||
- Raw Finding Verification & Disposition Report
|
||||
- React + TypeScript + Vite
|
||||
- Select.tsx
|
||||
- userStore.ts
|
||||
- lib/services/api.ts
|
||||
- Reviews.tsx
|
||||
- SmsLogQueryDto
|
||||
- application/README.md
|
||||
@@ -246,6 +246,7 @@
|
||||
- instructions.md
|
||||
- @nestjs/schematics
|
||||
- prisma
|
||||
- tailwindcss
|
||||
- source-map-support
|
||||
- ts-loader
|
||||
- ts-node
|
||||
@@ -292,7 +293,6 @@
|
||||
- Staging Docker Compose
|
||||
- ZibalService
|
||||
- eslint-config-next
|
||||
- @tailwindcss/postcss
|
||||
- ZibalEBankService
|
||||
- .initiateOrderPayment
|
||||
- @tailwindcss/postcss
|
||||
@@ -336,7 +336,7 @@
|
||||
- 3-file cycle: `frontend/application/lib/services/api.ts -> frontend/application/lib/store/userStore.ts -> frontend/application/lib/store/cartStore.ts -> frontend/application/lib/services/api.ts`
|
||||
- 4-file cycle: `frontend/application/lib/services/api.ts -> frontend/application/lib/store/userStore.ts -> frontend/application/lib/store/cartStore.ts -> frontend/application/lib/services/orderService.ts -> frontend/application/lib/services/api.ts`
|
||||
|
||||
## Communities (312 total, 101 thin omitted)
|
||||
## Communities (312 total, 98 thin omitted)
|
||||
|
||||
### Community 0 - "Roles"
|
||||
Cohesion: 0.24
|
||||
@@ -352,11 +352,11 @@ Nodes (7): AdminTransactionFilterDto, ApiPropertyOptional, IsIn, IsNumber, IsOpt
|
||||
|
||||
### Community 3 - "productService.ts"
|
||||
Cohesion: 0.06
|
||||
Nodes (39): buildTorobProductSpec(), buildTorobProductTitle(), dynamic, GET(), revalidate, dynamic, GET(), revalidate (+31 more)
|
||||
Nodes (38): buildTorobProductSpec(), buildTorobProductTitle(), dynamic, GET(), revalidate, dynamic, GET(), revalidate (+30 more)
|
||||
|
||||
### Community 4 - "PetProfile.tsx"
|
||||
Cohesion: 0.12
|
||||
Nodes (18): metadata, FeaturedProducts(), ProductCard(), OrderSuccess(), PetProfile(), SearchResultsPage(), CURRENT_SYMPTOMS, MEDICAL_HISTORIES (+10 more)
|
||||
### Community 4 - "api"
|
||||
Cohesion: 0.13
|
||||
Nodes (14): metadata, ContactInfoItem, OrderDetailsModal(), OrderDetailsModalProps, CURRENT_SYMPTOMS, MEDICAL_HISTORIES, SmartAdvisor(), SmartAdvisorProps (+6 more)
|
||||
|
||||
### Community 5 - "CmsController"
|
||||
Cohesion: 0.10
|
||||
@@ -394,9 +394,9 @@ Nodes (24): backend, frontend, playwright.config.ts, @playwright/test, tests/**/
|
||||
Cohesion: 0.07
|
||||
Nodes (26): EnvironmentVariables, IsNotEmpty, IsOptional, IsString, validateEnv(), CustomHttpExceptionFilter, Catch, PrismaExceptionFilter (+18 more)
|
||||
|
||||
### Community 14 - "toPersian"
|
||||
Cohesion: 0.17
|
||||
Nodes (20): HomeClient(), VerifyContent(), AddressFormData, AddressModal(), AddressModalProps, normalizeDigits(), validateAddressForm(), CheckoutPage() (+12 more)
|
||||
### Community 14 - "UserDashboard.tsx"
|
||||
Cohesion: 0.13
|
||||
Nodes (28): VerifyContent(), AddressFormData, AddressModal(), AddressModalProps, normalizeDigits(), validateAddressForm(), AuthModal(), AuthModalProps (+20 more)
|
||||
|
||||
### Community 15 - "src/services/api.ts"
|
||||
Cohesion: 0.06
|
||||
@@ -415,7 +415,7 @@ Cohesion: 0.19
|
||||
Nodes (8): JwtAuthGuard, Injectable, ROLES_KEY, RequestWithUser, RolesGuard, Injectable, UserReqPayload, ScientificTermData
|
||||
|
||||
### Community 19 - "admin.controller.ts"
|
||||
Cohesion: 0.35
|
||||
Cohesion: 0.29
|
||||
Nodes (12): ApplyGlobalMarginsDto, BulkPriceAdjustmentDto, ApiProperty, ApiPropertyOptional, IsArray, IsBoolean, IsIn, IsNumber (+4 more)
|
||||
|
||||
### Community 20 - "CreateVideoDto"
|
||||
@@ -532,7 +532,7 @@ Nodes (19): autoprefixer, devDependencies, autoprefixer, eslint, @eslint/js, glo
|
||||
|
||||
### Community 50 - "devDependencies"
|
||||
Cohesion: 0.12
|
||||
Nodes (17): devDependencies, eslint, jsdom, tailwindcss, @testing-library/jest-dom, @testing-library/react, @types/node, @types/react (+9 more)
|
||||
Nodes (17): devDependencies, eslint, jsdom, @tailwindcss/postcss, @testing-library/jest-dom, @testing-library/react, @types/node, @types/react (+9 more)
|
||||
|
||||
### Community 51 - "BlogsController"
|
||||
Cohesion: 0.14
|
||||
@@ -562,21 +562,21 @@ Nodes (15): Badge(), BadgeProps, BadgeVariant, variantStyles, Skeleton(), Monito
|
||||
Cohesion: 0.09
|
||||
Nodes (22): CREATE MODE — Normal Operation, Expected JSON Output Schema, File Scope Boundary, Forbidden Actions, MODE 1: REVIEW (called during Review Phase), MODE 2: CONTENT CREATION (standalone task from backlog), Operating Modes, Operational Rules & Boundaries (+14 more)
|
||||
|
||||
### Community 58 - "UserDashboard.tsx"
|
||||
Cohesion: 0.12
|
||||
Nodes (11): DeleteConfirmModal(), DeleteConfirmModalProps, OrderDetailsModal(), OrderRowSkeleton(), PetProfileSkeleton(), Skeleton(), SkeletonProps, CreateTicketPayload (+3 more)
|
||||
### Community 58 - "components/Skeleton.tsx"
|
||||
Cohesion: 0.24
|
||||
Nodes (4): OrderRowSkeleton(), PetProfileSkeleton(), Skeleton(), SkeletonProps
|
||||
|
||||
### Community 59 - "compilerOptions"
|
||||
Cohesion: 0.06
|
||||
Nodes (30): compilerOptions, allowSyntheticDefaultImports, baseUrl, declaration, emitDecoratorMetadata, esModuleInterop, experimentalDecorators, forceConsistentCasingInFileNames (+22 more)
|
||||
|
||||
### Community 60 - "CreateUserDto"
|
||||
Cohesion: 0.23
|
||||
Cohesion: 0.24
|
||||
Nodes (10): CreateUserDto, ApiProperty, ApiPropertyOptional, IsEmail, IsNotEmpty, IsNumber, IsOptional, IsString (+2 more)
|
||||
|
||||
### Community 61 - "ProductPage.tsx"
|
||||
Cohesion: 0.10
|
||||
Nodes (19): ProductImageZoomModalProps, CalculatorState, GalleryMediaItem, ICON_MAP, isVideoUrl(), ProductImageZoomModal, ProductPage(), ProductReviews (+11 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (20): PodcastInlinePlayer(), ProductImageZoomModalProps, CalculatorState, GalleryMediaItem, ICON_MAP, isVideoUrl(), ProductImageZoomModal, ProductPage() (+12 more)
|
||||
|
||||
### Community 62 - "RevalidationService"
|
||||
Cohesion: 0.14
|
||||
@@ -591,20 +591,20 @@ Cohesion: 0.10
|
||||
Nodes (20): compilerOptions, allowImportingTsExtensions, erasableSyntaxOnly, lib, module, moduleDetection, moduleResolution, noEmit (+12 more)
|
||||
|
||||
### Community 65 - "admin.service.ts"
|
||||
Cohesion: 0.14
|
||||
Nodes (15): CouponTargetInput, PaginationQuery, ProductDto, ApiPropertyOptional, IsArray, IsBoolean, IsNumber, IsOptional (+7 more)
|
||||
Cohesion: 0.22
|
||||
Nodes (8): CouponTargetInput, PaginationQuery, applyRounding(), calculateSellingPrice(), DEFAULT_PRICING_SETTINGS, PricingSettings, RoundingMode, CANONICAL_ALIASES
|
||||
|
||||
### Community 66 - "AdminQueryDto"
|
||||
Cohesion: 0.13
|
||||
Nodes (8): ApiQuery, Get, Query, AdminProductQueryDto, AdminQueryDto, ApiPropertyOptional, IsOptional, IsString
|
||||
Cohesion: 0.18
|
||||
Nodes (7): ApiQuery, Query, AdminProductQueryDto, AdminQueryDto, ApiPropertyOptional, IsOptional, IsString
|
||||
|
||||
### Community 67 - "admin.module.ts"
|
||||
Cohesion: 0.13
|
||||
Nodes (13): AdminModule, Module, ReportsController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Controller (+5 more)
|
||||
|
||||
### Community 68 - "useSettingsStore"
|
||||
Cohesion: 0.08
|
||||
Nodes (29): HomeClientProps, B2BLandingClient(), BlogPost, BlogPreviewSection(), BrandLogo(), BrandLogoProps, ContactInfoItem, FAQItem (+21 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (22): AuthModal, B2BPortal, CartDrawer, ClientLayout(), B2BLandingClient(), BrandLogo(), BrandLogoProps, FAQItem (+14 more)
|
||||
|
||||
### Community 69 - "Required Review Group Closures"
|
||||
Cohesion: 0.10
|
||||
@@ -690,6 +690,10 @@ Nodes (19): CreateEBankCheckoutDto, ApiProperty, ApiPropertyOptional, IsNotEmpty
|
||||
Cohesion: 0.17
|
||||
Nodes (12): prisma, main(), prisma, determineSuitableFor(), findOrCreateCategory(), getProductImageUrl(), main(), parseSize() (+4 more)
|
||||
|
||||
### Community 90 - "useCartStore"
|
||||
Cohesion: 0.07
|
||||
Nodes (27): ArchivePage(), ArchiveProductCard(), CATEGORY_MAP, ICON_MAP, CartDrawer(), DeleteConfirmModal(), DeleteConfirmModalProps, FeaturedProducts() (+19 more)
|
||||
|
||||
### Community 91 - "Reconciled Audit Roles & Assignments"
|
||||
Cohesion: 0.12
|
||||
Nodes (15): 10. Documentation Engineer, 1. Lead Architect / Orchestrator, 2. React / Vite Storefront Auditor, 3. NestJS Backend Auditor, 4. Admin Features Auditor, 5. Database & Data Integrity Auditor, 6. Security Auditor, 7. TypeScript & Code Quality Auditor (+7 more)
|
||||
@@ -698,9 +702,9 @@ Nodes (15): 10. Documentation Engineer, 1. Lead Architect / Orchestrator, 2. Rea
|
||||
Cohesion: 0.07
|
||||
Nodes (35): CreateOrderDto, OrderItemDto, ApiProperty, ApiPropertyOptional, IsArray, IsNotEmpty, IsNumber, IsOptional (+27 more)
|
||||
|
||||
### Community 93 - "ArchivePage.tsx"
|
||||
Cohesion: 0.13
|
||||
Nodes (15): ArchivePage(), ArchiveProductCard(), CATEGORY_MAP, ICON_MAP, BannerPlacement(), BannerPlacementProps, ProductCardSkeleton(), B2BInquiry (+7 more)
|
||||
### Community 93 - "HomeClient.tsx"
|
||||
Cohesion: 0.12
|
||||
Nodes (17): HomeClient(), HomeClientProps, BannerPlacement(), BannerPlacementProps, BlogPreviewSection(), Hero(), StatCounter(), TestimonialsSection() (+9 more)
|
||||
|
||||
### Community 94 - "Phase 3.1 — Human Review Preparation and Master Backlog Critique"
|
||||
Cohesion: 0.13
|
||||
@@ -810,9 +814,9 @@ Nodes (9): compilerOptions, esModuleInterop, module, moduleResolution, skipLibCh
|
||||
Cohesion: 0.20
|
||||
Nodes (9): Compile and run the project, Deployment, Description, License, Project setup, Resources, Run tests, Stay in touch (+1 more)
|
||||
|
||||
### Community 122 - "AdminController"
|
||||
Cohesion: 0.17
|
||||
Nodes (12): AdminController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Param (+4 more)
|
||||
### Community 122 - "AdminService"
|
||||
Cohesion: 0.10
|
||||
Nodes (12): AdminController, ApiBearerAuth, ApiOperation, ApiTags, Controller, Delete, Get, Param (+4 more)
|
||||
|
||||
### Community 123 - "UsersService"
|
||||
Cohesion: 0.07
|
||||
@@ -834,6 +838,10 @@ Nodes (9): name, private, scripts, build, dev, lint, preview, type (+1 more)
|
||||
Cohesion: 0.20
|
||||
Nodes (9): Arch Linux, Contributors, Install, Known problems for variable version, License, Sahel-Font, To Do (variable), طریقه استفاده از نسخه متغیر variable (+1 more)
|
||||
|
||||
### Community 128 - "ProductDto"
|
||||
Cohesion: 0.16
|
||||
Nodes (7): ProductDto, ApiPropertyOptional, IsArray, IsBoolean, IsNumber, IsOptional, IsString
|
||||
|
||||
### Community 129 - "Reports.tsx"
|
||||
Cohesion: 0.20
|
||||
Nodes (7): BestSellerItem, CategoryDistItem, COLORS, CustomTooltipProps, ReportData, TopCouponItem, Reports
|
||||
@@ -895,8 +903,8 @@ Cohesion: 0.25
|
||||
Nodes (6): app_module_1, core_1, fs, path, swagger_1, yaml
|
||||
|
||||
### Community 144 - "SafeImage.tsx"
|
||||
Cohesion: 0.10
|
||||
Nodes (20): BackButton(), BackButtonProps, BlogPostClientProps, PLAYBACK_RATES, PodcastInlinePlayer(), PodcastInlinePlayerProps, PLAYBACK_RATES, PodcastPlayerModal() (+12 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (23): BackButton(), BackButtonProps, BlogCategory, BlogPostItem, BlogPostClientProps, BlogPost, ProductDetailModalProps, PLAYBACK_RATES (+15 more)
|
||||
|
||||
### Community 145 - "RouteErrorBoundary"
|
||||
Cohesion: 0.22
|
||||
@@ -914,6 +922,10 @@ Nodes (10): HomeController, ApiOkResponse, ApiOperation, ApiTags, Controller, Ge
|
||||
Cohesion: 0.29
|
||||
Nodes (6): 1. Executive Vision, 2. Target Audience, 3. Functional Requirements, 4. Non-Functional Requirements (Performance, Security), 5. Epic / Feature Breakdown, Product Requirement Document (PRD)
|
||||
|
||||
### Community 151 - "Body"
|
||||
Cohesion: 0.21
|
||||
Nodes (3): Body, Post, CouponInput
|
||||
|
||||
### Community 152 - "auth.service.ts"
|
||||
Cohesion: 0.08
|
||||
Nodes (13): AppModule, Module, AdminLoginInput, AuthService, LoginInput, RegisterInput, Injectable, normalizeMobile() (+5 more)
|
||||
@@ -1058,9 +1070,9 @@ Nodes (3): Expanding the ESLint configuration, React Compiler, React + TypeScrip
|
||||
Cohesion: 0.50
|
||||
Nodes (3): Select, SelectOption, SelectProps
|
||||
|
||||
### Community 197 - "userStore.ts"
|
||||
Cohesion: 0.08
|
||||
Nodes (37): AuthModal, B2BPortal, CartDrawer, ClientLayout(), LoginModal, AuthModal(), AuthModalProps, extractOtpFromText() (+29 more)
|
||||
### Community 197 - "lib/services/api.ts"
|
||||
Cohesion: 0.09
|
||||
Nodes (17): LoginModal, B2BPortal(), LoginModal(), LoginModalProps, PrescriptionUploadModal(), PrescriptionUploadModalProps, ApiErrorPayload, baseURL (+9 more)
|
||||
|
||||
### Community 198 - "Reviews.tsx"
|
||||
Cohesion: 0.40
|
||||
@@ -1101,7 +1113,7 @@ Nodes (3): GET(), handleRevalidate(), POST()
|
||||
## Knowledge Gaps
|
||||
- **1347 isolated node(s):** `$schema`, `collection`, `sourceRoot`, `deleteOutDir`, `name` (+1342 more)
|
||||
These have ≤1 connection - possible missing edges or undocumented components.
|
||||
- **101 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
|
||||
- **98 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
|
||||
|
||||
## Suggested Questions
|
||||
_Questions this graph is uniquely positioned to answer:_
|
||||
@@ -1117,6 +1129,6 @@ _Questions this graph is uniquely positioned to answer:_
|
||||
- **Should `app.module.ts` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.055299539170506916 - nodes in this community are weakly interconnected._
|
||||
- **Should `productService.ts` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.05780885780885781 - nodes in this community are weakly interconnected._
|
||||
- **Should `PetProfile.tsx` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.11822660098522167 - nodes in this community are weakly interconnected._
|
||||
_Cohesion score 0.06299603174603174 - nodes in this community are weakly interconnected._
|
||||
- **Should `api` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.12648221343873517 - nodes in this community are weakly interconnected._
|
||||
+2110
-2110
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -1,16 +1,16 @@
|
||||
# Graph Report - canina (2026-09-02)
|
||||
|
||||
## Corpus Check
|
||||
- 599 files · ~1,079,434 words
|
||||
- 599 files · ~1,081,381 words
|
||||
- Verdict: corpus is large enough that graph structure adds value.
|
||||
|
||||
## Summary
|
||||
- 4208 nodes · 7642 edges · 312 communities (214 shown, 98 thin omitted)
|
||||
- 4208 nodes · 7642 edges · 311 communities (210 shown, 101 thin omitted)
|
||||
- Extraction: 96% EXTRACTED · 4% INFERRED · 0% AMBIGUOUS · INFERRED: 288 edges (avg confidence: 0.79)
|
||||
- Token cost: 0 input · 0 output
|
||||
|
||||
## Graph Freshness
|
||||
- Built from commit: `6fa1f2c9`
|
||||
- Built from commit: `ddd0dcba`
|
||||
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
|
||||
- Run `graphify update .` after code changes (no API cost).
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
- app.module.ts
|
||||
- AdminTransactionFilterDto
|
||||
- productService.ts
|
||||
- api
|
||||
- PetProfile.tsx
|
||||
- CmsController
|
||||
- TicketsService
|
||||
- SmsSettingsPage.tsx
|
||||
@@ -29,7 +29,7 @@
|
||||
- WikiController
|
||||
- index.ts
|
||||
- app-audit-verification.e2e-spec.js
|
||||
- UserDashboard.tsx
|
||||
- toPersian
|
||||
- src/services/api.ts
|
||||
- DoctorQueryDto
|
||||
- schema.ts
|
||||
@@ -72,7 +72,7 @@
|
||||
- UITexts.tsx
|
||||
- Orders.tsx
|
||||
- Role & Core Objective
|
||||
- components/Skeleton.tsx
|
||||
- UserDashboard.tsx
|
||||
- compilerOptions
|
||||
- CreateUserDto
|
||||
- ProductPage.tsx
|
||||
@@ -104,10 +104,10 @@
|
||||
- dependencies
|
||||
- payment.controller.ts
|
||||
- seed-products.ts
|
||||
- useCartStore
|
||||
- OrderService
|
||||
- Reconciled Audit Roles & Assignments
|
||||
- OrdersService
|
||||
- HomeClient.tsx
|
||||
- ArchivePage.tsx
|
||||
- Phase 3.1 — Human Review Preparation and Master Backlog Critique
|
||||
- wiki/[slug]/page.tsx
|
||||
- compilerOptions
|
||||
@@ -136,13 +136,13 @@
|
||||
- compilerOptions
|
||||
- compilerOptions
|
||||
- backend/README.md
|
||||
- AdminService
|
||||
- AdminController
|
||||
- UsersService
|
||||
- Repository Map
|
||||
- validate_integrity.js
|
||||
- admin-panel/package.json
|
||||
- Sahel-Font
|
||||
- ProductDto
|
||||
- AdminService
|
||||
- Reports.tsx
|
||||
- Sahel-Font
|
||||
- Role & Core Objective
|
||||
@@ -159,13 +159,13 @@
|
||||
- start-dev.js
|
||||
- generate-openapi.js
|
||||
- SafeImage.tsx
|
||||
- RouteErrorBoundary
|
||||
- ConfirmModal.tsx
|
||||
- System Discovery
|
||||
- HomeController
|
||||
- track/page.tsx
|
||||
- trust-seals/page.tsx
|
||||
- Product Requirement Document (PRD)
|
||||
- Body
|
||||
- AuthService
|
||||
- auth.service.ts
|
||||
- exclude
|
||||
- Baseline Command Plan & Reconciled Command History
|
||||
@@ -198,7 +198,7 @@
|
||||
- 🎨 Frontend & Admin Panel Technical Review (06_dev_frontend)
|
||||
- 🚀 SEO & Content Strategy Review (12_seo_content)
|
||||
- MetricsController
|
||||
- eslint-config-prettier
|
||||
- eslint
|
||||
- seed-ui-texts.ts
|
||||
- seed-wiki.ts
|
||||
- update-blog.dto.ts
|
||||
@@ -210,8 +210,8 @@
|
||||
- Raw Finding Verification & Disposition Report
|
||||
- React + TypeScript + Vite
|
||||
- Select.tsx
|
||||
- lib/services/api.ts
|
||||
- Reviews.tsx
|
||||
- userStore.ts
|
||||
- @tailwindcss/postcss
|
||||
- SmsLogQueryDto
|
||||
- application/README.md
|
||||
- deploy.sh
|
||||
@@ -292,7 +292,6 @@
|
||||
- Production Docker Compose
|
||||
- Staging Docker Compose
|
||||
- ZibalService
|
||||
- eslint-config-next
|
||||
- ZibalEBankService
|
||||
- .initiateOrderPayment
|
||||
- @tailwindcss/postcss
|
||||
@@ -336,7 +335,7 @@
|
||||
- 3-file cycle: `frontend/application/lib/services/api.ts -> frontend/application/lib/store/userStore.ts -> frontend/application/lib/store/cartStore.ts -> frontend/application/lib/services/api.ts`
|
||||
- 4-file cycle: `frontend/application/lib/services/api.ts -> frontend/application/lib/store/userStore.ts -> frontend/application/lib/store/cartStore.ts -> frontend/application/lib/services/orderService.ts -> frontend/application/lib/services/api.ts`
|
||||
|
||||
## Communities (312 total, 98 thin omitted)
|
||||
## Communities (311 total, 101 thin omitted)
|
||||
|
||||
### Community 0 - "Roles"
|
||||
Cohesion: 0.24
|
||||
@@ -352,11 +351,11 @@ Nodes (7): AdminTransactionFilterDto, ApiPropertyOptional, IsIn, IsNumber, IsOpt
|
||||
|
||||
### Community 3 - "productService.ts"
|
||||
Cohesion: 0.06
|
||||
Nodes (38): buildTorobProductSpec(), buildTorobProductTitle(), dynamic, GET(), revalidate, dynamic, GET(), revalidate (+30 more)
|
||||
Nodes (39): buildTorobProductSpec(), buildTorobProductTitle(), dynamic, GET(), revalidate, dynamic, GET(), revalidate (+31 more)
|
||||
|
||||
### Community 4 - "api"
|
||||
Cohesion: 0.13
|
||||
Nodes (14): metadata, ContactInfoItem, OrderDetailsModal(), OrderDetailsModalProps, CURRENT_SYMPTOMS, MEDICAL_HISTORIES, SmartAdvisor(), SmartAdvisorProps (+6 more)
|
||||
### Community 4 - "PetProfile.tsx"
|
||||
Cohesion: 0.12
|
||||
Nodes (18): metadata, FeaturedProducts(), ProductCard(), OrderSuccess(), PetProfile(), SearchResultsPage(), CURRENT_SYMPTOMS, MEDICAL_HISTORIES (+10 more)
|
||||
|
||||
### Community 5 - "CmsController"
|
||||
Cohesion: 0.10
|
||||
@@ -376,7 +375,7 @@ Nodes (17): SettingsController, ApiBearerAuth, ApiOkResponse, ApiOperation, ApiT
|
||||
|
||||
### Community 9 - "devDependencies"
|
||||
Cohesion: 0.08
|
||||
Nodes (25): devDependencies, eslint, @eslint/eslintrc, eslint-plugin-prettier, globals, @nestjs/cli, @nestjs/testing, prettier (+17 more)
|
||||
Nodes (25): devDependencies, eslint-config-prettier, @eslint/eslintrc, eslint-plugin-prettier, globals, @nestjs/cli, @nestjs/testing, prettier (+17 more)
|
||||
|
||||
### Community 10 - "CreateReviewDto"
|
||||
Cohesion: 0.07
|
||||
@@ -394,13 +393,13 @@ Nodes (24): backend, frontend, playwright.config.ts, @playwright/test, tests/**/
|
||||
Cohesion: 0.07
|
||||
Nodes (26): EnvironmentVariables, IsNotEmpty, IsOptional, IsString, validateEnv(), CustomHttpExceptionFilter, Catch, PrismaExceptionFilter (+18 more)
|
||||
|
||||
### Community 14 - "UserDashboard.tsx"
|
||||
Cohesion: 0.13
|
||||
Nodes (28): VerifyContent(), AddressFormData, AddressModal(), AddressModalProps, normalizeDigits(), validateAddressForm(), AuthModal(), AuthModalProps (+20 more)
|
||||
### Community 14 - "toPersian"
|
||||
Cohesion: 0.17
|
||||
Nodes (20): HomeClient(), VerifyContent(), AddressFormData, AddressModal(), AddressModalProps, normalizeDigits(), validateAddressForm(), CheckoutPage() (+12 more)
|
||||
|
||||
### Community 15 - "src/services/api.ts"
|
||||
Cohesion: 0.06
|
||||
Nodes (36): Layout(), ProtectedRoute(), MenuGroup, Sidebar(), SidebarProps, SubMenuItem, LiveMonitoringSummary, SEARCHABLE_PAGES (+28 more)
|
||||
Nodes (38): Layout(), ProtectedRoute(), MenuGroup, Sidebar(), SidebarProps, SubMenuItem, LiveMonitoringSummary, SEARCHABLE_PAGES (+30 more)
|
||||
|
||||
### Community 16 - "DoctorQueryDto"
|
||||
Cohesion: 0.09
|
||||
@@ -415,7 +414,7 @@ Cohesion: 0.19
|
||||
Nodes (8): JwtAuthGuard, Injectable, ROLES_KEY, RequestWithUser, RolesGuard, Injectable, UserReqPayload, ScientificTermData
|
||||
|
||||
### Community 19 - "admin.controller.ts"
|
||||
Cohesion: 0.29
|
||||
Cohesion: 0.35
|
||||
Nodes (12): ApplyGlobalMarginsDto, BulkPriceAdjustmentDto, ApiProperty, ApiPropertyOptional, IsArray, IsBoolean, IsIn, IsNumber (+4 more)
|
||||
|
||||
### Community 20 - "CreateVideoDto"
|
||||
@@ -460,7 +459,7 @@ Nodes (31): Acceptance Criteria, Affected Application, Affected Files, Alternati
|
||||
|
||||
### Community 32 - "adminRoutes.tsx"
|
||||
Cohesion: 0.07
|
||||
Nodes (21): App(), ContactInfoItem, ContactSubmission, CategoryDist, DashboardData, SslStatus, Ticket, TicketMessage (+13 more)
|
||||
Nodes (16): App(), Props, RouteErrorBoundary, State, HeroBanner, VetTestimonial, SslStatus, AdminRouteConfig (+8 more)
|
||||
|
||||
### Community 33 - "WholesaleApplyDto"
|
||||
Cohesion: 0.10
|
||||
@@ -532,7 +531,7 @@ Nodes (19): autoprefixer, devDependencies, autoprefixer, eslint, @eslint/js, glo
|
||||
|
||||
### Community 50 - "devDependencies"
|
||||
Cohesion: 0.12
|
||||
Nodes (17): devDependencies, eslint, jsdom, @tailwindcss/postcss, @testing-library/jest-dom, @testing-library/react, @types/node, @types/react (+9 more)
|
||||
Nodes (17): eslint-config-next, devDependencies, eslint, eslint-config-next, jsdom, @testing-library/jest-dom, @testing-library/react, @types/node (+9 more)
|
||||
|
||||
### Community 51 - "BlogsController"
|
||||
Cohesion: 0.14
|
||||
@@ -547,8 +546,8 @@ Cohesion: 0.13
|
||||
Nodes (14): SmartAdvisorController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+6 more)
|
||||
|
||||
### Community 54 - "Button.tsx"
|
||||
Cohesion: 0.10
|
||||
Nodes (16): ButtonProps, ButtonSize, ButtonVariant, ConfirmModal(), ConfirmModalProps, HeroBanner, VetTestimonial, FAQ (+8 more)
|
||||
Cohesion: 0.07
|
||||
Nodes (24): ButtonProps, ButtonSize, ButtonVariant, maxWidthClasses, Modal(), ModalProps, ContactInfoItem, ContactSubmission (+16 more)
|
||||
|
||||
### Community 55 - "UITexts.tsx"
|
||||
Cohesion: 0.07
|
||||
@@ -562,21 +561,21 @@ Nodes (15): Badge(), BadgeProps, BadgeVariant, variantStyles, Skeleton(), Monito
|
||||
Cohesion: 0.09
|
||||
Nodes (22): CREATE MODE — Normal Operation, Expected JSON Output Schema, File Scope Boundary, Forbidden Actions, MODE 1: REVIEW (called during Review Phase), MODE 2: CONTENT CREATION (standalone task from backlog), Operating Modes, Operational Rules & Boundaries (+14 more)
|
||||
|
||||
### Community 58 - "components/Skeleton.tsx"
|
||||
Cohesion: 0.24
|
||||
Nodes (4): OrderRowSkeleton(), PetProfileSkeleton(), Skeleton(), SkeletonProps
|
||||
### Community 58 - "UserDashboard.tsx"
|
||||
Cohesion: 0.12
|
||||
Nodes (11): DeleteConfirmModal(), DeleteConfirmModalProps, OrderDetailsModal(), OrderRowSkeleton(), PetProfileSkeleton(), Skeleton(), SkeletonProps, CreateTicketPayload (+3 more)
|
||||
|
||||
### Community 59 - "compilerOptions"
|
||||
Cohesion: 0.06
|
||||
Nodes (30): compilerOptions, allowSyntheticDefaultImports, baseUrl, declaration, emitDecoratorMetadata, esModuleInterop, experimentalDecorators, forceConsistentCasingInFileNames (+22 more)
|
||||
|
||||
### Community 60 - "CreateUserDto"
|
||||
Cohesion: 0.24
|
||||
Cohesion: 0.23
|
||||
Nodes (10): CreateUserDto, ApiProperty, ApiPropertyOptional, IsEmail, IsNotEmpty, IsNumber, IsOptional, IsString (+2 more)
|
||||
|
||||
### Community 61 - "ProductPage.tsx"
|
||||
Cohesion: 0.09
|
||||
Nodes (20): PodcastInlinePlayer(), ProductImageZoomModalProps, CalculatorState, GalleryMediaItem, ICON_MAP, isVideoUrl(), ProductImageZoomModal, ProductPage() (+12 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (19): ProductImageZoomModalProps, CalculatorState, GalleryMediaItem, ICON_MAP, isVideoUrl(), ProductImageZoomModal, ProductPage(), ProductReviews (+11 more)
|
||||
|
||||
### Community 62 - "RevalidationService"
|
||||
Cohesion: 0.14
|
||||
@@ -591,20 +590,20 @@ Cohesion: 0.10
|
||||
Nodes (20): compilerOptions, allowImportingTsExtensions, erasableSyntaxOnly, lib, module, moduleDetection, moduleResolution, noEmit (+12 more)
|
||||
|
||||
### Community 65 - "admin.service.ts"
|
||||
Cohesion: 0.22
|
||||
Nodes (8): CouponTargetInput, PaginationQuery, applyRounding(), calculateSellingPrice(), DEFAULT_PRICING_SETTINGS, PricingSettings, RoundingMode, CANONICAL_ALIASES
|
||||
Cohesion: 0.14
|
||||
Nodes (15): CouponTargetInput, PaginationQuery, ProductDto, ApiPropertyOptional, IsArray, IsBoolean, IsNumber, IsOptional (+7 more)
|
||||
|
||||
### Community 66 - "AdminQueryDto"
|
||||
Cohesion: 0.18
|
||||
Nodes (7): ApiQuery, Query, AdminProductQueryDto, AdminQueryDto, ApiPropertyOptional, IsOptional, IsString
|
||||
Cohesion: 0.13
|
||||
Nodes (8): ApiQuery, Get, Query, AdminProductQueryDto, AdminQueryDto, ApiPropertyOptional, IsOptional, IsString
|
||||
|
||||
### Community 67 - "admin.module.ts"
|
||||
Cohesion: 0.13
|
||||
Nodes (13): AdminModule, Module, ReportsController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Controller (+5 more)
|
||||
|
||||
### Community 68 - "useSettingsStore"
|
||||
Cohesion: 0.10
|
||||
Nodes (22): AuthModal, B2BPortal, CartDrawer, ClientLayout(), B2BLandingClient(), BrandLogo(), BrandLogoProps, FAQItem (+14 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (29): HomeClientProps, B2BLandingClient(), BlogPost, BlogPreviewSection(), BrandLogo(), BrandLogoProps, ContactInfoItem, FAQItem (+21 more)
|
||||
|
||||
### Community 69 - "Required Review Group Closures"
|
||||
Cohesion: 0.10
|
||||
@@ -690,10 +689,6 @@ Nodes (19): CreateEBankCheckoutDto, ApiProperty, ApiPropertyOptional, IsNotEmpty
|
||||
Cohesion: 0.17
|
||||
Nodes (12): prisma, main(), prisma, determineSuitableFor(), findOrCreateCategory(), getProductImageUrl(), main(), parseSize() (+4 more)
|
||||
|
||||
### Community 90 - "useCartStore"
|
||||
Cohesion: 0.07
|
||||
Nodes (27): ArchivePage(), ArchiveProductCard(), CATEGORY_MAP, ICON_MAP, CartDrawer(), DeleteConfirmModal(), DeleteConfirmModalProps, FeaturedProducts() (+19 more)
|
||||
|
||||
### Community 91 - "Reconciled Audit Roles & Assignments"
|
||||
Cohesion: 0.12
|
||||
Nodes (15): 10. Documentation Engineer, 1. Lead Architect / Orchestrator, 2. React / Vite Storefront Auditor, 3. NestJS Backend Auditor, 4. Admin Features Auditor, 5. Database & Data Integrity Auditor, 6. Security Auditor, 7. TypeScript & Code Quality Auditor (+7 more)
|
||||
@@ -702,9 +697,9 @@ Nodes (15): 10. Documentation Engineer, 1. Lead Architect / Orchestrator, 2. Rea
|
||||
Cohesion: 0.07
|
||||
Nodes (35): CreateOrderDto, OrderItemDto, ApiProperty, ApiPropertyOptional, IsArray, IsNotEmpty, IsNumber, IsOptional (+27 more)
|
||||
|
||||
### Community 93 - "HomeClient.tsx"
|
||||
Cohesion: 0.12
|
||||
Nodes (17): HomeClient(), HomeClientProps, BannerPlacement(), BannerPlacementProps, BlogPreviewSection(), Hero(), StatCounter(), TestimonialsSection() (+9 more)
|
||||
### Community 93 - "ArchivePage.tsx"
|
||||
Cohesion: 0.13
|
||||
Nodes (15): ArchivePage(), ArchiveProductCard(), CATEGORY_MAP, ICON_MAP, BannerPlacement(), BannerPlacementProps, ProductCardSkeleton(), B2BInquiry (+7 more)
|
||||
|
||||
### Community 94 - "Phase 3.1 — Human Review Preparation and Master Backlog Critique"
|
||||
Cohesion: 0.13
|
||||
@@ -743,8 +738,8 @@ Cohesion: 0.15
|
||||
Nodes (12): 10. `TASK-VERIFY-001`, 1. `TASK-SEC-001`, 2. `TASK-SEC-002`, 3. `TASK-SEC-003`, 4. `TASK-FIN-001`, 5. `TASK-BUILD-001`, 6. `TASK-AUTH-001`, 7. `TASK-FE-001` (+4 more)
|
||||
|
||||
### Community 104 - "Products.tsx"
|
||||
Cohesion: 0.10
|
||||
Nodes (24): Input, InputProps, formatPriceWithCommas(), PriceInput(), PriceInputProps, toEnglishDigits(), Coupon, CouponFormData (+16 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (25): Input, InputProps, formatPriceWithCommas(), PriceInput(), PriceInputProps, toEnglishDigits(), Coupon, CouponFormData (+17 more)
|
||||
|
||||
### Community 105 - "Operational Rules & Boundaries"
|
||||
Cohesion: 0.17
|
||||
@@ -787,8 +782,8 @@ Cohesion: 0.29
|
||||
Nodes (5): AppController, Controller, Get, AppService, Injectable
|
||||
|
||||
### Community 115 - "Spinner.tsx"
|
||||
Cohesion: 0.07
|
||||
Nodes (36): ImagePreviewModal(), ImagePreviewModalProps, getFileType(), Media, MediaSelector(), MediaSelectorProps, maxWidthClasses, Modal() (+28 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (22): ImagePreviewModal(), ImagePreviewModalProps, getFileType(), Media, MediaSelector(), MediaSelectorProps, Spinner(), Doctor (+14 more)
|
||||
|
||||
### Community 116 - "Vazirmatn Changelog"
|
||||
Cohesion: 0.18
|
||||
@@ -814,9 +809,9 @@ Nodes (9): compilerOptions, esModuleInterop, module, moduleResolution, skipLibCh
|
||||
Cohesion: 0.20
|
||||
Nodes (9): Compile and run the project, Deployment, Description, License, Project setup, Resources, Run tests, Stay in touch (+1 more)
|
||||
|
||||
### Community 122 - "AdminService"
|
||||
Cohesion: 0.10
|
||||
Nodes (12): AdminController, ApiBearerAuth, ApiOperation, ApiTags, Controller, Delete, Get, Param (+4 more)
|
||||
### Community 122 - "AdminController"
|
||||
Cohesion: 0.17
|
||||
Nodes (12): AdminController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Param (+4 more)
|
||||
|
||||
### Community 123 - "UsersService"
|
||||
Cohesion: 0.07
|
||||
@@ -838,10 +833,6 @@ Nodes (9): name, private, scripts, build, dev, lint, preview, type (+1 more)
|
||||
Cohesion: 0.20
|
||||
Nodes (9): Arch Linux, Contributors, Install, Known problems for variable version, License, Sahel-Font, To Do (variable), طریقه استفاده از نسخه متغیر variable (+1 more)
|
||||
|
||||
### Community 128 - "ProductDto"
|
||||
Cohesion: 0.16
|
||||
Nodes (7): ProductDto, ApiPropertyOptional, IsArray, IsBoolean, IsNumber, IsOptional, IsString
|
||||
|
||||
### Community 129 - "Reports.tsx"
|
||||
Cohesion: 0.20
|
||||
Nodes (7): BestSellerItem, CategoryDistItem, COLORS, CustomTooltipProps, ReportData, TopCouponItem, Reports
|
||||
@@ -903,12 +894,12 @@ Cohesion: 0.25
|
||||
Nodes (6): app_module_1, core_1, fs, path, swagger_1, yaml
|
||||
|
||||
### Community 144 - "SafeImage.tsx"
|
||||
Cohesion: 0.08
|
||||
Nodes (23): BackButton(), BackButtonProps, BlogCategory, BlogPostItem, BlogPostClientProps, BlogPost, ProductDetailModalProps, PLAYBACK_RATES (+15 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (20): BackButton(), BackButtonProps, BlogPostClientProps, PLAYBACK_RATES, PodcastInlinePlayer(), PodcastInlinePlayerProps, PLAYBACK_RATES, PodcastPlayerModal() (+12 more)
|
||||
|
||||
### Community 145 - "RouteErrorBoundary"
|
||||
Cohesion: 0.22
|
||||
Nodes (3): Props, RouteErrorBoundary, State
|
||||
### Community 145 - "ConfirmModal.tsx"
|
||||
Cohesion: 0.10
|
||||
Nodes (16): ConfirmModal(), ConfirmModalProps, Pagination(), PaginationProps, Category, Pet, DoctorOption, Video (+8 more)
|
||||
|
||||
### Community 146 - "System Discovery"
|
||||
Cohesion: 0.25
|
||||
@@ -922,10 +913,6 @@ Nodes (10): HomeController, ApiOkResponse, ApiOperation, ApiTags, Controller, Ge
|
||||
Cohesion: 0.29
|
||||
Nodes (6): 1. Executive Vision, 2. Target Audience, 3. Functional Requirements, 4. Non-Functional Requirements (Performance, Security), 5. Epic / Feature Breakdown, Product Requirement Document (PRD)
|
||||
|
||||
### Community 151 - "Body"
|
||||
Cohesion: 0.21
|
||||
Nodes (3): Body, Post, CouponInput
|
||||
|
||||
### Community 152 - "auth.service.ts"
|
||||
Cohesion: 0.08
|
||||
Nodes (13): AppModule, Module, AdminLoginInput, AuthService, LoginInput, RegisterInput, Injectable, normalizeMobile() (+5 more)
|
||||
@@ -1070,13 +1057,9 @@ Nodes (3): Expanding the ESLint configuration, React Compiler, React + TypeScrip
|
||||
Cohesion: 0.50
|
||||
Nodes (3): Select, SelectOption, SelectProps
|
||||
|
||||
### Community 197 - "lib/services/api.ts"
|
||||
Cohesion: 0.09
|
||||
Nodes (17): LoginModal, B2BPortal(), LoginModal(), LoginModalProps, PrescriptionUploadModal(), PrescriptionUploadModalProps, ApiErrorPayload, baseURL (+9 more)
|
||||
|
||||
### Community 198 - "Reviews.tsx"
|
||||
Cohesion: 0.40
|
||||
Nodes (5): BlogCommentItem, ProductReview, Reviews(), toPersianDigits(), Reviews
|
||||
### Community 197 - "userStore.ts"
|
||||
Cohesion: 0.08
|
||||
Nodes (37): AuthModal, B2BPortal, CartDrawer, ClientLayout(), LoginModal, AuthModal(), AuthModalProps, extractOtpFromText() (+29 more)
|
||||
|
||||
### Community 199 - "SmsLogQueryDto"
|
||||
Cohesion: 0.25
|
||||
@@ -1113,7 +1096,7 @@ Nodes (3): GET(), handleRevalidate(), POST()
|
||||
## Knowledge Gaps
|
||||
- **1347 isolated node(s):** `$schema`, `collection`, `sourceRoot`, `deleteOutDir`, `name` (+1342 more)
|
||||
These have ≤1 connection - possible missing edges or undocumented components.
|
||||
- **98 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
|
||||
- **101 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
|
||||
|
||||
## Suggested Questions
|
||||
_Questions this graph is uniquely positioned to answer:_
|
||||
@@ -1129,6 +1112,6 @@ _Questions this graph is uniquely positioned to answer:_
|
||||
- **Should `app.module.ts` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.055299539170506916 - nodes in this community are weakly interconnected._
|
||||
- **Should `productService.ts` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.06299603174603174 - nodes in this community are weakly interconnected._
|
||||
- **Should `api` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.12648221343873517 - nodes in this community are weakly interconnected._
|
||||
_Cohesion score 0.05780885780885781 - nodes in this community are weakly interconnected._
|
||||
- **Should `PetProfile.tsx` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.11822660098522167 - nodes in this community are weakly interconnected._
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
{".agents/rules/graphify.md":{"size":933,"mtime_ns":1786870552830271100,"indexed_at_ns":1787726739808807000,"word_count":127,"hashes":{".agents/rules/graphify.md":"26f2577a68d808f7f33ec3e418b95b635aec180d93b22b975e9ae67c47e361c8"}},".agents/workflows/graphify.md":{"size":229,"mtime_ns":1786870552832398300,"indexed_at_ns":1787726739809809700,"word_count":37,"hashes":{".agents/workflows/graphify.md":"a81e2d017e0669c71099362b20854e4d9ed68753f1c240d0682120bdb9aa3c72"}},".ai_agency/AGENCY.md":{"size":8757,"mtime_ns":1785148021979607300,"indexed_at_ns":1787726739810808600,"word_count":1161,"hashes":{".ai_agency/agency.md":"88c7c13583a91fc7e41ce055fede9dce20f181e8d264557808989965e83a9030"}},".ai_agency/agents/00_intake.md":{"size":3819,"mtime_ns":1785148021984319000,"indexed_at_ns":1787726739811809900,"word_count":500,"hashes":{".ai_agency/agents/00_intake.md":"9dc8d7eeda0655717dc5b9d2f8572c47567b88ca88de7e4e5bf59869077ff407"}},".ai_agency/agents/01_auditor.md":{"size":3643,"mtime_ns":1785148021987782800,"indexed_at_ns":1787726739813809800,"word_count":467,"hashes":{".ai_agency/agents/01_auditor.md":"37ae09614034d9b5c855e0132b59a5e3cfd2fc38c54d1a5386fa43ba488c4d4d"}},".ai_agency/agents/02_ceo.md":{"size":2341,"mtime_ns":1785148021998374800,"indexed_at_ns":1787726739814809500,"word_count":294,"hashes":{".ai_agency/agents/02_ceo.md":"b4a76df6483fd52e1b9f1e70765b3f7b6d134dc003ef2ad0cb86b952c869c4a5"}},".ai_agency/agents/03_product_manager.md":{"size":8422,"mtime_ns":1785148022001968200,"indexed_at_ns":1787726739815810200,"word_count":1076,"hashes":{".ai_agency/agents/03_product_manager.md":"1927827474b1dd6fd4976af45b51f1ad3128fe3305c3af22639ab2584e8f0b55"}},".ai_agency/agents/04_architect.md":{"size":3603,"mtime_ns":1785148022004966000,"indexed_at_ns":1787726739816809500,"word_count":448,"hashes":{".ai_agency/agents/04_architect.md":"c96b04d5af093f455fa3c64ae177a69421e8150eb38c70bb8587b5a14e7d3ca8"}},".ai_agency/agents/05_dev_backend.md":{"size":7142,"mtime_ns":1785148022012481200,"indexed_at_ns":1787726739817810300,"word_count":953,"hashes":{".ai_agency/agents/05_dev_backend.md":"143a7c8a6fbedcd837d647efddb9f6b49074583502bd77f24c955bd86a6f3df8"}},".ai_agency/agents/06_dev_frontend.md":{"size":7518,"mtime_ns":1785148022017020100,"indexed_at_ns":1787726739819343800,"word_count":1011,"hashes":{".ai_agency/agents/06_dev_frontend.md":"e69679636d42dd626c7c76ddc96e1ddb656ab5b9ee912b89adcc7a9338f34a0b"}},".ai_agency/agents/07_qa_engineer.md":{"size":3764,"mtime_ns":1785148022020044600,"indexed_at_ns":1787726739820379800,"word_count":507,"hashes":{".ai_agency/agents/07_qa_engineer.md":"2616ef2b3ac39ded45fc669d5b5b140e72953fe61a819966fb040382e9b47d45"}},".ai_agency/agents/08_visual_qa.md":{"size":7910,"mtime_ns":1785148022030083200,"indexed_at_ns":1787726739821353800,"word_count":1121,"hashes":{".ai_agency/agents/08_visual_qa.md":"17a5a74039e8a9d7cb40c5bc3c616c7c92d53401efd92d0675d4bbe5e90572a8"}},".ai_agency/agents/09_devops_security.md":{"size":6825,"mtime_ns":1785148022034087400,"indexed_at_ns":1787726739822379900,"word_count":908,"hashes":{".ai_agency/agents/09_devops_security.md":"315bd3cee954ac3496da8db1b1718b75ab3822ec3a90f99bc77767ca99482edf"}},".ai_agency/agents/10_tech_writer.md":{"size":3119,"mtime_ns":1785148022037082600,"indexed_at_ns":1787726739824378500,"word_count":408,"hashes":{".ai_agency/agents/10_tech_writer.md":"3527b44265fec2472cc20ca4641667e1fa3d38cbc9b2fbf9a946ee1e531e9e37"}},".ai_agency/agents/11_deploy.md":{"size":3956,"mtime_ns":1785148022040602600,"indexed_at_ns":1787726739825379700,"word_count":537,"hashes":{".ai_agency/agents/11_deploy.md":"8169bc98b249cd83ba21551dea082f69dfa6deca5f5e4a7f2739a28746c143f9"}},".ai_agency/agents/12_seo_content.md":{"size":10963,"mtime_ns":1785148022048603900,"indexed_at_ns":1787726739826379900,"word_count":1539,"hashes":{".ai_agency/agents/12_seo_content.md":"2f50eb9db8bf1ad7bc23c7d8c3a4f167a2daafb73f095db9237c5bdb20e7a5f4"}},".ai_agency/memory/agent_outputs/README.txt":{"size":290,"mtime_ns":1785148022052150400,"indexed_at_ns":1787726728366347600,"word_count":34},".ai_agency/memory/backlog.json":{"size":10711,"mtime_ns":1785330750958890900,"indexed_at_ns":1787726739730126300,"word_count":981,"hashes":{".ai_agency/memory/backlog.json":"6bf3150a1877d03d03b368df21b84071381b1bb8cd03e3721fa9f8e6c38355be"}},".ai_agency/memory/scratchpad.md":{"size":1879,"mtime_ns":1785148022065114400,"indexed_at_ns":1787726739827380200,"word_count":249,"hashes":{".ai_agency/memory/scratchpad.md":"9d0f687cf8e95c6335f1efb070da8029878417c28117e3b89aa8536ad70a5b95"}},".ai_agency/memory/state.json":{"size":3654,"mtime_ns":1785330750963913800,"indexed_at_ns":1787726739754651600,"word_count":254,"hashes":{".ai_agency/memory/state.json":"1204676f8f295d89733888bb87936061b7a700df0cc936fbf08fd5269b534e8d"}},".ai_agency/orchestrate.py":{"size":6800,"mtime_ns":1785148022072662500,"indexed_at_ns":1787726739755649500,"word_count":644,"hashes":{".ai_agency/orchestrate.py":"90ec787fdd4c71f5203c56b6899aaLine truncated
|
||||
{".agents/rules/graphify.md":{"size":933,"mtime_ns":1786870552830271100,"indexed_at_ns":1787726739808807000,"word_count":127,"hashes":{".agents/rules/graphify.md":"26f2577a68d808f7f33ec3e418b95b635aec180d93b22b975e9ae67c47e361c8"}},".agents/workflows/graphify.md":{"size":229,"mtime_ns":1786870552832398300,"indexed_at_ns":1787726739809809700,"word_count":37,"hashes":{".agents/workflows/graphify.md":"a81e2d017e0669c71099362b20854e4d9ed68753f1c240d0682120bdb9aa3c72"}},".ai_agency/AGENCY.md":{"size":8757,"mtime_ns":1785148021979607300,"indexed_at_ns":1787726739810808600,"word_count":1161,"hashes":{".ai_agency/agency.md":"88c7c13583a91fc7e41ce055fede9dce20f181e8d264557808989965e83a9030"}},".ai_agency/agents/00_intake.md":{"size":3819,"mtime_ns":1785148021984319000,"indexed_at_ns":1787726739811809900,"word_count":500,"hashes":{".ai_agency/agents/00_intake.md":"9dc8d7eeda0655717dc5b9d2f8572c47567b88ca88de7e4e5bf59869077ff407"}},".ai_agency/agents/01_auditor.md":{"size":3643,"mtime_ns":1785148021987782800,"indexed_at_ns":1787726739813809800,"word_count":467,"hashes":{".ai_agency/agents/01_auditor.md":"37ae09614034d9b5c855e0132b59a5e3cfd2fc38c54d1a5386fa43ba488c4d4d"}},".ai_agency/agents/02_ceo.md":{"size":2341,"mtime_ns":1785148021998374800,"indexed_at_ns":1787726739814809500,"word_count":294,"hashes":{".ai_agency/agents/02_ceo.md":"b4a76df6483fd52e1b9f1e70765b3f7b6d134dc003ef2ad0cb86b952c869c4a5"}},".ai_agency/agents/03_product_manager.md":{"size":8422,"mtime_ns":1785148022001968200,"indexed_at_ns":1787726739815810200,"word_count":1076,"hashes":{".ai_agency/agents/03_product_manager.md":"1927827474b1dd6fd4976af45b51f1ad3128fe3305c3af22639ab2584e8f0b55"}},".ai_agency/agents/04_architect.md":{"size":3603,"mtime_ns":1785148022004966000,"indexed_at_ns":1787726739816809500,"word_count":448,"hashes":{".ai_agency/agents/04_architect.md":"c96b04d5af093f455fa3c64ae177a69421e8150eb38c70bb8587b5a14e7d3ca8"}},".ai_agency/agents/05_dev_backend.md":{"size":7142,"mtime_ns":1785148022012481200,"indexed_at_ns":1787726739817810300,"word_count":953,"hashes":{".ai_agency/agents/05_dev_backend.md":"143a7c8a6fbedcd837d647efddb9f6b49074583502bd77f24c955bd86a6f3df8"}},".ai_agency/agents/06_dev_frontend.md":{"size":7518,"mtime_ns":1785148022017020100,"indexed_at_ns":1787726739819343800,"word_count":1011,"hashes":{".ai_agency/agents/06_dev_frontend.md":"e69679636d42dd626c7c76ddc96e1ddb656ab5b9ee912b89adcc7a9338f34a0b"}},".ai_agency/agents/07_qa_engineer.md":{"size":3764,"mtime_ns":1785148022020044600,"indexed_at_ns":1787726739820379800,"word_count":507,"hashes":{".ai_agency/agents/07_qa_engineer.md":"2616ef2b3ac39ded45fc669d5b5b140e72953fe61a819966fb040382e9b47d45"}},".ai_agency/agents/08_visual_qa.md":{"size":7910,"mtime_ns":1785148022030083200,"indexed_at_ns":1787726739821353800,"word_count":1121,"hashes":{".ai_agency/agents/08_visual_qa.md":"17a5a74039e8a9d7cb40c5bc3c616c7c92d53401efd92d0675d4bbe5e90572a8"}},".ai_agency/agents/09_devops_security.md":{"size":6825,"mtime_ns":1785148022034087400,"indexed_at_ns":1787726739822379900,"word_count":908,"hashes":{".ai_agency/agents/09_devops_security.md":"315bd3cee954ac3496da8db1b1718b75ab3822ec3a90f99bc77767ca99482edf"}},".ai_agency/agents/10_tech_writer.md":{"size":3119,"mtime_ns":1785148022037082600,"indexed_at_ns":1787726739824378500,"word_count":408,"hashes":{".ai_agency/agents/10_tech_writer.md":"3527b44265fec2472cc20ca4641667e1fa3d38cbc9b2fbf9a946ee1e531e9e37"}},".ai_agency/agents/11_deploy.md":{"size":3956,"mtime_ns":1785148022040602600,"indexed_at_ns":1787726739825379700,"word_count":537,"hashes":{".ai_agency/agents/11_deploy.md":"8169bc98b249cd83ba21551dea082f69dfa6deca5f5e4a7f2739a28746c143f9"}},".ai_agency/agents/12_seo_content.md":{"size":10963,"mtime_ns":1785148022048603900,"indexed_at_ns":1787726739826379900,"word_count":1539,"hashes":{".ai_agency/agents/12_seo_content.md":"2f50eb9db8bf1ad7bc23c7d8c3a4f167a2daafb73f095db9237c5bdb20e7a5f4"}},".ai_agency/memory/agent_outputs/README.txt":{"size":290,"mtime_ns":1785148022052150400,"indexed_at_ns":1787726728366347600,"word_count":34},".ai_agency/memory/backlog.json":{"size":10711,"mtime_ns":1785330750958890900,"indexed_at_ns":1787726739730126300,"word_count":981,"hashes":{".ai_agency/memory/backlog.json":"6bf3150a1877d03d03b368df21b84071381b1bb8cd03e3721fa9f8e6c38355be"}},".ai_agency/memory/scratchpad.md":{"size":1879,"mtime_ns":1785148022065114400,"indexed_at_ns":1787726739827380200,"word_count":249,"hashes":{".ai_agency/memory/scratchpad.md":"9d0f687cf8e95c6335f1efb070da8029878417c28117e3b89aa8536ad70a5b95"}},".ai_agency/memory/state.json":{"size":3654,"mtime_ns":1785330750963913800,"indexed_at_ns":1787726739754651600,"word_count":254,"hashes":{".ai_agency/memory/state.json":"1204676f8f295d89733888bb87936061b7a700df0cc936fbf08fd5269b534e8d"}},".ai_agency/orchestrate.py":{"size":6800,"mtime_ns":1785148022072662500,"indexed_at_ns":1787726739755649500,"word_count":644,"hashes":{".ai_agency/orchestrate.py":"90ec787fdd4c71f5203c56b6899aaLine truncated
|
||||
@@ -63,12 +63,12 @@
|
||||
</div>
|
||||
<div id="legend"></div>
|
||||
</div>
|
||||
<div id="stats">4208 nodes · 7642 edges · 312 communities</div>
|
||||
<div id="stats">4208 nodes · 7642 edges · 311 communities</div>
|
||||
</div>
|
||||
<script>
|
||||
const RAW_NODES = [{"id": "ai_agency_orchestrate", "label": "orchestrate.py", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.3, "font": {"size": 0, "color": "#ffffff"}, "title": "orchestrate.py", "community": 132, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 8}, {"id": "ai_agency_orchestrate_load_json", "label": "load_json()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "load_json()", "community": 132, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 5}, {"id": "ai_agency_orchestrate_save_json", "label": "save_json()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.8, "font": {"size": 0, "color": "#ffffff"}, "title": "save_json()", "community": 132, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 3}, {"id": "ai_agency_orchestrate_cmd_status", "label": "cmd_status()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.8, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_status()", "community": 132, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 3}, {"id": "ai_agency_orchestrate_cmd_progress", "label": "cmd_progress()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.8, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_progress()", "community": 132, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 3}, {"id": "ai_agency_orchestrate_cmd_next_task", "label": "cmd_next_task()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.8, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_next_task()", "community": 132, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 3}, {"id": "ai_agency_orchestrate_cmd_unblock", "label": "cmd_unblock()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 11.1, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_unblock()", "community": 132, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 4}, {"id": "ai_agency_orchestrate_cmd_reset", "label": "cmd_reset()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.8, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_reset()", "community": 132, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 3}, {"id": "ai_agency_orchestrate_main", "label": "main()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 11.7, "font": {"size": 0, "color": "#ffffff"}, "title": "main()", "community": 132, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 6}, {"id": "gitea_scripts_with_vpn", "label": "with-vpn.sh", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 11.7, "font": {"size": 0, "color": "#ffffff"}, "title": "with-vpn.sh", "community": 159, "community_name": "with-vpn.sh", "source_file": ".gitea/scripts/with-vpn.sh", "file_type": "code", "degree": 6}, {"id": "gitea_scripts_with_vpn_sh__entry", "label": "with-vpn.sh script", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.8, "font": {"size": 0, "color": "#ffffff"}, "title": "with-vpn.sh script", "community": 159, "community_name": "with-vpn.sh", "source_file": ".gitea/scripts/with-vpn.sh", "file_type": "code", "degree": 3}, {"id": "gitea_scripts_with_vpn_log", "label": "log()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "log()", "community": 159, "community_name": "with-vpn.sh", "source_file": ".gitea/scripts/with-vpn.sh", "file_type": "code", "degree": 5}, {"id": "gitea_scripts_with_vpn_vpn_is_up", "label": "vpn_is_up()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.6, "font": {"size": 0, "color": "#ffffLine truncated
|
||||
const RAW_NODES = [{"id": "ai_agency_orchestrate", "label": "orchestrate.py", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.3, "font": {"size": 0, "color": "#ffffff"}, "title": "orchestrate.py", "community": 132, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 8}, {"id": "ai_agency_orchestrate_load_json", "label": "load_json()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "load_json()", "community": 132, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 5}, {"id": "ai_agency_orchestrate_save_json", "label": "save_json()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.8, "font": {"size": 0, "color": "#ffffff"}, "title": "save_json()", "community": 132, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 3}, {"id": "ai_agency_orchestrate_cmd_status", "label": "cmd_status()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.8, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_status()", "community": 132, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 3}, {"id": "ai_agency_orchestrate_cmd_progress", "label": "cmd_progress()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.8, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_progress()", "community": 132, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 3}, {"id": "ai_agency_orchestrate_cmd_next_task", "label": "cmd_next_task()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.8, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_next_task()", "community": 132, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 3}, {"id": "ai_agency_orchestrate_cmd_unblock", "label": "cmd_unblock()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 11.1, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_unblock()", "community": 132, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 4}, {"id": "ai_agency_orchestrate_cmd_reset", "label": "cmd_reset()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.8, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_reset()", "community": 132, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 3}, {"id": "ai_agency_orchestrate_main", "label": "main()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 11.7, "font": {"size": 0, "color": "#ffffff"}, "title": "main()", "community": 132, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 6}, {"id": "gitea_scripts_with_vpn", "label": "with-vpn.sh", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 11.7, "font": {"size": 0, "color": "#ffffff"}, "title": "with-vpn.sh", "community": 159, "community_name": "with-vpn.sh", "source_file": ".gitea/scripts/with-vpn.sh", "file_type": "code", "degree": 6}, {"id": "gitea_scripts_with_vpn_sh__entry", "label": "with-vpn.sh script", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.8, "font": {"size": 0, "color": "#ffffff"}, "title": "with-vpn.sh script", "community": 159, "community_name": "with-vpn.sh", "source_file": ".gitea/scripts/with-vpn.sh", "file_type": "code", "degree": 3}, {"id": "gitea_scripts_with_vpn_log", "label": "log()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "log()", "community": 159, "community_name": "with-vpn.sh", "source_file": ".gitea/scripts/with-vpn.sh", "file_type": "code", "degree": 5}, {"id": "gitea_scripts_with_vpn_vpn_is_up", "label": "vpn_is_up()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.6, "font": {"size": 0, "color": "#ffffLine truncated
|
||||
const RAW_EDGES = [{"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_cmd_next_task", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_cmd_progress", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_cmd_reset", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_cmd_status", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_cmd_unblock", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_load_json", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_main", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_save_json", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate_cmd_next_task", "to": "ai_agency_orchestrate_load_json", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate_cmd_progress", "to": "ai_agency_orchestrate_load_json", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate_cmd_status", "to": "ai_agency_orchestrate_load_json", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate_cmd_unblock", "to": "ai_agency_orchestrate_load_json", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate_cmd_reset", "to": "ai_agency_orchestrate_save_json", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate_cmd_unblock", "to": "ai_agency_orchestrate_save_json", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate_main", "to": "ai_agency_orchestrate_cmd_status", "label": "indirect_call", "title": "indirect_call [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_agency_orchestrate_main", "to": "ai_agency_orchestrate_cmd_progress", "label": "indirect_call", "title": "indirect_call [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_agency_orchestrate_main", "to": "ai_agency_orchestrate_cmd_next_task", "label": "indirect_call", "title": "indirect_call [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_agency_orchestrate_main", "to": "ai_agency_orchestrate_cmd_unblock", "label": "indirect_call", "title": "indirect_call [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_agency_orchestrate_main", "to": "ai_agency_orchestrate_cmd_reset", "label": "indirect_call", "title": "indirect_call [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "gitea_scripts_with_vpn", "to": "gitea_scripts_with_vpn_cleanup", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "gitea_scripts_with_vpn", "to": "gitea_scripts_with_vpn_log", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "gitea_scripts_with_vpn", "to": "gitea_scripts_with_vpn_sh__entry", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "gitea_scripts_with_vpn", "to": "gitea_scripts_with_vpn_start_vpn", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7},Line truncated
|
||||
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Roles", "count": 40}, {"cid": 1, "color": "#F28E2B", "label": "app.module.ts", "count": 63}, {"cid": 2, "color": "#E15759", "label": "AdminTransactionFilterDto", "count": 9}, {"cid": 3, "color": "#76B7B2", "label": "productService.ts", "count": 64}, {"cid": 4, "color": "#59A14F", "label": "api", "count": 23}, {"cid": 5, "color": "#EDC948", "label": "CmsController", "count": 40}, {"cid": 6, "color": "#B07AA1", "label": "TicketsService", "count": 47}, {"cid": 7, "color": "#FF9DA7", "label": "SmsSettingsPage.tsx", "count": 8}, {"cid": 8, "color": "#9C755F", "label": "SettingsController", "count": 64}, {"cid": 9, "color": "#BAB0AC", "label": "devDependencies", "count": 25}, {"cid": 10, "color": "#4E79A7", "label": "CreateReviewDto", "count": 44}, {"cid": 11, "color": "#F28E2B", "label": "WikiController", "count": 22}, {"cid": 12, "color": "#E15759", "label": "index.ts", "count": 45}, {"cid": 13, "color": "#76B7B2", "label": "app-audit-verification.e2e-spec.js", "count": 41}, {"cid": 14, "color": "#59A14F", "label": "UserDashboard.tsx", "count": 40}, {"cid": 15, "color": "#EDC948", "label": "src/services/api.ts", "count": 55}, {"cid": 16, "color": "#B07AA1", "label": "DoctorQueryDto", "count": 39}, {"cid": 17, "color": "#FF9DA7", "label": "schema.ts", "count": 23}, {"cid": 18, "color": "#9C755F", "label": "JwtAuthGuard", "count": 32}, {"cid": 19, "color": "#BAB0AC", "label": "admin.controller.ts", "count": 16}, {"cid": 20, "color": "#4E79A7", "label": "CreateVideoDto", "count": 47}, {"cid": 21, "color": "#F28E2B", "label": ".getSmsConfig", "count": 24}, {"cid": 22, "color": "#E15759", "label": "BlogsService", "count": 20}, {"cid": 23, "color": "#76B7B2", "label": "MenuService", "count": 33}, {"cid": 24, "color": "#59A14F", "label": "BE-001", "count": 33}, {"cid": 25, "color": "#EDC948", "label": "FE-001", "count": 32}, {"cid": 26, "color": "#B07AA1", "label": "ADM-001", "count": 32}, {"cid": 27, "color": "#FF9DA7", "label": "DB-001", "count": 32}, {"cid": 28, "color": "#9C755F", "label": "TS-001", "count": 32}, {"cid": 29, "color": "#BAB0AC", "label": "TEST-001", "count": 32}, {"cid": 30, "color": "#4E79A7", "label": "DEVOPS-001", "count": 32}, {"cid": 31, "color": "#F28E2B", "label": "DOC-001", "count": 32}, {"cid": 32, "color": "#E15759", "label": "adminRoutes.tsx", "count": 40}, {"cid": 33, "color": "#76B7B2", "label": "WholesaleApplyDto", "count": 30}, {"cid": 34, "color": "#59A14F", "label": "B2BService", "count": 30}, {"cid": 35, "color": "#EDC948", "label": "ContactService", "count": 23}, {"cid": 36, "color": "#B07AA1", "label": "FaqService", "count": 28}, {"cid": 37, "color": "#FF9DA7", "label": "\u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u062a\u0633\u062a \u0633\u06cc\u0633\u062a\u0645 (Software Testing)", "count": 29}, {"cid": 38, "color": "#9C755F", "label": "Button", "count": 17}, {"cid": 39, "color": "#BAB0AC", "label": "CategoriesController", "count": 28}, {"cid": 40, "color": "#4E79A7", "label": "MediaController", "count": 30}, {"cid": 41, "color": "#F28E2B", "label": "What You Must Do When Invoked", "count": 27}, {"cid": 42, "color": "#E15759", "label": "SslController", "count": 28}, {"cid": 43, "color": "#76B7B2", "label": "BannersService", "count": 27}, {"cid": 44, "color": "#59A14F", "label": "TestimonialsService", "count": 26}, {"cid": 45, "color": "#EDC948", "label": "What You Must Do When Invoked", "count": 27}, {"cid": 46, "color": "#B07AA1", "label": "20260526145407_init/migration.sql", "count": 15}, {"cid": 47, "color": "#FF9DA7", "label": "IngredientsService", "count": 26}, {"cid": 48, "color": "#9C755F", "label": "auth.controller.ts", "count": 58}, {"cid": 49, "color": "#BAB0AC", "label": "devDependencies", "count": 19}, {"cid": 50, "color": "#4E79A7", "label": "devDependencies", "count": 17}, {"cid": 51, "color": "#F28E2B", "label": "BlogsController", "count": 32}, {"cid": 52, "color": "#E15759", "label": "PrescriptionsController", "count": 20}, {"cid": 53, "color": "#76B7B2", "label": "SmartAdvisorService", "count": 24}, {"cid": 54, "color": "#59A14F", "label": "Button.tsx", "count": 26}, {"cid": 55, "color": "#EDC948", "label": "UITexts.tsx", "count": 34}, {"cid": 56, "color": "#B07AA1", "label": "Orders.tsx", "count": 22}, {"cid": 57, "color": "#FF9DA7", "label": "Role & Core Objective", "count": 23}, {"cid": 58, "color": "#9C755F", "label": "components/Skeleton.tsx", "count": 11}, {"cid": 59, "color": "#BAB0AC", "label": "compilerOptions", "count": 31}, {"cid": 60, "color": "#4E79A7", "label": "CreateUserDto", "count": 13}, {"cid": 61, "color": "#F28E2B", "label": "ProductPage.tsx", "count": 29}, {"cid": 62, "color": "#E15759", "label": "RevalidationService", "count": 17}, {"cid": 63, "color": "#76B7B2", "label": "dependencies", "count": 43}, {"cid": 64, "color": "#59A14F", "label": "compilerOptions", "count": 21}, {"cid": 65, "color": "#EDC948", "label": "admin.service.ts", "count": 14}, {"cid": 66, "color": "#B07AA1"Line truncated
|
||||
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Roles", "count": 40}, {"cid": 1, "color": "#F28E2B", "label": "app.module.ts", "count": 63}, {"cid": 2, "color": "#E15759", "label": "AdminTransactionFilterDto", "count": 9}, {"cid": 3, "color": "#76B7B2", "label": "productService.ts", "count": 66}, {"cid": 4, "color": "#59A14F", "label": "PetProfile.tsx", "count": 29}, {"cid": 5, "color": "#EDC948", "label": "CmsController", "count": 40}, {"cid": 6, "color": "#B07AA1", "label": "TicketsService", "count": 47}, {"cid": 7, "color": "#FF9DA7", "label": "SmsSettingsPage.tsx", "count": 8}, {"cid": 8, "color": "#9C755F", "label": "SettingsController", "count": 64}, {"cid": 9, "color": "#BAB0AC", "label": "devDependencies", "count": 25}, {"cid": 10, "color": "#4E79A7", "label": "CreateReviewDto", "count": 44}, {"cid": 11, "color": "#F28E2B", "label": "WikiController", "count": 22}, {"cid": 12, "color": "#E15759", "label": "index.ts", "count": 45}, {"cid": 13, "color": "#76B7B2", "label": "app-audit-verification.e2e-spec.js", "count": 41}, {"cid": 14, "color": "#59A14F", "label": "toPersian", "count": 29}, {"cid": 15, "color": "#EDC948", "label": "src/services/api.ts", "count": 57}, {"cid": 16, "color": "#B07AA1", "label": "DoctorQueryDto", "count": 39}, {"cid": 17, "color": "#FF9DA7", "label": "schema.ts", "count": 23}, {"cid": 18, "color": "#9C755F", "label": "JwtAuthGuard", "count": 32}, {"cid": 19, "color": "#BAB0AC", "label": "admin.controller.ts", "count": 14}, {"cid": 20, "color": "#4E79A7", "label": "CreateVideoDto", "count": 47}, {"cid": 21, "color": "#F28E2B", "label": ".getSmsConfig", "count": 24}, {"cid": 22, "color": "#E15759", "label": "BlogsService", "count": 19}, {"cid": 23, "color": "#76B7B2", "label": "MenuService", "count": 33}, {"cid": 24, "color": "#59A14F", "label": "BE-001", "count": 33}, {"cid": 25, "color": "#EDC948", "label": "FE-001", "count": 32}, {"cid": 26, "color": "#B07AA1", "label": "ADM-001", "count": 32}, {"cid": 27, "color": "#FF9DA7", "label": "DB-001", "count": 32}, {"cid": 28, "color": "#9C755F", "label": "TS-001", "count": 32}, {"cid": 29, "color": "#BAB0AC", "label": "TEST-001", "count": 32}, {"cid": 30, "color": "#4E79A7", "label": "DEVOPS-001", "count": 32}, {"cid": 31, "color": "#F28E2B", "label": "DOC-001", "count": 32}, {"cid": 32, "color": "#E15759", "label": "adminRoutes.tsx", "count": 35}, {"cid": 33, "color": "#76B7B2", "label": "WholesaleApplyDto", "count": 30}, {"cid": 34, "color": "#59A14F", "label": "B2BService", "count": 30}, {"cid": 35, "color": "#EDC948", "label": "ContactService", "count": 23}, {"cid": 36, "color": "#B07AA1", "label": "FaqService", "count": 28}, {"cid": 37, "color": "#FF9DA7", "label": "\u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u062a\u0633\u062a \u0633\u06cc\u0633\u062a\u0645 (Software Testing)", "count": 29}, {"cid": 38, "color": "#9C755F", "label": "Button", "count": 17}, {"cid": 39, "color": "#BAB0AC", "label": "CategoriesController", "count": 28}, {"cid": 40, "color": "#4E79A7", "label": "MediaController", "count": 30}, {"cid": 41, "color": "#F28E2B", "label": "What You Must Do When Invoked", "count": 27}, {"cid": 42, "color": "#E15759", "label": "SslController", "count": 28}, {"cid": 43, "color": "#76B7B2", "label": "BannersService", "count": 27}, {"cid": 44, "color": "#59A14F", "label": "TestimonialsService", "count": 26}, {"cid": 45, "color": "#EDC948", "label": "What You Must Do When Invoked", "count": 27}, {"cid": 46, "color": "#B07AA1", "label": "20260526145407_init/migration.sql", "count": 15}, {"cid": 47, "color": "#FF9DA7", "label": "IngredientsService", "count": 26}, {"cid": 48, "color": "#9C755F", "label": "auth.controller.ts", "count": 58}, {"cid": 49, "color": "#BAB0AC", "label": "devDependencies", "count": 19}, {"cid": 50, "color": "#4E79A7", "label": "devDependencies", "count": 17}, {"cid": 51, "color": "#F28E2B", "label": "BlogsController", "count": 33}, {"cid": 52, "color": "#E15759", "label": "PrescriptionsController", "count": 20}, {"cid": 53, "color": "#76B7B2", "label": "SmartAdvisorService", "count": 24}, {"cid": 54, "color": "#59A14F", "label": "Button.tsx", "count": 37}, {"cid": 55, "color": "#EDC948", "label": "UITexts.tsx", "count": 34}, {"cid": 56, "color": "#B07AA1", "label": "Orders.tsx", "count": 22}, {"cid": 57, "color": "#FF9DA7", "label": "Role & Core Objective", "count": 23}, {"cid": 58, "color": "#9C755F", "label": "UserDashboard.tsx", "count": 23}, {"cid": 59, "color": "#BAB0AC", "label": "compilerOptions", "count": 31}, {"cid": 60, "color": "#4E79A7", "label": "CreateUserDto", "count": 13}, {"cid": 61, "color": "#F28E2B", "label": "ProductPage.tsx", "count": 27}, {"cid": 62, "color": "#E15759", "label": "RevalidationService", "count": 17}, {"cid": 63, "color": "#76B7B2", "label": "dependencies", "count": 43}, {"cid": 64, "color": "#59A14F", "label": "compilerOptions", "count": 21}, {"cid": 65, "color": "#EDC948", "label": "admin.service.ts", "count": 20}, {"cid": 66, "color": "#B07AA1", "Line truncated
|
||||
|
||||
// HTML-escape helper — prevents XSS when injecting graph data into innerHTML
|
||||
function esc(s) {
|
||||
|
||||
+2835
-2835
File diff suppressed because it is too large.
Load diff
+639
-639
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user