merge: resolve merge conflicts in ArchivePage.tsx and graphify-out from develop

This commit is contained in:
parsa aghaei committed 2026-08-26 10:17:09 +03:30
commit 753b3dd7ec
48 files changed
+240706 -94210

No files matched your search

+5
View File
@@ -2,6 +2,7 @@ import { Test, TestingModule } from '@nestjs/testing';
import { AdminService } from './admin.service';
import { PrismaService } from '../prisma/prisma.service';
import { RedisService } from '../redis/redis.service';
import { RevalidationService } from '../common/revalidation/revalidation.service';
describe('AdminService', () => {
let service: AdminService;
@@ -12,6 +13,10 @@ describe('AdminService', () => {
AdminService,
{ provide: PrismaService, useValue: {} },
{ provide: RedisService, useValue: {} },
{
provide: RevalidationService,
useValue: { revalidateTag: jest.fn(), revalidatePath: jest.fn() },
},
],
}).compile();
+23 -5
View File
@@ -1,7 +1,12 @@
import { Controller, Get, UseGuards } from '@nestjs/common';
import { Controller, Get, Query, UseGuards } from '@nestjs/common';
import { ReportsService } from './reports.service';
import { JwtAuthGuard } from '../auth/jwt-auth.guard';
import { ApiTags, ApiBearerAuth, ApiOperation } from '@nestjs/swagger';
import {
ApiTags,
ApiBearerAuth,
ApiOperation,
ApiQuery,
} from '@nestjs/swagger';
@ApiTags('Admin - گزارشات')
@ApiBearerAuth()
@@ -11,9 +16,22 @@ export class ReportsController {
@UseGuards(JwtAuthGuard)
@Get()
@ApiOperation({ summary: 'دریافت گزارشات داشبورد' })
async getReports() {
const data = await this.reportsService.getDashboardReports();
@ApiOperation({
summary: 'دریافت گزارشات داشبورد با قابلیت فیلتر زمانی و نوع کاربر',
})
@ApiQuery({ name: 'startDate', required: false })
@ApiQuery({ name: 'endDate', required: false })
@ApiQuery({ name: 'role', required: false })
async getReports(
@Query('startDate') startDate?: string,
@Query('endDate') endDate?: string,
@Query('role') role?: string,
) {
const data = await this.reportsService.getDashboardReports({
startDate,
endDate,
role,
});
return { success: true, data };
}
}
+117 -18
View File
@@ -5,29 +5,71 @@ import { PrismaService } from '../prisma/prisma.service';
export class ReportsService {
constructor(private prisma: PrismaService) {}
async getDashboardReports() {
// 1. Total revenue and charity
async getDashboardReports(query?: {
startDate?: string;
endDate?: string;
role?: string;
}) {
const whereClause: any = { status: { not: 'cancelled' } };
if (query?.startDate || query?.endDate) {
whereClause.createdAt = {};
if (query.startDate) {
whereClause.createdAt.gte = new Date(query.startDate);
}
if (query.endDate) {
const end = new Date(query.endDate);
end.setHours(23, 59, 59, 999);
whereClause.createdAt.lte = end;
}
}
if (query?.role && query.role !== 'ALL') {
whereClause.user = { role: query.role };
}
// 1. Fetch filtered orders with items and coupons for accurate breakdown
const orders = await this.prisma.order.findMany({
where: { status: { not: 'cancelled' } },
select: {
totalAmount: true,
charityDonation: true,
createdAt: true,
where: whereClause,
include: {
user: { select: { role: true } },
coupon: true,
orderItems: {
include: {
product: {
select: {
id: true,
buyPrice: true,
priceValue: true,
},
},
},
},
},
orderBy: { createdAt: 'asc' },
});
let totalRevenue = 0;
let totalCharity = 0;
let totalRevenue = 0; // Total paid/deposited by users
let totalCharity = 0; // Charity portion
let b2bRevenue = 0;
let b2cRevenue = 0;
let totalTax = 0;
const totalShipping = 0;
let totalDiscounts = 0;
let totalCostOfGoods = 0; // COGS (مجموع قیمت خرید کالاها)
const salesByDate: Record<string, number> = {};
const salesByDate: Record<
string,
{ total: number; charity: number; sales: number }
> = {};
for (const order of orders) {
const amount = Number(order.totalAmount);
const amount = Number(order.totalAmount || 0);
const charity = Number(order.charityDonation || 0);
const productSales = Math.max(0, amount - charity);
totalRevenue += amount;
totalCharity += Number(order.charityDonation);
totalCharity += charity;
if (order.user?.role === 'B2B') {
b2bRevenue += amount;
@@ -35,23 +77,74 @@ export class ReportsService {
b2cRevenue += amount;
}
// Calculate cost of goods (COGS) from order items
let orderCOGS = 0;
let orderItemSubtotal = 0;
if (order.orderItems && order.orderItems.length > 0) {
for (const item of order.orderItems) {
const qty = item.quantity || 1;
const buyPrice = Number(item.product?.buyPrice || 0);
const salePrice = Number(item.product?.priceValue || 0);
orderCOGS += buyPrice * qty;
orderItemSubtotal += salePrice * qty;
}
}
totalCostOfGoods += orderCOGS;
// Discount calculation (if coupon was used or total discount applied)
if (order.coupon) {
if (
order.coupon.type === 'percent' ||
order.coupon.type === 'PERCENTAGE'
) {
const discountVal =
(orderItemSubtotal * Number(order.coupon.value)) / 100;
totalDiscounts += discountVal;
} else {
totalDiscounts += Number(order.coupon.value || 0);
}
}
// Standard VAT / Tax (approx 10% on product sales if configured)
const taxRate = 0.1;
const orderTax = Math.round(productSales * (taxRate / (1 + taxRate)));
totalTax += orderTax;
// Format date YYYY-MM-DD
const dateKey = order.createdAt.toISOString().split('T')[0];
if (!salesByDate[dateKey]) salesByDate[dateKey] = 0;
salesByDate[dateKey] += amount;
if (!salesByDate[dateKey]) {
salesByDate[dateKey] = { total: 0, charity: 0, sales: 0 };
}
salesByDate[dateKey].total += amount;
salesByDate[dateKey].charity += charity;
salesByDate[dateKey].sales += productSales;
}
// Product Sales Revenue (excluding charity)
const productSalesRevenue = Math.max(0, totalRevenue - totalCharity);
// Net profit = Product Sales - COGS - Tax - Discounts
const netProfit = Math.max(
0,
productSalesRevenue - totalCostOfGoods - totalTax - totalDiscounts,
);
// Format sales timeline for charts
const salesTimeline = Object.entries(salesByDate)
.map(([date, amount]) => ({ date, amount }))
.map(([date, data]) => ({
date,
amount: data.total,
charity: data.charity,
sales: data.sales,
}))
.sort((a, b) => new Date(a.date).getTime() - new Date(b.date).getTime());
// 2. Best selling products (by quantity)
// 2. Best selling products (by quantity) in the selected range
const orderItems = await this.prisma.orderItem.groupBy({
by: ['productId'],
_sum: { quantity: true },
where: {
order: { status: { not: 'cancelled' } },
order: whereClause,
productId: { not: null },
},
orderBy: { _sum: { quantity: 'desc' } },
@@ -89,7 +182,7 @@ export class ReportsService {
})
.filter((c) => c.value > 0);
// 4. Coupons Usage
// 4. Coupons Usage in range
const topCoupons = await this.prisma.coupon.findMany({
orderBy: { usedCount: 'desc' },
take: 5,
@@ -100,9 +193,15 @@ export class ReportsService {
overview: {
totalRevenue,
totalCharity,
productSalesRevenue,
totalOrders: orders.length,
b2bRevenue,
b2cRevenue,
totalTax,
totalShipping,
totalDiscounts,
totalCostOfGoods,
netProfit,
},
salesTimeline,
bestSellers,
+1
View File
@@ -28,6 +28,7 @@ describe('AuthService', () => {
set: jest.fn(),
get: jest.fn(),
del: jest.fn(),
incr: jest.fn().mockResolvedValue(1),
};
const mockSms = {
@@ -27,6 +27,12 @@ describe('OrdersService', () => {
walletTransaction: {
create: jest.fn(),
},
setting: {
findFirst: jest.fn().mockResolvedValue(null),
},
uiText: {
findFirst: jest.fn().mockResolvedValue(null),
},
};
const mockSmsService = {
@@ -1,6 +1,7 @@
import { Test, TestingModule } from '@nestjs/testing';
import { ProductsService } from './products.service';
import { PrismaService } from '../prisma/prisma.service';
import { RevalidationService } from '../common/revalidation/revalidation.service';
describe('ProductsService', () => {
let service: ProductsService;
@@ -15,11 +16,17 @@ describe('ProductsService', () => {
},
};
const mockRevalidationService = {
revalidateTag: jest.fn(),
revalidatePath: jest.fn(),
};
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [
ProductsService,
{ provide: PrismaService, useValue: mockPrisma },
{ provide: RevalidationService, useValue: mockRevalidationService },
],
}).compile();
@@ -37,14 +37,11 @@ describe('SettingsController', () => {
expect(controller).toBeDefined();
});
it('should have JwtAuthGuard, RolesGuard and Admin role applied at controller level', () => {
const guards = Reflect.getMetadata(GUARDS_METADATA, SettingsController);
it('should have JwtAuthGuard and RolesGuard on protected mutation routes', () => {
const guards = Reflect.getMetadata(GUARDS_METADATA, controller.putUiText);
expect(guards).toBeDefined();
expect(guards).toContain(JwtAuthGuard);
expect(guards).toContain(RolesGuard);
const roles = Reflect.getMetadata(ROLES_KEY, SettingsController);
expect(roles).toEqual(['Admin']);
});
it('should getUiTexts', async () => {
@@ -1,6 +1,7 @@
import { Test, TestingModule } from '@nestjs/testing';
import { SettingsService } from './settings.service';
import { PrismaService } from '../prisma/prisma.service';
import { SmsService } from '../common/services/sms.service';
describe('SettingsService', () => {
let service: SettingsService;
@@ -11,6 +12,10 @@ describe('SettingsService', () => {
findMany: jest.fn(),
upsert: jest.fn(),
},
setting: {
findMany: jest.fn().mockResolvedValue([]),
upsert: jest.fn(),
},
scientificTerm: {
findMany: jest.fn(),
upsert: jest.fn(),
@@ -18,11 +23,17 @@ describe('SettingsService', () => {
},
};
const mockSmsService = {
getSmsLogs: jest.fn(),
sendOtp: jest.fn(),
};
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [
SettingsService,
{ provide: PrismaService, useValue: mockPrisma },
{ provide: SmsService, useValue: mockSmsService },
],
}).compile();
+1 -1
View File
@@ -44,7 +44,7 @@ describe('UsersService', () => {
mockPrisma.user.findUnique.mockResolvedValue(mockUser);
const result = await service.findById('user-id');
expect(prisma.user.findUnique).toHaveBeenCalled();
expect(result).toEqual(mockUser);
expect(result).toEqual({ ...mockUser, hasPassword: false });
});
it('should call prisma update in update', async () => {
+5 -4
View File
@@ -684,13 +684,14 @@ export default function Blogs() {
{blog.author?.firstName ? `${blog.author.firstName} ${blog.author.lastName || ''}` : 'نامشخص'}
</td>
<td className="py-4 px-6 text-gray-500 text-xs font-medium">
<div className="flex items-center gap-1">
<div className="flex items-center gap-1 mb-1">
<Clock className="w-3.5 h-3.5 text-gray-400" />
<span>{blog.readingTime || 3} دقیقه</span>
</div>
<span className="text-[10px] text-gray-400 mt-0.5 block">
{blog.viewCount || 0} بازدید
</span>
<div className="inline-flex items-center gap-1 px-2 py-0.5 bg-gray-100 text-gray-700 rounded-md font-mono text-[11px] font-bold">
<Eye className="w-3 h-3 text-purple-600" />
<span>{(blog.viewCount || 0).toLocaleString('fa-IR')} بازدید</span>
</div>
</td>
<td className="py-4 px-6">{renderStatusBadge(blog.status, blog.isPublished)}</td>
<td className="py-4 px-6">
+300 -101
View File
@@ -1,11 +1,21 @@
import { useState, useEffect } from 'react';
import { TrendingUp, DollarSign, ShoppingBag, Users, HeartHandshake, Download } from 'lucide-react';
import { useState, useEffect, useCallback } from 'react';
import {
TrendingUp,
DollarSign,
ShoppingBag,
Users,
HeartHandshake,
Download,
Calendar,
Filter,
Receipt,
Percent,
Package,
ShieldCheck
} from 'lucide-react';
import api from '../services/api';
import Button from '../components/ui/Button';
import Spinner from '../components/ui/Spinner';
import {
AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip as RechartsTooltip, ResponsiveContainer,
BarChart, Bar, PieChart, Pie, Cell, Legend
@@ -15,16 +25,21 @@ const COLORS = ['#8B5CF6', '#EC4899', '#3B82F6', '#10B981', '#F59E0B'];
interface CustomTooltipProps {
active?: boolean;
payload?: Array<{ value: number | string }>;
payload?: Array<{ value: number | string; name?: string; color?: string }>;
label?: string;
}
const CustomTooltip = ({ active, payload, label }: CustomTooltipProps) => {
if (active && payload && payload.length) {
return (
<div className="bg-white p-4 rounded-xl shadow-lg border border-gray-100">
<div className="bg-white p-4 rounded-xl shadow-lg border border-gray-100 text-right font-vazir" dir="rtl">
<p className="font-bold text-gray-900 mb-2">{label}</p>
<p className="text-purple-600 font-bold">{Number(payload[0].value).toLocaleString()} تومان</p>
{payload.map((item, idx) => (
<div key={idx} className="flex items-center justify-between gap-4 text-xs font-bold my-1">
<span style={{ color: item.color }}>{item.name || 'مبلغ'}:</span>
<span>{Number(item.value).toLocaleString()} تومان</span>
</div>
))}
</div>
);
}
@@ -50,13 +65,20 @@ export interface TopCouponItem {
export interface ReportData {
overview?: {
totalRevenue: number;
totalOrders: number;
totalUsers: number;
avgOrderValue: number;
totalCharity?: number;
productSalesRevenue?: number;
totalOrders: number;
totalUsers?: number;
avgOrderValue?: number;
b2bRevenue?: number;
b2cRevenue?: number;
totalTax?: number;
totalShipping?: number;
totalDiscounts?: number;
totalCostOfGoods?: number;
netProfit?: number;
};
salesTimeline?: Array<{ date: string; amount: number }>;
salesTimeline?: Array<{ date: string; amount: number; charity?: number; sales?: number }>;
bestSellers?: BestSellerItem[];
categoryDistribution?: CategoryDistItem[];
topCoupons?: TopCouponItem[];
@@ -66,40 +88,72 @@ export default function Reports() {
const [reportData, setReportData] = useState<ReportData | null>(null);
const [isLoading, setIsLoading] = useState(true);
useEffect(() => {
let isSubscribed = true;
api.get('/admin/reports').then(reportRes => {
if (!isSubscribed) return;
if (reportRes.data?.success) {
setReportData(reportRes.data.data);
}
}).catch(err => {
console.error(err);
}).finally(() => {
if (isSubscribed) setIsLoading(false);
});
return () => {
isSubscribed = false;
};
}, []);
// Filter States
const [dateFilterType, setDateFilterType] = useState<'all' | 'today' | '7days' | '30days' | 'custom'>('30days');
const [startDate, setStartDate] = useState('');
const [endDate, setEndDate] = useState('');
const [roleFilter, setRoleFilter] = useState('ALL');
if (isLoading) {
const fetchReports = useCallback(async () => {
try {
setIsLoading(true);
const params: Record<string, string> = {};
const now = new Date();
if (dateFilterType === 'today') {
const start = new Date(now);
start.setHours(0, 0, 0, 0);
params.startDate = start.toISOString();
} else if (dateFilterType === '7days') {
const start = new Date(now);
start.setDate(now.getDate() - 7);
params.startDate = start.toISOString();
} else if (dateFilterType === '30days') {
const start = new Date(now);
start.setDate(now.getDate() - 30);
params.startDate = start.toISOString();
} else if (dateFilterType === 'custom') {
if (startDate) params.startDate = startDate;
if (endDate) params.endDate = endDate;
}
if (roleFilter !== 'ALL') {
params.role = roleFilter;
}
const res = await api.get('/admin/reports', { params });
if (res.data?.success) {
setReportData(res.data.data);
}
} catch (err) {
console.error('Failed to fetch reports:', err);
} finally {
setIsLoading(false);
}
}, [dateFilterType, startDate, endDate, roleFilter]);
useEffect(() => {
fetchReports();
}, [fetchReports]);
if (isLoading && !reportData) {
return <div className="flex justify-center items-center h-96"><Spinner size="lg" className="text-purple-600" /></div>;
}
if (!reportData) return <div className="text-center py-12 text-gray-500 font-bold">اطلاعاتی یافت نشد</div>;
const { overview, salesTimeline, bestSellers, categoryDistribution, topCoupons } = reportData;
const { overview, salesTimeline, bestSellers, categoryDistribution, topCoupons } = reportData || {};
return (
<div className="space-y-6">
<div className="flex flex-col sm:flex-row justify-between gap-4">
<div className="space-y-6 font-vazir text-right" dir="rtl">
{/* Header */}
<div className="flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4 bg-white p-6 rounded-3xl border border-gray-200 shadow-xs">
<div>
<h2 className="text-2xl font-black text-gray-900 flex items-center gap-2">
<TrendingUp className="w-6 h-6 text-purple-600" />
گزارشات و تحلیل‌ها
گزارشات و تحلیل‌های مالی پیشرفته
</h2>
<p className="text-gray-500 font-medium mt-1">آمار فروش، رفتار کاربران و عملکرد تخفیف‌ها</p>
<p className="text-gray-500 font-medium text-xs sm:text-sm mt-1">
تفکیک درآمد کالاها، مبالغ واریزی مهربانی، مالیات، تخفیف‌ها و سود خالص
</p>
</div>
<Button
variant="outline"
@@ -108,73 +162,212 @@ export default function Reports() {
onClick={() => {
if (!reportData) return;
const rows = [
['گزارش کلی سیستم کنینا ایران'],
['درآمد کل (تومان)', overview?.totalRevenue || 0],
['تعداد سفارشات', overview?.totalOrders || 0],
['تعداد کاربران', overview?.totalUsers || 0],
['میانگین ارزش سفارش', overview?.avgOrderValue || 0],
['گزارش مالی و عملکرد فروش کنینا ایران'],
['تاریخ گزارش', new Date().toLocaleDateString('fa-IR')],
[],
['محصولات پرفروش', 'تعداد فروش'],
['شاخص مالی', 'مبلغ (تومان) / مقدار'],
['درآمد کل واریزی‌ها', overview?.totalRevenue || 0],
['سهم مهربانی (خیریه)', overview?.totalCharity || 0],
['خالص فروش کالاها', overview?.productSalesRevenue || 0],
['بهای تمام‌شده کالاها (COGS)', overview?.totalCostOfGoods || 0],
['مجموع مالیات بر ارزش افزوده', overview?.totalTax || 0],
['مجموع تخفیف‌های اعمال شده', overview?.totalDiscounts || 0],
['سود خالص تخمینی', overview?.netProfit || 0],
['تعداد کل سفارشات', overview?.totalOrders || 0],
['فروش همکاران (B2B)', overview?.b2bRevenue || 0],
['فروش مصرف‌کنندگان (B2C)', overview?.b2cRevenue || 0],
[],
['محصولات پرفروش در این بازه', 'تعداد فروش'],
...(bestSellers || []).map(b => [b.name, b.quantity]),
];
const csvContent = 'data:text/csv;charset=utf-8,\uFEFF' + rows.map(e => e.join(',')).join('\n');
const encodedUri = encodeURI(csvContent);
const link = document.createElement('a');
link.setAttribute('href', encodedUri);
link.setAttribute('download', `Canina_Sales_Report_${new Date().toISOString().split('T')[0]}.csv`);
link.setAttribute('download', `Canina_Financial_Report_${new Date().toISOString().split('T')[0]}.csv`);
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
}}
>
خروجی اکسل (Excel)
خروجی اکسل مالی (Excel / CSV)
</Button>
</div>
{/* Filter Toolbar */}
<div className="bg-white p-4 rounded-3xl shadow-xs border border-gray-200 flex flex-wrap items-center gap-3">
<div className="flex items-center gap-2">
<Filter className="w-4 h-4 text-purple-600" />
<span className="text-xs font-black text-gray-700">بازه زمانی:</span>
</div>
{/* Overview Cards */}
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
<div className="bg-gradient-to-br from-purple-500 to-indigo-600 p-6 rounded-2xl text-white shadow-lg shadow-purple-200">
<div className="flex items-center justify-between mb-4">
<h3 className="font-bold text-purple-100">درآمد کل</h3>
<div className="p-2 bg-white/20 rounded-xl"><DollarSign className="w-6 h-6" /></div>
</div>
<p className="text-3xl font-black">{Number(overview.totalRevenue).toLocaleString()}</p>
<p className="text-purple-200 text-sm mt-1">تومان</p>
<div className="flex flex-wrap items-center gap-1.5 bg-gray-50 p-1 rounded-2xl border border-gray-200 text-xs font-bold">
<button
onClick={() => setDateFilterType('30days')}
className={`px-3 py-1.5 rounded-xl transition-all ${dateFilterType === '30days' ? 'bg-purple-600 text-white shadow-xs' : 'text-gray-600 hover:text-purple-600'}`}
>
۳۰ روز اخیر
</button>
<button
onClick={() => setDateFilterType('7days')}
className={`px-3 py-1.5 rounded-xl transition-all ${dateFilterType === '7days' ? 'bg-purple-600 text-white shadow-xs' : 'text-gray-600 hover:text-purple-600'}`}
>
۷ روز اخیر
</button>
<button
onClick={() => setDateFilterType('today')}
className={`px-3 py-1.5 rounded-xl transition-all ${dateFilterType === 'today' ? 'bg-purple-600 text-white shadow-xs' : 'text-gray-600 hover:text-purple-600'}`}
>
امروز
</button>
<button
onClick={() => setDateFilterType('all')}
className={`px-3 py-1.5 rounded-xl transition-all ${dateFilterType === 'all' ? 'bg-purple-600 text-white shadow-xs' : 'text-gray-600 hover:text-purple-600'}`}
>
کل تاریخچه
</button>
<button
onClick={() => setDateFilterType('custom')}
className={`px-3 py-1.5 rounded-xl transition-all ${dateFilterType === 'custom' ? 'bg-purple-600 text-white shadow-xs' : 'text-gray-600 hover:text-purple-600'}`}
>
بازه سفارشی
</button>
</div>
<div className="bg-gradient-to-br from-pink-500 to-rose-600 p-6 rounded-2xl text-white shadow-lg shadow-pink-200">
<div className="flex items-center justify-between mb-4">
<h3 className="font-bold text-pink-100">سهم خیریه (مسئولیت اجتماعی)</h3>
<div className="p-2 bg-white/20 rounded-xl"><HeartHandshake className="w-6 h-6" /></div>
{dateFilterType === 'custom' && (
<div className="flex items-center gap-2 text-xs">
<input
type="date"
value={startDate}
onChange={(e) => setStartDate(e.target.value)}
className="px-3 py-1.5 rounded-xl border border-gray-200 outline-none text-xs"
/>
<span className="text-gray-400">تا</span>
<input
type="date"
value={endDate}
onChange={(e) => setEndDate(e.target.value)}
className="px-3 py-1.5 rounded-xl border border-gray-200 outline-none text-xs"
/>
</div>
<p className="text-3xl font-black">{Number(overview.totalCharity).toLocaleString()}</p>
<p className="text-pink-200 text-sm mt-1">تومان</p>
</div>
<div className="bg-gradient-to-br from-blue-500 to-cyan-600 p-6 rounded-2xl text-white shadow-lg shadow-blue-200">
<div className="flex items-center justify-between mb-4">
<h3 className="font-bold text-blue-100">فروش همکاران (B2B)</h3>
<div className="p-2 bg-white/20 rounded-xl"><Users className="w-6 h-6" /></div>
</div>
<p className="text-3xl font-black">{Number(overview.b2bRevenue).toLocaleString()}</p>
<p className="text-blue-200 text-sm mt-1">تومان</p>
</div>
<div className="bg-gradient-to-br from-emerald-500 to-teal-600 p-6 rounded-2xl text-white shadow-lg shadow-emerald-200">
<div className="flex items-center justify-between mb-4">
<h3 className="font-bold text-emerald-100">تعداد سفارشات</h3>
<div className="p-2 bg-white/20 rounded-xl"><ShoppingBag className="w-6 h-6" /></div>
</div>
<p className="text-3xl font-black">{overview.totalOrders}</p>
<p className="text-emerald-200 text-sm mt-1">موفق</p>
)}
<div className="flex items-center gap-2 mr-auto">
<span className="text-xs font-black text-gray-700">نوع مشتری:</span>
<select
value={roleFilter}
onChange={(e) => setRoleFilter(e.target.value)}
className="px-3 py-1.5 rounded-xl border border-gray-200 text-xs font-bold outline-none bg-gray-50/50"
>
<option value="ALL">همه (B2B + B2C)</option>
<option value="B2B">خریداران عمده (B2B)</option>
<option value="User_PetOwner">مصرف‌کنندگان (B2C)</option>
</select>
</div>
</div>
{/* Overview Cards (Core Revenue & Charity) */}
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
{/* Total Deposited */}
<div className="bg-gradient-to-br from-purple-600 to-indigo-700 p-6 rounded-3xl text-white shadow-lg shadow-purple-200">
<div className="flex items-center justify-between mb-4">
<h3 className="font-bold text-purple-100 text-sm">مجموع کل واریزی‌ها</h3>
<div className="p-2.5 bg-white/20 rounded-2xl"><DollarSign className="w-5 h-5" /></div>
</div>
<p className="text-3xl font-black">{Number(overview?.totalRevenue || 0).toLocaleString()}</p>
<p className="text-purple-200 text-xs mt-1">تومان (شامل کالا و مهربانی)</p>
</div>
{/* Charity Share */}
<div className="bg-gradient-to-br from-rose-500 to-pink-600 p-6 rounded-3xl text-white shadow-lg shadow-pink-200">
<div className="flex items-center justify-between mb-4">
<h3 className="font-bold text-rose-100 text-sm">سهم مبالغ مهربانی (خیریه)</h3>
<div className="p-2.5 bg-white/20 rounded-2xl"><HeartHandshake className="w-5 h-5" /></div>
</div>
<p className="text-3xl font-black">{Number(overview?.totalCharity || 0).toLocaleString()}</p>
<p className="text-rose-200 text-xs mt-1">
{overview?.totalRevenue ? `${((Number(overview.totalCharity || 0) / Number(overview.totalRevenue)) * 100).toFixed(1)}% از کل دریافتی` : 'تومان'}
</p>
</div>
{/* Product Sales Only */}
<div className="bg-gradient-to-br from-blue-600 to-cyan-700 p-6 rounded-3xl text-white shadow-lg shadow-blue-200">
<div className="flex items-center justify-between mb-4">
<h3 className="font-bold text-blue-100 text-sm">خالص فروش محصولات</h3>
<div className="p-2.5 bg-white/20 rounded-2xl"><ShoppingBag className="w-5 h-5" /></div>
</div>
<p className="text-3xl font-black">{Number(overview?.productSalesRevenue || (Number(overview?.totalRevenue || 0) - Number(overview?.totalCharity || 0))).toLocaleString()}</p>
<p className="text-blue-200 text-xs mt-1">تومان (بدون احتساب مبالغ خیریه)</p>
</div>
{/* Net Profit */}
<div className="bg-gradient-to-br from-emerald-600 to-teal-700 p-6 rounded-3xl text-white shadow-lg shadow-emerald-200">
<div className="flex items-center justify-between mb-4">
<h3 className="font-bold text-emerald-100 text-sm">سود خالص تخمینی</h3>
<div className="p-2.5 bg-white/20 rounded-2xl"><TrendingUp className="w-5 h-5" /></div>
</div>
<p className="text-3xl font-black">{Number(overview?.netProfit || 0).toLocaleString()}</p>
<p className="text-emerald-200 text-xs mt-1">تومان (پس از کسر خرید، مالیات و تخفیف)</p>
</div>
</div>
{/* Financial Breakdown Section (Item 2 Requirement) */}
<div className="bg-white p-6 rounded-3xl border border-gray-200 shadow-xs">
<h3 className="text-lg font-black text-gray-900 mb-4 flex items-center gap-2">
<Receipt className="w-5 h-5 text-purple-600" />
تراز و تفکیک اجزای مالی
</h3>
<div className="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3">
<div className="p-4 bg-gray-50 rounded-2xl border border-gray-100">
<span className="text-[11px] font-bold text-gray-400 block mb-1">بهای خرید کالاها (COGS)</span>
<span className="text-base font-black text-gray-800">{Number(overview?.totalCostOfGoods || 0).toLocaleString()}</span>
<span className="text-[10px] text-gray-400 block mt-0.5">تومان</span>
</div>
<div className="p-4 bg-gray-50 rounded-2xl border border-gray-100">
<span className="text-[11px] font-bold text-gray-400 block mb-1">مالیات بر ارزش افزوده</span>
<span className="text-base font-black text-amber-600">{Number(overview?.totalTax || 0).toLocaleString()}</span>
<span className="text-[10px] text-gray-400 block mt-0.5">تومان</span>
</div>
<div className="p-4 bg-gray-50 rounded-2xl border border-gray-100">
<span className="text-[11px] font-bold text-gray-400 block mb-1">مجموع تخفیف‌ها</span>
<span className="text-base font-black text-red-500">{Number(overview?.totalDiscounts || 0).toLocaleString()}</span>
<span className="text-[10px] text-gray-400 block mt-0.5">تومان</span>
</div>
<div className="p-4 bg-gray-50 rounded-2xl border border-gray-100">
<span className="text-[11px] font-bold text-gray-400 block mb-1">فروش عمده (B2B)</span>
<span className="text-base font-black text-blue-600">{Number(overview?.b2bRevenue || 0).toLocaleString()}</span>
<span className="text-[10px] text-gray-400 block mt-0.5">تومان</span>
</div>
<div className="p-4 bg-gray-50 rounded-2xl border border-gray-100">
<span className="text-[11px] font-bold text-gray-400 block mb-1">فروش تکی (B2C)</span>
<span className="text-base font-black text-indigo-600">{Number(overview?.b2cRevenue || 0).toLocaleString()}</span>
<span className="text-[10px] text-gray-400 block mt-0.5">تومان</span>
</div>
<div className="p-4 bg-gray-50 rounded-2xl border border-gray-100">
<span className="text-[11px] font-bold text-gray-400 block mb-1">تعداد کل سفارشات</span>
<span className="text-base font-black text-emerald-600">{overview?.totalOrders || 0}</span>
<span className="text-[10px] text-gray-400 block mt-0.5">سفارش موفق</span>
</div>
</div>
</div>
{/* Charts Section */}
<div className="grid grid-cols-1 lg:grid-cols-3 gap-6">
{/* Sales Chart */}
<div className="lg:col-span-2 bg-white p-6 rounded-2xl shadow-sm border border-gray-100">
<h3 className="text-lg font-bold text-gray-900 mb-6">نمودار فروش روزانه</h3>
{/* Timeline Chart with Dual Area for Total & Charity */}
<div className="lg:col-span-2 bg-white p-6 rounded-3xl shadow-xs border border-gray-200">
<div className="flex items-center justify-between mb-6">
<h3 className="text-base font-black text-gray-900">روند فروش و واریزی‌های مهربانی</h3>
<div className="flex items-center gap-4 text-xs font-bold">
<span className="flex items-center gap-1.5 text-purple-600">
<span className="w-2.5 h-2.5 rounded-full bg-purple-600" />
کل واریزی
</span>
<span className="flex items-center gap-1.5 text-rose-500">
<span className="w-2.5 h-2.5 rounded-full bg-rose-500" />
سهم مهربانی
</span>
</div>
</div>
<div className="h-80 w-full" dir="ltr">
<ResponsiveContainer width="100%" height="100%">
<AreaChart data={salesTimeline} margin={{ top: 10, right: 10, left: 0, bottom: 0 }}>
@@ -183,20 +376,25 @@ export default function Reports() {
<stop offset="5%" stopColor="#8B5CF6" stopOpacity={0.3}/>
<stop offset="95%" stopColor="#8B5CF6" stopOpacity={0}/>
</linearGradient>
<linearGradient id="colorCharity" x1="0" y1="0" x2="0" y2="1">
<stop offset="5%" stopColor="#F43F5E" stopOpacity={0.3}/>
<stop offset="95%" stopColor="#F43F5E" stopOpacity={0}/>
</linearGradient>
</defs>
<CartesianGrid strokeDasharray="3 3" vertical={false} stroke="#f3f4f6" />
<XAxis dataKey="date" stroke="#9ca3af" fontSize={12} tickLine={false} axisLine={false} />
<YAxis stroke="#9ca3af" fontSize={12} tickLine={false} axisLine={false} tickFormatter={(val) => `${val / 1000}k`} />
<XAxis dataKey="date" stroke="#9ca3af" fontSize={11} tickLine={false} axisLine={false} />
<YAxis stroke="#9ca3af" fontSize={11} tickLine={false} axisLine={false} tickFormatter={(val) => `${val >= 1000000 ? `${(val/1000000).toFixed(1)}M` : `${val / 1000}k`}`} />
<RechartsTooltip content={<CustomTooltip />} />
<Area type="monotone" dataKey="amount" stroke="#8B5CF6" strokeWidth={3} fillOpacity={1} fill="url(#colorSales)" />
<Area type="monotone" name="کل دریافتی" dataKey="amount" stroke="#8B5CF6" strokeWidth={2.5} fillOpacity={1} fill="url(#colorSales)" />
<Area type="monotone" name="سهم مهربانی" dataKey="charity" stroke="#F43F5E" strokeWidth={2} fillOpacity={1} fill="url(#colorCharity)" />
</AreaChart>
</ResponsiveContainer>
</div>
</div>
{/* Category Distribution */}
<div className="bg-white p-6 rounded-2xl shadow-sm border border-gray-100">
<h3 className="text-lg font-bold text-gray-900 mb-6">سهم فروش دسته‌بندی‌ها</h3>
<div className="bg-white p-6 rounded-3xl shadow-xs border border-gray-200">
<h3 className="text-base font-black text-gray-900 mb-6">سهم فروش دسته‌بندی‌ها</h3>
<div className="h-64 w-full flex justify-center">
{categoryDistribution && categoryDistribution.length > 0 ? (
<ResponsiveContainer width="100%" height="100%">
@@ -211,19 +409,20 @@ export default function Reports() {
</PieChart>
</ResponsiveContainer>
) : (
<div className="text-gray-400 font-medium flex items-center justify-center h-full">داده‌ای موجود نیست</div>
<div className="text-gray-400 font-medium flex items-center justify-center h-full text-xs">داده‌ای موجود نیست</div>
)}
</div>
</div>
</div>
{/* Best Sellers & Top Coupons */}
<div className="grid grid-cols-1 lg:grid-cols-2 gap-6">
{/* Best Sellers */}
<div className="bg-white p-6 rounded-2xl shadow-sm border border-gray-100">
<h3 className="text-lg font-bold text-gray-900 mb-6">پرفروش‌ترین محصولات</h3>
<div className="min-h-[320px] w-full" dir="ltr">
<div className="bg-white p-6 rounded-3xl shadow-xs border border-gray-200">
<h3 className="text-base font-black text-gray-900 mb-6">پرفروش‌ترین محصولات در بازه انتخابی</h3>
<div className="min-h-[300px] w-full" dir="ltr">
{bestSellers && bestSellers.length > 0 ? (
<ResponsiveContainer width="100%" height={Math.max(300, bestSellers.length * 45)}>
<ResponsiveContainer width="100%" height={Math.max(280, bestSellers.length * 45)}>
<BarChart
data={bestSellers}
layout="vertical"
@@ -251,31 +450,31 @@ export default function Reports() {
</BarChart>
</ResponsiveContainer>
) : (
<div className="text-gray-400 font-medium flex items-center justify-center h-64">داده‌ای موجود نیست</div>
<div className="text-gray-400 font-medium flex items-center justify-center h-64 text-xs">داده‌ای موجود نیست</div>
)}
</div>
</div>
{/* Top Coupons */}
<div className="bg-white p-6 rounded-2xl shadow-sm border border-gray-100">
<h3 className="text-lg font-bold text-gray-900 mb-6">پرکاربردترین کدهای تخفیف</h3>
<div className="space-y-4">
<div className="bg-white p-6 rounded-3xl shadow-xs border border-gray-200">
<h3 className="text-base font-black text-gray-900 mb-6">کدهای تخفیف پراستفاده</h3>
<div className="space-y-3">
{topCoupons && topCoupons.length > 0 ? (
topCoupons.map((coupon: TopCouponItem, idx: number) => (
<div key={idx} className="flex items-center justify-between p-4 bg-gray-50 rounded-xl border border-gray-100">
<div key={idx} className="flex items-center justify-between p-4 bg-gray-50 rounded-2xl border border-gray-100">
<div className="flex items-center gap-3">
<div className="w-10 h-10 rounded-lg bg-orange-100 text-orange-600 font-bold flex items-center justify-center text-sm">
<div className="w-9 h-9 rounded-xl bg-purple-100 text-purple-600 font-black flex items-center justify-center text-xs">
#{idx + 1}
</div>
<span className="font-mono font-bold tracking-widest text-gray-800">{coupon.name}</span>
<span className="font-mono font-bold tracking-widest text-gray-800 text-sm">{coupon.name}</span>
</div>
<div className="text-gray-600 font-medium">
<span className="font-black text-gray-900 mx-1">{coupon.usedCount ?? coupon.value ?? 0}</span>بار استفاده
<div className="text-gray-600 text-xs font-medium">
<span className="font-black text-gray-900 mx-1 text-sm">{coupon.usedCount ?? coupon.value ?? 0}</span>بار استفاده
</div>
</div>
))
) : (
<div className="text-gray-400 font-medium flex items-center justify-center h-32">داده‌ای موجود نیست</div>
<div className="text-gray-400 font-medium flex items-center justify-center h-32 text-xs">داده‌ای موجود نیست</div>
)}
</div>
</div>
+28
View File
@@ -50,8 +50,36 @@ export default function ClientLayout({ children }: { children: React.ReactNode }
} else {
useUserStore.getState().logout();
}
// Preserve scroll restoration on back/forward
if (typeof window !== 'undefined' && 'scrollRestoration' in window.history) {
window.history.scrollRestoration = 'auto';
}
}, [fetchProfile, fetchSettings]);
// Handle scroll position tracking per pathname for reliable mobile back navigation
useEffect(() => {
if (typeof window === 'undefined') return;
const key = `scroll_pos_${pathname}`;
const savedPos = sessionStorage.getItem(key);
if (savedPos !== null) {
const targetY = parseInt(savedPos, 10);
requestAnimationFrame(() => {
window.scrollTo({ top: targetY, behavior: 'instant' });
});
}
const handleScroll = () => {
sessionStorage.setItem(`scroll_pos_${pathname}`, window.scrollY.toString());
};
window.addEventListener('scroll', handleScroll, { passive: true });
return () => {
window.removeEventListener('scroll', handleScroll);
};
}, [pathname]);
// Check Maintenance Mode (Admin / Partner bypass)
const isMaintenanceMode = getText('MAINTENANCE_MODE', 'false') === 'true' || getText('maintenance_mode', 'false') === 'true';
const isAdmin = role === 'User_Partner' || (typeof window !== 'undefined' && Boolean(localStorage.getItem('adminToken')));
+25 -36
View File
@@ -295,51 +295,40 @@ export default function ArchivePage({
return labels;
}, [categories]);
// Sync state with prop change (e.g. from Header menu / Direct navigation)
const prevInitialRef = React.useRef({ category: initialCategory, search: initialSearch });
const lastInitialPropsRef = React.useRef({ initialCategory, initialSearch, initialPetType, initialSymptoms });
// Sync state when incoming initial props change from navigation
useEffect(() => {
if (prevInitialRef.current.category === initialCategory && prevInitialRef.current.search === initialSearch) {
const isNewCategory = lastInitialPropsRef.current.initialCategory !== initialCategory;
const isNewSearch = lastInitialPropsRef.current.initialSearch !== initialSearch;
const isNewPet = lastInitialPropsRef.current.initialPetType !== initialPetType;
const isNewSymptoms = lastInitialPropsRef.current.initialSymptoms !== initialSymptoms;
if (!isNewCategory && !isNewSearch && !isNewPet && !isNewSymptoms) {
return;
}
prevInitialRef.current = { category: initialCategory, search: initialSearch };
// Normalize Input (Trim and lowercase)
lastInitialPropsRef.current = { initialCategory, initialSearch, initialPetType, initialSymptoms };
// Normalize Input
const normSearch = (initialSearch || "").trim().toLowerCase();
const normCat = initialCategory.trim().toLowerCase();
const normCat = (initialCategory || "").trim().toLowerCase();
const mapKey = normSearch || normCat;
const mapping = CATEGORY_MAP[mapKey];
Promise.resolve().then(() => {
setIsUpdating(true);
// Reset other filters when initial URL route prop changes
setIsUpdating(true);
if (mapping) {
setSelectedCategory(mapping.category || "all");
setSearchQuery(mapping.query || "");
setSelectedPet("all");
setActiveSymptoms([]);
setSearchQuery("");
if (mapping) {
if (mapping.category) setSelectedCategory(mapping.category);
if (mapping.query) setSearchQuery(mapping.query);
if (mapping.symptoms) {
setActiveSymptoms(mapping.symptoms);
}
} else {
setSelectedCategory(initialCategory);
setSearchQuery(initialSearch);
if (initialSearch && symptoms.includes(initialSearch)) {
setActiveSymptoms([initialSearch]);
}
}
});
const timer = setTimeout(() => {
window.scrollTo({ top: 0, behavior: "smooth" });
}, 400);
return () => clearTimeout(timer);
}, [initialCategory, initialSearch, selectedCategory, searchQuery, symptoms]);
setActiveSymptoms(mapping.symptoms || []);
} else {
setSelectedCategory(initialCategory || "all");
setSearchQuery(initialSearch || "");
setSelectedPet((initialPetType as PetType) || "all");
setActiveSymptoms(initialSymptoms ? initialSymptoms.split(',').filter(Boolean) : []);
}
}, [initialCategory, initialSearch, initialPetType, initialSymptoms]);
// Update URL Query Parameters
useEffect(() => {
+12 -7
View File
@@ -369,23 +369,23 @@ export default function AuthModal({ isOpen, onClose }: AuthModalProps) {
return (
<AnimatePresence>
{isOpen && (
<div className="fixed inset-0 z-50 flex items-center justify-center p-4">
<div className="fixed inset-0 z-50 flex items-end sm:items-center justify-center p-0 sm:p-4 font-vazir overflow-y-auto" dir="rtl">
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
onClick={onClose}
className="absolute inset-0 bg-medical-gray-900/60 backdrop-blur-sm"
className="fixed inset-0 bg-medical-gray-900/60 backdrop-blur-sm"
/>
<motion.div
initial={{ opacity: 0, scale: 0.95, y: 20 }}
initial={{ opacity: 0, scale: 0.95, y: 30 }}
animate={{ opacity: 1, scale: 1, y: 0 }}
exit={{ opacity: 0, scale: 0.95, y: 20 }}
className="relative w-full max-w-md bg-white rounded-[2.5rem] shadow-2xl overflow-hidden border border-medical-gray-100 z-10"
exit={{ opacity: 0, scale: 0.95, y: 30 }}
className="relative w-full max-w-md bg-white rounded-t-[2.5rem] sm:rounded-[2.5rem] shadow-2xl overflow-hidden border border-medical-gray-100 z-10 max-h-[92vh] flex flex-col my-auto pb-safe"
>
{/* Header */}
<div className="p-6 pb-0 flex justify-between items-center">
<div className="p-6 pb-0 flex justify-between items-center shrink-0">
<div className="flex items-center gap-2 text-canina-blue font-black text-sm">
<ShieldCheck className="w-5 h-5" />
<span>ورود امن به کنینا</span>
@@ -425,6 +425,8 @@ export default function AuthModal({ isOpen, onClose }: AuthModalProps) {
<input
autoFocus
type="tel"
inputMode="numeric"
pattern="[0-9]*"
maxLength={11}
required
placeholder="۰۹۱۲۳۴۵۶۷۸۹"
@@ -740,6 +742,8 @@ export default function AuthModal({ isOpen, onClose }: AuthModalProps) {
<input
autoFocus
type="tel"
inputMode="numeric"
pattern="[0-9]*"
maxLength={11}
placeholder="مثال: ۰۹۱۲۳۴۵۶۷۸۹"
value={phoneNumber}
@@ -795,8 +799,9 @@ export default function AuthModal({ isOpen, onClose }: AuthModalProps) {
ref={otpInputRef}
id="otp-code-input"
name="one-time-code"
type="text"
type="tel"
inputMode="numeric"
pattern="[0-9]*"
autoComplete="one-time-code"
placeholder="کد ۵ رقمی"
value={otpCode}
+18 -3
View File
@@ -270,6 +270,10 @@ export default function BlogPage({
<Clock className="w-3.5 h-3.5" />
{featuredPost.readingTime || 4} دقیقه مطالعه
</div>
<div className="flex items-center gap-1 text-medical-gray-400">
<Eye className="w-3.5 h-3.5" />
<span>{(featuredPost.viewCount ?? 0).toLocaleString('fa-IR')} بازدید</span>
</div>
</div>
<h2 className="text-2xl sm:text-3xl lg:text-4xl font-black text-medical-gray-900 mb-5 leading-tight group-hover:text-canina-blue transition-colors">
{featuredPost.title}
@@ -324,6 +328,11 @@ export default function BlogPage({
{post.category}
</span>
)}
{/* View Count Badge */}
<span className="absolute top-3 left-3 px-2.5 py-1 bg-black/60 backdrop-blur-md text-white rounded-lg text-[10px] font-bold z-10 flex items-center gap-1">
<Eye className="w-3 h-3 text-canina-blue" />
<span>{(post.viewCount ?? 0).toLocaleString('fa-IR')}</span>
</span>
</div>
<div className="p-6 sm:p-7">
<div className="flex items-center justify-between text-[11px] font-bold text-medical-gray-400 mb-3">
@@ -331,9 +340,15 @@ export default function BlogPage({
<Calendar className="w-3 h-3" />
{post.date}
</div>
<div className="flex items-center gap-1">
<Clock className="w-3 h-3" />
{post.readingTime || 3} دقیقه
<div className="flex items-center gap-3">
<div className="flex items-center gap-1">
<Clock className="w-3 h-3" />
{post.readingTime || 3} دقیقه
</div>
<div className="flex items-center gap-1 text-medical-gray-400">
<Eye className="w-3 h-3" />
<span>{(post.viewCount ?? 0).toLocaleString('fa-IR')}</span>
</div>
</div>
</div>
<h3 className="text-lg font-black text-medical-gray-900 mb-3 group-hover:text-canina-blue transition-colors line-clamp-2 leading-snug">
@@ -43,21 +43,22 @@ function ProductCard({ product }: { product: Product }) {
return (
<motion.div
initial={{ opacity: 0, y: 24 }}
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
whileHover={{ y: -6 }}
transition={{ duration: 0.35, ease: "easeOut" }}
className="group bg-white/80 backdrop-blur-md rounded-3xl border border-medical-gray-200/80 overflow-hidden hover:shadow-2xl hover:shadow-canina-blue/15 hover:border-canina-blue/30 transition-all duration-500 flex flex-col cursor-pointer relative"
whileHover={{ y: -4 }}
transition={{ duration: 0.3, ease: "easeOut" }}
onClick={() => router.push(`/shop/${product.slug || product.id}`)}
className="group bg-white/90 backdrop-blur-md rounded-2xl sm:rounded-3xl border border-medical-gray-200/80 overflow-hidden hover:shadow-xl hover:shadow-canina-blue/10 hover:border-canina-blue/30 transition-all duration-300 flex flex-col cursor-pointer relative"
>
{/* Category Badge */}
<div className="absolute top-4 right-4 z-30 px-3 py-1.5 bg-white/90 backdrop-blur-md rounded-full border border-medical-gray-200/80 text-[10px] font-black text-medical-gray-700 uppercase tracking-widest shadow-sm group-hover:bg-canina-blue group-hover:text-white transition-all">
<div className="absolute top-3 right-3 sm:top-4 sm:right-4 z-30 px-2.5 py-1 bg-white/90 backdrop-blur-md rounded-full border border-medical-gray-200/80 text-[9px] sm:text-[10px] font-black text-medical-gray-700 uppercase tracking-wider shadow-xs group-hover:bg-canina-blue group-hover:text-white transition-all">
{product.category}
</div>
{/* Compatibility Tag */}
{compatibility && (
<div className={`absolute top-[3.25rem] right-4 z-10 text-[8px] font-black uppercase tracking-widest px-3 py-1 rounded-full shadow-md flex items-center gap-1 ${
<div className={`absolute top-[2.8rem] sm:top-[3.25rem] right-3 sm:right-4 z-10 text-[8px] font-black uppercase tracking-widest px-2.5 py-0.5 rounded-full shadow-xs flex items-center gap-1 ${
compatibility.type === "alert" ? "bg-amber-100 text-amber-700" :
compatibility.type === "success" ? "bg-green-100 text-green-700" : "bg-medical-gray-100 text-medical-gray-600"
}`}>
@@ -66,22 +67,20 @@ function ProductCard({ product }: { product: Product }) {
</div>
)}
{/* Image */}
<div className="relative aspect-[4/3] bg-medical-gray-50 flex items-center justify-center overflow-hidden p-5">
{/* Image Container */}
<div className="relative aspect-[16/11] sm:aspect-[4/3] bg-medical-gray-50 flex items-center justify-center overflow-hidden p-3 sm:p-5">
<SafeImage
src={product.image}
alt={nameFa}
sizes="(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 25vw)"
className="w-full h-full group-hover:scale-105 transition-transform duration-500"
imgClassName="object-contain max-h-[170px] mx-auto"
imgClassName="object-contain max-h-[130px] sm:max-h-[170px] mx-auto"
/>
{/* PDP Link overlay */}
<Link href={`/shop/${product.slug || product.id}`} className="absolute inset-0 z-10" />
{/* Hover Actions */}
<div className="absolute inset-0 bg-canina-blue/60 opacity-0 group-hover:opacity-100 backdrop-blur-sm transition-all duration-300 flex items-center justify-center gap-4 z-20">
{/* Hover Actions for desktop */}
<div className="hidden sm:flex absolute inset-0 bg-canina-blue/60 opacity-0 group-hover:opacity-100 backdrop-blur-xs transition-all duration-300 items-center justify-center gap-3 z-20">
<div
onClick={(e) => { e.stopPropagation(); router.push(`/shop/${product.slug || product.id}`); }}
className="w-11 h-11 rounded-full bg-white text-canina-blue flex items-center justify-center hover:scale-110 transition-transform shadow-lg cursor-pointer"
className="w-10 h-10 rounded-full bg-white text-canina-blue flex items-center justify-center hover:scale-110 transition-transform shadow-lg cursor-pointer"
title="مشاهده جزئیات"
>
<Eye className="w-5 h-5" />
@@ -93,7 +92,7 @@ function ProductCard({ product }: { product: Product }) {
addItem(product, 1);
toast.success(`${nameFa} به سبد خرید اضافه شد.`);
}}
className="w-11 h-11 rounded-full bg-canina-blue text-white flex items-center justify-center hover:scale-110 transition-transform shadow-lg border border-white/20 cursor-pointer"
className="w-10 h-10 rounded-full bg-canina-blue text-white flex items-center justify-center hover:scale-110 transition-transform shadow-lg border border-white/20 cursor-pointer"
title="افزودن به سبد خرید"
>
<ShoppingCart className="w-5 h-5" />
@@ -103,40 +102,40 @@ function ProductCard({ product }: { product: Product }) {
</div>
{/* Content */}
<Link href={`/shop/${product.slug || product.id}`} className="px-5 py-4 flex flex-col flex-1 gap-3">
<div className="px-3.5 py-3 sm:px-5 sm:py-4 flex flex-col flex-1 gap-2 sm:gap-3">
{/* Dual-language Name */}
<div className="flex flex-col gap-1">
<h3 dir="rtl" className="text-[14px] font-black text-medical-gray-900 group-hover:text-canina-blue transition-colors leading-snug text-right line-clamp-2 font-vazir">
<div className="flex flex-col gap-0.5">
<h3 dir="rtl" className="text-xs sm:text-[14px] font-black text-medical-gray-900 group-hover:text-canina-blue transition-colors leading-snug text-right line-clamp-1 sm:line-clamp-2 font-vazir">
{nameFa}
</h3>
{nameEn && (
<span dir="ltr" className="text-[11px] font-semibold text-slate-400 font-sans text-left block line-clamp-1">
<span dir="ltr" className="text-[10px] sm:text-[11px] font-semibold text-slate-400 font-sans text-left block line-clamp-1">
{nameEn}
</span>
)}
</div>
{/* Short description */}
<p className="text-xs text-medical-gray-500 leading-relaxed line-clamp-2 flex-1">
<p className="text-[11px] sm:text-xs text-medical-gray-500 leading-relaxed line-clamp-1 sm:line-clamp-2 flex-1">
{product.shortDescription || product.description || ''}
</p>
{/* Footer: Price + CTA */}
<div className="flex items-center justify-between pt-3 border-t border-medical-gray-100">
<div className="text-base font-black text-medical-gray-900 font-vazir whitespace-nowrap">
<div className="flex items-center justify-between pt-2 sm:pt-3 border-t border-medical-gray-100">
<div className="text-xs sm:text-sm md:text-base font-black text-medical-gray-900 font-vazir whitespace-nowrap">
{showPrices ? (typeof product.price === 'string' || typeof product.price === 'number' ? String(product.price) : 'تماس بگیرید') : 'تماس بگیرید'}
</div>
{showPreorderBtn ? (
<span className="text-[11px] font-black text-amber-600 bg-amber-50 px-3 py-1 rounded-full border border-amber-200">
<span className="text-[10px] sm:text-[11px] font-black text-amber-600 bg-amber-50 px-2.5 py-1 rounded-full border border-amber-200">
ثبت پیش‌خرید
</span>
) : (
<span className="text-[11px] font-black text-canina-blue uppercase tracking-widest border-b-2 border-canina-blue pb-0.5 hover:text-medical-gray-900 hover:border-medical-gray-900 transition-all whitespace-nowrap">
<span className="text-[10px] sm:text-[11px] font-black text-canina-blue uppercase tracking-wider border-b border-canina-blue pb-0.5 group-hover:text-medical-gray-900 group-hover:border-medical-gray-900 transition-all whitespace-nowrap">
{getText("product_view_details", "مشاهده جزئیات")}
</span>
)}
</div>
</Link>
</div>
</motion.div>
);
}
+134 -16
View File
@@ -556,37 +556,155 @@ export default function Header({
initial={{ opacity: 0, height: 0 }}
animate={{ opacity: 1, height: "auto" }}
exit={{ opacity: 0, height: 0 }}
className="lg:hidden relative z-50 bg-white border-b border-medical-gray-200 px-4 py-6 space-y-4 shadow-xl"
className="lg:hidden relative z-50 bg-white border-b border-medical-gray-200 px-4 py-5 space-y-4 shadow-xl max-h-[85vh] overflow-y-auto font-vazir text-right"
dir="rtl"
>
<form onSubmit={handleSearch} className="relative mb-4">
<form onSubmit={handleSearch} className="relative mb-3">
<input
type="text"
placeholder="جستجو در محصولات..."
value={searchQuery}
onChange={(e) => setSearchQuery(e.target.value)}
className="w-full bg-medical-gray-50 border border-medical-gray-200 rounded-xl py-3 pr-10 pl-4 text-xs font-bold"
className="w-full bg-medical-gray-50 border border-medical-gray-200 rounded-xl py-2.5 pr-10 pl-4 text-xs font-bold focus:ring-2 focus:ring-canina-blue/20 outline-none"
/>
<Search className="w-4 h-4 text-medical-gray-400 absolute right-3 top-1/2 -translate-y-1/2" />
</form>
<div className="space-y-2 text-sm font-black">
<Link href="/shop" onClick={() => setIsMobileMenuOpen(false)} className="block p-3 rounded-xl bg-medical-gray-50 text-medical-gray-900">
🛒 محصولات تخصصی کنینا
{/* Section: Shop & Catalog */}
<div className="space-y-1">
<div className="text-[11px] font-black text-medical-gray-400 px-2 py-1 uppercase tracking-wider">
فروشگاه و محصولات
</div>
<Link
href="/shop"
onClick={() => setIsMobileMenuOpen(false)}
className="flex items-center gap-3 p-3 rounded-xl bg-medical-gray-50 text-medical-gray-900 font-bold text-xs hover:bg-canina-blue/10 hover:text-canina-blue transition-all"
>
<ShoppingBag className="w-4 h-4 text-canina-blue" />
<span>فروشگاه تخصصی محصولات کنینا</span>
</Link>
<Link href="/catalog" onClick={() => setIsMobileMenuOpen(false)} className="block p-3 rounded-xl hover:bg-medical-gray-50 text-medical-gray-800">
📑 کاتالوگ آنلاین و دوز مصرفی
<Link
href="/catalog"
onClick={() => setIsMobileMenuOpen(false)}
className="flex items-center gap-3 p-3 rounded-xl hover:bg-medical-gray-50 text-medical-gray-800 font-bold text-xs transition-all"
>
<BookOpen className="w-4 h-4 text-medical-gray-500" />
<span>کاتالوگ دیجیتال و راهنمای بالینی</span>
</Link>
<Link href="/wiki" onClick={() => setIsMobileMenuOpen(false)} className="block p-3 rounded-xl hover:bg-medical-gray-50 text-medical-gray-800">
🧬 دانشنامه علمی
</div>
{/* Section: Categories */}
<div className="space-y-1 border-t border-medical-gray-100 pt-3">
<div className="text-[11px] font-black text-medical-gray-400 px-2 py-1 uppercase tracking-wider">
دسته‌بندی‌های درمانی
</div>
<div className="grid grid-cols-2 gap-2">
{menuItems.map((item, idx) => (
<Link
key={idx}
href={`/shop?category=${item.id}`}
onClick={() => setIsMobileMenuOpen(false)}
className="flex items-center gap-2 p-2.5 rounded-xl border border-medical-gray-100 bg-white hover:border-canina-blue/30 text-medical-gray-800 text-[11px] font-bold"
>
<span className="text-canina-blue">{item.icon}</span>
<span className="truncate">{item.title}</span>
</Link>
))}
</div>
</div>
{/* Section: Academy & Science */}
<div className="space-y-1 border-t border-medical-gray-100 pt-3">
<div className="text-[11px] font-black text-medical-gray-400 px-2 py-1 uppercase tracking-wider">
دانشنامه و آموزش
</div>
<Link
href="/wiki"
onClick={() => setIsMobileMenuOpen(false)}
className="flex items-center gap-3 p-3 rounded-xl hover:bg-medical-gray-50 text-medical-gray-800 font-bold text-xs transition-all"
>
<BookOpen className="w-4 h-4 text-canina-blue" />
<span>دانشنامه علمی کنینا</span>
</Link>
<Link href="/blog" onClick={() => setIsMobileMenuOpen(false)} className="block p-3 rounded-xl hover:bg-medical-gray-50 text-medical-gray-800">
📰 مجله سلامت پت
<Link
href="/blog"
onClick={() => setIsMobileMenuOpen(false)}
className="flex items-center gap-3 p-3 rounded-xl hover:bg-medical-gray-50 text-medical-gray-800 font-bold text-xs transition-all"
>
<FileText className="w-4 h-4 text-purple-600" />
<span>مجله سلامت پت (وبلاگ)</span>
</Link>
<Link href="/videos" onClick={() => setIsMobileMenuOpen(false)} className="block p-3 rounded-xl hover:bg-medical-gray-50 text-medical-gray-800">
🎥 آکادمی ویدئویی و مشاوره دامپزشک
<Link
href="/videos"
onClick={() => setIsMobileMenuOpen(false)}
className="flex items-center gap-3 p-3 rounded-xl hover:bg-medical-gray-50 text-medical-gray-800 font-bold text-xs transition-all"
>
<Video className="w-4 h-4 text-rose-500" />
<span>آکادمی ویدئویی و مشاوره دامپزشک</span>
</Link>
<Link href="/profile" onClick={() => setIsMobileMenuOpen(false)} className="block p-3 rounded-xl hover:bg-medical-gray-50 text-medical-gray-800">
🐾 شناسنامه و سوابق سلامت پت
</div>
{/* Section: Tools & Profile */}
<div className="space-y-1 border-t border-medical-gray-100 pt-3">
<div className="text-[11px] font-black text-medical-gray-400 px-2 py-1 uppercase tracking-wider">
ابزارهای هوشمند
</div>
<Link
href="/profile"
onClick={() => setIsMobileMenuOpen(false)}
className="flex items-center gap-3 p-3 rounded-xl hover:bg-medical-gray-50 text-medical-gray-800 font-bold text-xs transition-all"
>
<Dog className="w-4 h-4 text-amber-500" />
<span>شناسنامه و سوابق سلامت پت</span>
</Link>
<Link
href="/dashboard"
onClick={() => setIsMobileMenuOpen(false)}
className="flex items-center gap-3 p-3 rounded-xl hover:bg-medical-gray-50 text-medical-gray-800 font-bold text-xs transition-all"
>
<Activity className="w-4 h-4 text-emerald-500" />
<span>پایش هوشمند مصرف مکمل‌ها</span>
</Link>
</div>
{/* Section: Company & Contact */}
<div className="space-y-1 border-t border-medical-gray-100 pt-3">
<div className="text-[11px] font-black text-medical-gray-400 px-2 py-1 uppercase tracking-wider">
اطلاعات و تماس
</div>
<Link
href="/about"
onClick={() => setIsMobileMenuOpen(false)}
className="flex items-center gap-3 p-3 rounded-xl hover:bg-medical-gray-50 text-medical-gray-800 font-bold text-xs transition-all"
>
<Award className="w-4 h-4 text-canina-blue" />
<span>درباره کمپانی کنینا آلمان</span>
</Link>
<Link
href="/trust-seals"
onClick={() => setIsMobileMenuOpen(false)}
className="flex items-center gap-3 p-3 rounded-xl hover:bg-medical-gray-50 text-emerald-600 font-bold text-xs transition-all"
>
<ShieldCheck className="w-4 h-4 text-emerald-600" />
<span>نمادهای اعتماد و مجوزهای رسمی</span>
</Link>
{isB2BEnabled && (
<Link
href="/b2b"
onClick={() => setIsMobileMenuOpen(false)}
className="flex items-center gap-3 p-3 rounded-xl hover:bg-medical-gray-50 text-medical-gray-800 font-bold text-xs transition-all"
>
<Building2 className="w-4 h-4 text-canina-blue" />
<span>درخواست نمایندگی و خرید عمده (B2B)</span>
</Link>
)}
<Link
href="/contact"
onClick={() => setIsMobileMenuOpen(false)}
className="flex items-center gap-3 p-3 rounded-xl hover:bg-medical-gray-50 text-medical-gray-800 font-bold text-xs transition-all"
>
<PhoneCall className="w-4 h-4 text-canina-blue" />
<span>تماس با مرکز پشتیبانی</span>
</Link>
</div>
</motion.div>
+164 -115
View File
@@ -301,14 +301,14 @@ export default function SmartAdvisor({ onComplete, rules = [] }: SmartAdvisorPro
</div>
</motion.div>
<div className="bg-medical-gray-50 rounded-[3.5rem] border border-medical-gray-100 p-8 lg:p-12 shadow-2xl shadow-medical-gray-200/50 relative overflow-hidden">
<div className="bg-medical-gray-50 rounded-[2.5rem] border border-medical-gray-200/80 p-5 sm:p-8 lg:p-10 shadow-xl shadow-medical-gray-200/40 relative overflow-hidden">
{/* Progress Indicator */}
<div className="absolute top-0 left-0 w-full h-2 bg-medical-gray-200">
<div className="absolute top-0 left-0 w-full h-1.5 bg-medical-gray-200">
<motion.div
className="h-full bg-canina-blue"
initial={{ width: "0%" }}
animate={{ width: `${(step / 4) * 100}%` }}
transition={{ duration: 0.5 }}
transition={{ duration: 0.4 }}
/>
</div>
@@ -319,33 +319,35 @@ export default function SmartAdvisor({ onComplete, rules = [] }: SmartAdvisorPro
initial={{ opacity: 0, x: 20 }}
animate={{ opacity: 1, x: 0 }}
exit={{ opacity: 0, x: -20 }}
className="space-y-8"
className="space-y-6"
>
<div className="text-center">
<h3 className="text-2xl font-black text-medical-gray-900 mb-2 font-vazir uppercase italic tracking-tight">{getText('advisor_step1_title', "گام اول: هویت بصری")}</h3>
<p className="text-medical-gray-600 font-bold font-vazir">{getText('advisor_step1_desc', "همدم شما رو با چه اسمی صدا می‌زنید؟")}</p>
<h3 className="text-xl sm:text-2xl font-black text-medical-gray-900 mb-1.5 font-vazir tracking-tight">{getText('advisor_step1_title', "گام اول: مشخصات پت")}</h3>
<p className="text-xs sm:text-sm text-medical-gray-500 font-bold font-vazir">{getText('advisor_step1_desc', "همدم شما رو با چه اسمی صدا می‌زنید؟")}</p>
</div>
<div className="grid grid-cols-2 gap-4">
<div className="grid grid-cols-2 gap-3 sm:gap-4 max-w-md mx-auto">
<button
type="button"
onClick={() => setType("سگ")}
className={`flex flex-col items-center gap-4 p-8 rounded-[2.5rem] border-4 transition-all focus-visible:ring-4 focus-visible:ring-canina-blue/30 focus-visible:outline-none cursor-pointer ${type === "سگ" ? 'border-canina-blue bg-white shadow-xl shadow-canina-blue/10 scale-105 text-canina-blue' : 'border-medical-gray-250 bg-white text-medical-gray-500 hover:border-canina-blue/30 hover:text-canina-blue/70'}`}
className={`flex flex-col items-center gap-2.5 p-5 sm:p-6 rounded-2xl border-2 transition-all cursor-pointer ${type === "سگ" ? 'border-canina-blue bg-white shadow-md shadow-canina-blue/10 text-canina-blue scale-102' : 'border-medical-gray-200 bg-white text-medical-gray-500 hover:border-canina-blue/30'}`}
>
<Dog className="w-12 h-12" />
<span className="text-lg font-black font-vazir">سگ</span>
<Dog className="w-8 h-8 sm:w-10 sm:h-10" />
<span className="text-sm sm:text-base font-black font-vazir">سگ</span>
</button>
<button
type="button"
onClick={() => setType("گربه")}
className={`flex flex-col items-center gap-4 p-8 rounded-[2.5rem] border-4 transition-all focus-visible:ring-4 focus-visible:ring-canina-blue/30 focus-visible:outline-none cursor-pointer ${type === "گربه" ? 'border-canina-blue bg-white shadow-xl shadow-canina-blue/10 scale-105 text-canina-blue' : 'border-medical-gray-250 bg-white text-medical-gray-500 hover:border-canina-blue/30 hover:text-canina-blue/70'}`}
className={`flex flex-col items-center gap-2.5 p-5 sm:p-6 rounded-2xl border-2 transition-all cursor-pointer ${type === "گربه" ? 'border-canina-blue bg-white shadow-md shadow-canina-blue/10 text-canina-blue scale-102' : 'border-medical-gray-200 bg-white text-medical-gray-500 hover:border-canina-blue/30'}`}
>
<Cat className="w-12 h-12" />
<span className="text-lg font-black font-vazir">گربه</span>
<Cat className="w-8 h-8 sm:w-10 sm:h-10" />
<span className="text-sm sm:text-base font-black font-vazir">گربه</span>
</button>
</div>
<div className="grid md:grid-cols-2 gap-6">
<div className="space-y-2">
<label className="text-xs font-black text-medical-gray-600 pr-2">{getText('advisor_pet_name_label', "نام پت")}</label>
<div className="grid md:grid-cols-2 gap-4 max-w-xl mx-auto">
<div className="space-y-1.5">
<label className="text-xs font-black text-medical-gray-600 pr-1">{getText('advisor_pet_name_label', "نام پت")}</label>
<input
type="text"
value={name}
@@ -353,17 +355,17 @@ export default function SmartAdvisor({ onComplete, rules = [] }: SmartAdvisorPro
setName(e.target.value);
if (e.target.value.trim() && breed.trim()) setShowError(false);
}}
placeholder={getText('advisor_pet_name_placeholder', "لوسی، تدی...")}
placeholder={getText('advisor_pet_name_placeholder', "مثال: لوسی")}
className={cn(
"w-full bg-white border rounded-2xl py-4 px-6 focus:ring-2 outline-none font-black text-lg font-vazir placeholder-medical-gray-500 text-medical-gray-900 transition-all",
"w-full bg-white border rounded-xl py-3 px-4 focus:ring-2 outline-none font-bold text-sm font-vazir placeholder-medical-gray-400 text-medical-gray-900 transition-all",
showError && !name.trim()
? "border-red-500 focus:ring-red-500/30"
: "border-medical-gray-300 focus:ring-canina-blue/30 focus-visible:ring-4 focus-visible:ring-canina-blue/40"
: "border-medical-gray-200 focus:ring-canina-blue/30 focus:border-canina-blue"
)}
/>
</div>
<div className="space-y-2">
<label className="text-xs font-black text-medical-gray-600 pr-2">{getText('advisor_pet_breed_label', "نژاد")}</label>
<div className="space-y-1.5">
<label className="text-xs font-black text-medical-gray-600 pr-1">{getText('advisor_pet_breed_label', "نژاد")}</label>
<input
type="text"
value={breed}
@@ -371,34 +373,37 @@ export default function SmartAdvisor({ onComplete, rules = [] }: SmartAdvisorPro
setBreed(e.target.value);
if (name.trim() && e.target.value.trim()) setShowError(false);
}}
placeholder={getText('advisor_pet_breed_placeholder', "ژرمن، پرشین...")}
placeholder={getText('advisor_pet_breed_placeholder', "مثال: ژرمن شپرد")}
className={cn(
"w-full bg-white border rounded-2xl py-4 px-6 focus:ring-2 outline-none font-bold font-vazir placeholder-medical-gray-500 text-medical-gray-900 transition-all",
"w-full bg-white border rounded-xl py-3 px-4 focus:ring-2 outline-none font-bold text-sm font-vazir placeholder-medical-gray-400 text-medical-gray-900 transition-all",
showError && !breed.trim()
? "border-red-500 focus:ring-red-500/30"
: "border-medical-gray-300 focus:ring-canina-blue/30 focus-visible:ring-4 focus-visible:ring-canina-blue/40"
: "border-medical-gray-200 focus:ring-canina-blue/30 focus:border-canina-blue"
)}
/>
</div>
</div>
<motion.button
onClick={handleNext}
animate={shake ? { x: [-10, 10, -10, 10, -5, 5, -2, 2, 0] } : { x: 0 }}
transition={{ duration: 0.4 }}
className={cn(
"w-full py-6 rounded-3xl font-black text-lg flex items-center justify-center gap-3 font-vazir min-h-[48px] transition-all focus-visible:ring-4 focus-visible:ring-canina-blue/30 focus-visible:outline-none bg-medical-gray-900 text-white hover:bg-canina-blue shadow-xl shadow-medical-gray-900/10",
(!name.trim() || !breed.trim()) ? "opacity-60 cursor-pointer" : ""
<div className="max-w-md mx-auto pt-2">
<motion.button
type="button"
onClick={handleNext}
animate={shake ? { x: [-10, 10, -10, 10, -5, 5, -2, 2, 0] } : { x: 0 }}
transition={{ duration: 0.4 }}
className={cn(
"w-full whitespace-nowrap bg-canina-blue text-white px-6 sm:px-10 py-3 sm:py-4 rounded-full font-bold text-sm sm:text-base hover:bg-canina-blue/90 hover:shadow-xl focus-visible:ring-4 focus-visible:ring-canina-blue/30 focus-visible:outline-none transition-all flex items-center justify-center gap-2 group font-vazir min-h-[48px] shadow-md shadow-canina-blue/20 cursor-pointer",
(!name.trim() || !breed.trim()) ? "opacity-60" : ""
)}
>
<span>{getText('advisor_submit_btn', "ثبت هویت و ادامه")}</span>
<ChevronLeft className="w-4 h-4 group-hover:-translate-x-1 transition-transform" />
</motion.button>
{showError && (!name.trim() || !breed.trim()) && (
<p className="text-center text-xs font-bold text-red-500 mt-2 font-vazir animate-pulse">
{getText('advisor_validation_warning', "⚠️ لطفاً ابتدا نام و نژاد پت را وارد کنید.")}
</p>
)}
>
{getText('advisor_submit_btn', "ثبت هویت و ادامه")}
<ChevronLeft className="w-5 h-5" />
</motion.button>
{showError && (!name.trim() || !breed.trim()) && (
<p className="text-center text-xs font-black text-red-500 mt-2 font-vazir animate-pulse">
{getText('advisor_validation_warning', "⚠️ لطفاً ابتدا نام و نژاد پت را در بالا وارد کنید.")}
</p>
)}
</div>
</motion.div>
)}
@@ -408,60 +413,95 @@ export default function SmartAdvisor({ onComplete, rules = [] }: SmartAdvisorPro
initial={{ opacity: 0, x: 20 }}
animate={{ opacity: 1, x: 0 }}
exit={{ opacity: 0, x: -20 }}
className="space-y-8"
className="space-y-6 max-w-xl mx-auto"
>
<div className="text-center">
<h3 className="text-2xl font-black text-medical-gray-900 mb-2 font-vazir uppercase italic tracking-tight">{getText('advisor_step2_title', "گام دوم: پایش فیزیکی")}</h3>
<p className="text-medical-gray-600 font-bold font-vazir">{getText('advisor_step2_desc', "اطلاعات فیزیکی دقیق به دوزبندی صحیح مکمل‌ها کمک می‌کند")}</p>
<h3 className="text-xl sm:text-2xl font-black text-medical-gray-900 mb-1.5 font-vazir tracking-tight">{getText('advisor_step2_title', "گام دوم: پایش فیزیکی")}</h3>
<p className="text-xs sm:text-sm text-medical-gray-500 font-bold font-vazir">{getText('advisor_step2_desc', "اطلاعات فیزیکی به دوزبندی دقیق مکمل‌ها کمک می‌کند")}</p>
</div>
<div className="grid grid-cols-2 gap-6">
<div className="space-y-4">
<label className="block text-center text-sm font-black text-medical-gray-800 font-vazir">{getText('advisor_age_label', "سن حیوان (سال)")}</label>
<div className="flex items-center gap-2 bg-white rounded-3xl p-2 border-2 border-medical-gray-200">
<button type="button" onClick={() => setAge(Math.max(0, age - 1))} className="w-10 h-10 shrink-0 flex items-center justify-center bg-medical-gray-50 rounded-xl text-medical-gray-900 hover:bg-canina-blue hover:text-white transition-all shadow-sm font-black text-lg">-</button>
<div className="flex-1 flex items-center justify-center gap-1">
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
{/* Age Input Box */}
<div className="bg-white p-3.5 rounded-2xl border border-medical-gray-200 shadow-xs space-y-2">
<label className="block text-center text-xs font-black text-medical-gray-700 font-vazir">{getText('advisor_age_label', "سن حیوان (سال)")}</label>
<div className="flex items-center justify-between gap-1.5 bg-medical-gray-50 rounded-xl p-1 border border-medical-gray-200">
<button
type="button"
onClick={() => setAge(Math.max(0, age - 1))}
className="w-9 h-9 shrink-0 flex items-center justify-center bg-white rounded-lg text-medical-gray-800 hover:bg-canina-blue hover:text-white transition-all shadow-xs font-black text-base cursor-pointer"
>
-
</button>
<div className="flex-1 flex items-center justify-center gap-1" dir="ltr">
<input
type="number"
min="0"
max="30"
value={age === 0 ? '' : age}
onChange={(e) => setAge(Math.max(0, parseInt(e.target.value) || 0))}
className="w-12 text-center text-xl font-black text-canina-blue font-vazir outline-none bg-transparent"
type="text"
inputMode="numeric"
pattern="[0-9]*"
value={age === 0 ? '' : age.toString()}
onChange={(e) => {
const val = e.target.value.replace(/[^0-9]/g, '');
setAge(val === '' ? 0 : Math.min(30, parseInt(val, 10)));
}}
className="w-14 text-center text-lg font-black text-canina-blue font-mono outline-none bg-transparent"
/>
<span className="text-xs font-bold text-medical-gray-400">سال</span>
<span className="text-[11px] font-bold text-medical-gray-400 font-vazir">سال</span>
</div>
<button type="button" onClick={() => setAge(age + 1)} className="w-10 h-10 shrink-0 flex items-center justify-center bg-medical-gray-50 rounded-xl text-medical-gray-900 hover:bg-canina-blue hover:text-white transition-all shadow-sm font-black text-lg">+</button>
<button
type="button"
onClick={() => setAge(Math.min(30, age + 1))}
className="w-9 h-9 shrink-0 flex items-center justify-center bg-white rounded-lg text-medical-gray-800 hover:bg-canina-blue hover:text-white transition-all shadow-xs font-black text-base cursor-pointer"
>
+
</button>
</div>
</div>
<div className="space-y-4">
<label className="block text-center text-sm font-black text-medical-gray-800 font-vazir">{getText('advisor_weight_label', "وزن حیوان (کیلوگرم)")}</label>
<div className="flex items-center gap-2 bg-white rounded-3xl p-2 border-2 border-medical-gray-200">
<button type="button" onClick={() => setWeight(Math.max(1, weight - 1))} className="w-10 h-10 shrink-0 flex items-center justify-center bg-medical-gray-50 rounded-xl text-medical-gray-900 hover:bg-canina-blue hover:text-white transition-all shadow-sm font-black text-lg">-</button>
<div className="flex-1 flex items-center justify-center gap-1">
{/* Weight Input Box */}
<div className="bg-white p-3.5 rounded-2xl border border-medical-gray-200 shadow-xs space-y-2">
<label className="block text-center text-xs font-black text-medical-gray-700 font-vazir">{getText('advisor_weight_label', "وزن حیوان (کیلوگرم)")}</label>
<div className="flex items-center justify-between gap-1.5 bg-medical-gray-50 rounded-xl p-1 border border-medical-gray-200">
<button
type="button"
onClick={() => setWeight(Math.max(1, weight - 1))}
className="w-9 h-9 shrink-0 flex items-center justify-center bg-white rounded-lg text-medical-gray-800 hover:bg-canina-blue hover:text-white transition-all shadow-xs font-black text-base cursor-pointer"
>
-
</button>
<div className="flex-1 flex items-center justify-center gap-1" dir="ltr">
<input
type="number"
min="1"
max="120"
value={weight === 0 ? '' : weight}
onChange={(e) => setWeight(Math.max(1, parseInt(e.target.value) || 1))}
className="w-16 text-center text-xl font-black text-canina-blue font-vazir outline-none bg-transparent"
type="text"
inputMode="numeric"
pattern="[0-9]*"
value={weight === 0 ? '' : weight.toString()}
onChange={(e) => {
const val = e.target.value.replace(/[^0-9]/g, '');
setWeight(val === '' ? 0 : Math.min(120, parseInt(val, 10)));
}}
className="w-14 text-center text-lg font-black text-canina-blue font-mono outline-none bg-transparent"
/>
<span className="text-xs font-bold text-medical-gray-400">kg</span>
<span className="text-[11px] font-bold text-medical-gray-400 font-vazir">kg</span>
</div>
<button type="button" onClick={() => setWeight(weight + 1)} className="w-10 h-10 shrink-0 flex items-center justify-center bg-medical-gray-50 rounded-xl text-medical-gray-900 hover:bg-canina-blue hover:text-white transition-all shadow-sm font-black text-lg">+</button>
<button
type="button"
onClick={() => setWeight(Math.min(120, weight + 1))}
className="w-9 h-9 shrink-0 flex items-center justify-center bg-white rounded-lg text-medical-gray-800 hover:bg-canina-blue hover:text-white transition-all shadow-xs font-black text-base cursor-pointer"
>
+
</button>
</div>
</div>
</div>
<div className="space-y-4">
<label className="block text-center text-xs font-black text-medical-gray-600 uppercase tracking-widest font-vazir">{getText('advisor_activity_label', "سطح فعالیت روزانه")}</label>
<div className="grid grid-cols-3 gap-3">
{/* Activity Level */}
<div className="space-y-2">
<label className="block text-center text-xs font-black text-medical-gray-600 font-vazir">{getText('advisor_activity_label', "سطح فعالیت روزانه")}</label>
<div className="grid grid-cols-3 gap-2">
{["کم", "متوسط", "زیاد"].map(level => (
<button
key={level}
type="button"
onClick={() => setActivityLevel(level as "کم" | "متوسط" | "زیاد")}
className={`py-4 rounded-2xl border-2 transition-all font-black italic focus-visible:ring-4 focus-visible:ring-canina-blue/30 focus-visible:outline-none min-h-[48px] ${activityLevel === level ? 'border-canina-blue bg-white text-canina-blue shadow-lg' : 'border-transparent bg-white/50 text-medical-gray-500 hover:bg-white'}`}
className={`py-2.5 rounded-xl border-2 transition-all font-bold text-xs sm:text-sm cursor-pointer ${activityLevel === level ? 'border-canina-blue bg-white text-canina-blue shadow-sm' : 'border-transparent bg-white/70 text-medical-gray-500 hover:bg-white'}`}
>
{level}
</button>
@@ -469,20 +509,23 @@ export default function SmartAdvisor({ onComplete, rules = [] }: SmartAdvisorPro
</div>
</div>
<div className="flex gap-4 pt-4">
{/* Buttons (matching Hero layout) */}
<div className="whitespace-nowrap flex items-center justify-between gap-3 pt-3">
<button
type="button"
onClick={handleBack}
className="flex-1 py-6 bg-medical-gray-100 text-medical-gray-600 rounded-3xl font-black text-lg hover:bg-medical-gray-200 focus-visible:ring-4 focus-visible:ring-canina-blue/30 focus-visible:outline-none transition-all flex items-center justify-center gap-3 font-vazir min-h-[48px]"
className="whitespace-nowrap bg-white border-2 border-medical-gray-300 text-medical-gray-700 px-4 sm:px-6 py-2.5 sm:py-3.5 rounded-full font-bold text-xs sm:text-sm hover:bg-medical-gray-50 transition-all flex items-center gap-1.5 cursor-pointer"
>
<ChevronRight className="w-5 h-5" />
{getText('advisor_back', "قبلی")}
</button>
<button
onClick={handleNext}
className="flex-[2] py-6 bg-medical-gray-900 text-white rounded-3xl font-black text-lg hover:bg-canina-blue focus-visible:ring-4 focus-visible:ring-canina-blue/30 focus-visible:outline-none transition-all shadow-xl shadow-medical-gray-900/10 flex items-center justify-center gap-3 font-vazir min-h-[48px]"
>
{getText('advisor_next_symptoms', "بررسی علائم بالینی فعلی")}
<ChevronLeft className="w-5 h-5" />
<ChevronRight className="w-4 h-4" />
<span>{getText('advisor_back', "قبلی")}</span>
</button>
<button
type="button"
onClick={handleNext}
className="whitespace-nowrap bg-canina-blue text-white px-5 sm:px-8 py-2.5 sm:py-3.5 rounded-full font-bold text-xs sm:text-sm hover:bg-canina-blue/90 hover:shadow-lg transition-all flex items-center gap-1.5 shadow-md shadow-canina-blue/20 cursor-pointer"
>
<span>{getText('advisor_next_symptoms', "علائم بالینی")}</span>
<ChevronLeft className="w-4 h-4" />
</button>
</div>
</motion.div>
@@ -494,42 +537,45 @@ export default function SmartAdvisor({ onComplete, rules = [] }: SmartAdvisorPro
initial={{ opacity: 0, x: 20 }}
animate={{ opacity: 1, x: 0 }}
exit={{ opacity: 0, x: -20 }}
className="space-y-8"
className="space-y-5 max-w-2xl mx-auto"
>
<div className="text-center">
<h3 className="text-2xl font-black text-medical-gray-900 mb-2 font-vazir uppercase italic tracking-tight">{getText('advisor_step3_symptoms_title', "گام سوم: علائم بالینی فعلی")}</h3>
<p className="text-medical-gray-600 font-bold font-vazir">{getText('advisor_step3_symptoms_desc', "آیا همدم شما در حال حاضر هیچ‌کدام از علائم زیر را تجربه می‌کند؟")}</p>
<h3 className="text-xl sm:text-2xl font-black text-medical-gray-900 mb-1 font-vazir tracking-tight">{getText('advisor_step3_symptoms_title', "گام سوم: علائم بالینی فعلی")}</h3>
<p className="text-xs sm:text-sm text-medical-gray-500 font-bold font-vazir">{getText('advisor_step3_symptoms_desc', "آیا همدم شما در حال حاضر علائم زیر را دارد؟")}</p>
</div>
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
<div className="grid grid-cols-1 sm:grid-cols-2 gap-2.5 max-h-[50vh] sm:max-h-none overflow-y-auto pr-1">
{CURRENT_SYMPTOMS.map((opt) => (
<button
key={opt.id}
type="button"
onClick={() => toggleSymptom(opt.condition)}
className={`flex items-center gap-4 p-5 rounded-2xl border-2 transition-all text-right focus-visible:ring-4 focus-visible:ring-canina-blue/30 focus-visible:outline-none min-h-[48px] ${currentSymptoms.includes(opt.condition) ? 'border-canina-blue bg-white shadow-md' : 'border-transparent bg-white/50 text-medical-gray-600 hover:bg-white'}`}
className={`flex items-center gap-3 p-3.5 rounded-xl border transition-all text-right cursor-pointer ${currentSymptoms.includes(opt.condition) ? 'border-canina-blue bg-canina-blue/5 shadow-xs text-canina-blue' : 'border-medical-gray-200 bg-white text-medical-gray-700 hover:border-canina-blue/40'}`}
>
<div className={`w-8 h-8 rounded-lg flex items-center justify-center border ${currentSymptoms.includes(opt.condition) ? 'bg-canina-blue border-canina-blue text-white' : 'border-medical-gray-300 text-transparent'}`}>
<ShieldCheck className="w-5 h-5" />
<div className={`w-5 h-5 rounded-md flex items-center justify-center border shrink-0 ${currentSymptoms.includes(opt.condition) ? 'bg-canina-blue border-canina-blue text-white' : 'border-medical-gray-300 bg-white'}`}>
{currentSymptoms.includes(opt.condition) && <Check className="w-3.5 h-3.5 stroke-[3]" />}
</div>
<span className={`text-sm font-black font-vazir ${currentSymptoms.includes(opt.condition) ? 'text-canina-blue' : 'text-medical-gray-900'}`}>{opt.label}</span>
<span className="text-xs sm:text-sm font-bold font-vazir leading-tight">{opt.label}</span>
</button>
))}
</div>
<div className="flex gap-4 pt-4">
<div className="whitespace-nowrap flex items-center justify-between gap-3 pt-3">
<button
type="button"
onClick={handleBack}
className="flex-1 py-6 bg-medical-gray-100 text-medical-gray-600 rounded-3xl font-black text-lg hover:bg-medical-gray-200 focus-visible:ring-4 focus-visible:ring-canina-blue/30 focus-visible:outline-none transition-all flex items-center justify-center gap-3 font-vazir min-h-[48px]"
className="whitespace-nowrap bg-white border-2 border-medical-gray-300 text-medical-gray-700 px-4 sm:px-6 py-2.5 sm:py-3.5 rounded-full font-bold text-xs sm:text-sm hover:bg-medical-gray-50 transition-all flex items-center gap-1.5 cursor-pointer"
>
<ChevronRight className="w-5 h-5" />
{getText('advisor_back', "قبلی")}
<ChevronRight className="w-4 h-4" />
<span>{getText('advisor_back', "قبلی")}</span>
</button>
<button
type="button"
onClick={handleNext}
className="flex-[2] py-6 bg-medical-gray-900 text-white rounded-3xl font-black text-lg hover:bg-canina-blue focus-visible:ring-4 focus-visible:ring-canina-blue/30 focus-visible:outline-none transition-all shadow-xl shadow-medical-gray-900/10 flex items-center justify-center gap-3 font-vazir min-h-[48px]"
className="whitespace-nowrap bg-canina-blue text-white px-5 sm:px-8 py-2.5 sm:py-3.5 rounded-full font-bold text-xs sm:text-sm hover:bg-canina-blue/90 hover:shadow-lg transition-all flex items-center gap-1.5 shadow-md shadow-canina-blue/20 cursor-pointer"
>
{getText('advisor_next_history', "سوابق پزشکی و جراحی")}
<ChevronLeft className="w-5 h-5" />
<span>{getText('advisor_next_history', "سوابق پزشکی")}</span>
<ChevronLeft className="w-4 h-4" />
</button>
</div>
</motion.div>
@@ -541,42 +587,45 @@ export default function SmartAdvisor({ onComplete, rules = [] }: SmartAdvisorPro
initial={{ opacity: 0, x: 20 }}
animate={{ opacity: 1, x: 0 }}
exit={{ opacity: 0, x: -20 }}
className="space-y-8"
className="space-y-5 max-w-2xl mx-auto"
>
<div className="text-center">
<h3 className="text-2xl font-black text-medical-gray-900 mb-2 font-vazir uppercase italic tracking-tight">{getText('advisor_step4_history_title', "گام چهارم: سوابق پزشکی و جراحی")}</h3>
<p className="text-medical-gray-600 font-bold font-vazir">{getText('advisor_step4_history_desc', "در صورت وجود سابقه جراحی، بارداری یا نارسایی، آن را مشخص کنید")}</p>
<h3 className="text-xl sm:text-2xl font-black text-medical-gray-900 mb-1 font-vazir tracking-tight">{getText('advisor_step4_history_title', "گام چهارم: سوابق پزشکی")}</h3>
<p className="text-xs sm:text-sm text-medical-gray-500 font-bold font-vazir">{getText('advisor_step4_history_desc', "در صورت وجود سابقه جراحی، بارداری یا نارسایی، آن را مشخص کنید")}</p>
</div>
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
<div className="grid grid-cols-1 sm:grid-cols-2 gap-2.5 max-h-[50vh] sm:max-h-none overflow-y-auto pr-1">
{MEDICAL_HISTORIES.map((opt) => (
<button
key={opt.id}
type="button"
onClick={() => toggleMedicalHistory(opt.condition)}
className={`flex items-center gap-4 p-5 rounded-2xl border-2 transition-all text-right focus-visible:ring-4 focus-visible:ring-canina-blue/30 focus-visible:outline-none min-h-[48px] ${medicalConditions.includes(opt.condition) ? 'border-canina-blue bg-white shadow-md' : 'border-transparent bg-white/50 text-medical-gray-600 hover:bg-white'}`}
className={`flex items-center gap-3 p-3.5 rounded-xl border transition-all text-right cursor-pointer ${medicalConditions.includes(opt.condition) ? 'border-canina-blue bg-canina-blue/5 shadow-xs text-canina-blue' : 'border-medical-gray-200 bg-white text-medical-gray-700 hover:border-canina-blue/40'}`}
>
<div className={`w-8 h-8 rounded-lg flex items-center justify-center border ${medicalConditions.includes(opt.condition) ? 'bg-canina-blue border-canina-blue text-white' : 'border-medical-gray-300 text-transparent'}`}>
<ShieldCheck className="w-5 h-5" />
<div className={`w-5 h-5 rounded-md flex items-center justify-center border shrink-0 ${medicalConditions.includes(opt.condition) ? 'bg-canina-blue border-canina-blue text-white' : 'border-medical-gray-300 bg-white'}`}>
{medicalConditions.includes(opt.condition) && <Check className="w-3.5 h-3.5 stroke-[3]" />}
</div>
<span className={`text-sm font-black font-vazir ${medicalConditions.includes(opt.condition) ? 'text-canina-blue' : 'text-medical-gray-900'}`}>{opt.label}</span>
<span className="text-xs sm:text-sm font-bold font-vazir leading-tight">{opt.label}</span>
</button>
))}
</div>
<div className="flex gap-4 pt-4">
<div className="whitespace-nowrap flex items-center justify-between gap-3 pt-3">
<button
type="button"
onClick={handleBack}
className="flex-1 py-6 bg-medical-gray-100 text-medical-gray-600 rounded-3xl font-black text-lg hover:bg-medical-gray-200 focus-visible:ring-4 focus-visible:ring-canina-blue/30 focus-visible:outline-none transition-all flex items-center justify-center gap-3 font-vazir min-h-[48px]"
className="whitespace-nowrap bg-white border-2 border-medical-gray-300 text-medical-gray-700 px-4 sm:px-6 py-2.5 sm:py-3.5 rounded-full font-bold text-xs sm:text-sm hover:bg-medical-gray-50 transition-all flex items-center gap-1.5 cursor-pointer"
>
<ChevronRight className="w-5 h-5" />
{getText('advisor_back', "قبلی")}
<ChevronRight className="w-4 h-4" />
<span>{getText('advisor_back', "قبلی")}</span>
</button>
<button
type="button"
onClick={handleSubmit}
className="flex-[2] py-6 bg-canina-blue text-white rounded-3xl font-black text-lg hover:bg-canina-blue/90 focus-visible:ring-4 focus-visible:ring-canina-blue/30 focus-visible:outline-none transition-all shadow-xl shadow-canina-blue/30 flex items-center justify-center gap-3 font-vazir min-h-[48px]"
className="whitespace-nowrap bg-emerald-600 text-white px-6 sm:px-9 py-2.5 sm:py-3.5 rounded-full font-bold text-xs sm:text-sm hover:bg-emerald-700 hover:shadow-lg transition-all flex items-center gap-1.5 shadow-md shadow-emerald-600/20 cursor-pointer"
>
{getText('advisor_complete', "تکمیل و صدور شناسنامه")}
<ChevronLeft className="w-5 h-5" />
<span>{getText('advisor_complete', "صدور شناسنامه و پیشنهاد")}</span>
<ChevronLeft className="w-4 h-4" />
</button>
</div>
</motion.div>
@@ -71,20 +71,37 @@ export default function VideoModalPlayer({ isOpen, onClose, video }: VideoModalP
};
}, [showRateMenu]);
// Reset states on open/close
// Reset / Restore states on open/close
useEffect(() => {
if (isOpen) {
if (isOpen && video?.id) {
const savedTime = localStorage.getItem(`video_time_${video.id}`);
const initialTime = savedTime ? parseFloat(savedTime) : 0;
setIsPlaying(true);
setShowControls(true);
setIsExpandedDesc(false);
setShowRateMenu(false);
setBufferedEnd(0);
} else {
if (videoRef.current && initialTime > 0) {
videoRef.current.currentTime = initialTime;
setCurrentTime(initialTime);
}
} else if (!isOpen && video?.id) {
if (currentTime > 0) {
localStorage.setItem(`video_time_${video.id}`, currentTime.toString());
}
setIsPlaying(false);
setCurrentTime(0);
setBufferedEnd(0);
}
}, [isOpen, video]);
}, [isOpen, video?.id]);
// Save playback time periodically
useEffect(() => {
if (video?.id && currentTime > 0) {
localStorage.setItem(`video_time_${video.id}`, currentTime.toString());
}
}, [currentTime, video?.id]);
// Update buffered track
const updateBuffer = useCallback(() => {
@@ -254,164 +271,147 @@ export default function VideoModalPlayer({ isOpen, onClose, video }: VideoModalP
return (
<AnimatePresence>
<div className="fixed inset-0 z-[120] flex items-center justify-center p-3 sm:p-6 font-vazir" dir="rtl">
{/* Backdrop */}
<div className="fixed inset-0 z-[120] flex items-center justify-center p-3 sm:p-6 font-vazir overflow-y-auto" dir="rtl">
{/* Backdrop (backdrop dismiss disabled to prevent accidental closure) */}
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
onClick={onClose}
className="absolute inset-0 bg-black/90 backdrop-blur-xl"
className="fixed inset-0 bg-black/90 backdrop-blur-xl"
/>
{/* Modal Window */}
<motion.div
ref={containerRef}
initial={{ opacity: 0, scale: 0.95, y: 15 }}
animate={{ opacity: 1, scale: 1, y: 0 }}
exit={{ opacity: 0, scale: 0.95, y: 15 }}
transition={{ duration: 0.25 }}
onMouseMove={resetControlsTimer}
onTouchStart={resetControlsTimer}
className="relative bg-black w-full max-w-5xl aspect-video rounded-[2.5rem] overflow-hidden shadow-2xl border border-white/10 flex flex-col justify-between select-none"
>
{/* Iframe Support (Aparat / Youtube) */}
{isIframe ? (
<div className="w-full h-full flex items-center justify-center relative">
<button
onClick={onClose}
className="absolute top-4 left-4 z-30 p-2.5 rounded-full bg-black/60 hover:bg-black/90 text-white transition-all cursor-pointer"
title="بستن"
>
<X className="w-5 h-5" />
</button>
<div
className="w-full h-full [&>iframe]:w-full [&>iframe]:h-full"
dangerouslySetInnerHTML={{ __html: video.videoUrl || '' }}
/>
</div>
) : (
<>
{/* Native Video Element */}
<div
className="absolute inset-0 flex items-center justify-center cursor-pointer"
onClick={togglePlay}
>
<video
ref={videoRef}
src={video.videoUrl}
poster={video.thumbnail}
autoPlay
playsInline
onPlay={() => setIsPlaying(true)}
onPause={() => setIsPlaying(false)}
onTimeUpdate={() => {
if (videoRef.current) {
setCurrentTime(videoRef.current.currentTime);
updateBuffer();
}
}}
onProgress={updateBuffer}
onLoadedMetadata={() => {
if (videoRef.current) setDuration(videoRef.current.duration);
setIsBuffering(false);
updateBuffer();
}}
onWaiting={() => setIsBuffering(true)}
onPlaying={() => setIsBuffering(false)}
onEnded={() => {
setIsPlaying(false);
setShowControls(true);
}}
className="w-full h-full object-contain"
{/* Modal Window Wrapper */}
<div className="relative w-full max-w-5xl flex flex-col gap-3 my-auto z-10">
<motion.div
ref={containerRef}
initial={{ opacity: 0, scale: 0.95, y: 15 }}
animate={{ opacity: 1, scale: 1, y: 0 }}
exit={{ opacity: 0, scale: 0.95, y: 15 }}
transition={{ duration: 0.25 }}
onMouseMove={resetControlsTimer}
onTouchStart={resetControlsTimer}
className="relative bg-black w-full aspect-video rounded-3xl sm:rounded-[2.5rem] overflow-hidden shadow-2xl border border-white/10 flex flex-col justify-between select-none"
>
{/* Iframe Support (Aparat / Youtube) */}
{isIframe ? (
<div className="w-full h-full flex items-center justify-center relative">
<button
type="button"
onClick={onClose}
className="absolute top-4 left-4 z-30 p-2.5 rounded-full bg-black/60 hover:bg-black/90 text-white transition-all cursor-pointer"
title="بستن"
>
<X className="w-5 h-5" />
</button>
<div
className="w-full h-full [&>iframe]:w-full [&>iframe]:h-full"
dangerouslySetInnerHTML={{ __html: video.videoUrl || '' }}
/>
{/* Buffering Spinner */}
{isBuffering && (
<div className="absolute inset-0 flex items-center justify-center bg-black/30 backdrop-blur-2xs pointer-events-none">
<Loader2 className="w-12 h-12 text-white animate-spin" />
</div>
)}
</div>
) : (
<>
{/* Native Video Element */}
<div
className="absolute inset-0 flex items-center justify-center cursor-pointer"
onClick={togglePlay}
>
<video
ref={videoRef}
src={video.videoUrl}
poster={video.thumbnail}
autoPlay
playsInline
onPlay={() => setIsPlaying(true)}
onPause={() => setIsPlaying(false)}
onTimeUpdate={() => {
if (videoRef.current) {
setCurrentTime(videoRef.current.currentTime);
updateBuffer();
}
}}
onProgress={updateBuffer}
onLoadedMetadata={() => {
if (videoRef.current) setDuration(videoRef.current.duration);
setIsBuffering(false);
updateBuffer();
}}
onWaiting={() => setIsBuffering(true)}
onPlaying={() => setIsBuffering(false)}
onEnded={() => {
setIsPlaying(false);
setShowControls(true);
}}
className="w-full h-full object-contain"
/>
{/* Top Header Overlay */}
<div
className={`absolute top-0 left-0 right-0 p-4 sm:p-6 bg-gradient-to-b from-black/80 via-black/40 to-transparent transition-opacity duration-300 z-20 flex items-center justify-between ${
showControls ? "opacity-100 pointer-events-auto" : "opacity-0 pointer-events-none"
}`}
>
<div className="flex items-center gap-3 text-right">
<div className="w-8 h-8 rounded-full bg-canina-blue/20 text-canina-blue flex items-center justify-center shrink-0">
<Sparkles className="w-4 h-4" />
{/* Buffering Spinner */}
{isBuffering && (
<div className="absolute inset-0 flex items-center justify-center bg-black/30 backdrop-blur-2xs pointer-events-none">
<Loader2 className="w-12 h-12 text-white animate-spin" />
</div>
)}
</div>
{/* Top Header Overlay */}
<div
className={`absolute top-0 left-0 right-0 p-4 sm:p-6 bg-gradient-to-b from-black/80 via-black/40 to-transparent transition-opacity duration-300 z-20 flex items-center justify-between ${
showControls ? "opacity-100 pointer-events-auto" : "opacity-0 pointer-events-none"
}`}
>
<div className="flex items-center gap-3 text-right">
<div className="w-8 h-8 rounded-full bg-canina-blue/20 text-canina-blue flex items-center justify-center shrink-0">
<Sparkles className="w-4 h-4" />
</div>
<div>
<h3 className="text-white text-sm sm:text-base md:text-lg font-black line-clamp-1">
{video.title}
</h3>
<p className="text-white/60 text-xs font-bold mt-0.5">
{video.doctor || "کادر علمی کنینا"}
</p>
</div>
</div>
<div>
<h3 className="text-white text-base sm:text-lg font-black line-clamp-1">
{video.title}
</h3>
<p className="text-white/60 text-xs font-bold mt-0.5">
{video.doctor || "کادر علمی کنینا"}
</p>
<div className="flex items-center gap-2">
{/* Share button */}
<button
type="button"
onClick={(e) => { e.stopPropagation(); handleShare(); }}
className="p-2.5 rounded-full bg-white/10 hover:bg-white/20 text-white transition-all cursor-pointer relative"
title="اشتراک‌گذاری"
>
{isCopied ? <Check className="w-4 h-4 text-emerald-400" /> : <Share2 className="w-4 h-4" />}
</button>
{/* Download button */}
<button
type="button"
onClick={(e) => { e.stopPropagation(); handleDownload(); }}
className="p-2.5 rounded-full bg-white/10 hover:bg-white/20 text-white transition-all cursor-pointer"
title="دانلود ویدئو"
>
<Download className="w-4 h-4" />
</button>
{/* Close button */}
<button
type="button"
onClick={(e) => { e.stopPropagation(); onClose(); }}
className="p-2.5 rounded-full bg-white/10 hover:bg-red-500/80 text-white transition-all cursor-pointer"
title="بستن"
>
<X className="w-4 h-4" />
</button>
</div>
</div>
<div className="flex items-center gap-2">
{/* Share button */}
<button
type="button"
onClick={(e) => { e.stopPropagation(); handleShare(); }}
className="p-2.5 rounded-full bg-white/10 hover:bg-white/20 text-white transition-all cursor-pointer relative"
title="اشتراک‌گذاری"
>
{isCopied ? <Check className="w-4 h-4 text-emerald-400" /> : <Share2 className="w-4 h-4" />}
</button>
{/* Download button */}
<button
type="button"
onClick={(e) => { e.stopPropagation(); handleDownload(); }}
className="p-2.5 rounded-full bg-white/10 hover:bg-white/20 text-white transition-all cursor-pointer"
title="دانلود ویدئو"
>
<Download className="w-4 h-4" />
</button>
{/* Close button */}
<button
type="button"
onClick={(e) => { e.stopPropagation(); onClose(); }}
className="p-2.5 rounded-full bg-white/10 hover:bg-red-500/80 text-white transition-all cursor-pointer"
title="بستن"
>
<X className="w-4 h-4" />
</button>
</div>
</div>
{/* Bottom Custom Controls Bar */}
<div
className={`absolute bottom-0 left-0 right-0 p-4 sm:p-6 bg-gradient-to-t from-black/90 via-black/60 to-transparent transition-opacity duration-300 z-20 space-y-3 ${
showControls ? "opacity-100 pointer-events-auto" : "opacity-0 pointer-events-none"
}`}
onClick={(e) => e.stopPropagation()}
>
{/* Expandable Description Box if available */}
{video.description && (
<div className="bg-white/10 backdrop-blur-md rounded-2xl p-3 text-white text-xs border border-white/10">
<p className={`font-medium leading-relaxed ${isExpandedDesc ? "" : "line-clamp-1"}`}>
{video.description}
</p>
{video.description.length > 80 && (
<button
type="button"
onClick={() => setIsExpandedDesc(!isExpandedDesc)}
className="text-canina-blue hover:underline font-bold mt-1 inline-flex items-center gap-1 cursor-pointer"
>
<span>{isExpandedDesc ? "بستن توضیحات" : "مشاهده بیشتر توضیحات"}</span>
{isExpandedDesc ? <ChevronUp className="w-3 h-3" /> : <ChevronDown className="w-3 h-3" />}
</button>
)}
</div>
)}
{/* Bottom Custom Controls Bar */}
<div
className={`absolute bottom-0 left-0 right-0 p-4 sm:p-6 bg-gradient-to-t from-black/90 via-black/60 to-transparent transition-opacity duration-300 z-20 space-y-3 ${
showControls ? "opacity-100 pointer-events-auto" : "opacity-0 pointer-events-none"
}`}
onClick={(e) => e.stopPropagation()}
>
{/* Progress / Seek Bar with filled progress & buffer tracks */}
<div className="flex items-center gap-3 dir-ltr" dir="ltr">
@@ -570,7 +570,30 @@ export default function VideoModalPlayer({ isOpen, onClose, video }: VideoModalP
</>
)}
</motion.div>
{/* Video Description Box (Rendered outside & below the video player for clean viewing) */}
{video.description && (
<div className="bg-neutral-900/90 backdrop-blur-md rounded-2xl p-4 text-white text-xs border border-white/10 shadow-xl space-y-2 text-right">
<div className="flex items-center justify-between">
<span className="font-black text-canina-blue text-xs">توضیحات و نکات علمی ویدئو:</span>
{video.description.length > 120 && (
<button
type="button"
onClick={() => setIsExpandedDesc(!isExpandedDesc)}
className="text-white/60 hover:text-white text-[11px] font-bold inline-flex items-center gap-1 cursor-pointer"
>
<span>{isExpandedDesc ? "بستن متن" : "مشاهده کامل متن"}</span>
{isExpandedDesc ? <ChevronUp className="w-3 h-3" /> : <ChevronDown className="w-3 h-3" />}
</button>
)}
</div>
<p className={`font-medium text-white/80 leading-relaxed ${isExpandedDesc ? "" : "line-clamp-2"}`}>
{video.description}
</p>
</div>
)}
</div>
</AnimatePresence>
</div>
</AnimatePresence>
);
}
+68 -36
View File
@@ -1,9 +1,10 @@
"use client";
import React, { useState } from "react";
import { motion } from "motion/react";
import { ChevronLeft, PlayCircle, Search, Clock, User } from "lucide-react";
import { ChevronLeft, PlayCircle, Search, Clock, User, Eye, Share2, Check } from "lucide-react";
import SafeImage from "./SafeImage";
import BackButton from "./BackButton";
import { toast } from "sonner";
import { videoService, Video } from "../lib/services/videoService";
import { useRouter } from 'next/navigation';
@@ -15,6 +16,7 @@ export default function VideosPage() {
const [isLoading, setIsLoading] = useState(true);
const [selectedVideo, setSelectedVideo] = useState<Video | null>(null);
const [search, setSearch] = useState("");
const [isCopied, setIsCopied] = useState(false);
React.useEffect(() => {
setIsLoading(true);
@@ -35,6 +37,15 @@ export default function VideosPage() {
});
}, []);
const handleSharePage = () => {
if (typeof window !== 'undefined') {
navigator.clipboard.writeText(window.location.href);
setIsCopied(true);
toast.success("لینک آکادمی ویدئویی کپی شد.");
setTimeout(() => setIsCopied(false), 2000);
}
};
const filteredVideos = videos.filter(v =>
(v.title || '').toLowerCase().includes(search.toLowerCase()) ||
(v.doctor || '').toLowerCase().includes(search.toLowerCase()) ||
@@ -42,26 +53,36 @@ export default function VideosPage() {
);
return (
<div className="min-h-screen bg-medical-gray-900 pt-8 pb-20 px-4 font-vazir" dir="rtl">
<div className="min-h-screen bg-medical-gray-900 pt-6 pb-20 px-4 font-vazir" dir="rtl">
<div className="max-w-7xl mx-auto">
{/* Header */}
<div className="flex flex-col md:flex-row items-center justify-between mb-16 gap-6">
<div className="text-right">
<div className="inline-flex items-center gap-2 px-3 py-1 bg-canina-blue/10 text-canina-blue rounded-full text-[10px] font-black uppercase tracking-widest mb-4">
<PlayCircle className="w-3 h-3" />
Video Academy
</div>
<h1 className="text-4xl lg:text-6xl font-black text-white italic leading-tight">
آکادمی ویدئویی <span className="text-canina-blue">کنینا</span>
</h1>
{/* Standard Page Top Bar */}
<div className="flex items-center justify-between gap-4 mb-8 bg-white/5 p-4 rounded-3xl border border-white/10 backdrop-blur-md">
<div className="flex items-center gap-3">
<BackButton className="bg-white/10 text-white border-white/15 hover:bg-white/20 hover:text-white" />
<div className="hidden sm:inline-flex items-center gap-1.5 px-3 py-1 bg-canina-blue/20 text-canina-blue rounded-full text-xs font-black">
<PlayCircle className="w-3.5 h-3.5" />
<span>آکادمی تخصصی کنینا</span>
</div>
<button
onClick={() => router.push('/')}
className="px-8 py-3 bg-white/5 border border-white/10 rounded-2xl text-white shadow-sm flex items-center gap-2 font-black hover:bg-white/10 transition-all font-vazir"
>
<span>بازگشت</span>
<ChevronLeft className="w-5 h-5" />
</button>
</div>
<button
type="button"
onClick={handleSharePage}
className="inline-flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-white/10 hover:bg-white/20 text-white text-xs font-bold transition-all border border-white/10 cursor-pointer"
>
{isCopied ? <Check className="w-3.5 h-3.5 text-emerald-400" /> : <Share2 className="w-3.5 h-3.5" />}
<span>اشتراک‌گذاری صفحه</span>
</button>
</div>
{/* Title Header */}
<div className="text-right mb-10">
<h1 className="text-3xl lg:text-5xl font-black text-white italic leading-tight mb-2">
آکادمی ویدئویی <span className="text-canina-blue">کنینا</span>
</h1>
<p className="text-white/60 text-xs sm:text-sm font-medium">
ویدئوهای آموزشی، مشاوره‌های تخصصی دامپزشکی و راهنمای مصرف مکمل‌ها
</p>
</div>
{/* Search Bar */}
@@ -72,7 +93,7 @@ export default function VideosPage() {
placeholder="جستجو در ویدئوهای آموزشی..."
value={search}
onChange={e => setSearch(e.target.value)}
className="w-full bg-white/5 border border-white/10 rounded-[2rem] py-5 pr-14 pl-6 text-white outline-none focus:bg-white/10 transition-all font-bold"
className="w-full bg-white/5 border border-white/10 rounded-[2rem] py-4 pr-14 pl-6 text-white outline-none focus:bg-white/10 transition-all font-bold text-sm"
/>
</div>
@@ -107,39 +128,50 @@ export default function VideosPage() {
videoService.incrementViews(video.id);
}}
>
<div className="relative aspect-video rounded-[2.5rem] overflow-hidden mb-6 shadow-2xl border border-white/5 bg-black/40">
<div className="relative aspect-video rounded-3xl overflow-hidden mb-4 shadow-2xl border border-white/5 bg-black/40">
<SafeImage
src={video.thumbnail}
alt={video.title}
className="w-full h-full"
imgClassName="object-cover group-hover:scale-110 transition-transform duration-700 opacity-60 group-hover:opacity-100"
imgClassName="object-cover group-hover:scale-105 transition-transform duration-500 opacity-70 group-hover:opacity-100"
/>
<div className="absolute inset-0 flex items-center justify-center">
<div className="w-16 h-16 bg-canina-blue rounded-full flex items-center justify-center text-white shadow-2xl group-hover:scale-110 transition-transform">
<PlayCircle className="w-10 h-10" />
<div className="w-14 h-14 bg-canina-blue rounded-full flex items-center justify-center text-white shadow-xl group-hover:scale-110 transition-transform">
<PlayCircle className="w-9 h-9" />
</div>
</div>
{video.duration && (
<div className="absolute bottom-4 right-4 bg-black/60 backdrop-blur-md text-white px-3 py-1 rounded-lg text-[10px] font-black">
<div className="absolute bottom-3 right-3 bg-black/70 backdrop-blur-md text-white px-2.5 py-1 rounded-lg text-[10px] font-black">
{video.duration}
</div>
)}
{/* View Count Badge */}
<div className="absolute top-3 left-3 bg-black/60 backdrop-blur-md text-white/90 px-2.5 py-1 rounded-lg text-[10px] font-bold flex items-center gap-1">
<Eye className="w-3 h-3 text-canina-blue" />
<span>{(video.viewsCount ?? 0).toLocaleString('fa-IR')}</span>
</div>
</div>
<div className="px-4">
<h3 className="text-xl font-black text-white group-hover:text-canina-blue transition-colors mb-2 leading-tight">
<div className="px-2">
<h3 className="text-base sm:text-lg font-black text-white group-hover:text-canina-blue transition-colors mb-2 leading-snug line-clamp-2">
{video.title}
</h3>
<div className="flex items-center gap-4 text-xs font-bold text-white/40">
<div className="flex items-center justify-between text-xs font-bold text-white/40 pt-1">
<div className="flex items-center gap-1">
<User className="w-3 h-3" />
{video.doctor || 'کادر علمی کنینا'}
<User className="w-3.5 h-3.5" />
<span>{video.doctor || 'کادر علمی کنینا'}</span>
</div>
{video.duration && (
<div className="flex items-center gap-1">
<Clock className="w-3 h-3" />
<span>{video.duration}</span>
<div className="flex items-center gap-3">
{video.duration && (
<div className="flex items-center gap-1">
<Clock className="w-3 h-3" />
<span>{video.duration}</span>
</div>
)}
<div className="flex items-center gap-1 text-white/60">
<Eye className="w-3 h-3" />
<span>{(video.viewsCount ?? 0).toLocaleString('fa-IR')}</span>
</div>
)}
</div>
</div>
</div>
</motion.div>
@@ -32,6 +32,13 @@ const mockProducts = [
},
];
const mockPush = vi.fn();
vi.mock('next/navigation', () => ({
useRouter: () => ({
push: mockPush,
}),
}));
describe('FeaturedProducts', () => {
beforeEach(() => {
vi.clearAllMocks();
@@ -42,14 +49,14 @@ describe('FeaturedProducts', () => {
it('renders loading skeletons initially', () => {
vi.mocked(productService.getFeaturedProducts).mockReturnValue(new Promise(() => {}));
const { container } = render(<FeaturedProducts onProductClick={vi.fn()} onShopNavigate={vi.fn()} />);
const { container } = render(<FeaturedProducts />);
// Check if skeletons are present (e.g. searching for animate-pulse)
expect(container.getElementsByClassName('animate-pulse').length).toBeGreaterThan(0);
});
it('renders products once loaded', async () => {
vi.mocked(productService.getFeaturedProducts).mockResolvedValue(mockProducts as unknown as ReturnType<typeof productService.getFeaturedProducts>);
render(<FeaturedProducts onProductClick={vi.fn()} onShopNavigate={vi.fn()} />);
render(<FeaturedProducts />);
await waitFor(() => {
expect(screen.getByText('Canhydrox GAG')).toBeInTheDocument();
@@ -57,26 +64,24 @@ describe('FeaturedProducts', () => {
expect(screen.getByText('Joint helper')).toBeInTheDocument();
});
it('calls onProductClick when product card is clicked', async () => {
const handleProductClick = vi.fn();
it('navigates to product details when product card is clicked', async () => {
vi.mocked(productService.getFeaturedProducts).mockResolvedValue(mockProducts as unknown as ReturnType<typeof productService.getFeaturedProducts>);
render(<FeaturedProducts onProductClick={handleProductClick} onShopNavigate={vi.fn()} />);
render(<FeaturedProducts />);
await waitFor(() => {
expect(screen.getByText('Canhydrox GAG')).toBeInTheDocument();
});
fireEvent.click(screen.getByText('Canhydrox GAG'));
expect(handleProductClick).toHaveBeenCalledWith(mockProducts[0]);
expect(mockPush).toHaveBeenCalledWith('/shop/prod-1');
});
it('calls onShopNavigate when navigation link is clicked', async () => {
const handleShopNavigate = vi.fn();
it('navigates to shop when view all link is clicked', async () => {
vi.mocked(productService.getFeaturedProducts).mockResolvedValue(mockProducts as unknown as ReturnType<typeof productService.getFeaturedProducts>);
render(<FeaturedProducts onProductClick={vi.fn()} onShopNavigate={handleShopNavigate} />);
render(<FeaturedProducts />);
const navBtn = screen.getByText('مشاهده تمامی محصولات');
fireEvent.click(navBtn);
expect(handleShopNavigate).toHaveBeenCalled();
expect(mockPush).toHaveBeenCalledWith('/shop');
});
});
@@ -1,4 +1,4 @@
"use client";
"use client";
import { describe, it, expect, vi } from 'vitest';
import { render, screen, fireEvent } from '@testing-library/react';
import React from 'react';
@@ -6,39 +6,23 @@ import Footer from '../Footer';
describe('Footer', () => {
it('renders footer brand text and standard layout elements', () => {
render(<Footer onNavigate={vi.fn()} onShopNavigate={vi.fn()} onB2BOpen={vi.fn()} />);
render(<Footer onB2BOpen={vi.fn()} />);
expect(screen.getByText('کنینا ایران')).toBeInTheDocument();
expect(screen.getByText('نماینده رسمی در ایران')).toBeInTheDocument();
expect(screen.getByText('Canina')).toBeInTheDocument();
expect(screen.getByText('ایران')).toBeInTheDocument();
expect(screen.getByText('تهران، جردن، خیابان سعیدی، ساختمان کنینا، طبقه ۵، واحد ۱۹')).toBeInTheDocument();
});
it('triggers onNavigate and onShopNavigate when quick links are clicked', () => {
const handleNavigate = vi.fn();
const handleShopNavigate = vi.fn();
const handleB2BOpen = vi.fn();
it('renders navigation links properly', () => {
render(<Footer onB2BOpen={vi.fn()} />);
render(
<Footer
onNavigate={handleNavigate}
onShopNavigate={handleShopNavigate}
onB2BOpen={handleB2BOpen}
/>
);
const shopLink = screen.getByText('محصولات تخصصی ۲۰۲۴').closest('a');
expect(shopLink).toHaveAttribute('href', '/shop');
// Click quick link for shop
const shopLink = screen.getByText('محصولات تخصصی ۲۰۲۴');
fireEvent.click(shopLink);
expect(handleShopNavigate).toHaveBeenCalled();
const blogLink = screen.getByText('مجله سلامت پت (وبلاگ)').closest('a');
expect(blogLink).toHaveAttribute('href', '/blog');
// Click quick link for blog
const blogLink = screen.getByText('مجله سلامت پت (وبلاگ)');
fireEvent.click(blogLink);
expect(handleNavigate).toHaveBeenCalledWith('blog');
// Click B2B link
const b2bLink = screen.getByText('پنل سفارش عمده (B2B)');
fireEvent.click(b2bLink);
expect(handleB2BOpen).toHaveBeenCalled();
const trustLink = screen.getByText('نمادهای اعتماد و مجوزهای رسمی').closest('a');
expect(trustLink).toHaveAttribute('href', '/trust-seals');
});
});
@@ -86,7 +86,9 @@ describe('Header', () => {
);
expect(screen.queryByText('ورود / ثبت‌نام')).not.toBeInTheDocument();
expect(screen.getByText('کوروش')).toBeInTheDocument();
const userBtn = screen.getByText('کوروش');
expect(userBtn).toBeInTheDocument();
fireEvent.click(userBtn);
expect(screen.getByText('ملوس')).toBeInTheDocument();
});
+7 -1
View File
@@ -187,7 +187,13 @@ export const useUserStore = create<UserStore>()(
},
fetchProfile: async () => {
try {
const token = typeof window !== 'undefined' && window.localStorage ? localStorage.getItem('accessToken') : (globalThis as unknown as { _testToken?: string })._testToken;
let token: string | null = null;
try {
token = localStorage.getItem('accessToken');
} catch {}
if (!token) {
token = (globalThis as unknown as { _testToken?: string })._testToken || null;
}
if (!token) {
try { usePetStore.getState().reset(); } catch {}
try { localStorage.removeItem("canina-pets"); } catch {}
+31
View File
@@ -13,6 +13,37 @@ Object.defineProperty(window, 'IntersectionObserver', {
value: MockIntersectionObserver,
});
const localStorageMock = (() => {
let store: Record<string, string> = {};
return {
getItem: (key: string) => store[key] || null,
setItem: (key: string, value: string) => {
store[key] = value.toString();
},
removeItem: (key: string) => {
delete store[key];
},
clear: () => {
store = {};
},
};
})();
Object.defineProperty(window, 'localStorage', {
value: localStorageMock,
writable: true,
});
Object.defineProperty(window, 'sessionStorage', {
value: localStorageMock,
writable: true,
});
if (typeof globalThis !== 'undefined') {
(globalThis as any).localStorage = localStorageMock;
(globalThis as any).sessionStorage = localStorageMock;
}
vi.mock('next/navigation', () => ({
useRouter: () => ({
push: vi.fn(),
+82 -8
View File
@@ -3,24 +3,36 @@
"1": "app.module.ts",
"2": "SmsService",
"3": "ProductService",
"4": "SafeImage.tsx",
"4": "utils.ts",
"5": "CmsController",
"6": "tickets.controller.ts",
"7": "pets/pets.controller.ts",
"8": "admin.module.ts",
"7": "Button.tsx",
"8": "ReportsController",
"9": "devDependencies",
<<<<<<< HEAD
"10": "ReviewsController",
"11": "MediaSelector.tsx",
"12": "index.ts",
"13": "app-audit-verification.e2e-spec.js",
"14": "useSettingsStore",
=======
"10": "ReviewsService",
"11": "MediaSelector.tsx",
"12": "PetProfile.tsx",
"13": "app-audit-verification.e2e-spec.js",
"14": "UserDashboard.tsx",
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
"15": "src/services/api.ts",
"16": "DoctorQueryDto",
"17": "UserDashboard.tsx",
"18": "JwtAuthGuard",
"19": "ProductsService",
"20": "CreateVideoDto",
<<<<<<< HEAD
"21": "Button.tsx",
=======
"21": "ProductPage.tsx",
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
"22": "lib/services/api.ts",
"23": "MenuService",
"24": "BE-001",
@@ -32,7 +44,7 @@
"30": "DEVOPS-001",
"31": "DOC-001",
"32": "adminRoutes.tsx",
"33": "WholesaleApplyDto",
"33": "WholesaleService",
"34": "B2BService",
"35": "PetProfile.tsx",
"36": "FaqService",
@@ -47,18 +59,27 @@
"45": "What You Must Do When Invoked",
"46": "HomeController",
"47": "IngredientsService",
<<<<<<< HEAD
"48": "useCartStore",
=======
"48": "auth.module.ts",
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
"49": "devDependencies",
"50": "devDependencies",
"51": "BlogsController",
"52": "PrescriptionsService",
"53": "SmartAdvisorService",
<<<<<<< HEAD
"54": "UsersService",
=======
"54": "UsersController",
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
"55": "UITexts.tsx",
"56": "Orders.tsx",
"57": "Role & Core Objective",
"58": "ContactService",
"59": "compilerOptions",
<<<<<<< HEAD
"60": "PaymentService",
"61": "AdminTransactionFilterDto",
"62": "CreateReviewDto",
@@ -68,6 +89,17 @@
"66": "WikiController",
"67": "PetsController",
"68": "20260526145407_init/migration.sql",
=======
"60": "users.controller.ts",
"61": "payment.service.ts",
"62": "ProductDto",
"63": "dependencies",
"64": "compilerOptions",
"65": "app.e2e-spec.js",
"66": "ApiOperation",
"67": "admin.module.ts",
"68": "PaymentService",
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
"69": "Required Review Group Closures",
"70": "compilerOptions",
"71": "getPageMetadata",
@@ -75,7 +107,11 @@
"73": "Operational Rules & Boundaries",
"74": "WikiController",
"75": "PetsController",
<<<<<<< HEAD
"76": "CreateEBankCheckoutDto",
=======
"76": "AdminService",
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
"77": "seo.module.ts",
"78": "route.ts",
"79": "🏢 AI Software Agency — Master Orchestration Protocol v3",
@@ -87,9 +123,13 @@
"85": "eslint-config-prettier",
"86": "zibal.service.ts",
"87": "dependencies",
<<<<<<< HEAD
"88": "ProductPage.tsx",
=======
"88": "toPersian",
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
"89": "seed-products.ts",
"90": "HomeClient.tsx",
"90": "useSettingsStore",
"91": "Reconciled Audit Roles & Assignments",
"92": "OrdersService",
"93": "@nestjs/schematics",
@@ -105,30 +145,45 @@
"103": "Comprehensive Change Log",
"104": "Coupons.tsx",
"105": "Operational Rules & Boundaries",
<<<<<<< HEAD
"106": "blog/page.tsx",
"107": "layout.tsx",
=======
"106": "Media.tsx",
"107": "@types/supertest",
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
"108": "PrismaService",
"109": "1. Summary of Integrity Repairs Performed",
"110": "Operational Rules & Boundaries",
"111": "Operational Rules & Boundaries",
"112": "Operational Rules & Boundaries",
"113": "reviews.controller.ts",
"113": "CreateReviewDto",
"114": "AppService",
"115": "@types/react-dom",
"115": "UsersService",
"116": "Vazirmatn Changelog",
"117": "Vazirmatn Font فونت وزیرمتن",
"118": "Operational Rules & Boundaries",
"119": "compilerOptions",
"120": "compilerOptions",
"121": "backend/README.md",
<<<<<<< HEAD
"122": "videos/page.tsx",
"123": "BlogsService",
=======
"122": "Param",
"123": "CreateEBankCheckoutDto",
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
"124": "Repository Map",
"125": "validate_integrity.js",
"126": "admin-panel/package.json",
"127": "Sahel-Font",
<<<<<<< HEAD
"128": "AdminService",
"129": "نقشه جامع پوشش تست‌های سرتاسری (E2E Test Coverage Map) — پروژه Canina",
=======
"128": "AdminController",
"129": "InitiatePaymentDto",
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
"130": "Sahel-Font",
"131": "Role & Core Objective",
"132": "orchestrate.py",
@@ -150,8 +205,13 @@
"148": "typescript",
"149": "SmsSettingsPage.tsx",
"150": "Product Requirement Document (PRD)",
<<<<<<< HEAD
"151": "admin.service.ts",
"152": "InitiatePaymentDto",
=======
"151": "auth.service.ts",
"152": ".createCoupon",
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
"153": "exclude",
"154": "Baseline Command Plan & Reconciled Command History",
"155": "seo-backfill.ts",
@@ -222,7 +282,15 @@
"229": ".agents/workflows/graphify.md",
"230": "instructions.md",
"232": "@eslint/js",
<<<<<<< HEAD
"234": "20260526160916_add_ui_texts_and_scientific_terms/migration.sql",
=======
"233": "eslint-plugin-prettier",
"234": "WholesaleApplyDto",
"235": "@nestjs/cli",
"236": "@nestjs/testing",
"237": "app/page.tsx",
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
"238": "prisma",
"239": "source-map-support",
"240": "supertest",
@@ -297,7 +365,13 @@
"311": "@types/multer",
"312": "@types/passport-jwt",
"313": "Modal.tsx",
<<<<<<< HEAD
=======
"314": "typescript-eslint",
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
"315": "typescript",
"316": "ts-jest",
"317": "revalidate/route.ts",
"318": "MaskableField.tsx"
"318": "MaskableField.tsx",
"319": "eslint-config-next"
}
+5 -1
View File
@@ -1 +1,5 @@
{"0": "b0118f68a3e7f0ad", "1": "18de18c6e7ae94f7", "2": "c15787a7453232bc", "3": "7589a65ac5d3843e", "4": "77c7452fa7f95e52", "5": "f34c872571e8a774", "6": "57f26bed5f2b7960", "7": "0054fd66d397b1c2", "8": "eab4b90b3684993f", "9": "5755748a15e41acd", "10": "62efd7b1e440f9ed", "11": "7486b8792dd18a8e", "12": "69a57651cd8f5b0b", "13": "3a0d379c05c48643", "14": "f70ac56a441b71cc", "15": "c503f61c132e0faa", "16": "bbaf7539ddd300b0", "17": "d0c893a01ede1ca8", "18": "714e834ae9808320", "19": "77128508b883f928", "20": "1a62865714a9c82a", "21": "ca7f434e9ff71924", "22": "453cd415050479d6", "23": "b64d81a71800bd4b", "24": "4eda46a5b0695ef6", "25": "90b79d6027d60d30", "26": "6bd6f2633370820c", "27": "7664e56213a29331", "28": "942c4f9928c60a45", "29": "0614b98d9013b5f5", "30": "53ff49b3d54f0fba", "31": "2153ddcd7477dfb7", "32": "89fe2ef12db40871", "33": "8c213a62d97de6b1", "34": "e89579446dcd5c0b", "35": "10ed3df6c0c4be58", "36": "b73994254301dd0e", "37": "1c9a1f4c72613346", "38": "58fe18c423dae025", "39": "f38c905c9af9edc0", "40": "f07a16ec76520068", "41": "7abb5bc6a0e4f65f", "42": "cbaa20536db72d3e", "43": "7478d6755ca2248a", "44": "b4c82af1f2f566f7", "45": "7dd5c61562c827a8", "46": "4ece6985263357c4", "47": "65e41c1c22dcd058", "48": "e0d5fcbe4aefbdbc", "49": "841013681f4e6e8c", "50": "b1c3283bd55a8fe9", "51": "f72c06a6893d6e7d", "52": "73df605d6eec20d9", "53": "cb17af4eb831480f", "54": "be3689094661c515", "55": "93d836d575401c61", "56": "2a1dd74542bc4e00", "57": "0f62727f3b4907c0", "58": "533f2d32c60dd4b3", "59": "7369e85febb97f1a", "60": "5287bf63026e555d", "61": "5404a2dafca5cc88", "62": "2c77321eabf5539c", "63": "2b0ee366d6136717", "64": "3b9521f7d7986eaa", "65": "0e03a5b22c0f26de", "66": "6e67e4bc78994a71", "67": "10d4f0bfa19dd52f", "68": "bf5a253cc5340107", "69": "31a5a53f1fe77e46", "70": "01d4f9d6d9f3b08a", "71": "de88671ca9aafe18", "72": "69d0f8b228227690", "73": "22456307ff273d80", "74": "d9e74b032c5b8440", "75": "30a4a28cb6862c78", "76": "c4acedd7472cf7cb", "77": "62430df45afa65b5", "78": "0273bbf045eb1528", "79": "ba7bc17581366c9a", "80": "0727bb53199085fc", "81": "91393683c97d1773", "82": "992572e1562e1a95", "83": "71d2ce6fb684bc0e", "84": "70497658d0e0cea6", "85": "f6ddba6f531d6b96", "86": "e3d13e2060945d3f", "87": "f0f56796aaebb4f5", "88": "169054d7af756091", "89": "656f816eb51f2ab1", "90": "8bc436ec0e99c7d9", "91": "25a6695f5783d2be", "92": "00341c22c4d34679", "93": "b796283dc9729998", "94": "f7a706f5fcb260c3", "95": "cf61e1532c01d2a4", "96": "3fef84a1b6832b0b", "97": "9c27b454cb67cda6", "98": "5bbc8944b2ba2d8f", "99": "3c7478cc94918e63", "100": "3c1d9844d072bd2a", "101": "b3c5433df880f335", "102": "e036dbd1de0f8b38", "103": "ac7cb5ec7d5c0802", "104": "dbe2f8ccb8d5321a", "105": "622f83f2eb300a25", "106": "73382a9ef9d08673", "107": "3ae63656c43c37a7", "108": "54a50b1fb4116d98", "109": "6d16ccde1291c9d4", "110": "d228746e85ead3af", "111": "b55ba9125ffb5729", "112": "5f50a360f18a880b", "113": "34cf48f154e5d4dd", "114": "c6b57d78299a27b3", "115": "4ab8ffab1d51ca61", "116": "db70db08c00162df", "117": "9a1080686fc7c39b", "118": "77fd76193df9f573", "119": "28355f848c862b6e", "120": "25f77f5455bdc96a", "121": "9141a0ede9461fd5", "122": "d86deea433a6d69d", "123": "7197798a32778fd4", "124": "3ceda88239910d9a", "125": "9409b3b8a334f51d", "126": "ac95a9f152e3d1c4", "127": "a7299f20633c0236", "128": "c9b5396dadad9f63", "129": "e55eee7bf1230c00", "130": "7f405315686459b9", "131": "44c7924c829cc215", "132": "17ecb7325285cf7a", "133": "4487fd85ddc13c93", "134": "c35e392f1594d14e", "135": "c4abf0eb38ef740d", "136": "07d37aeefbe50e21", "137": "70b58e32c2890fdd", "138": "f2c7afb0c277c4b7", "139": "bee7620bf612dcfe", "140": "167643bcbbc26244", "141": "dcffd9ad7a1f7df6", "142": "f47469d48b3776b5", "143": "1b0ef1cf87b53de3", "144": "e195f425def606d0", "145": "6ddbf62ac93920e1", "146": "c7ddffce8605b65b", "147": "c432e2ac14610f9b", "148": "d0fc47de7f8bcf41", "149": "39d16c91943d85e4", "150": "5910eeefe2f97a20", "151": "127d0372ec8bf9ee", "152": "34581929891cefb2", "153": "6cfdd09a6fdd9ff9", "154": "66efafa1e86d8081", "155": "562a328c3cebc9b1", "156": "4a8bdc6821207fa3", "157": "dd5f624dc488c627", "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", "179": "48eb576d55dfdbb8", "180": "4ac5f9965007617d", "181": "cff999497d56b512", "182": "06b38ffa6f58195d", "183": "ee705c178d6958bb", "184": "1a833537ef5e569c", "186": "867babdd40f0c3fc", "187": "298144d1548a7dee", "188": "00d275127a7e435e", "189": "2942a9d30dae4a29", "190": "3e21e2fb50e12670", "191": "be62daa7d5bc336a", "192": "47c3e1a9d4bb7e67", "193": "82ff39c105ae3090", "194"Line truncated
<<<<<<< HEAD
{"0": "b0118f68a3e7f0ad", "1": "18de18c6e7ae94f7", "2": "c15787a7453232bc", "3": "7589a65ac5d3843e", "4": "77c7452fa7f95e52", "5": "f34c872571e8a774", "6": "57f26bed5f2b7960", "7": "0054fd66d397b1c2", "8": "eab4b90b3684993f", "9": "5755748a15e41acd", "10": "62efd7b1e440f9ed", "11": "7486b8792dd18a8e", "12": "69a57651cd8f5b0b", "13": "3a0d379c05c48643", "14": "f70ac56a441b71cc", "15": "c503f61c132e0faa", "16": "bbaf7539ddd300b0", "17": "d0c893a01ede1ca8", "18": "714e834ae9808320", "19": "77128508b883f928", "20": "1a62865714a9c82a", "21": "ca7f434e9ff71924", "22": "453cd415050479d6", "23": "b64d81a71800bd4b", "24": "4eda46a5b0695ef6", "25": "90b79d6027d60d30", "26": "6bd6f2633370820c", "27": "7664e56213a29331", "28": "942c4f9928c60a45", "29": "0614b98d9013b5f5", "30": "53ff49b3d54f0fba", "31": "2153ddcd7477dfb7", "32": "89fe2ef12db40871", "33": "8c213a62d97de6b1", "34": "e89579446dcd5c0b", "35": "10ed3df6c0c4be58", "36": "b73994254301dd0e", "37": "1c9a1f4c72613346", "38": "58fe18c423dae025", "39": "f38c905c9af9edc0", "40": "f07a16ec76520068", "41": "7abb5bc6a0e4f65f", "42": "cbaa20536db72d3e", "43": "7478d6755ca2248a", "44": "b4c82af1f2f566f7", "45": "7dd5c61562c827a8", "46": "4ece6985263357c4", "47": "65e41c1c22dcd058", "48": "e0d5fcbe4aefbdbc", "49": "841013681f4e6e8c", "50": "b1c3283bd55a8fe9", "51": "f72c06a6893d6e7d", "52": "73df605d6eec20d9", "53": "cb17af4eb831480f", "54": "be3689094661c515", "55": "93d836d575401c61", "56": "2a1dd74542bc4e00", "57": "0f62727f3b4907c0", "58": "533f2d32c60dd4b3", "59": "7369e85febb97f1a", "60": "5287bf63026e555d", "61": "5404a2dafca5cc88", "62": "2c77321eabf5539c", "63": "2b0ee366d6136717", "64": "3b9521f7d7986eaa", "65": "0e03a5b22c0f26de", "66": "6e67e4bc78994a71", "67": "10d4f0bfa19dd52f", "68": "bf5a253cc5340107", "69": "31a5a53f1fe77e46", "70": "01d4f9d6d9f3b08a", "71": "de88671ca9aafe18", "72": "69d0f8b228227690", "73": "22456307ff273d80", "74": "d9e74b032c5b8440", "75": "30a4a28cb6862c78", "76": "c4acedd7472cf7cb", "77": "62430df45afa65b5", "78": "0273bbf045eb1528", "79": "ba7bc17581366c9a", "80": "0727bb53199085fc", "81": "91393683c97d1773", "82": "992572e1562e1a95", "83": "71d2ce6fb684bc0e", "84": "70497658d0e0cea6", "85": "f6ddba6f531d6b96", "86": "e3d13e2060945d3f", "87": "f0f56796aaebb4f5", "88": "169054d7af756091", "89": "656f816eb51f2ab1", "90": "8bc436ec0e99c7d9", "91": "25a6695f5783d2be", "92": "00341c22c4d34679", "93": "b796283dc9729998", "94": "f7a706f5fcb260c3", "95": "cf61e1532c01d2a4", "96": "3fef84a1b6832b0b", "97": "9c27b454cb67cda6", "98": "5bbc8944b2ba2d8f", "99": "3c7478cc94918e63", "100": "3c1d9844d072bd2a", "101": "b3c5433df880f335", "102": "e036dbd1de0f8b38", "103": "ac7cb5ec7d5c0802", "104": "dbe2f8ccb8d5321a", "105": "622f83f2eb300a25", "106": "73382a9ef9d08673", "107": "3ae63656c43c37a7", "108": "54a50b1fb4116d98", "109": "6d16ccde1291c9d4", "110": "d228746e85ead3af", "111": "b55ba9125ffb5729", "112": "5f50a360f18a880b", "113": "34cf48f154e5d4dd", "114": "c6b57d78299a27b3", "115": "4ab8ffab1d51ca61", "116": "db70db08c00162df", "117": "9a1080686fc7c39b", "118": "77fd76193df9f573", "119": "28355f848c862b6e", "120": "25f77f5455bdc96a", "121": "9141a0ede9461fd5", "122": "d86deea433a6d69d", "123": "7197798a32778fd4", "124": "3ceda88239910d9a", "125": "9409b3b8a334f51d", "126": "ac95a9f152e3d1c4", "127": "a7299f20633c0236", "128": "c9b5396dadad9f63", "129": "e55eee7bf1230c00", "130": "7f405315686459b9", "131": "44c7924c829cc215", "132": "17ecb7325285cf7a", "133": "4487fd85ddc13c93", "134": "c35e392f1594d14e", "135": "c4abf0eb38ef740d", "136": "07d37aeefbe50e21", "137": "70b58e32c2890fdd", "138": "f2c7afb0c277c4b7", "139": "bee7620bf612dcfe", "140": "167643bcbbc26244", "141": "dcffd9ad7a1f7df6", "142": "f47469d48b3776b5", "143": "1b0ef1cf87b53de3", "144": "e195f425def606d0", "145": "6ddbf62ac93920e1", "146": "c7ddffce8605b65b", "147": "c432e2ac14610f9b", "148": "d0fc47de7f8bcf41", "149": "39d16c91943d85e4", "150": "5910eeefe2f97a20", "151": "127d0372ec8bf9ee", "152": "34581929891cefb2", "153": "6cfdd09a6fdd9ff9", "154": "66efafa1e86d8081", "155": "562a328c3cebc9b1", "156": "4a8bdc6821207fa3", "157": "dd5f624dc488c627", "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", "179": "48eb576d55dfdbb8", "180": "4ac5f9965007617d", "181": "cff999497d56b512", "182": "06b38ffa6f58195d", "183": "ee705c178d6958bb", "184": "1a833537ef5e569c", "186": "867babdd40f0c3fc", "187": "298144d1548a7dee", "188": "00d275127a7e435e", "189": "2942a9d30dae4a29", "190": "3e21e2fb50e12670", "191": "be62daa7d5bc336a", "192": "47c3e1a9d4bb7e67", "193": "82ff39c105ae3090", "194"Line truncated
=======
{"0": "d25fd17d96b1a62b", "1": "af2d2c3633c601a3", "2": "5b8c7a2dd2067688", "3": "04070ce691ed6169", "4": "074087b4c650c099", "5": "f34c872571e8a774", "6": "81b67391b0b87cab", "7": "ca7f434e9ff71924", "8": "20af84cfaa2bae80", "9": "23ffcb2f5682d0bc", "10": "752e0fd82db2f266", "11": "7486b8792dd18a8e", "12": "6caf8ee86ba2ed45", "13": "3a0d379c05c48643", "14": "cd3c428e9ee071f3", "15": "c503f61c132e0faa", "16": "bbaf7539ddd300b0", "17": "f3a20d4c4c3ae66c", "18": "a8ebf083d3c3351b", "19": "10c596403944b996", "20": "b8abf3d4ac15fc65", "21": "1977ca45f10f6c18", "22": "6dec4777ae917b2c", "23": "493cda457ee900a1", "24": "4eda46a5b0695ef6", "25": "90b79d6027d60d30", "26": "6bd6f2633370820c", "27": "7664e56213a29331", "28": "942c4f9928c60a45", "29": "0614b98d9013b5f5", "30": "53ff49b3d54f0fba", "31": "2153ddcd7477dfb7", "32": "89fe2ef12db40871", "33": "5499104e9ca4fdad", "34": "e89579446dcd5c0b", "35": "836402a6cb97cbac", "36": "5eeec9927fe55f6c", "37": "1c9a1f4c72613346", "38": "58fe18c423dae025", "39": "f38c905c9af9edc0", "40": "cf43e144340a5383", "41": "7abb5bc6a0e4f65f", "42": "cbaa20536db72d3e", "43": "7478d6755ca2248a", "44": "b4c82af1f2f566f7", "45": "7dd5c61562c827a8", "46": "4ece6985263357c4", "47": "65e41c1c22dcd058", "48": "bf83938692ed2636", "49": "841013681f4e6e8c", "50": "6e280669736f661b", "51": "91d7f3d12813e4ff", "52": "9924f91d5ca70505", "53": "cb17af4eb831480f", "54": "fbdb74c5357de09c", "55": "93d836d575401c61", "56": "2a1dd74542bc4e00", "57": "0f62727f3b4907c0", "58": "533f2d32c60dd4b3", "59": "7369e85febb97f1a", "60": "e082fbf02b3f316c", "61": "9b0eb2e9b68ff17d", "62": "2f37c9309529a181", "63": "0b962a47d1b049e5", "64": "3b9521f7d7986eaa", "65": "c35e392f1594d14e", "66": "819075fa1b5877e9", "67": "b70d9b71ad3a2a88", "68": "e076648de48aa01a", "69": "31a5a53f1fe77e46", "70": "01d4f9d6d9f3b08a", "71": "646fa925a26370aa", "72": "69d0f8b228227690", "73": "22456307ff273d80", "74": "d9e74b032c5b8440", "75": "ca4d94b36734b0d0", "76": "c0190297baa0a88e", "77": "62430df45afa65b5", "78": "0273bbf045eb1528", "79": "ba7bc17581366c9a", "80": "0727bb53199085fc", "81": "91393683c97d1773", "82": "b1fb8b1d0bcaa7fd", "83": "71d2ce6fb684bc0e", "84": "70497658d0e0cea6", "85": "f6ddba6f531d6b96", "86": "e3d13e2060945d3f", "87": "f0f56796aaebb4f5", "88": "0f9f4033ec04bed6", "89": "656f816eb51f2ab1", "90": "add25d0c96b40a17", "91": "25a6695f5783d2be", "92": "2450b45f1f62fece", "93": "b796283dc9729998", "94": "f7a706f5fcb260c3", "95": "3b8f30fa05a39967", "96": "46e9411f2b2e725a", "97": "78aa95566e86b57f", "98": "5bbc8944b2ba2d8f", "99": "6b4a687ed862e0e1", "100": "3c1d9844d072bd2a", "101": "b3c5433df880f335", "102": "e036dbd1de0f8b38", "103": "ac7cb5ec7d5c0802", "104": "dbe2f8ccb8d5321a", "105": "622f83f2eb300a25", "106": "0e03a5b22c0f26de", "107": "bfcc583da029935c", "108": "0235c559d6061ae6", "109": "6d16ccde1291c9d4", "110": "d228746e85ead3af", "111": "b55ba9125ffb5729", "112": "5f50a360f18a880b", "113": "ee186e3bf8b91965", "114": "c6b57d78299a27b3", "115": "7ef836e15e8c1b76", "116": "db70db08c00162df", "117": "9a1080686fc7c39b", "118": "77fd76193df9f573", "119": "28355f848c862b6e", "120": "25f77f5455bdc96a", "121": "9141a0ede9461fd5", "122": "3961b8d3c4ba6519", "123": "c4acedd7472cf7cb", "124": "3ceda88239910d9a", "125": "9409b3b8a334f51d", "126": "ac95a9f152e3d1c4", "127": "a7299f20633c0236", "128": "e52967fd04fc10e6", "129": "34581929891cefb2", "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": "e195f425def606d0", "145": "e6017dd76d4422b6", "146": "c7ddffce8605b65b", "147": "47b6bed81c7c0b45", "148": "8a3667a0e1bf82c5", "149": "39d16c91943d85e4", "150": "5910eeefe2f97a20", "151": "af334b96b59797f8", "152": "ab3039226b729a13", "153": "6cfdd09a6fdd9ff9", "154": "66efafa1e86d8081", "155": "562a328c3cebc9b1", "156": "3528c4c8a0e2db61", "157": "dd5f624dc488c627", "158": "959e76250dbacbad", "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": "3a6753a80123a0f4", "177": "ca950b47c628b81a", "178": "255a8a95e2a3df67", "179": "4d5aa5463205505c", "180": "4ac5f9965007617d", "181": "cff999497d56b512", "182": "06b38ffa6f58195d", "183": "ee705c178d6958bb", "184": "1a833537ef5e569c", "185": "47e08912fd6cd296", "186": "867babdd40f0c3fc", "187": "298144d1548a7dee", "188": "00d275127a7e435e", "189"Line truncated
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,320 @@
{
"0": "Roles",
"1": "app.module.ts",
"2": "SmsService",
"3": "ProductService",
"4": "SafeImage.tsx",
"5": "CmsController",
"6": "tickets.controller.ts",
"7": "pets/pets.controller.ts",
"8": "admin.module.ts",
"9": "devDependencies",
"10": "ReviewsService",
"11": "Spinner.tsx",
"12": "PetProfile.tsx",
"13": "app-audit-verification.e2e-spec.js",
"14": "lib/services/api.ts",
"15": "src/services/api.ts",
"16": "DoctorQueryDto",
"17": "schema.ts",
"18": "JwtAuthGuard",
"19": "ProductsController",
"20": "CreateVideoDto",
"21": "ProductPage.tsx",
"22": "UserDashboard.tsx",
"23": "MenuService",
"24": "BE-001",
"25": "FE-001",
"26": "ADM-001",
"27": "DB-001",
"28": "TS-001",
"29": "TEST-001",
"30": "DEVOPS-001",
"31": "DOC-001",
"32": "adminRoutes.tsx",
"33": "WholesaleApplyDto",
"34": "B2BService",
"35": "AuthController",
"36": "FaqService",
"37": "راهنمای تست سیستم (Software Testing)",
"38": "Button.tsx",
"39": "CategoriesController",
"40": "MediaController",
"41": "What You Must Do When Invoked",
"42": "SslController",
"43": "BannersService",
"44": "TestimonialsController",
"45": "What You Must Do When Invoked",
"46": "api",
"47": "IngredientsService",
"48": "cartStore.ts",
"49": "devDependencies",
"50": "devDependencies",
"51": "BlogsController",
"52": "PrescriptionsController",
"53": "SmartAdvisorController",
"54": "UsersService",
"55": "UITexts.tsx",
"56": "Orders.tsx",
"57": "Role & Core Objective",
"58": "ContactService",
"59": "compilerOptions",
"60": "Blogs.tsx",
"61": "payment.controller.ts",
"62": "ProductsService",
"63": "dependencies",
"64": "compilerOptions",
"65": "app.e2e-spec.js",
"66": "AdminQueryDto",
"67": "PetsController",
"68": "20260526145407_init/migration.sql",
"69": "Required Review Group Closures",
"70": "compilerOptions",
"71": "getPageMetadata",
"72": "Operational Rules & Boundaries",
"73": "Operational Rules & Boundaries",
"74": "WikiController",
"75": "PetsController",
"76": "shop/page.tsx",
"77": "seo.module.ts",
"78": "route.ts",
"79": "🏢 AI Software Agency — Master Orchestration Protocol v3",
"80": "Operational Rules & Boundaries",
"81": "Operational Rules & Boundaries",
"82": "scripts",
"83": "dependencies",
"84": "Role & Core Objective",
"85": "eslint-config-prettier",
"86": "zibal.service.ts",
"87": "dependencies",
"88": "useSettingsStore",
"89": "seed-products.ts",
"90": "HomeClient.tsx",
"91": "Reconciled Audit Roles & Assignments",
"92": "OrdersService",
"93": "@nestjs/schematics",
"94": "Phase 3.1 — Human Review Preparation and Master Backlog Critique",
"95": "blog/[slug]/page.tsx",
"96": "compilerOptions",
"97": "prettier",
"98": "scripts",
"99": "BlogsController",
"100": "Deep Audit Summary Report",
"101": "Operational Rules & Boundaries",
"102": "jest",
"103": "Comprehensive Change Log",
"104": "Coupons.tsx",
"105": "Operational Rules & Boundaries",
"106": "Reports.tsx",
"107": "@types/supertest",
"108": "PrismaService",
"109": "1. Summary of Integrity Repairs Performed",
"110": "Operational Rules & Boundaries",
"111": "Operational Rules & Boundaries",
"112": "Operational Rules & Boundaries",
"113": "reviews.controller.ts",
"114": "AppService",
"115": "@types/react-dom",
"116": "Vazirmatn Changelog",
"117": "Vazirmatn Font فونت وزیرمتن",
"118": "Operational Rules & Boundaries",
"119": "compilerOptions",
"120": "compilerOptions",
"121": "backend/README.md",
"122": "AuthService",
"123": "BlogsService",
"124": "Repository Map",
"125": "validate_integrity.js",
"126": "admin-panel/package.json",
"127": "Sahel-Font",
"128": "AdminService",
"129": "RouteErrorBoundary",
"130": "Sahel-Font",
"131": "Role & Core Objective",
"132": "orchestrate.py",
"133": "backend/package.json",
"134": "blog/page.tsx",
"135": "graphify reference: extra exports and benchmark",
"136": "Phase 2 Final Quality Gate Summary Report",
"137": "Task Modifications Log",
"138": "Install",
"139": "layout.tsx",
"140": "ErrorBoundary",
"141": "application/package.json",
"142": "start-dev.js",
"143": "generate-openapi.js",
"144": "@testing-library/react",
"145": "admin.service.ts",
"146": "System Discovery",
"147": "RevalidationService",
"148": "wiki/[slug]/page.tsx",
"149": "SmsSettingsPage.tsx",
"150": "Product Requirement Document (PRD)",
"151": "auth.service.ts",
"152": "trust-seals/page.tsx",
"153": "exclude",
"154": "Baseline Command Plan & Reconciled Command History",
"155": "seo-backfill.ts",
"156": "@nestjs/swagger",
"157": "ErrorPages.tsx",
"158": "class-transformer",
"159": "with-vpn.sh",
"160": "Architecture Specification",
"161": "Project Health Audit Report",
"162": "nest-cli.json",
"163": "graphify reference: query, path, explain",
"164": "Open Questions",
"165": "Final Phase 2 Audit Closure Report",
"166": "open-browsers.js",
"167": "📝 Active Agent Working Scratchpad",
"168": "🔍 Code Health Audit Review (01_auditor)",
"169": "paginated-response.schema.ts",
"170": "Vazirmatn Font README",
"171": "Omitted File Inspection Report",
"172": "Phase 3.2 / 3.3 — Implementation Readiness & Architectural Finalization Report",
"173": "Phase 3 Audit Traceability Matrix",
"174": "rebuild_honest_ledger.js",
"175": "validate_evidence_grade.js",
"176": "helmet",
"177": "js-yaml",
"178": "@nestjs/core",
"179": "PaginationDto",
"180": "API Contract Specification",
"181": "⚙️ Backend Technical Review (05_dev_backend)",
"182": "🎨 Frontend & Admin Panel Technical Review (06_dev_frontend)",
"183": "🚀 SEO & Content Strategy Review (12_seo_content)",
"184": "MetricsController",
"185": "@nestjs/jwt",
"186": "seed-ui-texts.ts",
"187": "seed-wiki.ts",
"188": "update-blog.dto.ts",
"189": "update-home.dto.ts",
"190": "update-wiki.dto.ts",
"191": "graphify reference: add a URL and watch a folder",
"192": "graphify reference: commit hook and native CLAUDE.md integration",
"193": "graphify reference: incremental update and cluster-only",
"194": "Raw Finding Verification & Disposition Report",
"195": "React + TypeScript + Vite",
"196": "Select.tsx",
"197": "@nestjs/throttler",
"198": "passport",
"199": "auth.controller.ts",
"200": "application/README.md",
"201": "deploy.sh",
"202": "🔒 Security & Performance Review (09_devops_security)",
"203": "👁️ UX & Persona Interface Review (08_visual_qa)",
"204": "reflect-metadata",
"205": "prisma/scientificTerms.ts",
"206": "seed-blogs.ts",
"207": "seed-custom.ts",
"208": "graphify reference: GitHub clone and cross-repo merge",
"209": "graphify reference: transcribe video and audio",
"210": "Compiler Diagnostic Dispositions",
"211": "Master Task Backlog (Phase 3.3)",
"212": "build_manifest.js",
"213": "generate_classification.js",
"214": "generate_evidence.js",
"215": "generate_ledger.js",
"216": "generate_manifest.js",
"217": "sync_honest_manifest.js",
"218": "sync_manifest.js",
"219": "FormField.tsx",
"220": "Input.tsx",
"221": "Textarea.tsx",
"222": "admin-panel/tsconfig.json",
"223": "swagger-ui-express",
"224": "jest",
"225": "next.config.ts",
"226": "Shabnam Font README",
"227": "AGENTS.md",
"228": "rules/graphify.md",
"229": ".agents/workflows/graphify.md",
"230": "instructions.md",
"231": "@eslint/eslintrc",
"232": "@eslint/js",
"233": "eslint-plugin-prettier",
"234": "20260526160916_add_ui_texts_and_scientific_terms/migration.sql",
"235": "@nestjs/cli",
"236": "@nestjs/testing",
"237": "eslint",
"238": "prisma",
"239": "source-map-support",
"240": "supertest",
"241": "blog.entity.ts",
"242": "home.entity.ts",
"243": "wiki.entity.ts",
"244": "User Profile Photo",
"245": "CLAUDE.md",
"246": ".claude/CLAUDE.md",
"247": "extraction-spec.md",
"248": "Products Table",
"249": "Users Table",
"250": "Architectural Audit Findings",
"251": "Cross Boundary Dependencies & Backend Architecture Specification",
"252": "Next.js Agent Rules & Brand Guidelines",
"253": "robots.ts",
"254": "application/eslint.config.mjs",
"255": "postcss.config.mjs",
"256": "vitest.setup.ts",
"257": "backup_db.sh",
"258": "start.sh",
"259": "reviews/README.md",
"260": "backend/eslint.config.mjs",
"261": "User Login API",
"262": "User Logout API",
"263": "generate-openapi.d.ts",
"264": "ts-loader",
"265": "@testing-library/jest-dom",
"266": "ts-node",
"267": "tsconfig-paths",
"268": "@types/bcrypt",
"269": "eslint-plugin-react-hooks",
"270": "app-audit-verification.e2e-spec.d.ts",
"271": "app.e2e-spec.d.ts",
"272": "Canina Pharma GmbH",
"273": "Pets Table",
"274": "Canina Iran Project Introduction",
"275": "Developer Standards and Architecture",
"276": "Frontend & Admin Architecture Route Map Specification",
"277": "Project Backlog and Tasks",
"278": "eslint.config.js",
"279": "postcss.config.js",
"280": "admin-panel/public/fonts/sahel-font-v3.4.0/CHANGELOG.md",
"281": "shabnam-font-v5.0.1/CHANGELOG.md",
"282": "tailwind.config.js",
"283": "vite.config.ts",
"284": "application/CLAUDE.md",
"285": "application/public/fonts/sahel-font-v3.4.0/CHANGELOG.md",
"286": "Sahel Font Sample",
"287": "Shabnam Font Changelog",
"288": "Vazirmatn Changelog",
"289": "vitest.config.ts",
"290": "Sahel Font Variable Sample",
"291": "Shabnam Font Sample",
"292": "Production Docker Compose",
"293": "Staging Docker Compose",
"294": "ZibalService",
"295": "eslint-plugin-react-refresh",
"296": "tailwindcss",
"297": "ZibalEBankService",
"298": ".initiateOrderPayment",
"299": "@tailwindcss/postcss",
"300": "typescript",
"301": "@types/compression",
"302": "typescript-eslint",
"303": "@types/express",
"304": "@types/jest",
"305": "@types/react",
"306": "globals",
"307": "@types/js-yaml",
"308": "vitest",
"309": "axios",
"310": "tailwindcss",
"311": "@types/multer",
"312": "@types/passport-jwt",
"313": "MenuManager.tsx",
"314": "typescript-eslint",
"315": "typescript",
"317": "revalidate/route.ts",
"318": "MaskableField.tsx"
}
@@ -0,0 +1 @@
{"output_tokens": 7105}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+349 -25
View File
@@ -1,6 +1,7 @@
# Graph Report - canina (2026-08-25)
# Graph Report - caninairan (2026-08-26)
## Corpus Check
<<<<<<< HEAD
- 581 files · ~1,324,167 words
- Verdict: corpus is large enough that graph structure adds value.
@@ -11,6 +12,18 @@
## Graph Freshness
- Built from commit: `3c325c41`
=======
- 563 files · ~1,321,574 words
- Verdict: corpus is large enough that graph structure adds value.
## Summary
- 4041 nodes · 7301 edges · 320 communities (202 shown, 118 thin omitted)
- Extraction: 96% EXTRACTED · 4% INFERRED · 0% AMBIGUOUS · INFERRED: 281 edges (avg confidence: 0.8)
- Token cost: 0 input · 0 output
## Graph Freshness
- Built from commit: `7b89e141`
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
- Run `graphify update .` after code changes (no API cost).
@@ -19,12 +32,13 @@
- app.module.ts
- SmsService
- ProductService
- SafeImage.tsx
- utils.ts
- CmsController
- tickets.controller.ts
- pets/pets.controller.ts
- admin.module.ts
- Button.tsx
- ReportsController
- devDependencies
<<<<<<< HEAD
- ReviewsController
- MediaSelector.tsx
- index.ts
@@ -37,6 +51,20 @@
- ProductsService
- CreateVideoDto
- Button.tsx
=======
- ReviewsService
- MediaSelector.tsx
- PetProfile.tsx
- app-audit-verification.e2e-spec.js
- UserDashboard.tsx
- src/services/api.ts
- DoctorQueryDto
- schema.ts
- JwtAuthGuard
- ProductsService
- CreateVideoDto
- ProductPage.tsx
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
- lib/services/api.ts
- MenuService
- BE-001
@@ -48,7 +76,7 @@
- DEVOPS-001
- DOC-001
- adminRoutes.tsx
- WholesaleApplyDto
- WholesaleService
- B2BService
- PetProfile.tsx
- FaqService
@@ -63,18 +91,27 @@
- What You Must Do When Invoked
- HomeController
- IngredientsService
<<<<<<< HEAD
- useCartStore
=======
- auth.module.ts
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
- devDependencies
- devDependencies
- BlogsController
- PrescriptionsService
- SmartAdvisorService
<<<<<<< HEAD
- UsersService
=======
- UsersController
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
- UITexts.tsx
- Orders.tsx
- Role & Core Objective
- ContactService
- compilerOptions
<<<<<<< HEAD
- PaymentService
- AdminTransactionFilterDto
- CreateReviewDto
@@ -84,6 +121,17 @@
- WikiController
- PetsController
- 20260526145407_init/migration.sql
=======
- users.controller.ts
- payment.service.ts
- ProductDto
- dependencies
- compilerOptions
- app.e2e-spec.js
- ApiOperation
- admin.module.ts
- PaymentService
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
- Required Review Group Closures
- compilerOptions
- getPageMetadata
@@ -91,7 +139,11 @@
- Operational Rules & Boundaries
- WikiController
- PetsController
<<<<<<< HEAD
- CreateEBankCheckoutDto
=======
- AdminService
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
- seo.module.ts
- route.ts
- 🏢 AI Software Agency — Master Orchestration Protocol v3
@@ -103,9 +155,13 @@
- eslint-config-prettier
- zibal.service.ts
- dependencies
<<<<<<< HEAD
- ProductPage.tsx
=======
- toPersian
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
- seed-products.ts
- HomeClient.tsx
- useSettingsStore
- Reconciled Audit Roles & Assignments
- OrdersService
- @nestjs/schematics
@@ -121,30 +177,45 @@
- Comprehensive Change Log
- Coupons.tsx
- Operational Rules & Boundaries
<<<<<<< HEAD
- blog/page.tsx
- layout.tsx
=======
- Media.tsx
- @types/supertest
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
- PrismaService
- 1. Summary of Integrity Repairs Performed
- Operational Rules & Boundaries
- Operational Rules & Boundaries
- Operational Rules & Boundaries
- reviews.controller.ts
- CreateReviewDto
- AppService
- @types/react-dom
- UsersService
- Vazirmatn Changelog
- Vazirmatn Font فونت وزیرمتن
- Operational Rules & Boundaries
- compilerOptions
- compilerOptions
- backend/README.md
<<<<<<< HEAD
- videos/page.tsx
- BlogsService
=======
- Param
- CreateEBankCheckoutDto
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
- Repository Map
- validate_integrity.js
- admin-panel/package.json
- Sahel-Font
<<<<<<< HEAD
- AdminService
- نقشه جامع پوشش تست‌های سرتاسری (E2E Test Coverage Map) — پروژه Canina
=======
- AdminController
- InitiatePaymentDto
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
- Sahel-Font
- Role & Core Objective
- orchestrate.py
@@ -166,8 +237,13 @@
- typescript
- SmsSettingsPage.tsx
- Product Requirement Document (PRD)
<<<<<<< HEAD
- admin.service.ts
- InitiatePaymentDto
=======
- auth.service.ts
- .createCoupon
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
- exclude
- Baseline Command Plan & Reconciled Command History
- seo-backfill.ts
@@ -237,7 +313,15 @@
- .agents/workflows/graphify.md
- instructions.md
- @eslint/js
<<<<<<< HEAD
- 20260526160916_add_ui_texts_and_scientific_terms/migration.sql
=======
- eslint-plugin-prettier
- WholesaleApplyDto
- @nestjs/cli
- @nestjs/testing
- app/page.tsx
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
- prisma
- source-map-support
- supertest
@@ -295,16 +379,22 @@
- @types/multer
- @types/passport-jwt
- Modal.tsx
<<<<<<< HEAD
=======
- typescript-eslint
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
- typescript
- ts-jest
- revalidate/route.ts
- MaskableField.tsx
- eslint-config-next
## God Nodes (most connected - your core abstractions)
1. `Roles()` - 106 edges
2. `PrismaService` - 87 edges
3. `useSettingsStore` - 55 edges
4. `api` - 44 edges
5. `SmsService` - 42 edges
5. `SmsService` - 43 edges
6. `PaginationDto` - 41 edges
7. `Button()` - 39 edges
8. `PaymentController` - 38 edges
@@ -328,13 +418,18 @@
- 3-file cycle: `frontend/application/lib/services/api.ts -> frontend/application/lib/store/userStore.ts -> frontend/application/lib/services/authService.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`
<<<<<<< HEAD
## Communities (301 total, 100 thin omitted)
=======
## Communities (320 total, 118 thin omitted)
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 0 - "Roles"
Cohesion: 0.24
Cohesion: 0.23
Nodes (13): Roles(), PaymentController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Get (+5 more)
### Community 1 - "app.module.ts"
<<<<<<< HEAD
Cohesion: 0.07
Nodes (34): B2BModule, Module, BannersModule, Module, CmsModule, Module, SmsModule, Global (+26 more)
@@ -349,6 +444,22 @@ Nodes (30): dynamic, revalidate, DEFAULT_CATEGORIES, dynamic, revalidate, dynami
### Community 4 - "SafeImage.tsx"
Cohesion: 0.07
Nodes (25): BlogCategory, BlogPostItem, BlogPostClientProps, BlogPost, BlogPreviewSection(), ProductDetailModalProps, OrderDetailsModalProps, PLAYBACK_RATES (+17 more)
=======
Cohesion: 0.08
Nodes (34): B2BModule, Module, BannersModule, Module, CmsModule, Module, SmsModule, Global (+26 more)
### Community 2 - "SmsService"
Cohesion: 0.05
Nodes (27): SmsService, Injectable, SmsLogQueryDto, ApiPropertyOptional, IsIn, IsNumber, IsOptional, IsString (+19 more)
### Community 3 - "ProductService"
Cohesion: 0.06
Nodes (34): dynamic, revalidate, DEFAULT_CATEGORIES, dynamic, revalidate, dynamic, revalidate, BlogCategory (+26 more)
### Community 4 - "utils.ts"
Cohesion: 0.08
Nodes (22): BackButton(), BackButtonProps, BlogPost, BlogPreviewSection(), OrderDetailsModal(), OrderDetailsModalProps, PLAYBACK_RATES, PodcastPlayerModal() (+14 more)
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 5 - "CmsController"
Cohesion: 0.09
@@ -356,8 +467,9 @@ Nodes (24): CmsController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controlle
### Community 6 - "tickets.controller.ts"
Cohesion: 0.09
Nodes (31): AdminUpdateTicketDto, CreateTicketDto, ReplyTicketDto, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString (+23 more)
Nodes (29): AdminUpdateTicketDto, CreateTicketDto, ReplyTicketDto, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString (+21 more)
<<<<<<< HEAD
### Community 7 - "pets/pets.controller.ts"
Cohesion: 0.13
Nodes (15): CreatePetDto, ApiProperty, ApiPropertyOptional, IsArray, IsNotEmpty, IsNumber, IsOptional, IsString (+7 more)
@@ -373,22 +485,51 @@ Nodes (25): devDependencies, eslint, @eslint/eslintrc, eslint-plugin-prettier, g
### Community 10 - "ReviewsController"
Cohesion: 0.17
Nodes (12): ReviewsController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+4 more)
=======
### Community 7 - "Button.tsx"
Cohesion: 0.11
Nodes (14): ButtonProps, ButtonSize, ButtonVariant, Spinner(), Doctor, FAQ, ProductReview, Reviews() (+6 more)
### Community 8 - "ReportsController"
Cohesion: 0.14
Nodes (11): ReportsController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Controller, Get, Query (+3 more)
### Community 9 - "devDependencies"
Cohesion: 0.22
Nodes (9): devDependencies, eslint, @types/bcryptjs, @types/node, typescript, eslint, @types/node, typescript (+1 more)
### Community 10 - "ReviewsService"
Cohesion: 0.12
Nodes (17): ReviewsController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+9 more)
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 11 - "MediaSelector.tsx"
Cohesion: 0.07
Nodes (33): ConfirmModal(), ConfirmModalProps, getFileType(), Media, MediaSelector(), MediaSelectorProps, Pagination(), PaginationProps (+25 more)
<<<<<<< HEAD
### Community 12 - "index.ts"
Cohesion: 0.07
Nodes (24): backend, frontend, playwright.config.ts, @playwright/test, tests/**/*.ts, authFile, test, compilerOptions (+16 more)
=======
### Community 12 - "PetProfile.tsx"
Cohesion: 0.08
Nodes (25): ClientLayout(), CheckoutPage(), FeaturedProducts(), ProductCard(), OrderSuccess(), SearchResultsPage(), OrderRowSkeleton(), PetProfileSkeleton() (+17 more)
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 13 - "app-audit-verification.e2e-spec.js"
Cohesion: 0.06
Nodes (28): AppModule, Module, EnvironmentVariables, IsNotEmpty, IsOptional, IsString, validateEnv(), CustomHttpExceptionFilter (+20 more)
<<<<<<< HEAD
### Community 14 - "useSettingsStore"
Cohesion: 0.13
Nodes (21): ClientLayout(), B2BLandingClient(), BrandLogo(), BrandLogoProps, EnamadBadge(), Footer(), MENU_ICONS, MaintenancePage() (+13 more)
=======
### Community 14 - "UserDashboard.tsx"
Cohesion: 0.15
Nodes (18): AddressModal(), AddressModalProps, DeleteConfirmModal(), DeleteConfirmModalProps, HeaderButton(), HeaderButtonProps, PetProfile(), SearchableSelect() (+10 more)
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 15 - "src/services/api.ts"
Cohesion: 0.08
@@ -398,9 +539,15 @@ Nodes (32): Layout(), ProtectedRoute(), MenuGroup, Sidebar(), SidebarProps, SubM
Cohesion: 0.09
Nodes (24): DoctorsController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+16 more)
<<<<<<< HEAD
### Community 17 - "UserDashboard.tsx"
Cohesion: 0.10
Nodes (30): AuthModal, AddressModal(), AddressModalProps, AuthModal(), AuthModalProps, extractOtpFromText(), BackButton(), BackButtonProps (+22 more)
=======
### Community 17 - "schema.ts"
Cohesion: 0.13
Nodes (19): B2BPage(), generateMetadata(), ContactPage(), generateMetadata(), generateMetadata(), getInitialVideos(), Videos(), B2BLandingClient() (+11 more)
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 18 - "JwtAuthGuard"
Cohesion: 0.19
@@ -412,6 +559,7 @@ Nodes (19): GetProductsDto, ApiPropertyOptional, IsEnum, IsOptional, IsString, P
### Community 20 - "CreateVideoDto"
Cohesion: 0.07
<<<<<<< HEAD
Nodes (32): CreateVideoDto, ApiProperty, ApiPropertyOptional, IsBoolean, IsNotEmpty, IsOptional, IsString, UpdateVideoDto (+24 more)
### Community 21 - "Button.tsx"
@@ -421,10 +569,21 @@ Nodes (14): ButtonProps, ButtonSize, ButtonVariant, Spinner(), Doctor, FAQ, Prod
### Community 22 - "lib/services/api.ts"
Cohesion: 0.08
Nodes (21): B2BPortal, LoginModal, VerifyContent(), B2BPortal(), ContactInfoItem, LoginModal(), LoginModalProps, PrescriptionUploadModal() (+13 more)
=======
Nodes (31): CreateVideoDto, ApiProperty, ApiPropertyOptional, IsBoolean, IsNotEmpty, IsOptional, IsString, UpdateVideoDto (+23 more)
### Community 21 - "ProductPage.tsx"
Cohesion: 0.13
Nodes (15): PLAYBACK_RATES, PodcastInlinePlayer(), PodcastInlinePlayerProps, CalculatorState, ICON_MAP, ProductPage(), ProductReviews, useCalculatorStore (+7 more)
### Community 22 - "lib/services/api.ts"
Cohesion: 0.08
Nodes (29): VerifyContent(), B2BPortal(), CartDrawer(), ContactInfoItem, Header(), OrderTracking(), PrescriptionUploadModal(), PrescriptionUploadModalProps (+21 more)
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 23 - "MenuService"
Cohesion: 0.12
Nodes (16): MenuController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, Delete (+8 more)
Cohesion: 0.11
Nodes (18): MenuController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, Delete (+10 more)
### Community 24 - "BE-001"
Cohesion: 0.06
@@ -462,17 +621,23 @@ Nodes (31): Acceptance Criteria, Affected Application, Affected Files, Alternati
Cohesion: 0.06
Nodes (23): App(), Props, RouteErrorBoundary, State, HeroBanner, VetTestimonial, CategoryDist, DashboardData (+15 more)
### Community 33 - "WholesaleApplyDto"
Cohesion: 0.10
Nodes (20): ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString, WholesaleApplyDto, ApiBearerAuth, ApiOperation (+12 more)
### Community 33 - "WholesaleService"
Cohesion: 0.14
Nodes (14): ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Get, Param, Post (+6 more)
### Community 34 - "B2BService"
Cohesion: 0.12
Nodes (16): B2BController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Get, Param (+8 more)
<<<<<<< HEAD
### Community 35 - "PetProfile.tsx"
Cohesion: 0.11
Nodes (17): ArchiveProductCard(), FeaturedProducts(), ProductCard(), PetProfile(), SearchResultsPage(), OrderRowSkeleton(), PetProfileSkeleton(), ProductCardSkeleton() (+9 more)
=======
### Community 35 - "AuthController"
Cohesion: 0.25
Nodes (13): AuthController, ApiBadRequestResponse, ApiBearerAuth, ApiOkResponse, ApiOperation, ApiTags, Body, Controller (+5 more)
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 36 - "FaqService"
Cohesion: 0.14
@@ -492,7 +657,7 @@ Nodes (16): CategoriesController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags
### Community 40 - "MediaController"
Cohesion: 0.11
Nodes (14): MediaController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+6 more)
Nodes (16): MediaController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+8 more)
### Community 41 - "What You Must Do When Invoked"
Cohesion: 0.07
@@ -522,9 +687,15 @@ Nodes (10): HomeController, ApiOkResponse, ApiOperation, ApiTags, Controller, Ge
Cohesion: 0.13
Nodes (14): IngredientsController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+6 more)
<<<<<<< HEAD
### Community 48 - "useCartStore"
Cohesion: 0.10
Nodes (15): CartDrawer, CartDrawer(), Header(), OrderSuccess(), OrderTracking(), mockProduct, ApiErr, Order (+7 more)
=======
### Community 48 - "auth.module.ts"
Cohesion: 0.17
Nodes (10): DEFAULT_JWT_REFRESH_SECRET, DEFAULT_JWT_SECRET, getJwtSecret(), AuthModule, Module, JwtPayload, JwtStrategy, Injectable (+2 more)
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 49 - "devDependencies"
Cohesion: 0.11
@@ -532,23 +703,36 @@ Nodes (19): autoprefixer, devDependencies, autoprefixer, eslint, @eslint/js, glo
### Community 50 - "devDependencies"
Cohesion: 0.13
Nodes (15): eslint-config-next, devDependencies, eslint, eslint-config-next, jsdom, tailwindcss, @tailwindcss/postcss, @types/node (+7 more)
Nodes (15): devDependencies, eslint, jsdom, tailwindcss, @tailwindcss/postcss, @types/node, @types/react-dom, @vitejs/plugin-react (+7 more)
### Community 51 - "BlogsController"
Cohesion: 0.14
Nodes (16): BlogsController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, Delete (+8 more)
Cohesion: 0.07
Nodes (18): BlogsController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, Delete (+10 more)
### Community 52 - "PrescriptionsService"
Cohesion: 0.14
Nodes (14): PrescriptionsController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Get, Param (+6 more)
<<<<<<< HEAD
### Community 52 - "PrescriptionsService"
Cohesion: 0.14
Nodes (14): PrescriptionsController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Get, Param (+6 more)
=======
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 53 - "SmartAdvisorService"
Cohesion: 0.13
Nodes (14): SmartAdvisorController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+6 more)
<<<<<<< HEAD
### Community 54 - "UsersService"
Cohesion: 0.06
Nodes (41): DEFAULT_JWT_REFRESH_SECRET, DEFAULT_JWT_SECRET, getJwtSecret(), AuthModule, Module, JwtPayload, JwtStrategy, Injectable (+33 more)
=======
### Community 54 - "UsersController"
Cohesion: 0.19
Nodes (16): ApiBadRequestResponse, ApiBearerAuth, ApiCreatedResponse, ApiOkResponse, ApiOperation, ApiTags, Body, Controller (+8 more)
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 55 - "UITexts.tsx"
Cohesion: 0.09
@@ -570,6 +754,7 @@ Nodes (12): ContactController, Body, Controller, Get, Param, Post, Put, Query (+
Cohesion: 0.06
Nodes (30): compilerOptions, allowSyntheticDefaultImports, baseUrl, declaration, emitDecoratorMetadata, esModuleInterop, experimentalDecorators, forceConsistentCasingInFileNames (+22 more)
<<<<<<< HEAD
### Community 61 - "AdminTransactionFilterDto"
Cohesion: 0.22
Nodes (7): AdminTransactionFilterDto, ApiPropertyOptional, IsIn, IsNumber, IsOptional, IsString, Type
@@ -577,6 +762,19 @@ Nodes (7): AdminTransactionFilterDto, ApiPropertyOptional, IsIn, IsNumber, IsOpt
### Community 62 - "CreateReviewDto"
Cohesion: 0.17
Nodes (11): CreateReviewDto, ApiProperty, IsInt, IsNotEmpty, IsOptional, IsString, Min, Post (+3 more)
=======
### Community 60 - "users.controller.ts"
Cohesion: 0.14
Nodes (13): AddressDto, ApiProperty, ApiPropertyOptional, IsBoolean, IsNotEmpty, IsOptional, IsString, ApiPropertyOptional (+5 more)
### Community 61 - "payment.service.ts"
Cohesion: 0.20
Nodes (8): AdminTransactionFilterDto, ApiPropertyOptional, IsIn, IsNumber, IsOptional, IsString, Type, ClientMetadata
### Community 62 - "ProductDto"
Cohesion: 0.17
Nodes (7): ProductDto, ApiPropertyOptional, IsArray, IsBoolean, IsNumber, IsOptional, IsString
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 63 - "dependencies"
Cohesion: 0.05
@@ -590,6 +788,7 @@ Nodes (20): compilerOptions, allowImportingTsExtensions, erasableSyntaxOnly, lib
Cohesion: 0.19
Nodes (9): ImagePreviewModal(), ImagePreviewModalProps, getFileType(), Media, MediaManager(), ProductItem, Media, PrescriptionsManager (+1 more)
<<<<<<< HEAD
### Community 66 - "WikiController"
Cohesion: 0.13
Nodes (13): ApiNotFoundResponse, ApiOkResponse, ApiOperation, ApiTags, Controller, Get, Param, Query (+5 more)
@@ -601,6 +800,15 @@ Nodes (14): PetsController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Cont
### Community 68 - "20260526145407_init/migration.sql"
Cohesion: 0.27
Nodes (14): "coupons", "health_logs", "order_items", "orders", "pet_medical_conditions", "pets", "product_ingredients", "product_symptoms" (+6 more)
=======
### Community 66 - "ApiOperation"
Cohesion: 0.22
Nodes (8): ApiOperation, ApiQuery, Get, Query, AdminQueryDto, ApiPropertyOptional, IsOptional, IsString
### Community 67 - "admin.module.ts"
Cohesion: 0.06
Nodes (23): AdminModule, Module, PetsController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Controller (+15 more)
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 69 - "Required Review Group Closures"
Cohesion: 0.10
@@ -612,7 +820,11 @@ Nodes (23): compilerOptions, allowImportingTsExtensions, erasableSyntaxOnly, jsx
### Community 71 - "getPageMetadata"
Cohesion: 0.08
<<<<<<< HEAD
Nodes (16): generateMetadata(), generateMetadata(), generateMetadata(), generateMetadata(), generateMetadata(), generateMetadata(), generateMetadata(), generateMetadata() (+8 more)
=======
Nodes (17): generateMetadata(), CatalogClient(), generateMetadata(), generateMetadata(), generateMetadata(), generateMetadata(), generateMetadata(), generateMetadata() (+9 more)
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 72 - "Operational Rules & Boundaries"
Cohesion: 0.11
@@ -627,8 +839,8 @@ Cohesion: 0.13
Nodes (14): ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, Delete, Get (+6 more)
### Community 75 - "PetsController"
Cohesion: 0.08
Nodes (32): CreateHealthLogDto, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString, CreateReminderDto, ApiProperty (+24 more)
Cohesion: 0.05
Nodes (47): CreateHealthLogDto, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString, CreatePetDto, ApiProperty (+39 more)
### Community 76 - "CreateEBankCheckoutDto"
Cohesion: 0.22
@@ -674,24 +886,36 @@ Nodes (9): GatewayHealthResult, IPaymentGateway, PaymentInquiryResult, PaymentRe
Cohesion: 0.12
Nodes (17): dependencies, axios, lucide-react, motion, next, react, react-dom, sonner (+9 more)
<<<<<<< HEAD
### Community 88 - "ProductPage.tsx"
Cohesion: 0.10
Nodes (17): revalidate, PLAYBACK_RATES, PodcastInlinePlayer(), PodcastInlinePlayerProps, CalculatorState, ICON_MAP, ProductPage(), ProductReviews (+9 more)
=======
### Community 88 - "toPersian"
Cohesion: 0.10
Nodes (15): AuthModal, B2BPortal, CartDrawer, LoginModal, AuthModal(), AuthModalProps, extractOtpFromText(), LoginModal() (+7 more)
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 89 - "seed-products.ts"
Cohesion: 0.17
Nodes (12): prisma, main(), prisma, determineSuitableFor(), findOrCreateCategory(), getProductImageUrl(), main(), parseSize() (+4 more)
<<<<<<< HEAD
### Community 90 - "HomeClient.tsx"
Cohesion: 0.11
Nodes (20): HomeClient(), HomeClientProps, getHomeData(), Home(), CATEGORY_MAP, ICON_MAP, BannerPlacement(), BannerPlacementProps (+12 more)
=======
### Community 90 - "useSettingsStore"
Cohesion: 0.08
Nodes (34): HomeClient(), HomeClientProps, ArchiveProductCard(), CATEGORY_MAP, ICON_MAP, BannerPlacement(), BannerPlacementProps, BrandLogo() (+26 more)
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### 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)
### Community 92 - "OrdersService"
Cohesion: 0.07
Cohesion: 0.08
Nodes (29): CreateOrderDto, OrderItemDto, ApiProperty, ApiPropertyOptional, IsArray, IsNotEmpty, IsNumber, IsOptional (+21 more)
### Community 94 - "Phase 3.1 — Human Review Preparation and Master Backlog Critique"
@@ -715,8 +939,13 @@ Cohesion: 0.13
Nodes (15): scripts, build, build:nest, docs:generate, lint, seo:backfill, start, start:debug (+7 more)
### Community 99 - "BlogsController"
<<<<<<< HEAD
Cohesion: 0.15
Nodes (15): BlogsController, ApiBearerAuth, ApiNotFoundResponse, ApiOkResponse, ApiOperation, ApiTags, Body, Controller (+7 more)
=======
Cohesion: 0.08
Nodes (19): BlogsController, ApiBearerAuth, ApiNotFoundResponse, ApiOkResponse, ApiOperation, ApiTags, Body, Controller (+11 more)
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 100 - "Deep Audit Summary Report"
Cohesion: 0.14
@@ -742,6 +971,7 @@ Nodes (11): formatPriceWithCommas(), PriceInput(), PriceInputProps, toEnglishDig
Cohesion: 0.17
Nodes (11): 1. Detect Test Runner from Tech Stack, 2. Execution Output Capture (Mandatory), 3. Acceptance Criteria Verification, 4. Failure Routing Protocol, 5. Success Routing Protocol, 6. Forbidden Actions, Expected JSON Output Schema, Operational Rules & Boundaries (+3 more)
<<<<<<< HEAD
### Community 106 - "blog/page.tsx"
Cohesion: 0.38
Nodes (6): Blog(), generateMetadata(), getBlogs(), getCategories(), revalidate, BlogPage()
@@ -753,6 +983,15 @@ Nodes (5): generateMetadata(), RootLayout(), lalezar, vazirmatn, generateOrganiz
### Community 108 - "PrismaService"
Cohesion: 0.07
Nodes (20): CategoryQuery, MeliPayamakPattern, MeliPayamakResponse, SendPatternSmsOptions, SmsConfig, SmsLogQuery, CreateContactSubmissionDto, UpdateContactInfoItemDto (+12 more)
=======
### Community 106 - "Media.tsx"
Cohesion: 0.19
Nodes (9): ImagePreviewModal(), ImagePreviewModalProps, getFileType(), Media, MediaManager(), ProductItem, Media, PrescriptionsManager (+1 more)
### Community 108 - "PrismaService"
Cohesion: 0.08
Nodes (18): CategoryQuery, MeliPayamakPattern, MeliPayamakResponse, SendPatternSmsOptions, SmsConfig, SmsLogQuery, CreateContactSubmissionDto, UpdateContactInfoItemDto (+10 more)
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 109 - "1. Summary of Integrity Repairs Performed"
Cohesion: 0.17
@@ -770,9 +1009,15 @@ Nodes (10): 1. Mark Active Task as Complete, 2. Documentation Updates, 3. Dynami
Cohesion: 0.18
Nodes (10): 1. Pre-Deployment Checklist, 2. Build Verification, 3. Deployment Strategy (Based on Target), 4. Post-Deployment Health Check, 5. Forbidden Actions, Expected JSON Output Schema, Operational Rules & Boundaries, Required Output Artifacts (What files to write/update) (+2 more)
<<<<<<< HEAD
### Community 113 - "reviews.controller.ts"
Cohesion: 0.22
Nodes (9): ApiProperty, IsIn, IsOptional, IsString, UpdateReviewDto, ReviewsModule, Module, ReviewsService (+1 more)
=======
### Community 113 - "CreateReviewDto"
Cohesion: 0.14
Nodes (13): CreateReviewDto, ApiProperty, IsInt, IsNotEmpty, IsOptional, IsString, Min, ApiProperty (+5 more)
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 114 - "AppService"
Cohesion: 0.29
@@ -802,9 +1047,15 @@ 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)
<<<<<<< HEAD
### Community 122 - "videos/page.tsx"
Cohesion: 0.47
Nodes (5): generateMetadata(), getInitialVideos(), Videos(), VideosPage(), generateVideoObjectSchema()
=======
### Community 123 - "CreateEBankCheckoutDto"
Cohesion: 0.22
Nodes (8): CreateEBankCheckoutDto, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsNumber, IsOptional, IsString, Min
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 124 - "Repository Map"
Cohesion: 0.20
@@ -822,6 +1073,7 @@ 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)
<<<<<<< HEAD
### Community 128 - "AdminService"
Cohesion: 0.05
Nodes (38): AdminController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, Delete (+30 more)
@@ -829,6 +1081,15 @@ Nodes (38): AdminController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Bod
### Community 129 - "نقشه جامع پوشش تست‌های سرتاسری (E2E Test Coverage Map) — پروژه Canina"
Cohesion: 0.40
Nodes (4): نقشه جامع پوشش تست‌های سرتاسری (E2E Test Coverage Map) — پروژه Canina, ۱. معماری و نقش‌های کاربری (User Roles), ۲. ماتریس جریان‌ها و قابلیت‌های کاربرمحور (Feature & Flow Matrix), ۳. برنامه تکمیل و توسعه تست‌های مفقود (Action Plan)
=======
### Community 128 - "AdminController"
Cohesion: 0.14
Nodes (7): AdminController, ApiBearerAuth, ApiTags, Body, Controller, Put, UseGuards
### Community 129 - "InitiatePaymentDto"
Cohesion: 0.43
Nodes (7): InitiatePaymentDto, InitiateWalletTopupDto, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 130 - "Sahel-Font"
Cohesion: 0.20
@@ -882,10 +1143,28 @@ Nodes (7): backend, distMainPath, fs, http, path, { spawn, execSync }, waitForBa
Cohesion: 0.25
Nodes (6): app_module_1, core_1, fs, path, swagger_1, yaml
<<<<<<< HEAD
=======
### Community 145 - "admin.service.ts"
Cohesion: 0.17
Nodes (14): CouponInput, CouponTargetInput, PaginationQuery, CreateUserDto, ApiProperty, ApiPropertyOptional, IsEmail, IsNotEmpty (+6 more)
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 146 - "System Discovery"
Cohesion: 0.25
Nodes (7): Active Core Applications, Current Architecture, Evidence-Based Status Matrix, Excluded / Non-Auditable Artifacts, Major Business Domains Discovered, System Discovery, Technical Architecture Summary
<<<<<<< HEAD
=======
### Community 147 - "RevalidationService"
Cohesion: 0.11
Nodes (7): RevalidationModule, Global, Module, RevalidationService, Injectable, RedisService, Injectable
### Community 148 - "wiki/[slug]/page.tsx"
Cohesion: 0.60
Nodes (5): generateMetadata(), getRelatedProducts(), getWikiTerm(), WikiTermPage(), generateMedicalWebPageSchema()
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 149 - "SmsSettingsPage.tsx"
Cohesion: 0.29
Nodes (7): PatternItem, SmsConfigState, SmsLogItem, SmsLogStats, SmsSettingsPage(), toPersianDigits(), SmsSettingsPage
@@ -894,6 +1173,7 @@ Nodes (7): PatternItem, SmsConfigState, SmsLogItem, SmsLogStats, SmsSettingsPage
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)
<<<<<<< HEAD
### Community 151 - "admin.service.ts"
Cohesion: 0.07
Nodes (16): CouponTargetInput, PaginationQuery, AdminLoginInput, AuthService, LoginInput, RegisterInput, Injectable, RevalidationModule (+8 more)
@@ -901,6 +1181,11 @@ Nodes (16): CouponTargetInput, PaginationQuery, AdminLoginInput, AuthService, Lo
### Community 152 - "InitiatePaymentDto"
Cohesion: 0.43
Nodes (7): InitiatePaymentDto, InitiateWalletTopupDto, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString
=======
### Community 151 - "auth.service.ts"
Cohesion: 0.09
Nodes (17): AdminLoginInput, AuthService, LoginInput, RegisterInput, Injectable, SendOtpDto, ApiProperty, IsNotEmpty (+9 more)
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 153 - "exclude"
Cohesion: 0.22
@@ -984,7 +1269,11 @@ Nodes (4): activeFiles, errors, validationOutput, warnings
### Community 179 - "PaginationDto"
Cohesion: 0.07
<<<<<<< HEAD
Nodes (20): BlogsModule, Module, BlogFilterDto, BlogsService, Injectable, PaginationDto, SortOrder, ApiPropertyOptional (+12 more)
=======
Nodes (29): BlogFilterDto, PaginationDto, SortOrder, ApiPropertyOptional, IsEnum, IsInt, IsOptional, IsString (+21 more)
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 180 - "API Contract Specification"
Cohesion: 0.50
@@ -1031,8 +1320,13 @@ Cohesion: 0.50
Nodes (3): Select, SelectOption, SelectProps
### Community 199 - "auth.controller.ts"
<<<<<<< HEAD
Cohesion: 0.06
Nodes (43): AuthController, ApiBadRequestResponse, ApiBearerAuth, ApiOkResponse, ApiOperation, ApiTags, Body, Controller (+35 more)
=======
Cohesion: 0.10
Nodes (19): AdminLoginDto, ApiProperty, IsEmail, IsNotEmpty, IsString, MinLength, LoginDto, ApiProperty (+11 more)
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 200 - "application/README.md"
Cohesion: 0.50
@@ -1050,6 +1344,17 @@ Nodes (3): ADR-AUTH-001: Admin Panel Authentication Architecture & Token Managem
Cohesion: 0.67
Nodes (3): Shabnam Font README, Shabnam Font Sample, Vazir Font
<<<<<<< HEAD
=======
### Community 234 - "WholesaleApplyDto"
Cohesion: 0.29
Nodes (6): ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString, WholesaleApplyDto
### Community 237 - "app/page.tsx"
Cohesion: 0.67
Nodes (3): generateMetadata(), getHomeData(), Home()
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
### Community 298 - ".initiateOrderPayment"
Cohesion: 0.20
Nodes (10): ApiPropertyOptional, IsOptional, IsString, ZibalCallbackQueryDto, ApiBadRequestResponse, ApiOkResponse, Req, Res (+2 more)
@@ -1065,22 +1370,41 @@ Nodes (3): GET(), handleRevalidate(), POST()
## Knowledge Gaps
- **1332 isolated node(s):** `$schema`, `collection`, `sourceRoot`, `deleteOutDir`, `name` (+1327 more)
These have ≤1 connection - possible missing edges or undocumented components.
<<<<<<< HEAD
- **100 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
=======
- **118 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
## Suggested Questions
_Questions this graph is uniquely positioned to answer:_
<<<<<<< HEAD
- **Why does `ApiResponse` connect `src/services/api.ts` to `WikiController`, `BlogsController`, `auth.controller.ts`, `PetsController`, `HomeController`, `ProductsService`, `UsersService`, `OrdersService`?**
_High betweenness centrality (0.081) - this node is a cross-community bridge._
- **Why does `Roles()` connect `Roles` to `WholesaleApplyDto`, `B2BService`, `SmsService`, `FaqService`, `CmsController`, `tickets.controller.ts`, `SslController`, `BannersService`, `ReviewsController`, `TestimonialsService`, `IngredientsService`, `reviews.controller.ts`, `JwtAuthGuard`, `ProductsService`, `PrescriptionsService`, `SmartAdvisorService`, `MenuService`, `ContactService`?**
_High betweenness centrality (0.064) - this node is a cross-community bridge._
- **Why does `JwtAuthGuard` connect `JwtAuthGuard` to `AdminService`, `PetsController`, `CmsController`, `tickets.controller.ts`, `auth.controller.ts`, `admin.module.ts`, `pets/pets.controller.ts`, `DoctorQueryDto`, `reviews.controller.ts`, `PaginationDto`, `ProductsService`, `CreateVideoDto`, `UsersService`?**
_High betweenness centrality (0.035) - this node is a cross-community bridge._
=======
- **Why does `ApiResponse` connect `src/services/api.ts` to `BlogsController`, `AuthController`, `PetsController`, `HomeController`, `ProductsService`, `PaginationDto`, `UsersController`, `OrdersService`?**
_High betweenness centrality (0.070) - this node is a cross-community bridge._
- **Why does `Roles()` connect `Roles` to `WholesaleService`, `B2BService`, `SmsService`, `FaqService`, `CmsController`, `tickets.controller.ts`, `SslController`, `BannersService`, `ReviewsService`, `TestimonialsService`, `IngredientsService`, `JwtAuthGuard`, `ProductsService`, `PrescriptionsService`, `SmartAdvisorService`, `MenuService`, `ContactService`?**
_High betweenness centrality (0.062) - this node is a cross-community bridge._
- **Why does `PrismaService` connect `PrismaService` to `app.module.ts`, `SmsService`, `CmsController`, `tickets.controller.ts`, `ReportsController`, `DoctorQueryDto`, `admin.service.ts`, `RevalidationService`, `ProductsService`, `CreateVideoDto`, `auth.service.ts`, `MenuService`, `WholesaleService`, `B2BService`, `FaqService`, `ZibalService`, `CategoriesController`, `MediaController`, `ZibalEBankService`, `BannersService`, `TestimonialsService`, `HomeController`, `IngredientsService`, `PaginationDto`, `PrescriptionsService`, `SmartAdvisorService`, `MetricsController`, `ContactService`, `payment.service.ts`, `admin.module.ts`, `PetsController`, `seo.module.ts`, `zibal.service.ts`, `OrdersService`, `BlogsController`, `CreateReviewDto`, `UsersService`?**
_High betweenness centrality (0.031) - this node is a cross-community bridge._
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
- **What connects `$schema`, `collection`, `sourceRoot` to the rest of the system?**
_1332 weakly-connected nodes found - possible documentation gaps or missing edges._
- **Should `app.module.ts` be split into smaller, more focused modules?**
_Cohesion score 0.07215686274509804 - nodes in this community are weakly interconnected._
_Cohesion score 0.07529411764705882 - nodes in this community are weakly interconnected._
- **Should `SmsService` be split into smaller, more focused modules?**
<<<<<<< HEAD
_Cohesion score 0.055964653902798235 - nodes in this community are weakly interconnected._
- **Should `ProductService` be split into smaller, more focused modules?**
_Cohesion score 0.07127882599580712 - nodes in this community are weakly interconnected._
_Cohesion score 0.07127882599580712 - nodes in this community are weakly interconnected._
=======
_Cohesion score 0.052028732284993204 - nodes in this community are weakly interconnected._
- **Should `ProductService` be split into smaller, more focused modules?**
_Cohesion score 0.06229508196721312 - nodes in this community are weakly interconnected._
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
@@ -1 +0,0 @@
{"nodes": [{"id": "$graphify-root$_package_json", "label": "package.json", "file_type": "code", "source_file": "package.json", "source_location": "L1"}, {"id": "$graphify-root$_package_name", "label": "name", "file_type": "code", "source_file": "package.json", "source_location": "L2"}, {"id": "$graphify-root$_package_version", "label": "version", "file_type": "code", "source_file": "package.json", "source_location": "L3"}, {"id": "$graphify-root$_package_private", "label": "private", "file_type": "code", "source_file": "package.json", "source_location": "L4"}, {"id": "$graphify-root$_package_scripts", "label": "scripts", "file_type": "code", "source_file": "package.json", "source_location": "L5"}, {"id": "$graphify-root$_package_scripts_install_all", "label": "install:all", "file_type": "code", "source_file": "package.json", "source_location": "L6"}, {"id": "$graphify-root$_package_scripts_dev_backend", "label": "dev:backend", "file_type": "code", "source_file": "package.json", "source_location": "L7"}, {"id": "$graphify-root$_package_scripts_dev_frontend", "label": "dev:frontend", "file_type": "code", "source_file": "package.json", "source_location": "L8"}, {"id": "$graphify-root$_package_scripts_dev_admin", "label": "dev:admin", "file_type": "code", "source_file": "package.json", "source_location": "L9"}, {"id": "$graphify-root$_package_scripts_dev", "label": "dev", "file_type": "code", "source_file": "package.json", "source_location": "L10"}, {"id": "$graphify-root$_package_scripts_build_backend", "label": "build:backend", "file_type": "code", "source_file": "package.json", "source_location": "L11"}, {"id": "$graphify-root$_package_scripts_build_frontend", "label": "build:frontend", "file_type": "code", "source_file": "package.json", "source_location": "L12"}, {"id": "$graphify-root$_package_scripts_build_admin", "label": "build:admin", "file_type": "code", "source_file": "package.json", "source_location": "L13"}, {"id": "$graphify-root$_package_scripts_build", "label": "build", "file_type": "code", "source_file": "package.json", "source_location": "L14"}, {"id": "$graphify-root$_package_scripts_start", "label": "start", "file_type": "code", "source_file": "package.json", "source_location": "L15"}, {"id": "$graphify-root$_package_devdependencies", "label": "devDependencies", "file_type": "code", "source_file": "package.json", "source_location": "L17"}, {"id": "$graphify-root$_package_devdependencies_concurrently", "label": "concurrently", "file_type": "code", "source_file": "package.json", "source_location": "L18"}, {"id": "concurrently", "label": "concurrently", "file_type": "concept", "source_file": "package.json", "source_location": "L18"}], "edges": [{"source": "$graphify-root$_package_json", "target": "$graphify-root$_package_name", "relation": "contains", "confidence": "EXTRACTED", "source_file": "package.json", "source_location": "L2", "weight": 1.0}, {"source": "$graphify-root$_package_json", "target": "$graphify-root$_package_version", "relation": "contains", "confidence": "EXTRACTED", "source_file": "package.json", "source_location": "L3", "weight": 1.0}, {"source": "$graphify-root$_package_json", "target": "$graphify-root$_package_private", "relation": "contains", "confidence": "EXTRACTED", "source_file": "package.json", "source_location": "L4", "weight": 1.0}, {"source": "$graphify-root$_package_json", "target": "$graphify-root$_package_scripts", "relation": "contains", "confidence": "EXTRACTED", "source_file": "package.json", "source_location": "L5", "weight": 1.0}, {"source": "$graphify-root$_package_scripts", "target": "$graphify-root$_package_scripts_install_all", "relation": "contains", "confidence": "EXTRACTED", "source_file": "package.json", "source_location": "L6", "weight": 1.0}, {"source": "$graphify-root$_package_scripts", "target": "$graphify-root$_package_scripts_dev_backend", "relation": "contains", "confidence": "EXTRACTED", "source_file": "package.json", "source_location": "L7", "weight": 1.0}, {"source": "$graphify-root$_package_scripts", "target": "$graphify-root$_package_scripts_dev_frontend", "relation": "contains", "confidence": "EXTRACTED", "source_file": "package.json", "source_location": "L8", "weight": 1.0}, {"source": "$graphify-root$_package_scripts", "target": "$graphify-root$_package_scripts_dev_admin", "relation": "contains", "confidence": "EXTRACTED", "source_file": "package.json", "source_location": "L9", "weight": 1.0}, {"source": "$graphify-root$_package_scripts", "target": "$graphify-root$_package_scripts_dev", "relation": "contains", "confidence": "EXTRACTED", "source_file": "package.json", "source_location": "L10", "weight": 1.0}, {"source": "$graphify-root$_package_scripts", "target": "$graphify-root$_package_scripts_build_backend", "relation": "contains", "confidence": "EXTRACTED", "source_file": "package.json", "source_location": "L11", "weight": 1.0}, {"source": "$graphify-root$_package_scripts", "target": "$graphify-root$_package_scripts_build_fronteLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_package_json", "label": "package.json", "file_type": "code", "source_file": "package.json", "source_location": "L1"}, {"id": "$graphify-root$_package_name", "label": "name", "file_type": "code", "source_file": "package.json", "source_location": "L2"}, {"id": "$graphify-root$_package_version", "label": "version", "file_type": "code", "source_file": "package.json", "source_location": "L3"}, {"id": "$graphify-root$_package_private", "label": "private", "file_type": "code", "source_file": "package.json", "source_location": "L4"}, {"id": "$graphify-root$_package_scripts", "label": "scripts", "file_type": "code", "source_file": "package.json", "source_location": "L5"}, {"id": "$graphify-root$_package_scripts_install_all", "label": "install:all", "file_type": "code", "source_file": "package.json", "source_location": "L6"}, {"id": "$graphify-root$_package_scripts_dev_backend", "label": "dev:backend", "file_type": "code", "source_file": "package.json", "source_location": "L7"}, {"id": "$graphify-root$_package_scripts_dev_frontend", "label": "dev:frontend", "file_type": "code", "source_file": "package.json", "source_location": "L8"}, {"id": "$graphify-root$_package_scripts_dev_admin", "label": "dev:admin", "file_type": "code", "source_file": "package.json", "source_location": "L9"}, {"id": "$graphify-root$_package_scripts_dev", "label": "dev", "file_type": "code", "source_file": "package.json", "source_location": "L10"}, {"id": "$graphify-root$_package_scripts_build_backend", "label": "build:backend", "file_type": "code", "source_file": "package.json", "source_location": "L11"}, {"id": "$graphify-root$_package_scripts_build_frontend", "label": "build:frontend", "file_type": "code", "source_file": "package.json", "source_location": "L12"}, {"id": "$graphify-root$_package_scripts_build_admin", "label": "build:admin", "file_type": "code", "source_file": "package.json", "source_location": "L13"}, {"id": "$graphify-root$_package_scripts_build", "label": "build", "file_type": "code", "source_file": "package.json", "source_location": "L14"}, {"id": "$graphify-root$_package_scripts_start", "label": "start", "file_type": "code", "source_file": "package.json", "source_location": "L15"}, {"id": "$graphify-root$_package_scripts_test_e2e", "label": "test:e2e", "file_type": "code", "source_file": "package.json", "source_location": "L16"}, {"id": "$graphify-root$_package_scripts_test_e2e_ui", "label": "test:e2e:ui", "file_type": "code", "source_file": "package.json", "source_location": "L17"}, {"id": "$graphify-root$_package_scripts_test_e2e_report", "label": "test:e2e:report", "file_type": "code", "source_file": "package.json", "source_location": "L18"}, {"id": "$graphify-root$_package_devdependencies", "label": "devDependencies", "file_type": "code", "source_file": "package.json", "source_location": "L20"}, {"id": "$graphify-root$_package_devdependencies_playwright_test", "label": "@playwright/test", "file_type": "code", "source_file": "package.json", "source_location": "L21"}, {"id": "playwright_test", "label": "@playwright/test", "file_type": "concept", "source_file": "package.json", "source_location": "L21"}, {"id": "$graphify-root$_package_devdependencies_types_node", "label": "@types/node", "file_type": "code", "source_file": "package.json", "source_location": "L22"}, {"id": "types_node", "label": "@types/node", "file_type": "concept", "source_file": "package.json", "source_location": "L22"}, {"id": "$graphify-root$_package_devdependencies_concurrently", "label": "concurrently", "file_type": "code", "source_file": "package.json", "source_location": "L23"}, {"id": "concurrently", "label": "concurrently", "file_type": "concept", "source_file": "package.json", "source_location": "L23"}, {"id": "$graphify-root$_package_devdependencies_dotenv", "label": "dotenv", "file_type": "code", "source_file": "package.json", "source_location": "L24"}, {"id": "dotenv", "label": "dotenv", "file_type": "concept", "source_file": "package.json", "source_location": "L24"}, {"id": "$graphify-root$_package_devdependencies_typescript", "label": "typescript", "file_type": "code", "source_file": "package.json", "source_location": "L25"}, {"id": "typescript", "label": "typescript", "file_type": "concept", "source_file": "package.json", "source_location": "L25"}], "edges": [{"source": "$graphify-root$_package_json", "target": "$graphify-root$_package_name", "relation": "contains", "confidence": "EXTRACTED", "source_file": "package.json", "source_location": "L2", "weight": 1.0}, {"source": "$graphify-root$_package_json", "target": "$graphify-root$_package_version", "relation": "contains", "confidence": "EXTRACTED", "source_file": "package.json", "source_location": "L3", "weight": 1.0}, {"source": "$graphify-root$_package_json", "target": "$graphify-root$_package_private", "relation": "contains", "confidence": "EXTRACTED", "source_file": "package.json", "source_location": "L4", "weight": 1.0}, {"source": "$graphify-rootLine truncated
@@ -1 +0,0 @@
{"nodes": [{"id": "$graphify-root$_frontend_application_package_json", "label": "package.json", "file_type": "code", "source_file": "frontend/application/package.json", "source_location": "L1"}, {"id": "$graphify-root$_frontend_application_package_name", "label": "name", "file_type": "code", "source_file": "frontend/application/package.json", "source_location": "L2"}, {"id": "$graphify-root$_frontend_application_package_version", "label": "version", "file_type": "code", "source_file": "frontend/application/package.json", "source_location": "L3"}, {"id": "$graphify-root$_frontend_application_package_private", "label": "private", "file_type": "code", "source_file": "frontend/application/package.json", "source_location": "L4"}, {"id": "$graphify-root$_frontend_application_package_scripts", "label": "scripts", "file_type": "code", "source_file": "frontend/application/package.json", "source_location": "L5"}, {"id": "$graphify-root$_frontend_application_package_scripts_dev", "label": "dev", "file_type": "code", "source_file": "frontend/application/package.json", "source_location": "L6"}, {"id": "$graphify-root$_frontend_application_package_scripts_build", "label": "build", "file_type": "code", "source_file": "frontend/application/package.json", "source_location": "L7"}, {"id": "$graphify-root$_frontend_application_package_scripts_start", "label": "start", "file_type": "code", "source_file": "frontend/application/package.json", "source_location": "L8"}, {"id": "$graphify-root$_frontend_application_package_scripts_lint", "label": "lint", "file_type": "code", "source_file": "frontend/application/package.json", "source_location": "L9"}, {"id": "$graphify-root$_frontend_application_package_dependencies", "label": "dependencies", "file_type": "code", "source_file": "frontend/application/package.json", "source_location": "L11"}, {"id": "$graphify-root$_frontend_application_package_dependencies_axios", "label": "axios", "file_type": "code", "source_file": "frontend/application/package.json", "source_location": "L12"}, {"id": "axios", "label": "axios", "file_type": "concept", "source_file": "frontend/application/package.json", "source_location": "L12"}, {"id": "$graphify-root$_frontend_application_package_dependencies_lucide_react", "label": "lucide-react", "file_type": "code", "source_file": "frontend/application/package.json", "source_location": "L13"}, {"id": "lucide_react", "label": "lucide-react", "file_type": "concept", "source_file": "frontend/application/package.json", "source_location": "L13"}, {"id": "$graphify-root$_frontend_application_package_dependencies_motion", "label": "motion", "file_type": "code", "source_file": "frontend/application/package.json", "source_location": "L14"}, {"id": "motion", "label": "motion", "file_type": "concept", "source_file": "frontend/application/package.json", "source_location": "L14"}, {"id": "$graphify-root$_frontend_application_package_dependencies_next", "label": "next", "file_type": "code", "source_file": "frontend/application/package.json", "source_location": "L15"}, {"id": "next", "label": "next", "file_type": "concept", "source_file": "frontend/application/package.json", "source_location": "L15"}, {"id": "$graphify-root$_frontend_application_package_dependencies_react", "label": "react", "file_type": "code", "source_file": "frontend/application/package.json", "source_location": "L16"}, {"id": "react", "label": "react", "file_type": "concept", "source_file": "frontend/application/package.json", "source_location": "L16"}, {"id": "$graphify-root$_frontend_application_package_dependencies_react_dom", "label": "react-dom", "file_type": "code", "source_file": "frontend/application/package.json", "source_location": "L17"}, {"id": "react_dom", "label": "react-dom", "file_type": "concept", "source_file": "frontend/application/package.json", "source_location": "L17"}, {"id": "$graphify-root$_frontend_application_package_dependencies_sonner", "label": "sonner", "file_type": "code", "source_file": "frontend/application/package.json", "source_location": "L18"}, {"id": "sonner", "label": "sonner", "file_type": "concept", "source_file": "frontend/application/package.json", "source_location": "L18"}, {"id": "$graphify-root$_frontend_application_package_dependencies_zustand", "label": "zustand", "file_type": "code", "source_file": "frontend/application/package.json", "source_location": "L19"}, {"id": "zustand", "label": "zustand", "file_type": "concept", "source_file": "frontend/application/package.json", "source_location": "L19"}, {"id": "$graphify-root$_frontend_application_package_devdependencies", "label": "devDependencies", "file_type": "code", "source_file": "frontend/application/package.json", "source_location": "L21"}, {"id": "$graphify-root$_frontend_application_package_devdependencies_tailwindcss_postcss", "label": "@tailwindcss/postcss", "file_type": "code", "source_file": "frontend/application/package.json", "source_location": "L22"}, {"id": "tailwindcss_postcss", "label": "Line truncated
@@ -1 +0,0 @@
{"nodes": [{"id": "$graphify-root$_backend_package_json", "label": "package.json", "file_type": "code", "source_file": "backend/package.json", "source_location": "L1"}, {"id": "$graphify-root$_backend_package_name", "label": "name", "file_type": "code", "source_file": "backend/package.json", "source_location": "L2"}, {"id": "$graphify-root$_backend_package_version", "label": "version", "file_type": "code", "source_file": "backend/package.json", "source_location": "L3"}, {"id": "$graphify-root$_backend_package_description", "label": "description", "file_type": "code", "source_file": "backend/package.json", "source_location": "L4"}, {"id": "$graphify-root$_backend_package_author", "label": "author", "file_type": "code", "source_file": "backend/package.json", "source_location": "L5"}, {"id": "$graphify-root$_backend_package_private", "label": "private", "file_type": "code", "source_file": "backend/package.json", "source_location": "L6"}, {"id": "$graphify-root$_backend_package_license", "label": "license", "file_type": "code", "source_file": "backend/package.json", "source_location": "L7"}, {"id": "$graphify-root$_backend_package_scripts", "label": "scripts", "file_type": "code", "source_file": "backend/package.json", "source_location": "L8"}, {"id": "$graphify-root$_backend_package_scripts_build", "label": "build", "file_type": "code", "source_file": "backend/package.json", "source_location": "L9"}, {"id": "$graphify-root$_backend_package_scripts_build_nest", "label": "build:nest", "file_type": "code", "source_file": "backend/package.json", "source_location": "L10"}, {"id": "$graphify-root$_backend_package_scripts_start", "label": "start", "file_type": "code", "source_file": "backend/package.json", "source_location": "L11"}, {"id": "$graphify-root$_backend_package_scripts_start_dev", "label": "start:dev", "file_type": "code", "source_file": "backend/package.json", "source_location": "L12"}, {"id": "$graphify-root$_backend_package_scripts_start_debug", "label": "start:debug", "file_type": "code", "source_file": "backend/package.json", "source_location": "L13"}, {"id": "$graphify-root$_backend_package_scripts_start_prod", "label": "start:prod", "file_type": "code", "source_file": "backend/package.json", "source_location": "L14"}, {"id": "$graphify-root$_backend_package_scripts_lint", "label": "lint", "file_type": "code", "source_file": "backend/package.json", "source_location": "L15"}, {"id": "$graphify-root$_backend_package_scripts_test", "label": "test", "file_type": "code", "source_file": "backend/package.json", "source_location": "L16"}, {"id": "$graphify-root$_backend_package_scripts_test_watch", "label": "test:watch", "file_type": "code", "source_file": "backend/package.json", "source_location": "L17"}, {"id": "$graphify-root$_backend_package_scripts_test_cov", "label": "test:cov", "file_type": "code", "source_file": "backend/package.json", "source_location": "L18"}, {"id": "$graphify-root$_backend_package_scripts_test_debug", "label": "test:debug", "file_type": "code", "source_file": "backend/package.json", "source_location": "L19"}, {"id": "$graphify-root$_backend_package_scripts_test_e2e", "label": "test:e2e", "file_type": "code", "source_file": "backend/package.json", "source_location": "L20"}, {"id": "$graphify-root$_backend_package_scripts_docs_generate", "label": "docs:generate", "file_type": "code", "source_file": "backend/package.json", "source_location": "L21"}, {"id": "$graphify-root$_backend_package_dependencies", "label": "dependencies", "file_type": "code", "source_file": "backend/package.json", "source_location": "L23"}, {"id": "$graphify-root$_backend_package_dependencies_nestjs_common", "label": "@nestjs/common", "file_type": "code", "source_file": "backend/package.json", "source_location": "L24"}, {"id": "nestjs_common", "label": "@nestjs/common", "file_type": "concept", "source_file": "backend/package.json", "source_location": "L24"}, {"id": "$graphify-root$_backend_package_dependencies_nestjs_core", "label": "@nestjs/core", "file_type": "code", "source_file": "backend/package.json", "source_location": "L25"}, {"id": "nestjs_core", "label": "@nestjs/core", "file_type": "concept", "source_file": "backend/package.json", "source_location": "L25"}, {"id": "$graphify-root$_backend_package_dependencies_nestjs_jwt", "label": "@nestjs/jwt", "file_type": "code", "source_file": "backend/package.json", "source_location": "L26"}, {"id": "nestjs_jwt", "label": "@nestjs/jwt", "file_type": "concept", "source_file": "backend/package.json", "source_location": "L26"}, {"id": "$graphify-root$_backend_package_dependencies_nestjs_passport", "label": "@nestjs/passport", "file_type": "code", "source_file": "backend/package.json", "source_location": "L27"}, {"id": "nestjs_passport", "label": "@nestjs/passport", "file_type": "concept", "source_file": "backend/package.json", "source_location": "L27"}, {"id": "$graphify-root$_backend_package_dependencies_nestjs_platform_express", "label": "@nestjs/platform-expreLine truncated
@@ -1 +0,0 @@
{"nodes": [{"id": "$graphify-root$_package_json", "label": "package.json", "file_type": "code", "source_file": "package.json", "source_location": "L1"}, {"id": "$graphify-root$_package_name", "label": "name", "file_type": "code", "source_file": "package.json", "source_location": "L2"}, {"id": "$graphify-root$_package_version", "label": "version", "file_type": "code", "source_file": "package.json", "source_location": "L3"}, {"id": "$graphify-root$_package_private", "label": "private", "file_type": "code", "source_file": "package.json", "source_location": "L4"}, {"id": "$graphify-root$_package_scripts", "label": "scripts", "file_type": "code", "source_file": "package.json", "source_location": "L5"}, {"id": "$graphify-root$_package_scripts_install_all", "label": "install:all", "file_type": "code", "source_file": "package.json", "source_location": "L6"}, {"id": "$graphify-root$_package_scripts_dev_backend", "label": "dev:backend", "file_type": "code", "source_file": "package.json", "source_location": "L7"}, {"id": "$graphify-root$_package_scripts_dev_frontend", "label": "dev:frontend", "file_type": "code", "source_file": "package.json", "source_location": "L8"}, {"id": "$graphify-root$_package_scripts_dev_admin", "label": "dev:admin", "file_type": "code", "source_file": "package.json", "source_location": "L9"}, {"id": "$graphify-root$_package_scripts_dev", "label": "dev", "file_type": "code", "source_file": "package.json", "source_location": "L10"}, {"id": "$graphify-root$_package_scripts_build_backend", "label": "build:backend", "file_type": "code", "source_file": "package.json", "source_location": "L11"}, {"id": "$graphify-root$_package_scripts_build_frontend", "label": "build:frontend", "file_type": "code", "source_file": "package.json", "source_location": "L12"}, {"id": "$graphify-root$_package_scripts_build_admin", "label": "build:admin", "file_type": "code", "source_file": "package.json", "source_location": "L13"}, {"id": "$graphify-root$_package_scripts_build", "label": "build", "file_type": "code", "source_file": "package.json", "source_location": "L14"}, {"id": "$graphify-root$_package_scripts_start", "label": "start", "file_type": "code", "source_file": "package.json", "source_location": "L15"}, {"id": "$graphify-root$_package_scripts_test_e2e", "label": "test:e2e", "file_type": "code", "source_file": "package.json", "source_location": "L16"}, {"id": "$graphify-root$_package_scripts_test_e2e_ui", "label": "test:e2e:ui", "file_type": "code", "source_file": "package.json", "source_location": "L17"}, {"id": "$graphify-root$_package_scripts_test_e2e_report", "label": "test:e2e:report", "file_type": "code", "source_file": "package.json", "source_location": "L18"}, {"id": "$graphify-root$_package_devdependencies", "label": "devDependencies", "file_type": "code", "source_file": "package.json", "source_location": "L20"}, {"id": "$graphify-root$_package_devdependencies_playwright_test", "label": "@playwright/test", "file_type": "code", "source_file": "package.json", "source_location": "L21"}, {"id": "playwright_test", "label": "@playwright/test", "file_type": "concept", "source_file": "package.json", "source_location": "L21"}, {"id": "$graphify-root$_package_devdependencies_concurrently", "label": "concurrently", "file_type": "code", "source_file": "package.json", "source_location": "L22"}, {"id": "concurrently", "label": "concurrently", "file_type": "concept", "source_file": "package.json", "source_location": "L22"}, {"id": "$graphify-root$_package_devdependencies_dotenv", "label": "dotenv", "file_type": "code", "source_file": "package.json", "source_location": "L23"}, {"id": "dotenv", "label": "dotenv", "file_type": "concept", "source_file": "package.json", "source_location": "L23"}], "edges": [{"source": "$graphify-root$_package_json", "target": "$graphify-root$_package_name", "relation": "contains", "confidence": "EXTRACTED", "source_file": "package.json", "source_location": "L2", "weight": 1.0}, {"source": "$graphify-root$_package_json", "target": "$graphify-root$_package_version", "relation": "contains", "confidence": "EXTRACTED", "source_file": "package.json", "source_location": "L3", "weight": 1.0}, {"source": "$graphify-root$_package_json", "target": "$graphify-root$_package_private", "relation": "contains", "confidence": "EXTRACTED", "source_file": "package.json", "source_location": "L4", "weight": 1.0}, {"source": "$graphify-root$_package_json", "target": "$graphify-root$_package_scripts", "relation": "contains", "confidence": "EXTRACTED", "source_file": "package.json", "source_location": "L5", "weight": 1.0}, {"source": "$graphify-root$_package_scripts", "target": "$graphify-root$_package_scripts_install_all", "relation": "contains", "confidence": "EXTRACTED", "source_file": "package.json", "source_location": "L6", "weight": 1.0}, {"source": "$graphify-root$_package_scripts", "target": "$graphify-root$_package_scripts_dev_backend", "relation": "contains", "confidence": "EXTRACTED", "source_file": Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_test_coverage_map_md", "label": "test-coverage-map.md", "file_type": "document", "source_file": "test-coverage-map.md", "source_location": "L1"}, {"id": "$graphify-root$_test_coverage_map_\u0646\u0642\u0634\u0647_\u062c\u0627\u0645\u0639_\u067e\u0648\u0634\u0634_\u062a\u0633\u062a_\u0647\u0627\u06cc_\u0633\u0631\u062a\u0627\u0633\u0631\u06cc_e2e_test_coverage_map_\u067e\u0631\u0648\u0698\u0647_canina", "label": "\u0646\u0642\u0634\u0647 \u062c\u0627\u0645\u0639 \u067e\u0648\u0634\u0634 \u062a\u0633\u062a\u200c\u0647\u0627\u06cc \u0633\u0631\u062a\u0627\u0633\u0631\u06cc (E2E Test Coverage Map) \u2014 \u067e\u0631\u0648\u0698\u0647 Canina", "file_type": "document", "source_file": "test-coverage-map.md", "source_location": "L1"}, {"id": "$graphify-root$_test_coverage_map_\u06f1_\u0645\u0639\u0645\u0627\u0631\u06cc_\u0648_\u0646\u0642\u0634_\u0647\u0627\u06cc_\u06a9\u0627\u0631\u0628\u0631\u06cc_user_roles", "label": "\u06f1. \u0645\u0639\u0645\u0627\u0631\u06cc \u0648 \u0646\u0642\u0634\u200c\u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u06cc (User Roles)", "file_type": "document", "source_file": "test-coverage-map.md", "source_location": "L7"}, {"id": "$graphify-root$_test_coverage_map_\u06f2_\u0645\u0627\u062a\u0631\u06cc\u0633_\u062c\u0631\u06cc\u0627\u0646_\u0647\u0627_\u0648_\u0642\u0627\u0628\u0644\u06cc\u062a_\u0647\u0627\u06cc_\u06a9\u0627\u0631\u0628\u0631\u0645\u062d\u0648\u0631_feature_flow_matrix", "label": "\u06f2. \u0645\u0627\u062a\u0631\u06cc\u0633 \u062c\u0631\u06cc\u0627\u0646\u200c\u0647\u0627 \u0648 \u0642\u0627\u0628\u0644\u06cc\u062a\u200c\u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u0645\u062d\u0648\u0631 (Feature & Flow Matrix)", "file_type": "document", "source_file": "test-coverage-map.md", "source_location": "L39"}, {"id": "$graphify-root$_test_coverage_map_\u06f3_\u0648\u0636\u0639\u06cc\u062a_\u067e\u0648\u0634\u0634_\u0646\u0647\u0627\u06cc\u06cc_\u0633\u0648\u0626\u06cc\u062a_\u06f1\u06f1\u06af\u0627\u0646\u0647_final_11_test_suites_status", "label": "\u06f3. \u0648\u0636\u0639\u06cc\u062a \u067e\u0648\u0634\u0634 \u0646\u0647\u0627\u06cc\u06cc \u0633\u0648\u0626\u06cc\u062a \u06f1\u06f1\u06af\u0627\u0646\u0647 (Final 11 Test Suites Status)", "file_type": "document", "source_file": "test-coverage-map.md", "source_location": "L69"}, {"id": "$graphify-root$_test_coverage_map_\u06f4_\u0631\u0627\u0647\u0646\u0645\u0627\u06cc_\u0646\u06af\u0647\u062f\u0627\u0631\u06cc_\u0648_\u0627\u0641\u0632\u0648\u062f\u0646_\u0641\u06cc\u0686\u0631\u0647\u0627\u06cc_\u062c\u062f\u06cc\u062f_\u0628\u062f\u0648\u0646_\u0634\u06a9\u0633\u062a\u0646_\u062a\u0633\u062a_\u0647\u0627_developer_maintenance_guide", "label": "\u06f4. \u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u0646\u06af\u0647\u062f\u0627\u0631\u06cc \u0648 \u0627\u0641\u0632\u0648\u062f\u0646 \u0641\u06cc\u0686\u0631\u0647\u0627\u06cc \u062c\u062f\u06cc\u062f \u0628\u062f\u0648\u0646 \u0634\u06a9\u0633\u062a\u0646 \u062a\u0633\u062a\u200c\u0647\u0627 (Developer Maintenance Guide)", "file_type": "document", "source_file": "test-coverage-map.md", "source_location": "L90"}], "edges": [{"source": "$graphify-root$_test_coverage_map_md", "target": "$graphify-root$_test_coverage_map_\u0646\u0642\u0634\u0647_\u062c\u0627\u0645\u0639_\u067e\u0648\u0634\u0634_\u062a\u0633\u062a_\u0647\u0627\u06cc_\u0633\u0631\u062a\u0627\u0633\u0631\u06cc_e2e_test_coverage_map_\u067e\u0631\u0648\u0698\u0647_canina", "relation": "contains", "confidence": "EXTRACTED", "source_file": "test-coverage-map.md", "source_location": "L1", "weight": 1.0}, {"source": "$graphify-root$_test_coverage_map_\u0646\u0642\u0634\u0647_\u062c\u0627\u0645\u0639_\u067e\u0648\u0634\u0634_\u062a\u0633\u062a_\u0647\u0627\u06cc_\u0633\u0631\u062a\u0627\u0633\u0631\u06cc_e2e_test_coverage_map_\u067e\u0631\u0648\u0698\u0647_canina", "target": "$graphify-root$_test_coverage_map_\u06f1_\u0645\u0639\u0645\u0627\u0631\u06cc_\u0648_\u0646\u0642\u0634_\u0647\u0627\u06cc_\u06a9\u0627\u0631\u0628\u0631\u06cc_user_roles", "relation": "contains", "confidence": "EXTRACTED", "source_file": "test-coverage-map.md", "source_location": "L7", "weight": 1.0}, {"source": "$graphify-root$_test_coverage_map_\u0646\u0642\u0634\u0647_\u062c\u0627\u0645\u0639_\u067e\u0648\u0634\u0634_\u062a\u0633\u062a_\u0647\u0627\u06cc_\u0633\u0631\u062a\u0627\u0633\u0631\u06cc_e2e_test_coverage_map_\u067e\u0631\u0648\u0698\u0647_canina", "target": "$graphify-root$_test_coverage_map_\u06f2_\u0645\u0627\u062a\u0631\u06cc\u0633_\u062c\u0631\u06cc\u0627\u0646_\u0647\u0627_\u0648_\u0642\u0627\u0628\u0644\u06cc\u062a_\u0647\u0627\u06cc_\u06a9\u0627\u0631\u0628\u0631\u0645\u062d\u0648\u0631_feature_flow_matrix", "relation": "contains", "confidence": "EXTRACTED", "source_file": "test-coverage-map.md", "source_location": "L39", "weight": 1.0}, {"source": "$graphify-root$_test_coverage_map_\u0646\u0642\u0634\u0647_\u062c\u0627\u0645\u0639_\u067e\u0648\u0634\u0634_\u062a\u0633\u062a_\u0647\u0627\Line truncated
@@ -1 +0,0 @@
{"nodes": [{"id": "$graphify-root$_backend_package_json", "label": "package.json", "file_type": "code", "source_file": "backend/package.json", "source_location": "L1"}, {"id": "$graphify-root$_backend_package_name", "label": "name", "file_type": "code", "source_file": "backend/package.json", "source_location": "L2"}, {"id": "$graphify-root$_backend_package_version", "label": "version", "file_type": "code", "source_file": "backend/package.json", "source_location": "L3"}, {"id": "$graphify-root$_backend_package_description", "label": "description", "file_type": "code", "source_file": "backend/package.json", "source_location": "L4"}, {"id": "$graphify-root$_backend_package_author", "label": "author", "file_type": "code", "source_file": "backend/package.json", "source_location": "L5"}, {"id": "$graphify-root$_backend_package_private", "label": "private", "file_type": "code", "source_file": "backend/package.json", "source_location": "L6"}, {"id": "$graphify-root$_backend_package_license", "label": "license", "file_type": "code", "source_file": "backend/package.json", "source_location": "L7"}, {"id": "$graphify-root$_backend_package_scripts", "label": "scripts", "file_type": "code", "source_file": "backend/package.json", "source_location": "L8"}, {"id": "$graphify-root$_backend_package_scripts_build", "label": "build", "file_type": "code", "source_file": "backend/package.json", "source_location": "L9"}, {"id": "$graphify-root$_backend_package_scripts_build_nest", "label": "build:nest", "file_type": "code", "source_file": "backend/package.json", "source_location": "L10"}, {"id": "$graphify-root$_backend_package_scripts_start", "label": "start", "file_type": "code", "source_file": "backend/package.json", "source_location": "L11"}, {"id": "$graphify-root$_backend_package_scripts_start_dev", "label": "start:dev", "file_type": "code", "source_file": "backend/package.json", "source_location": "L12"}, {"id": "$graphify-root$_backend_package_scripts_start_debug", "label": "start:debug", "file_type": "code", "source_file": "backend/package.json", "source_location": "L13"}, {"id": "$graphify-root$_backend_package_scripts_start_prod", "label": "start:prod", "file_type": "code", "source_file": "backend/package.json", "source_location": "L14"}, {"id": "$graphify-root$_backend_package_scripts_lint", "label": "lint", "file_type": "code", "source_file": "backend/package.json", "source_location": "L15"}, {"id": "$graphify-root$_backend_package_scripts_test", "label": "test", "file_type": "code", "source_file": "backend/package.json", "source_location": "L16"}, {"id": "$graphify-root$_backend_package_scripts_test_watch", "label": "test:watch", "file_type": "code", "source_file": "backend/package.json", "source_location": "L17"}, {"id": "$graphify-root$_backend_package_scripts_test_cov", "label": "test:cov", "file_type": "code", "source_file": "backend/package.json", "source_location": "L18"}, {"id": "$graphify-root$_backend_package_scripts_test_debug", "label": "test:debug", "file_type": "code", "source_file": "backend/package.json", "source_location": "L19"}, {"id": "$graphify-root$_backend_package_scripts_test_e2e", "label": "test:e2e", "file_type": "code", "source_file": "backend/package.json", "source_location": "L20"}, {"id": "$graphify-root$_backend_package_scripts_docs_generate", "label": "docs:generate", "file_type": "code", "source_file": "backend/package.json", "source_location": "L21"}, {"id": "$graphify-root$_backend_package_dependencies", "label": "dependencies", "file_type": "code", "source_file": "backend/package.json", "source_location": "L23"}, {"id": "$graphify-root$_backend_package_dependencies_nestjs_common", "label": "@nestjs/common", "file_type": "code", "source_file": "backend/package.json", "source_location": "L24"}, {"id": "nestjs_common", "label": "@nestjs/common", "file_type": "concept", "source_file": "backend/package.json", "source_location": "L24"}, {"id": "$graphify-root$_backend_package_dependencies_nestjs_core", "label": "@nestjs/core", "file_type": "code", "source_file": "backend/package.json", "source_location": "L25"}, {"id": "nestjs_core", "label": "@nestjs/core", "file_type": "concept", "source_file": "backend/package.json", "source_location": "L25"}, {"id": "$graphify-root$_backend_package_dependencies_nestjs_jwt", "label": "@nestjs/jwt", "file_type": "code", "source_file": "backend/package.json", "source_location": "L26"}, {"id": "nestjs_jwt", "label": "@nestjs/jwt", "file_type": "concept", "source_file": "backend/package.json", "source_location": "L26"}, {"id": "$graphify-root$_backend_package_dependencies_nestjs_passport", "label": "@nestjs/passport", "file_type": "code", "source_file": "backend/package.json", "source_location": "L27"}, {"id": "nestjs_passport", "label": "@nestjs/passport", "file_type": "concept", "source_file": "backend/package.json", "source_location": "L27"}, {"id": "$graphify-root$_backend_package_dependencies_nestjs_platform_express", "label": "@nestjs/platform-expreLine truncated
@@ -1 +0,0 @@
{"nodes": [{"id": "$graphify-root$_test_coverage_map_md", "label": "test-coverage-map.md", "file_type": "document", "source_file": "test-coverage-map.md", "source_location": "L1"}, {"id": "$graphify-root$_test_coverage_map_\u0646\u0642\u0634\u0647_\u062c\u0627\u0645\u0639_\u067e\u0648\u0634\u0634_\u062a\u0633\u062a_\u0647\u0627\u06cc_\u0633\u0631\u062a\u0627\u0633\u0631\u06cc_e2e_test_coverage_map_\u067e\u0631\u0648\u0698\u0647_canina", "label": "\u0646\u0642\u0634\u0647 \u062c\u0627\u0645\u0639 \u067e\u0648\u0634\u0634 \u062a\u0633\u062a\u200c\u0647\u0627\u06cc \u0633\u0631\u062a\u0627\u0633\u0631\u06cc (E2E Test Coverage Map) \u2014 \u067e\u0631\u0648\u0698\u0647 Canina", "file_type": "document", "source_file": "test-coverage-map.md", "source_location": "L1"}, {"id": "$graphify-root$_test_coverage_map_\u06f1_\u0645\u0639\u0645\u0627\u0631\u06cc_\u0648_\u0646\u0642\u0634_\u0647\u0627\u06cc_\u06a9\u0627\u0631\u0628\u0631\u06cc_user_roles", "label": "\u06f1. \u0645\u0639\u0645\u0627\u0631\u06cc \u0648 \u0646\u0642\u0634\u200c\u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u06cc (User Roles)", "file_type": "document", "source_file": "test-coverage-map.md", "source_location": "L7"}, {"id": "$graphify-root$_test_coverage_map_\u06f2_\u0645\u0627\u062a\u0631\u06cc\u0633_\u062c\u0631\u06cc\u0627\u0646_\u0647\u0627_\u0648_\u0642\u0627\u0628\u0644\u06cc\u062a_\u0647\u0627\u06cc_\u06a9\u0627\u0631\u0628\u0631\u0645\u062d\u0648\u0631_feature_flow_matrix", "label": "\u06f2. \u0645\u0627\u062a\u0631\u06cc\u0633 \u062c\u0631\u06cc\u0627\u0646\u200c\u0647\u0627 \u0648 \u0642\u0627\u0628\u0644\u06cc\u062a\u200c\u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u0645\u062d\u0648\u0631 (Feature & Flow Matrix)", "file_type": "document", "source_file": "test-coverage-map.md", "source_location": "L39"}, {"id": "$graphify-root$_test_coverage_map_\u06f3_\u0628\u0631\u0646\u0627\u0645\u0647_\u062a\u06a9\u0645\u06cc\u0644_\u0648_\u062a\u0648\u0633\u0639\u0647_\u062a\u0633\u062a_\u0647\u0627\u06cc_\u0645\u0641\u0642\u0648\u062f_action_plan", "label": "\u06f3. \u0628\u0631\u0646\u0627\u0645\u0647 \u062a\u06a9\u0645\u06cc\u0644 \u0648 \u062a\u0648\u0633\u0639\u0647 \u062a\u0633\u062a\u200c\u0647\u0627\u06cc \u0645\u0641\u0642\u0648\u062f (Action Plan)", "file_type": "document", "source_file": "test-coverage-map.md", "source_location": "L69"}], "edges": [{"source": "$graphify-root$_test_coverage_map_md", "target": "$graphify-root$_test_coverage_map_\u0646\u0642\u0634\u0647_\u062c\u0627\u0645\u0639_\u067e\u0648\u0634\u0634_\u062a\u0633\u062a_\u0647\u0627\u06cc_\u0633\u0631\u062a\u0627\u0633\u0631\u06cc_e2e_test_coverage_map_\u067e\u0631\u0648\u0698\u0647_canina", "relation": "contains", "confidence": "EXTRACTED", "source_file": "test-coverage-map.md", "source_location": "L1", "weight": 1.0}, {"source": "$graphify-root$_test_coverage_map_\u0646\u0642\u0634\u0647_\u062c\u0627\u0645\u0639_\u067e\u0648\u0634\u0634_\u062a\u0633\u062a_\u0647\u0627\u06cc_\u0633\u0631\u062a\u0627\u0633\u0631\u06cc_e2e_test_coverage_map_\u067e\u0631\u0648\u0698\u0647_canina", "target": "$graphify-root$_test_coverage_map_\u06f1_\u0645\u0639\u0645\u0627\u0631\u06cc_\u0648_\u0646\u0642\u0634_\u0647\u0627\u06cc_\u06a9\u0627\u0631\u0628\u0631\u06cc_user_roles", "relation": "contains", "confidence": "EXTRACTED", "source_file": "test-coverage-map.md", "source_location": "L7", "weight": 1.0}, {"source": "$graphify-root$_test_coverage_map_\u0646\u0642\u0634\u0647_\u062c\u0627\u0645\u0639_\u067e\u0648\u0634\u0634_\u062a\u0633\u062a_\u0647\u0627\u06cc_\u0633\u0631\u062a\u0627\u0633\u0631\u06cc_e2e_test_coverage_map_\u067e\u0631\u0648\u0698\u0647_canina", "target": "$graphify-root$_test_coverage_map_\u06f2_\u0645\u0627\u062a\u0631\u06cc\u0633_\u062c\u0631\u06cc\u0627\u0646_\u0647\u0627_\u0648_\u0642\u0627\u0628\u0644\u06cc\u062a_\u0647\u0627\u06cc_\u06a9\u0627\u0631\u0628\u0631\u0645\u062d\u0648\u0631_feature_flow_matrix", "relation": "contains", "confidence": "EXTRACTED", "source_file": "test-coverage-map.md", "source_location": "L39", "weight": 1.0}, {"source": "$graphify-root$_test_coverage_map_\u0646\u0642\u0634\u0647_\u062c\u0627\u0645\u0639_\u067e\u0648\u0634\u0634_\u062a\u0633\u062a_\u0647\u0627\u06cc_\u0633\u0631\u062a\u0627\u0633\u0631\u06cc_e2e_test_coverage_map_\u067e\u0631\u0648\u0698\u0647_canina", "target": "$graphify-root$_test_coverage_map_\u06f3_\u0628\u0631\u0646\u0627\u0645\u0647_\u062a\u06a9\u0645\u06cc\u0644_\u0648_\u062a\u0648\u0633\u0639\u0647_\u062a\u0633\u062a_\u0647\u0627\u06cc_\u0645\u0641\u0642\u0648\u062f_action_plan", "relation": "contains", "confidence": "EXTRACTED", "source_file": "test-coverage-map.md", "source_location": "L69", "weight": 1.0}], "input_tokens": 0, "output_tokens": 0}
@@ -1 +0,0 @@
{"nodes": [{"id": "$graphify-root$_backend_prisma_migrations_20260526160916_add_ui_texts_and_scientific_terms_migration_sql", "label": "migration.sql", "file_type": "code", "source_file": "backend/prisma/migrations/20260526160916_add_ui_texts_and_scientific_terms/migration.sql", "source_location": null}, {"id": "$graphify-root$_backend_prisma_migrations_20260526160916_add_ui_texts_and_scientific_terms_migration_ui_texts", "label": "\"ui_texts\"", "file_type": "code", "source_file": "backend/prisma/migrations/20260526160916_add_ui_texts_and_scientific_terms/migration.sql", "source_location": "L2"}, {"id": "$graphify-root$_backend_prisma_migrations_20260526160916_add_ui_texts_and_scientific_terms_migration_scientific_terms", "label": "\"scientific_terms\"", "file_type": "code", "source_file": "backend/prisma/migrations/20260526160916_add_ui_texts_and_scientific_terms/migration.sql", "source_location": "L10"}], "edges": [{"source": "$graphify-root$_backend_prisma_migrations_20260526160916_add_ui_texts_and_scientific_terms_migration_sql", "target": "$graphify-root$_backend_prisma_migrations_20260526160916_add_ui_texts_and_scientific_terms_migration_ui_texts", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/prisma/migrations/20260526160916_add_ui_texts_and_scientific_terms/migration.sql", "source_location": "L2", "weight": 1.0}, {"source": "$graphify-root$_backend_prisma_migrations_20260526160916_add_ui_texts_and_scientific_terms_migration_sql", "target": "$graphify-root$_backend_prisma_migrations_20260526160916_add_ui_texts_and_scientific_terms_migration_scientific_terms", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/prisma/migrations/20260526160916_add_ui_texts_and_scientific_terms/migration.sql", "source_location": "L10", "weight": 1.0}]}
@@ -1 +0,0 @@
{"nodes": [{"id": "$graphify-root$_backend_prisma_migrations_20260526145407_init_migration_sql", "label": "migration.sql", "file_type": "code", "source_file": "backend/prisma/migrations/20260526145407_init/migration.sql", "source_location": null}, {"id": "$graphify-root$_backend_prisma_migrations_20260526145407_init_migration_users", "label": "\"users\"", "file_type": "code", "source_file": "backend/prisma/migrations/20260526145407_init/migration.sql", "source_location": "L2"}, {"id": "$graphify-root$_backend_prisma_migrations_20260526145407_init_migration_user_addresses", "label": "\"user_addresses\"", "file_type": "code", "source_file": "backend/prisma/migrations/20260526145407_init/migration.sql", "source_location": "L18"}, {"id": "$graphify-root$_backend_prisma_migrations_20260526145407_init_migration_wallet_transactions", "label": "\"wallet_transactions\"", "file_type": "code", "source_file": "backend/prisma/migrations/20260526145407_init/migration.sql", "source_location": "L35"}, {"id": "$graphify-root$_backend_prisma_migrations_20260526145407_init_migration_products", "label": "\"products\"", "file_type": "code", "source_file": "backend/prisma/migrations/20260526145407_init/migration.sql", "source_location": "L49"}, {"id": "$graphify-root$_backend_prisma_migrations_20260526145407_init_migration_product_ingredients", "label": "\"product_ingredients\"", "file_type": "code", "source_file": "backend/prisma/migrations/20260526145407_init/migration.sql", "source_location": "L71"}, {"id": "$graphify-root$_backend_prisma_migrations_20260526145407_init_migration_product_symptoms", "label": "\"product_symptoms\"", "file_type": "code", "source_file": "backend/prisma/migrations/20260526145407_init/migration.sql", "source_location": "L79"}, {"id": "$graphify-root$_backend_prisma_migrations_20260526145407_init_migration_pets", "label": "\"pets\"", "file_type": "code", "source_file": "backend/prisma/migrations/20260526145407_init/migration.sql", "source_location": "L87"}, {"id": "$graphify-root$_backend_prisma_migrations_20260526145407_init_migration_pet_medical_conditions", "label": "\"pet_medical_conditions\"", "file_type": "code", "source_file": "backend/prisma/migrations/20260526145407_init/migration.sql", "source_location": "L103"}, {"id": "$graphify-root$_backend_prisma_migrations_20260526145407_init_migration_reminders", "label": "\"reminders\"", "file_type": "code", "source_file": "backend/prisma/migrations/20260526145407_init/migration.sql", "source_location": "L111"}, {"id": "$graphify-root$_backend_prisma_migrations_20260526145407_init_migration_reminder_completions", "label": "\"reminder_completions\"", "file_type": "code", "source_file": "backend/prisma/migrations/20260526145407_init/migration.sql", "source_location": "L124"}, {"id": "$graphify-root$_backend_prisma_migrations_20260526145407_init_migration_health_logs", "label": "\"health_logs\"", "file_type": "code", "source_file": "backend/prisma/migrations/20260526145407_init/migration.sql", "source_location": "L134"}, {"id": "$graphify-root$_backend_prisma_migrations_20260526145407_init_migration_coupons", "label": "\"coupons\"", "file_type": "code", "source_file": "backend/prisma/migrations/20260526145407_init/migration.sql", "source_location": "L148"}, {"id": "$graphify-root$_backend_prisma_migrations_20260526145407_init_migration_orders", "label": "\"orders\"", "file_type": "code", "source_file": "backend/prisma/migrations/20260526145407_init/migration.sql", "source_location": "L159"}, {"id": "$graphify-root$_backend_prisma_migrations_20260526145407_init_migration_order_items", "label": "\"order_items\"", "file_type": "code", "source_file": "backend/prisma/migrations/20260526145407_init/migration.sql", "source_location": "L173"}], "edges": [{"source": "$graphify-root$_backend_prisma_migrations_20260526145407_init_migration_sql", "target": "$graphify-root$_backend_prisma_migrations_20260526145407_init_migration_users", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/prisma/migrations/20260526145407_init/migration.sql", "source_location": "L2", "weight": 1.0}, {"source": "$graphify-root$_backend_prisma_migrations_20260526145407_init_migration_sql", "target": "$graphify-root$_backend_prisma_migrations_20260526145407_init_migration_user_addresses", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/prisma/migrations/20260526145407_init/migration.sql", "source_location": "L18", "weight": 1.0}, {"source": "$graphify-root$_backend_prisma_migrations_20260526145407_init_migration_sql", "target": "$graphify-root$_backend_prisma_migrations_20260526145407_init_migration_wallet_transactions", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/prisma/migrations/20260526145407_init/migration.sql", "source_location": "L35", "weight": 1.0}, {"source": "$graphify-root$_backend_prisma_migrations_20260526145407_init_migration_sql", "target": "$graphify-root$_backend_prisma_migrations_2026052Line truncated
+1 -1
View File
@@ -1 +1 @@
{".ai_agency/AGENCY.md":{"size":8757,"mtime_ns":1785148021979607300,"indexed_at_ns":1787564288771920700,"word_count":1161,"hashes":{".ai_agency/agency.md":"88c7c13583a91fc7e41ce055fede9dce20f181e8d264557808989965e83a9030"}},".ai_agency/agents/00_intake.md":{"size":3819,"mtime_ns":1785148021984319000,"indexed_at_ns":1787564288773935500,"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":1787564288777552100,"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":1787564288781978300,"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":1787564288783979700,"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":1787564288786081200,"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":1787564288789077900,"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":1787564288792076800,"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":1787564288794079600,"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":1787564288796078400,"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":1787564288797075100,"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":1787564288799076400,"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":1787564288800075300,"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":1787564288802078700,"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":1787564275303455000,"word_count":34},".ai_agency/memory/backlog.json":{"size":10711,"mtime_ns":1785330750958890900,"indexed_at_ns":1787564288680806500,"word_count":981,"hashes":{".ai_agency/memory/backlog.json":"6bf3150a1877d03d03b368df21b84071381b1bb8cd03e3721fa9f8e6c38355be"}},".ai_agency/memory/scratchpad.md":{"size":1879,"mtime_ns":1785148022065114400,"indexed_at_ns":1787564288803074500,"word_count":249,"hashes":{".ai_agency/memory/scratchpad.md":"9d0f687cf8e95c6335f1efb070da8029878417c28117e3b89aa8536ad70a5b95"}},".ai_agency/memory/state.json":{"size":3654,"mtime_ns":1785330750963913800,"indexed_at_ns":1787564288714437900,"word_count":254,"hashes":{".ai_agency/memory/state.json":"1204676f8f295d89733888bb87936061b7a700df0cc936fbf08fd5269b534e8d"}},".ai_agency/orchestrate.py":{"size":6800,"mtime_ns":1785148022072662500,"indexed_at_ns":1787564288715447900,"word_count":644,"hashes":{".ai_agency/orchestrate.py":"90ec787fdd4c71f5203c56b6899aadcc26e6e0bad0cc576d2f982aa42eed42e1"}},".ai_agency/specs/api_contract.md":{"size":1515,"mtime_ns":1785148022077664900,"indexed_at_ns":1787564288804075000,"word_count":139,"hashes":{".ai_agency/specs/api_contract.md":"ea0911b6a5ad6a908ab707f7553f5f24712c1e198fd79255fa85e3249150e8b4"}},".ai_agency/specs/architecture_spec.md":{"size":790,"mtime_ns":1785148022082260900,"indexed_at_ns":1787564288807086100,"word_count":99,"hashes":{".ai_agency/specs/architecture_spec.md"Line 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
+9
View File
@@ -63,12 +63,21 @@
</div>
<div id="legend"></div>
</div>
<<<<<<< HEAD
<div id="stats">4107 nodes &middot; 7379 edges &middot; 301 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_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": 51}, {"cid": 2, "color": "#E15759", "label": "SmsService", "count": 98}, {"cid": 3, "color": "#76B7B2", "label": "ProductService", "count": 54}, {"cid": 4, "color": "#59A14F", "label": "SafeImage.tsx", "count": 42}, {"cid": 5, "color": "#EDC948", "label": "CmsController", "count": 53}, {"cid": 6, "color": "#B07AA1", "label": "tickets.controller.ts", "count": 51}, {"cid": 7, "color": "#FF9DA7", "label": "pets/pets.controller.ts", "count": 29}, {"cid": 8, "color": "#9C755F", "label": "admin.module.ts", "count": 35}, {"cid": 9, "color": "#BAB0AC", "label": "devDependencies", "count": 25}, {"cid": 10, "color": "#4E79A7", "label": "ReviewsController", "count": 19}, {"cid": 11, "color": "#F28E2B", "label": "MediaSelector.tsx", "count": 54}, {"cid": 12, "color": "#E15759", "label": "index.ts", "count": 39}, {"cid": 13, "color": "#76B7B2", "label": "app-audit-verification.e2e-spec.js", "count": 47}, {"cid": 14, "color": "#59A14F", "label": "useSettingsStore", "count": 35}, {"cid": 15, "color": "#EDC948", "label": "src/services/api.ts", "count": 49}, {"cid": 16, "color": "#B07AA1", "label": "DoctorQueryDto", "count": 39}, {"cid": 17, "color": "#FF9DA7", "label": "UserDashboard.tsx", "count": 44}, {"cid": 18, "color": "#9C755F", "label": "JwtAuthGuard", "count": 32}, {"cid": 19, "color": "#BAB0AC", "label": "ProductsService", "count": 38}, {"cid": 20, "color": "#4E79A7", "label": "CreateVideoDto", "count": 48}, {"cid": 21, "color": "#F28E2B", "label": "Button.tsx", "count": 29}, {"cid": 22, "color": "#E15759", "label": "lib/services/api.ts", "count": 42}, {"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": 41}, {"cid": 33, "color": "#76B7B2", "label": "WholesaleApplyDto", "count": 31}, {"cid": 34, "color": "#59A14F", "label": "B2BService", "count": 30}, {"cid": 35, "color": "#EDC948", "label": "PetProfile.tsx", "count": 29}, {"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": 25}, {"cid": 41, "color": "#F28E2B", "label": "What You Must Do When Invoked", "count": 27}, {"cid": 42, "color": "#E15759", "label": "SslController", "count": 26}, {"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": "HomeController", "count": 17}, {"cid": 47, "color": "#FF9DA7", "label": "IngredientsService", "count": 26}, {"cid": 48, "color": "#9C755F", "label": "useCartStore", "count": 31}, {"cid": 49, "color": "#BAB0AC", "label": "devDependencies", "count": 19}, {"cid": 50, "color": "#4E79A7", "label": "devDependencies", "count": 15}, {"cid": 51, "color": "#F28E2B", "label": "BlogsController", "count": 32}, {"cid": 52, "color": "#E15759", "label": "PrescriptionsService", "count": 24}, {"cid": 53, "color": "#76B7B2", "label": "SmartAdvisorService", "count": 24}, {"cid": 54, "color": "#59A14F", "label": "UsersService", "count": 69}, {"cid": 55, "color": "#EDC948", "label": "UITexts.tsx", "count": 26}, {"cid": 56, "color": "#B07AA1", "label": "Orders.tsx", "count": 28}, {"cid": 57, "color": "#FF9DA7", "label": "Role &amp; Core Objective", "count": 23}, {"cid": 58, "color": "#9C755F", "label": "ContactService", "count": 24}, {"cid": 59, "color": "#BAB0AC", "label": "compilerOptions", "count": 31}, {"cid": 60, "color": "#4E79A7", "label": "PaymentService", "count": 17}, {"cid": 61, "color": "#F28E2B", "label": "AdminTransactionFilterDto", "count": 9}, {"cid": 62, "color": "#E15759", "label": "CreateReviewDto", "count": 13}, {"cid": 63, "color": "#76B7B2", "label": "dependencies", "count": 43}, {"cid": 64, "color": "#59A14F", "label": "compilerOptions", "count": 21}, {"cid": 65, "color": "#EDC948", "label": "Media.tsx", "count": 13}, {"cid": 66, "color": "#B07AA1", "label": "WikiControLine truncated
=======
<div id="stats">4041 nodes &middot; 7301 edges &middot; 320 communities</div>
</div>
<script>
const RAW_NODES = [{"id": "backend_src_payment_payment_controller_paymentcontroller", "label": "PaymentController", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 20.8, "font": {"size": 12, "color": "#ffffff"}, "title": "PaymentController", "community": 0, "community_name": "Roles", "source_file": "backend/src/payment/payment.controller.ts", "file_type": "code", "degree": 38}, {"id": "backend_src_b2b_b2b_module_b2bmodule", "label": "B2BModule", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 10.8, "font": {"size": 0, "color": "#ffffff"}, "title": "B2BModule", "community": 1, "community_name": "app.module.ts", "source_file": "backend/src/b2b/b2b.module.ts", "file_type": "code", "degree": 3}, {"id": "backend_src_banners_banners_module_bannersmodule", "label": "BannersModule", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 10.8, "font": {"size": 0, "color": "#ffffff"}, "title": "BannersModule", "community": 1, "community_name": "app.module.ts", "source_file": "backend/src/banners/banners.module.ts", "file_type": "code", "degree": 3}, {"id": "backend_src_cms_cms_module_cmsmodule", "label": "CmsModule", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 10.8, "font": {"size": 0, "color": "#ffffff"}, "title": "CmsModule", "community": 1, "community_name": "app.module.ts", "source_file": "backend/src/cms/cms.module.ts", "file_type": "code", "degree": 3}, {"id": "backend_src_common_sms_module_smsmodule", "label": "SmsModule", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 11.7, "font": {"size": 0, "color": "#ffffff"}, "title": "SmsModule", "community": 1, "community_name": "app.module.ts", "source_file": "backend/src/common/sms.module.ts", "file_type": "code", "degree": 6}, {"id": "backend_src_contact_contact_module_contactmodule", "label": "ContactModule", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 10.8, "font": {"size": 0, "color": "#ffffff"}, "title": "ContactModule", "community": 1, "community_name": "app.module.ts", "source_file": "backend/src/contact/contact.module.ts", "file_type": "code", "degree": 3}, {"id": "backend_src_doctors_doctors_module_doctorsmodule", "label": "DoctorsModule", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 10.8, "font": {"size": 0, "color": "#ffffff"}, "title": "DoctorsModule", "community": 1, "community_name": "app.module.ts", "source_file": "backend/src/doctors/doctors.module.ts", "file_type": "code", "degree": 3}, {"id": "backend_src_ingredients_ingredients_module_ingredientsmodule", "label": "IngredientsModule", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 10.8, "font": {"size": 0, "color": "#ffffff"}, "title": "IngredientsModule", "community": 1, "community_name": "app.module.ts", "source_file": "backend/src/ingredients/ingredients.module.ts", "file_type": "code", "degree": 3}, {"id": "backend_src_payment_payment_module_paymentmodule", "label": "PaymentModule", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 10.8, "font": {"size": 0, "color": "#ffffff"}, "title": "PaymentModule", "community": 1, "community_name": "app.module.ts", "source_file": "backend/src/payment/payment.module.ts", "file_type": "code", "degree": 3}, {"id": "backend_src_prescriptions_prescriptions_module_prescriptionsmodule", "label": "PrescriptionsModule", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 10.8, "font": {"size": 0, "color": "#ffffff"}, "title": "PrescriptionsModule", "community": 1, "community_name": "app.module.ts", "source_file": "backend/src/prescriptions/prescriptions.module.ts", "file_type": "code", "degree": 3}, {"id": "backend_src_prisma_prisma_module_prismamodule", "label": "PrismaModule", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 15.4, "font": {"size": 12, "color": "#ffffff"}, "title": "PrismaModule", "community": 1, "community_name": "app.module.ts", "source_file": "backend/src/prisma/prisma.module.ts", "file_type": "code", "degree": 19}, {"id": "backend_src_reviews_reviews_module_reviewsmodule", "label": "ReviewsModule", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 10.8, "font": {"size": 0, "color": "#ffffff"}, "title": "ReviewsModule", "communitLine truncated
const RAW_EDGES = [{"from": "backend_src_payment_payment_controller_paymentcontroller", "to": "backend_src_payment_payment_controller_ts_apitags", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_src_payment_payment_controller_paymentcontroller", "to": "backend_src_payment_payment_controller_ts_controller", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_src_payment_payment_controller_paymentcontroller", "to": "backend_src_payment_payment_module", "label": "imports", "title": "imports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_src_payment_payment_controller_paymentcontroller", "to": "backend_src_payment_payment_controller", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_src_payment_payment_controller_paymentcontroller", "to": "backend_src_payment_payment_controller_paymentcontroller_handlezibalcallback", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_src_payment_payment_controller_paymentcontroller", "to": "backend_src_payment_payment_controller_paymentcontroller_verifypaymentdirect", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_src_payment_payment_controller_paymentcontroller", "to": "backend_src_payment_payment_controller_paymentcontroller_handleziballazycallback", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_src_payment_payment_controller_paymentcontroller", "to": "backend_src_payment_payment_controller_paymentcontroller_gettransactionstatus", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_src_payment_payment_controller_paymentcontroller", "to": "backend_src_payment_payment_controller_paymentcontroller_getadminwallets", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_src_payment_payment_controller_paymentcontroller", "to": "backend_src_payment_payment_controller_paymentcontroller_createrefund", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_src_payment_payment_controller_paymentcontroller", "to": "backend_src_payment_payment_controller_paymentcontroller_inquirerefund", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_src_payment_payment_controller_paymentcontroller", "to": "backend_src_payment_payment_controller_paymentcontroller_getrefundlist", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_src_payment_payment_controller_paymentcontroller", "to": "backend_src_payment_payment_controller_paymentcontroller_getgatewayreport", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_src_payment_payment_controller_paymentcontroller", "to": "backend_src_payment_payment_controller_paymentcontroller_getcheckoutreport", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_src_payment_payment_controller_paymentcontroller", "to": "backend_src_payment_payment_controller_paymentcontroller_getcheckoutqueuereport", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_src_payment_payment_controller_paymentcontroller", "to": "backend_src_payment_payment_controller_paymentcontroller_getsubmerchants", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_src_payment_payment_controller_paymentcontroller", "to": "backend_src_payment_payment_controller_paymentcontroller_createsubmerchant", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_src_payment_payment_controller_paymentcontroller", "to": "backend_src_payment_payment_controller_paymentcontroller_editsubmerchant", "label": "method", "title": "method [EXTRACTED]", "Line truncated
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Roles", "count": 41}, {"cid": 1, "color": "#F28E2B", "label": "app.module.ts", "count": 51}, {"cid": 2, "color": "#E15759", "label": "SmsService", "count": 102}, {"cid": 3, "color": "#76B7B2", "label": "ProductService", "count": 61}, {"cid": 4, "color": "#59A14F", "label": "utils.ts", "count": 38}, {"cid": 5, "color": "#EDC948", "label": "CmsController", "count": 53}, {"cid": 6, "color": "#B07AA1", "label": "tickets.controller.ts", "count": 48}, {"cid": 7, "color": "#FF9DA7", "label": "Button.tsx", "count": 29}, {"cid": 8, "color": "#9C755F", "label": "ReportsController", "count": 16}, {"cid": 9, "color": "#BAB0AC", "label": "devDependencies", "count": 9}, {"cid": 10, "color": "#4E79A7", "label": "ReviewsService", "count": 28}, {"cid": 11, "color": "#F28E2B", "label": "MediaSelector.tsx", "count": 54}, {"cid": 12, "color": "#E15759", "label": "PetProfile.tsx", "count": 42}, {"cid": 13, "color": "#76B7B2", "label": "app-audit-verification.e2e-spec.js", "count": 47}, {"cid": 14, "color": "#59A14F", "label": "UserDashboard.tsx", "count": 26}, {"cid": 15, "color": "#EDC948", "label": "src/services/api.ts", "count": 49}, {"cid": 16, "color": "#B07AA1", "label": "DoctorQueryDto", "count": 39}, {"cid": 17, "color": "#FF9DA7", "label": "schema.ts", "count": 25}, {"cid": 18, "color": "#9C755F", "label": "JwtAuthGuard", "count": 33}, {"cid": 19, "color": "#BAB0AC", "label": "ProductsService", "count": 37}, {"cid": 20, "color": "#4E79A7", "label": "CreateVideoDto", "count": 47}, {"cid": 21, "color": "#F28E2B", "label": "ProductPage.tsx", "count": 22}, {"cid": 22, "color": "#E15759", "label": "lib/services/api.ts", "count": 53}, {"cid": 23, "color": "#76B7B2", "label": "MenuService", "count": 36}, {"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": 41}, {"cid": 33, "color": "#76B7B2", "label": "WholesaleService", "count": 24}, {"cid": 34, "color": "#59A14F", "label": "B2BService", "count": 30}, {"cid": 35, "color": "#EDC948", "label": "AuthController", "count": 21}, {"cid": 36, "color": "#B07AA1", "label": "FaqService", "count": 31}, {"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": 28}, {"cid": 41, "color": "#F28E2B", "label": "What You Must Do When Invoked", "count": 27}, {"cid": 42, "color": "#E15759", "label": "SslController", "count": 26}, {"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": "HomeController", "count": 17}, {"cid": 47, "color": "#FF9DA7", "label": "IngredientsService", "count": 26}, {"cid": 48, "color": "#9C755F", "label": "auth.module.ts", "count": 16}, {"cid": 49, "color": "#BAB0AC", "label": "devDependencies", "count": 19}, {"cid": 50, "color": "#4E79A7", "label": "devDependencies", "count": 15}, {"cid": 51, "color": "#F28E2B", "label": "BlogsController", "count": 52}, {"cid": 52, "color": "#E15759", "label": "PrescriptionsService", "count": 23}, {"cid": 53, "color": "#76B7B2", "label": "SmartAdvisorService", "count": 24}, {"cid": 54, "color": "#59A14F", "label": "UsersController", "count": 25}, {"cid": 55, "color": "#EDC948", "label": "UITexts.tsx", "count": 26}, {"cid": 56, "color": "#B07AA1", "label": "Orders.tsx", "count": 28}, {"cid": 57, "color": "#FF9DA7", "label": "Role &amp; Core Objective", "count": 23}, {"cid": 58, "color": "#9C755F", "label": "ContactService", "count": 24}, {"cid": 59, "color": "#BAB0AC", "label": "compilerOptions", "count": 31}, {"cid": 60, "color": "#4E79A7", "label": "users.controller.ts", "count": 16}, {"cid": 61, "color": "#F28E2B", "label": "payment.service.ts", "count": 11}, {"cid": 62, "color": "#E15759", "label": "ProductDto", "count": 15}, {"cid": 63, "color": "#76B7B2", "label": "dependencies", "count": 23}, {"cid": 64, "color": "#59A14F", "label": "compilerOptions", "count": 21}, {"cid": 65, "color": "#EDC948", "label": "app.e2e-spec.js", "count": 4}, {"cid": 66, "color": "#B07AA1", "label": "ApiOperation", "count"Line truncated
>>>>>>> cf9ae234b9938be85c833ab98741a4590f9cfe13
// HTML-escape helper — prevents XSS when injecting graph data into innerHTML
function esc(s) {
+94675 -93564
View File
File diff suppressed because it is too large. Load diff
+3523 -40
View File
File diff suppressed because it is too large. Load diff