feat(payment): add Idempotency guard, Amount Match check, auto Inquiry reconciliation and comprehensive Admin Transaction Logs management
Deploy Canina / deploy (push) Successful in 2m16s
Deploy Canina / deploy (push) Successful in 2m16s
This commit is contained in:
1 parent
8de1351349
commit
5ace474d71
17 files changed
+12754
-9884
No files matched your search
@@ -0,0 +1,69 @@
|
||||
import { ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { IsOptional, IsString, IsNumber, IsIn } from 'class-validator';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
export class AdminTransactionFilterDto {
|
||||
@ApiPropertyOptional({ description: 'شماره صفحه', default: 1 })
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
@IsNumber()
|
||||
page?: number = 1;
|
||||
|
||||
@ApiPropertyOptional({ description: 'تعداد در هر صفحه', default: 15 })
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
@IsNumber()
|
||||
limit?: number = 15;
|
||||
|
||||
@ApiPropertyOptional({ description: 'جستجو (نام، موبایل، کد پیگیری، شماره مرجع، کد رهگیری)' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
search?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'فیلتر وضعیت (VERIFIED, PENDING, FAILED)' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
status?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'فیلتر درگاه (zibal, wallet, card)' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
gateway?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'فیلتر نوع تراکنش (ORDER, WALLET_TOPUP)' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'از تاریخ (ISO format)' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
startDate?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'تا تاریخ (ISO format)' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
endDate?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'حداقل مبلغ (تومان)' })
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
@IsNumber()
|
||||
minAmount?: number;
|
||||
|
||||
@ApiPropertyOptional({ description: 'حداکثر مبلغ (تومان)' })
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
@IsNumber()
|
||||
maxAmount?: number;
|
||||
|
||||
@ApiPropertyOptional({ description: 'فیلد مرتبسازی', default: 'createdAt' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
sortBy?: string = 'createdAt';
|
||||
|
||||
@ApiPropertyOptional({ description: 'جهت مرتبسازی (asc, desc)', default: 'desc' })
|
||||
@IsOptional()
|
||||
@IsIn(['asc', 'desc'])
|
||||
sortOrder?: 'asc' | 'desc' = 'desc';
|
||||
}
|
||||
@@ -18,7 +18,10 @@ import {
|
||||
InitiateWalletTopupDto,
|
||||
} from './dto/initiate-payment.dto';
|
||||
import { ZibalCallbackQueryDto } from './dto/verify-payment.dto';
|
||||
import { AdminTransactionFilterDto } from './dto/admin-transaction-filter.dto';
|
||||
import { JwtAuthGuard } from '../auth/jwt-auth.guard';
|
||||
import { RolesGuard } from '../common/guards/roles.guard';
|
||||
import { Roles } from '../common/decorators/roles.decorator';
|
||||
import {
|
||||
ApiTags,
|
||||
ApiOperation,
|
||||
@@ -27,7 +30,7 @@ import {
|
||||
ApiBadRequestResponse,
|
||||
} from '@nestjs/swagger';
|
||||
|
||||
@ApiTags('Payment - درگاه پرداخت اینترنتی زیبال (Zibal IPG)')
|
||||
@ApiTags('Payment - درگاه پرداخت اینترنتی زیبال و مدیریت تراکنشها')
|
||||
@Controller('payment')
|
||||
export class PaymentController {
|
||||
constructor(
|
||||
@@ -71,14 +74,6 @@ export class PaymentController {
|
||||
@ApiOperation({ summary: 'شارژ آنلاین کیف پول از طریق درگاه زیبال' })
|
||||
@ApiOkResponse({
|
||||
description: 'لینک هدایت به درگاه پرداخت برای شارژ کیف پول',
|
||||
schema: {
|
||||
example: {
|
||||
success: true,
|
||||
trackId: '15966442233311',
|
||||
paymentUrl: 'https://gateway.zibal.ir/start/15966442233311',
|
||||
amount: 500000,
|
||||
},
|
||||
},
|
||||
})
|
||||
async initiateWalletTopup(
|
||||
@Req() req: { user: { id: string } },
|
||||
@@ -173,4 +168,42 @@ export class PaymentController {
|
||||
async getTransactionStatus(@Param('trackId') trackId: string) {
|
||||
return this.paymentService.getTransaction(trackId);
|
||||
}
|
||||
|
||||
// --- ADMIN ENDPOINTS FOR TRANSACTION LOGS & DIAGNOSTICS ---
|
||||
|
||||
@UseGuards(JwtAuthGuard, RolesGuard)
|
||||
@Roles('Admin')
|
||||
@ApiBearerAuth()
|
||||
@Get('admin/transactions')
|
||||
@ApiOperation({ summary: 'مدیریت و مشاهده تمامی لاگها و تراکنشهای پرداخت' })
|
||||
async getAdminTransactions(@Query() query: AdminTransactionFilterDto) {
|
||||
return this.paymentService.getAdminTransactions(query);
|
||||
}
|
||||
|
||||
@UseGuards(JwtAuthGuard, RolesGuard)
|
||||
@Roles('Admin')
|
||||
@ApiBearerAuth()
|
||||
@Get('admin/stats')
|
||||
@ApiOperation({ summary: 'آمار کلی تراکنشها و حجم مبالغ پرداختی' })
|
||||
async getAdminStats() {
|
||||
return this.paymentService.getAdminTransactionStats();
|
||||
}
|
||||
|
||||
@UseGuards(JwtAuthGuard, RolesGuard)
|
||||
@Roles('Admin')
|
||||
@ApiBearerAuth()
|
||||
@Post('admin/reconcile')
|
||||
@ApiOperation({ summary: 'اجرای فرایند انطباق و استعلام خودکار تراکنشهای بلاتکلیف' })
|
||||
async reconcilePending() {
|
||||
return this.paymentService.reconcilePendingTransactions();
|
||||
}
|
||||
|
||||
@UseGuards(JwtAuthGuard, RolesGuard)
|
||||
@Roles('Admin')
|
||||
@ApiBearerAuth()
|
||||
@Get('admin/live-inquiry/:id')
|
||||
@ApiOperation({ summary: 'استعلام زنده وضعیت تراکنش از سرور زیبال' })
|
||||
async liveInquiry(@Param('id') id: string) {
|
||||
return this.paymentService.adminLiveInquiry(id);
|
||||
}
|
||||
}
|
||||
@@ -8,6 +8,7 @@ import { PrismaService } from '../prisma/prisma.service';
|
||||
import { ZibalService } from './zibal.service';
|
||||
import { SmsService } from '../common/services/sms.service';
|
||||
import { Prisma } from '@prisma/client';
|
||||
import { AdminTransactionFilterDto } from './dto/admin-transaction-filter.dto';
|
||||
|
||||
@Injectable()
|
||||
export class PaymentService {
|
||||
@@ -36,10 +37,8 @@ export class PaymentService {
|
||||
throw new NotFoundException('سفارش مورد نظر یافت نشد');
|
||||
}
|
||||
|
||||
if (order.status !== 'processing' && order.status !== 'pending_payment') {
|
||||
if (['shipped', 'delivered'].includes(order.status)) {
|
||||
throw new BadRequestException('این سفارش قبلاً تکمیل و ارسال شده است');
|
||||
}
|
||||
if (['shipped', 'delivered'].includes(order.status)) {
|
||||
throw new BadRequestException('این سفارش قبلاً تکمیل و ارسال شده است');
|
||||
}
|
||||
|
||||
const amountTomans = Number(order.totalAmount);
|
||||
@@ -52,7 +51,6 @@ export class PaymentService {
|
||||
}
|
||||
|
||||
const frontendUrl = await this.zibalService.getFrontendUrl();
|
||||
// Default callback points to frontend verify page (or backend proxy)
|
||||
const callbackUrl =
|
||||
customCallbackUrl || `${frontendUrl}/payment/verify?orderId=${order.id}`;
|
||||
|
||||
@@ -201,7 +199,7 @@ export class PaymentService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 3. Verify & Process Callback from Zibal
|
||||
* 3. Verify & Process Callback from Zibal (With Idempotency & Amount Match Check)
|
||||
*/
|
||||
async verifyAndProcess(
|
||||
trackId: string,
|
||||
@@ -217,37 +215,42 @@ export class PaymentService {
|
||||
where: { trackId },
|
||||
include: {
|
||||
order: {
|
||||
include: { user: true, orderItems: { include: { product: true } } },
|
||||
include: {
|
||||
user: true,
|
||||
orderItems: { include: { product: true } },
|
||||
},
|
||||
},
|
||||
user: true,
|
||||
},
|
||||
});
|
||||
|
||||
if (!transaction) {
|
||||
// If transaction not found by trackId, check if orderId exists
|
||||
if (orderIdParam) {
|
||||
transaction = await this.prisma.paymentTransaction.findFirst({
|
||||
where: { orderId: orderIdParam },
|
||||
orderBy: { createdAt: 'desc' },
|
||||
include: {
|
||||
order: {
|
||||
include: {
|
||||
user: true,
|
||||
orderItems: { include: { product: true } },
|
||||
},
|
||||
if (!transaction && orderIdParam) {
|
||||
transaction = await this.prisma.paymentTransaction.findFirst({
|
||||
where: { orderId: orderIdParam },
|
||||
orderBy: { createdAt: 'desc' },
|
||||
include: {
|
||||
order: {
|
||||
include: {
|
||||
user: true,
|
||||
orderItems: { include: { product: true } },
|
||||
},
|
||||
user: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
user: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
if (!transaction) {
|
||||
throw new NotFoundException('تراکنش پرداخت در سیستم یافت نشد');
|
||||
}
|
||||
|
||||
// If transaction is already verified, return successful details immediately
|
||||
// --- IDEMPOTENCY CHECK ---
|
||||
// If transaction is already marked as VERIFIED, return stored confirmation immediately
|
||||
// without executing any duplicate side-effects (wallet increment, charity, status change, SMS).
|
||||
if (transaction.status === 'VERIFIED') {
|
||||
this.logger.log(
|
||||
`Idempotency Guard: Transaction ${transaction.id} (trackId=${trackId}) is already VERIFIED. Skipping duplicate execution.`,
|
||||
);
|
||||
return {
|
||||
success: true,
|
||||
alreadyVerified: true,
|
||||
@@ -257,6 +260,7 @@ export class PaymentService {
|
||||
cardNumber: transaction.cardNumber,
|
||||
amount: Number(transaction.amount),
|
||||
orderId: transaction.orderId,
|
||||
type: transaction.type,
|
||||
message: 'تراکنش قبلاً با موفقیت تایید و پردازش شده است',
|
||||
};
|
||||
}
|
||||
@@ -310,6 +314,39 @@ export class PaymentService {
|
||||
};
|
||||
}
|
||||
|
||||
// --- AMOUNT MATCH VERIFICATION ---
|
||||
const expectedAmountRials = Number(
|
||||
transaction.amountRials ||
|
||||
Math.round(Number(transaction.amount) * 10),
|
||||
);
|
||||
|
||||
if (
|
||||
verifyRes.amount &&
|
||||
Number(verifyRes.amount) > 0 &&
|
||||
Number(verifyRes.amount) !== expectedAmountRials
|
||||
) {
|
||||
this.logger.error(
|
||||
`Security Alert: Amount mismatch on trackId=${trackId}! Zibal reported ${verifyRes.amount} Rials, but expected ${expectedAmountRials} Rials in DB.`,
|
||||
);
|
||||
|
||||
await this.prisma.paymentTransaction.update({
|
||||
where: { id: transaction.id },
|
||||
data: {
|
||||
status: 'FAILED',
|
||||
resultCode: verifyRes.result,
|
||||
message: `مغایرت مالی: مبلغ تایید شده زیبال (${verifyRes.amount} ریال) با مبلغ سیستم (${expectedAmountRials} ریال) مطابقت ندارد.`,
|
||||
},
|
||||
});
|
||||
|
||||
return {
|
||||
success: false,
|
||||
status: 'FAILED',
|
||||
trackId,
|
||||
message: 'خطای امنیتی: مغایرت در مبلغ پرداخت شده با سفارش.',
|
||||
orderId: transaction.orderId,
|
||||
};
|
||||
}
|
||||
|
||||
// SUCCESSFUL PAYMENT!
|
||||
const refNumber = verifyRes.refNumber
|
||||
? String(verifyRes.refNumber)
|
||||
@@ -319,10 +356,11 @@ export class PaymentService {
|
||||
? new Date(verifyRes.paidAt)
|
||||
: new Date();
|
||||
|
||||
// Execute atomic status update with concurrency guard
|
||||
await this.prisma.$transaction(async (tx) => {
|
||||
// 1. Mark transaction as VERIFIED
|
||||
await tx.paymentTransaction.update({
|
||||
where: { id: transaction.id },
|
||||
// Optimistic lock: only update if still PENDING (prevents race condition)
|
||||
const updatedCount = await tx.paymentTransaction.updateMany({
|
||||
where: { id: transaction.id, status: 'PENDING' },
|
||||
data: {
|
||||
status: 'VERIFIED',
|
||||
resultCode: verifyRes.result,
|
||||
@@ -333,6 +371,14 @@ export class PaymentService {
|
||||
},
|
||||
});
|
||||
|
||||
// If another concurrent thread verified it first, exit safely
|
||||
if (updatedCount.count === 0) {
|
||||
this.logger.warn(
|
||||
`Concurrent execution detected for transaction ${transaction.id}. Handled safely.`,
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
// 2. If it's an Order payment
|
||||
if (transaction.type === 'ORDER' && transaction.orderId) {
|
||||
await tx.order.update({
|
||||
@@ -425,7 +471,77 @@ export class PaymentService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 4. Get Payment Transaction Details
|
||||
* 4. Auto-Reconciliation / Cron Job for Pending Transactions (استعلام تراکنشهای بلاتکلیف)
|
||||
*/
|
||||
async reconcilePendingTransactions() {
|
||||
this.logger.log('Starting pending transactions reconciliation job...');
|
||||
|
||||
// Find transactions that are PENDING and created between 5 minutes and 24 hours ago
|
||||
const fiveMinutesAgo = new Date(Date.now() - 5 * 60 * 1000);
|
||||
const oneDayAgo = new Date(Date.now() - 24 * 60 * 60 * 1000);
|
||||
|
||||
const pendingTransactions = await this.prisma.paymentTransaction.findMany({
|
||||
where: {
|
||||
status: 'PENDING',
|
||||
trackId: { not: null },
|
||||
createdAt: {
|
||||
gte: oneDayAgo,
|
||||
lte: fiveMinutesAgo,
|
||||
},
|
||||
},
|
||||
include: { order: true, user: true },
|
||||
take: 50,
|
||||
});
|
||||
|
||||
const results = {
|
||||
total: pendingTransactions.length,
|
||||
verified: 0,
|
||||
failed: 0,
|
||||
remainedPending: 0,
|
||||
errors: 0,
|
||||
};
|
||||
|
||||
for (const tx of pendingTransactions) {
|
||||
if (!tx.trackId) continue;
|
||||
|
||||
try {
|
||||
const inquiry = await this.zibalService.inquiryPayment(tx.trackId);
|
||||
this.logger.log(
|
||||
`Inquiry for trackId=${tx.trackId}: status=${inquiry.status}, result=${inquiry.result}`,
|
||||
);
|
||||
|
||||
// Status 1 (paid & verified) or 2 (paid, unverified)
|
||||
if (inquiry.status === 1 || inquiry.status === 2 || inquiry.result === 100) {
|
||||
await this.verifyAndProcess(tx.trackId, '1', String(inquiry.status), tx.orderId || undefined);
|
||||
results.verified++;
|
||||
} else if (inquiry.status === 3 || inquiry.status === -2 || inquiry.result === 202) {
|
||||
// Cancelled or failed
|
||||
const msg = this.zibalService.getStatusMessage(inquiry.status || 3);
|
||||
await this.prisma.paymentTransaction.update({
|
||||
where: { id: tx.id },
|
||||
data: {
|
||||
status: 'FAILED',
|
||||
resultCode: inquiry.result,
|
||||
message: msg,
|
||||
},
|
||||
});
|
||||
results.failed++;
|
||||
} else {
|
||||
results.remainedPending++;
|
||||
}
|
||||
} catch (err: unknown) {
|
||||
results.errors++;
|
||||
const msg = err instanceof Error ? err.message : String(err);
|
||||
this.logger.warn(`Failed inquiry for trackId=${tx.trackId}: ${msg}`);
|
||||
}
|
||||
}
|
||||
|
||||
this.logger.log(`Reconciliation finished: ${JSON.stringify(results)}`);
|
||||
return results;
|
||||
}
|
||||
|
||||
/**
|
||||
* 5. Get Payment Transaction Details by TrackID
|
||||
*/
|
||||
async getTransaction(trackId: string) {
|
||||
const transaction = await this.prisma.paymentTransaction.findUnique({
|
||||
@@ -438,6 +554,7 @@ export class PaymentService {
|
||||
},
|
||||
},
|
||||
},
|
||||
user: true,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -458,6 +575,215 @@ export class PaymentService {
|
||||
paidAt: transaction.paidAt,
|
||||
createdAt: transaction.createdAt,
|
||||
order: transaction.order,
|
||||
user: transaction.user ? {
|
||||
id: transaction.user.id,
|
||||
firstName: transaction.user.firstName,
|
||||
lastName: transaction.user.lastName,
|
||||
mobile: transaction.user.mobile,
|
||||
} : null,
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* 6. Admin: Get List of Transactions with Advanced Search & Filter
|
||||
*/
|
||||
async getAdminTransactions(filters: AdminTransactionFilterDto) {
|
||||
const {
|
||||
page = 1,
|
||||
limit = 15,
|
||||
search,
|
||||
status,
|
||||
gateway,
|
||||
type,
|
||||
startDate,
|
||||
endDate,
|
||||
minAmount,
|
||||
maxAmount,
|
||||
sortBy = 'createdAt',
|
||||
sortOrder = 'desc',
|
||||
} = filters;
|
||||
|
||||
const skip = (page - 1) * limit;
|
||||
const where: Prisma.PaymentTransactionWhereInput = {};
|
||||
|
||||
if (status) {
|
||||
where.status = status;
|
||||
}
|
||||
|
||||
if (gateway) {
|
||||
where.gateway = gateway;
|
||||
}
|
||||
|
||||
if (type) {
|
||||
where.type = type;
|
||||
}
|
||||
|
||||
if (startDate || endDate) {
|
||||
where.createdAt = {};
|
||||
if (startDate) where.createdAt.gte = new Date(startDate);
|
||||
if (endDate) where.createdAt.lte = new Date(endDate);
|
||||
}
|
||||
|
||||
if (minAmount !== undefined || maxAmount !== undefined) {
|
||||
where.amount = {};
|
||||
if (minAmount !== undefined) where.amount.gte = new Prisma.Decimal(minAmount);
|
||||
if (maxAmount !== undefined) where.amount.lte = new Prisma.Decimal(maxAmount);
|
||||
}
|
||||
|
||||
if (search && search.trim() !== '') {
|
||||
const s = search.trim();
|
||||
where.OR = [
|
||||
{ trackId: { contains: s, mode: 'insensitive' } },
|
||||
{ refNumber: { contains: s, mode: 'insensitive' } },
|
||||
{ cardNumber: { contains: s, mode: 'insensitive' } },
|
||||
{ description: { contains: s, mode: 'insensitive' } },
|
||||
{
|
||||
user: {
|
||||
OR: [
|
||||
{ firstName: { contains: s, mode: 'insensitive' } },
|
||||
{ lastName: { contains: s, mode: 'insensitive' } },
|
||||
{ mobile: { contains: s, mode: 'insensitive' } },
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
order: {
|
||||
trackingNumber: { contains: s, mode: 'insensitive' },
|
||||
},
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
const [data, total] = await Promise.all([
|
||||
this.prisma.paymentTransaction.findMany({
|
||||
where,
|
||||
skip,
|
||||
take: limit,
|
||||
orderBy: { [sortBy]: sortOrder },
|
||||
include: {
|
||||
user: {
|
||||
select: {
|
||||
id: true,
|
||||
firstName: true,
|
||||
lastName: true,
|
||||
mobile: true,
|
||||
email: true,
|
||||
},
|
||||
},
|
||||
order: {
|
||||
select: {
|
||||
id: true,
|
||||
trackingNumber: true,
|
||||
totalAmount: true,
|
||||
status: true,
|
||||
paymentMethod: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}),
|
||||
this.prisma.paymentTransaction.count({ where }),
|
||||
]);
|
||||
|
||||
return {
|
||||
data,
|
||||
meta: {
|
||||
total,
|
||||
page,
|
||||
lastPage: Math.ceil(total / limit),
|
||||
limit,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* 7. Admin: Get Transaction Statistics
|
||||
*/
|
||||
async getAdminTransactionStats() {
|
||||
const [
|
||||
totalCount,
|
||||
verifiedCount,
|
||||
pendingCount,
|
||||
failedCount,
|
||||
verifiedSum,
|
||||
todayVerified,
|
||||
] = await Promise.all([
|
||||
this.prisma.paymentTransaction.count(),
|
||||
this.prisma.paymentTransaction.count({ where: { status: 'VERIFIED' } }),
|
||||
this.prisma.paymentTransaction.count({ where: { status: 'PENDING' } }),
|
||||
this.prisma.paymentTransaction.count({ where: { status: 'FAILED' } }),
|
||||
this.prisma.paymentTransaction.aggregate({
|
||||
_sum: { amount: true },
|
||||
where: { status: 'VERIFIED' },
|
||||
}),
|
||||
this.prisma.paymentTransaction.aggregate({
|
||||
_sum: { amount: true },
|
||||
where: {
|
||||
status: 'VERIFIED',
|
||||
createdAt: {
|
||||
gte: new Date(new Date().setHours(0, 0, 0, 0)),
|
||||
},
|
||||
},
|
||||
}),
|
||||
]);
|
||||
|
||||
const totalVolume = Number(verifiedSum._sum.amount || 0);
|
||||
const todayVolume = Number(todayVerified._sum.amount || 0);
|
||||
const successRate =
|
||||
totalCount > 0 ? Math.round((verifiedCount / totalCount) * 100) : 0;
|
||||
|
||||
return {
|
||||
totalCount,
|
||||
verifiedCount,
|
||||
pendingCount,
|
||||
failedCount,
|
||||
totalVolume,
|
||||
todayVolume,
|
||||
successRate,
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* 8. Admin: Perform Live Instant Inquiry on Zibal for a Transaction
|
||||
*/
|
||||
async adminLiveInquiry(transactionId: string) {
|
||||
const transaction = await this.prisma.paymentTransaction.findUnique({
|
||||
where: { id: transactionId },
|
||||
include: { order: true, user: true },
|
||||
});
|
||||
|
||||
if (!transaction) {
|
||||
throw new NotFoundException('تراکنش یافت نشد');
|
||||
}
|
||||
|
||||
if (!transaction.trackId) {
|
||||
throw new BadRequestException('این تراکنش فاقد TrackId زیبال است');
|
||||
}
|
||||
|
||||
const inquiryRes = await this.zibalService.inquiryPayment(transaction.trackId);
|
||||
const statusMsg = this.zibalService.getStatusMessage(inquiryRes.status);
|
||||
const resultMsg = this.zibalService.getResultMessage(inquiryRes.result);
|
||||
|
||||
// If transaction was PENDING and inquiry confirms payment, sync automatically
|
||||
if (
|
||||
transaction.status === 'PENDING' &&
|
||||
(inquiryRes.status === 1 || inquiryRes.status === 2 || inquiryRes.result === 100)
|
||||
) {
|
||||
await this.verifyAndProcess(
|
||||
transaction.trackId,
|
||||
'1',
|
||||
String(inquiryRes.status),
|
||||
transaction.orderId || undefined,
|
||||
);
|
||||
}
|
||||
|
||||
return {
|
||||
transactionId: transaction.id,
|
||||
trackId: transaction.trackId,
|
||||
currentDbStatus: transaction.status,
|
||||
gatewayResponse: inquiryRes,
|
||||
statusMessage: statusMsg,
|
||||
resultMessage: resultMsg,
|
||||
inquiredAt: new Date(),
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useState, useEffect, useRef } from 'react';
|
||||
import { Link, useLocation, useNavigate } from 'react-router-dom';
|
||||
import { Users, ShoppingCart, Tag, Settings, LogOut, TrendingUp, FolderTree, FileText, BookOpen, Heart, Package, LayoutDashboard, Languages, Image, Video, PhoneCall, Sparkles, MessageSquareQuote, FlaskConical, Building2, Globe, DollarSign, Sliders, MessageSquare } from 'lucide-react';
|
||||
import { Users, ShoppingCart, Tag, Settings, LogOut, TrendingUp, FolderTree, FileText, BookOpen, Heart, Package, LayoutDashboard, Languages, Image, Video, PhoneCall, Sparkles, MessageSquareQuote, FlaskConical, Building2, Globe, DollarSign, Sliders, MessageSquare, Receipt, CreditCard } from 'lucide-react';
|
||||
import api from '../services/api';
|
||||
import { useAdminAuthStore } from '../store/adminAuthStore';
|
||||
|
||||
@@ -16,6 +16,7 @@ const menuGroups = [
|
||||
title: 'فروشگاه و تخصصی',
|
||||
items: [
|
||||
{ icon: ShoppingCart, label: 'سفارشات', path: '/orders' },
|
||||
{ icon: Receipt, label: 'تراکنشها و لاگ پرداخت', path: '/transactions' },
|
||||
{ icon: Package, label: 'محصولات', path: '/products' },
|
||||
{ icon: FolderTree, label: 'دستهبندیها', path: '/categories' },
|
||||
{ icon: Tag, label: 'کدهای تخفیف', path: '/coupons' },
|
||||
|
||||
@@ -0,0 +1,681 @@
|
||||
import React, { useState, useEffect, useCallback } from 'react';
|
||||
import {
|
||||
CreditCard,
|
||||
Search,
|
||||
RefreshCw,
|
||||
Eye,
|
||||
Copy,
|
||||
CheckCircle2,
|
||||
XCircle,
|
||||
Clock,
|
||||
Filter,
|
||||
DollarSign,
|
||||
TrendingUp,
|
||||
AlertTriangle,
|
||||
Receipt,
|
||||
User,
|
||||
ShoppingBag,
|
||||
ArrowUpDown,
|
||||
ExternalLink,
|
||||
ShieldCheck,
|
||||
RotateCcw
|
||||
} from 'lucide-react';
|
||||
import { toast } from 'react-hot-toast';
|
||||
import api from '../services/api';
|
||||
import Spinner from '../components/ui/Spinner';
|
||||
import Pagination from '../components/ui/Pagination';
|
||||
|
||||
interface Transaction {
|
||||
id: string;
|
||||
userId: string;
|
||||
orderId?: string | null;
|
||||
amount: number | string;
|
||||
amountRials?: string | number | null;
|
||||
gateway: string;
|
||||
trackId?: string | null;
|
||||
refNumber?: string | null;
|
||||
cardNumber?: string | null;
|
||||
status: string;
|
||||
resultCode?: number | null;
|
||||
message?: string | null;
|
||||
description?: string | null;
|
||||
type: string;
|
||||
paidAt?: string | null;
|
||||
createdAt: string;
|
||||
user?: {
|
||||
id: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
mobile: string;
|
||||
email?: string;
|
||||
} | null;
|
||||
order?: {
|
||||
id: string;
|
||||
trackingNumber?: string;
|
||||
totalAmount: number | string;
|
||||
status: string;
|
||||
paymentMethod?: string;
|
||||
} | null;
|
||||
}
|
||||
|
||||
interface Stats {
|
||||
totalCount: number;
|
||||
verifiedCount: number;
|
||||
pendingCount: number;
|
||||
failedCount: number;
|
||||
totalVolume: number;
|
||||
todayVolume: number;
|
||||
successRate: number;
|
||||
}
|
||||
|
||||
export default function Transactions() {
|
||||
const [transactions, setTransactions] = useState<Transaction[]>([]);
|
||||
const [stats, setStats] = useState<Stats | null>(null);
|
||||
const [isLoading, setIsLoading] = useState(true);
|
||||
const [isReconciling, setIsReconciling] = useState(false);
|
||||
const [page, setPage] = useState(1);
|
||||
const [totalPages, setTotalPages] = useState(1);
|
||||
const [totalItems, setTotalItems] = useState(0);
|
||||
|
||||
// Filters
|
||||
const [search, setSearch] = useState('');
|
||||
const [statusFilter, setStatusFilter] = useState('');
|
||||
const [gatewayFilter, setGatewayFilter] = useState('');
|
||||
const [typeFilter, setTypeFilter] = useState('');
|
||||
const [sortBy, setSortBy] = useState('createdAt');
|
||||
const [sortOrder, setSortOrder] = useState<'asc' | 'desc'>('desc');
|
||||
|
||||
// Details Modal
|
||||
const [selectedTx, setSelectedTx] = useState<Transaction | null>(null);
|
||||
const [liveInquiryLoading, setLiveInquiryLoading] = useState(false);
|
||||
const [liveInquiryData, setLiveInquiryData] = useState<any>(null);
|
||||
|
||||
const fetchStats = async () => {
|
||||
try {
|
||||
const res = await api.get('/payment/admin/stats');
|
||||
if (res.data) {
|
||||
setStats(res.data);
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('Failed to fetch stats', e);
|
||||
}
|
||||
};
|
||||
|
||||
const fetchTransactions = useCallback(async () => {
|
||||
try {
|
||||
setIsLoading(true);
|
||||
const params = new URLSearchParams();
|
||||
params.append('page', String(page));
|
||||
params.append('limit', '15');
|
||||
if (search) params.append('search', search);
|
||||
if (statusFilter) params.append('status', statusFilter);
|
||||
if (gatewayFilter) params.append('gateway', gatewayFilter);
|
||||
if (typeFilter) params.append('type', typeFilter);
|
||||
params.append('sortBy', sortBy);
|
||||
params.append('sortOrder', sortOrder);
|
||||
|
||||
const res = await api.get(`/payment/admin/transactions?${params.toString()}`);
|
||||
if (res.data) {
|
||||
setTransactions(res.data.data || []);
|
||||
setTotalPages(res.data.meta?.lastPage || 1);
|
||||
setTotalItems(res.data.meta?.total || 0);
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('Failed to fetch transactions', e);
|
||||
toast.error('خطا در بارگذاری لیست تراکنشها');
|
||||
} finally {
|
||||
setIsLoading(false);
|
||||
}
|
||||
}, [page, search, statusFilter, gatewayFilter, typeFilter, sortBy, sortOrder]);
|
||||
|
||||
useEffect(() => {
|
||||
fetchTransactions();
|
||||
fetchStats();
|
||||
}, [fetchTransactions]);
|
||||
|
||||
const handleCopy = (text: string, title: string) => {
|
||||
navigator.clipboard.writeText(text);
|
||||
toast.success(`${title} کپی شد!`);
|
||||
};
|
||||
|
||||
const handleReconcile = async () => {
|
||||
try {
|
||||
setIsReconciling(true);
|
||||
const res = await api.post('/payment/admin/reconcile');
|
||||
toast.success(
|
||||
`انطباق تراکنشها انجام شد: ${res.data.verified} تایید شده، ${res.data.failed} ناموفق`,
|
||||
);
|
||||
fetchTransactions();
|
||||
fetchStats();
|
||||
} catch (e) {
|
||||
console.error('Reconcile error', e);
|
||||
toast.error('خطا در اجرای استعلام خودکار');
|
||||
} finally {
|
||||
setIsReconciling(false);
|
||||
}
|
||||
};
|
||||
|
||||
const handleLiveInquiry = async (txId: string) => {
|
||||
try {
|
||||
setLiveInquiryLoading(true);
|
||||
const res = await api.get(`/payment/admin/live-inquiry/${txId}`);
|
||||
setLiveInquiryData(res.data);
|
||||
toast.success('استعلام زنده زیبال با موفقیت دریافت شد');
|
||||
fetchTransactions();
|
||||
fetchStats();
|
||||
} catch (e: any) {
|
||||
const msg = e.response?.data?.message || 'خطا در استعلام از درگاه زیبال';
|
||||
toast.error(msg);
|
||||
} finally {
|
||||
setLiveInquiryLoading(false);
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
{/* Header */}
|
||||
<div className="flex flex-col sm:flex-row sm:items-center justify-between gap-4">
|
||||
<div>
|
||||
<h2 className="text-2xl font-black text-gray-900 flex items-center gap-2">
|
||||
<Receipt className="w-7 h-7 text-purple-600" />
|
||||
لاگها و مدیریت تراکنشهای مالی
|
||||
</h2>
|
||||
<p className="text-gray-500 font-medium mt-1">
|
||||
رهگیری لحظهای پرداختهای آنلاین زیبال، کارت به کارت، کیف پول و عیبیابی تراکنشها
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<button
|
||||
onClick={handleReconcile}
|
||||
disabled={isReconciling}
|
||||
className="bg-indigo-50 text-indigo-700 hover:bg-indigo-100 border border-indigo-200 text-xs font-bold px-4 py-2.5 rounded-xl transition-all flex items-center gap-2 shadow-sm disabled:opacity-50"
|
||||
>
|
||||
<RotateCcw className={`w-4 h-4 ${isReconciling ? 'animate-spin' : ''}`} />
|
||||
<span>{isReconciling ? 'در حال استعلام...' : 'انطباق خودکار تراکنشهای معلق'}</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{/* Summary Stat Cards */}
|
||||
{stats && (
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
|
||||
<div className="bg-white p-5 rounded-2xl border border-gray-200 shadow-sm flex items-center justify-between">
|
||||
<div>
|
||||
<p className="text-xs font-bold text-gray-500">حجم کل تراکنشهای موفق</p>
|
||||
<p className="text-xl font-black text-gray-900 mt-1">
|
||||
{Number(stats.totalVolume).toLocaleString('fa-IR')}{' '}
|
||||
<span className="text-xs font-normal text-gray-400">تومان</span>
|
||||
</p>
|
||||
</div>
|
||||
<div className="w-12 h-12 bg-purple-50 text-purple-600 rounded-2xl flex items-center justify-center">
|
||||
<DollarSign className="w-6 h-6" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="bg-white p-5 rounded-2xl border border-gray-200 shadow-sm flex items-center justify-between">
|
||||
<div>
|
||||
<p className="text-xs font-bold text-gray-500">پرداختهای موفق امروز</p>
|
||||
<p className="text-xl font-black text-emerald-600 mt-1">
|
||||
{Number(stats.todayVolume).toLocaleString('fa-IR')}{' '}
|
||||
<span className="text-xs font-normal text-gray-400">تومان</span>
|
||||
</p>
|
||||
</div>
|
||||
<div className="w-12 h-12 bg-emerald-50 text-emerald-600 rounded-2xl flex items-center justify-center">
|
||||
<TrendingUp className="w-6 h-6" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="bg-white p-5 rounded-2xl border border-gray-200 shadow-sm flex items-center justify-between">
|
||||
<div>
|
||||
<p className="text-xs font-bold text-gray-500">نرخ موفقیت پرداختها</p>
|
||||
<p className="text-xl font-black text-indigo-600 mt-1">
|
||||
٪{Number(stats.successRate).toLocaleString('fa-IR')}
|
||||
</p>
|
||||
</div>
|
||||
<div className="w-12 h-12 bg-indigo-50 text-indigo-600 rounded-2xl flex items-center justify-center">
|
||||
<ShieldCheck className="w-6 h-6" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="bg-white p-5 rounded-2xl border border-gray-200 shadow-sm flex items-center justify-between">
|
||||
<div>
|
||||
<p className="text-xs font-bold text-gray-500">وضعیت تراکنشها</p>
|
||||
<div className="flex items-center gap-3 mt-1 text-xs font-bold">
|
||||
<span className="text-emerald-600">✓ {stats.verifiedCount}</span>
|
||||
<span className="text-amber-500">⏳ {stats.pendingCount}</span>
|
||||
<span className="text-rose-600">✗ {stats.failedCount}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div className="w-12 h-12 bg-gray-50 text-gray-600 rounded-2xl flex items-center justify-center">
|
||||
<Receipt className="w-6 h-6" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Filter and Search Bar */}
|
||||
<div className="bg-white p-5 rounded-2xl border border-gray-200 shadow-sm space-y-4">
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-3">
|
||||
{/* Search Input */}
|
||||
<div className="lg:col-span-2 relative">
|
||||
<Search className="w-4 h-4 text-gray-400 absolute right-3.5 top-3.5" />
|
||||
<input
|
||||
type="text"
|
||||
value={search}
|
||||
onChange={(e) => {
|
||||
setSearch(e.target.value);
|
||||
setPage(1);
|
||||
}}
|
||||
placeholder="جستجو بر اساس نام، موبایل، Track ID، شماره مرجع..."
|
||||
className="w-full pl-3 pr-10 py-2.5 bg-gray-50 border border-gray-200 rounded-xl text-xs font-bold outline-none focus:ring-2 focus:ring-purple-500"
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Status Filter */}
|
||||
<div>
|
||||
<select
|
||||
value={statusFilter}
|
||||
onChange={(e) => {
|
||||
setStatusFilter(e.target.value);
|
||||
setPage(1);
|
||||
}}
|
||||
className="w-full py-2.5 px-3 bg-gray-50 border border-gray-200 rounded-xl text-xs font-bold outline-none focus:ring-2 focus:ring-purple-500"
|
||||
>
|
||||
<option value="">همه وضعیتها</option>
|
||||
<option value="VERIFIED">موفق (VERIFIED)</option>
|
||||
<option value="PENDING">در انتظار (PENDING)</option>
|
||||
<option value="FAILED">ناموفق (FAILED)</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{/* Gateway Filter */}
|
||||
<div>
|
||||
<select
|
||||
value={gatewayFilter}
|
||||
onChange={(e) => {
|
||||
setGatewayFilter(e.target.value);
|
||||
setPage(1);
|
||||
}}
|
||||
className="w-full py-2.5 px-3 bg-gray-50 border border-gray-200 rounded-xl text-xs font-bold outline-none focus:ring-2 focus:ring-purple-500"
|
||||
>
|
||||
<option value="">همه درگاهها</option>
|
||||
<option value="zibal">درگاه زیبال (Zibal)</option>
|
||||
<option value="wallet">کیف پول (Wallet)</option>
|
||||
<option value="card">کارت به کارت</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{/* Type Filter */}
|
||||
<div>
|
||||
<select
|
||||
value={typeFilter}
|
||||
onChange={(e) => {
|
||||
setTypeFilter(e.target.value);
|
||||
setPage(1);
|
||||
}}
|
||||
className="w-full py-2.5 px-3 bg-gray-50 border border-gray-200 rounded-xl text-xs font-bold outline-none focus:ring-2 focus:ring-purple-500"
|
||||
>
|
||||
<option value="">همه انواع</option>
|
||||
<option value="ORDER">پرداخت سفارش (ORDER)</option>
|
||||
<option value="WALLET_TOPUP">شارژ کیف پول (TOPUP)</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Total records found */}
|
||||
<div className="flex items-center justify-between text-xs text-gray-500 font-bold pt-2 border-t border-gray-100">
|
||||
<span>مجموع {totalItems.toLocaleString('fa-IR')} تراکنش ثبت شده</span>
|
||||
<button
|
||||
onClick={() => {
|
||||
setSearch('');
|
||||
setStatusFilter('');
|
||||
setGatewayFilter('');
|
||||
setTypeFilter('');
|
||||
setPage(1);
|
||||
}}
|
||||
className="text-purple-600 hover:underline"
|
||||
>
|
||||
پاک کردن فیلترها
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Transactions Table */}
|
||||
<div className="bg-white rounded-2xl border border-gray-200 shadow-sm overflow-hidden">
|
||||
{isLoading ? (
|
||||
<div className="p-12 flex justify-center">
|
||||
<Spinner size="lg" className="text-purple-600" />
|
||||
</div>
|
||||
) : transactions.length === 0 ? (
|
||||
<div className="p-12 text-center text-gray-500 font-bold">
|
||||
هیچ تراکنشی با فیلترهای مشخص شده یافت نشد.
|
||||
</div>
|
||||
) : (
|
||||
<div className="overflow-x-auto">
|
||||
<table className="w-full text-right border-collapse">
|
||||
<thead>
|
||||
<tr className="bg-gray-50/80 border-b border-gray-200 text-[11px] font-black text-gray-500">
|
||||
<th className="p-4">کاربر خریدار</th>
|
||||
<th className="p-4">سفارش / نوع</th>
|
||||
<th className="p-4">مبلغ (تومان)</th>
|
||||
<th className="p-4">درگاه</th>
|
||||
<th className="p-4">شناسههای پرداخت</th>
|
||||
<th className="p-4">وضعیت</th>
|
||||
<th className="p-4">تاریخ و زمان</th>
|
||||
<th className="p-4 text-center">عملیات</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody className="divide-y divide-gray-100 text-xs font-bold">
|
||||
{transactions.map((tx) => {
|
||||
const isVerified = tx.status === 'VERIFIED';
|
||||
const isPending = tx.status === 'PENDING';
|
||||
const isFailed = tx.status === 'FAILED';
|
||||
|
||||
return (
|
||||
<tr key={tx.id} className="hover:bg-gray-50/60 transition-colors">
|
||||
{/* User Info */}
|
||||
<td className="p-4">
|
||||
{tx.user ? (
|
||||
<div>
|
||||
<p className="font-black text-gray-900">
|
||||
{tx.user.firstName} {tx.user.lastName}
|
||||
</p>
|
||||
<p className="text-[11px] text-gray-400 font-mono mt-0.5 dir-ltr text-right">
|
||||
{tx.user.mobile}
|
||||
</p>
|
||||
</div>
|
||||
) : (
|
||||
<span className="text-gray-400">کاربر مهمان</span>
|
||||
)}
|
||||
</td>
|
||||
|
||||
{/* Order / Type */}
|
||||
<td className="p-4">
|
||||
{tx.type === 'WALLET_TOPUP' ? (
|
||||
<span className="bg-blue-50 text-blue-700 px-2.5 py-1 rounded-lg text-[10px] font-black">
|
||||
شارژ کیف پول
|
||||
</span>
|
||||
) : (
|
||||
<div>
|
||||
<span className="text-purple-700 font-mono text-[11px] font-black dir-ltr block">
|
||||
{tx.order?.trackingNumber || 'سفارش آنلاین'}
|
||||
</span>
|
||||
<span className="text-[10px] text-gray-400 font-medium">
|
||||
خرید محصول
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
</td>
|
||||
|
||||
{/* Amount */}
|
||||
<td className="p-4 font-black text-gray-900 font-mono text-sm">
|
||||
{Number(tx.amount).toLocaleString('fa-IR')}
|
||||
</td>
|
||||
|
||||
{/* Gateway */}
|
||||
<td className="p-4">
|
||||
<span className="bg-indigo-50 text-indigo-700 px-2.5 py-1 rounded-lg text-[10px] font-black">
|
||||
{tx.gateway === 'zibal' ? 'زیبال (Zibal)' : tx.gateway}
|
||||
</span>
|
||||
</td>
|
||||
|
||||
{/* Tracking Numbers */}
|
||||
<td className="p-4 font-mono text-[11px]">
|
||||
{tx.trackId && (
|
||||
<div className="flex items-center gap-1 text-gray-800">
|
||||
<span className="text-gray-400 text-[10px]">Track:</span>
|
||||
<span className="dir-ltr">{tx.trackId}</span>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => handleCopy(tx.trackId!, 'Track ID')}
|
||||
className="text-gray-400 hover:text-purple-600"
|
||||
>
|
||||
<Copy className="w-3 h-3" />
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
{tx.refNumber && (
|
||||
<div className="flex items-center gap-1 text-emerald-700 mt-0.5">
|
||||
<span className="text-gray-400 text-[10px]">Ref:</span>
|
||||
<span className="dir-ltr">{tx.refNumber}</span>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => handleCopy(tx.refNumber!, 'شماره مرجع')}
|
||||
className="text-gray-400 hover:text-purple-600"
|
||||
>
|
||||
<Copy className="w-3 h-3" />
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
</td>
|
||||
|
||||
{/* Status */}
|
||||
<td className="p-4">
|
||||
{isVerified && (
|
||||
<span className="inline-flex items-center gap-1 bg-emerald-50 text-emerald-700 border border-emerald-200 px-2.5 py-1 rounded-full text-[10px] font-black">
|
||||
<CheckCircle2 className="w-3 h-3" />
|
||||
موفق
|
||||
</span>
|
||||
)}
|
||||
{isPending && (
|
||||
<span className="inline-flex items-center gap-1 bg-amber-50 text-amber-700 border border-amber-200 px-2.5 py-1 rounded-full text-[10px] font-black">
|
||||
<Clock className="w-3 h-3" />
|
||||
در انتظار
|
||||
</span>
|
||||
)}
|
||||
{isFailed && (
|
||||
<span className="inline-flex items-center gap-1 bg-rose-50 text-rose-700 border border-rose-200 px-2.5 py-1 rounded-full text-[10px] font-black">
|
||||
<XCircle className="w-3 h-3" />
|
||||
ناموفق
|
||||
</span>
|
||||
)}
|
||||
</td>
|
||||
|
||||
{/* Date */}
|
||||
<td className="p-4 text-[11px] text-gray-500">
|
||||
{new Date(tx.createdAt).toLocaleDateString('fa-IR', {
|
||||
year: 'numeric',
|
||||
month: 'short',
|
||||
day: 'numeric',
|
||||
hour: '2-digit',
|
||||
minute: '2-digit',
|
||||
})}
|
||||
</td>
|
||||
|
||||
{/* Actions */}
|
||||
<td className="p-4 text-center">
|
||||
<div className="flex items-center justify-center gap-1.5">
|
||||
<button
|
||||
onClick={() => {
|
||||
setSelectedTx(tx);
|
||||
setLiveInquiryData(null);
|
||||
}}
|
||||
className="p-2 bg-gray-100 hover:bg-purple-50 text-gray-600 hover:text-purple-600 rounded-xl transition-all"
|
||||
title="مشاهده جزئیات و عیبیابی"
|
||||
>
|
||||
<Eye className="w-4 h-4" />
|
||||
</button>
|
||||
|
||||
{tx.gateway === 'zibal' && tx.trackId && (
|
||||
<button
|
||||
onClick={() => {
|
||||
setSelectedTx(tx);
|
||||
handleLiveInquiry(tx.id);
|
||||
}}
|
||||
className="p-2 bg-indigo-50 hover:bg-indigo-100 text-indigo-600 rounded-xl transition-all"
|
||||
title="استعلام زنده از زیبال"
|
||||
>
|
||||
<RotateCcw className="w-4 h-4" />
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
);
|
||||
})}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Pagination */}
|
||||
<div className="p-4 border-t border-gray-100">
|
||||
<Pagination
|
||||
currentPage={page}
|
||||
totalPages={totalPages}
|
||||
onPageChange={(p) => setPage(p)}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Diagnostics and Details Modal */}
|
||||
{selectedTx && (
|
||||
<div className="fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm">
|
||||
<div className="bg-white rounded-3xl w-full max-w-2xl max-h-[90vh] overflow-y-auto border border-gray-200 shadow-2xl p-6 sm:p-8 space-y-6">
|
||||
<div className="flex items-center justify-between border-b border-gray-100 pb-4">
|
||||
<h3 className="text-lg font-black text-gray-900 flex items-center gap-2">
|
||||
<Receipt className="w-5 h-5 text-purple-600" />
|
||||
جزئیات تراکنش و ریشهیابی خطا
|
||||
</h3>
|
||||
<button
|
||||
onClick={() => {
|
||||
setSelectedTx(null);
|
||||
setLiveInquiryData(null);
|
||||
}}
|
||||
className="text-gray-400 hover:text-gray-700 text-xl font-bold"
|
||||
>
|
||||
✕
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{/* Quick Grid Info */}
|
||||
<div className="grid grid-cols-2 sm:grid-cols-3 gap-3 text-xs bg-gray-50 p-4 rounded-2xl border border-gray-200">
|
||||
<div>
|
||||
<span className="text-gray-400 block font-medium">وضعیت تراکنش:</span>
|
||||
<span
|
||||
className={`font-black mt-0.5 inline-block ${
|
||||
selectedTx.status === 'VERIFIED'
|
||||
? 'text-emerald-600'
|
||||
: selectedTx.status === 'PENDING'
|
||||
? 'text-amber-500'
|
||||
: 'text-rose-600'
|
||||
}`}
|
||||
>
|
||||
{selectedTx.status}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<span className="text-gray-400 block font-medium">مبلغ تراکنش:</span>
|
||||
<span className="font-black text-gray-900 mt-0.5 inline-block">
|
||||
{Number(selectedTx.amount).toLocaleString('fa-IR')} تومان
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<span className="text-gray-400 block font-medium">درگاه پرداخت:</span>
|
||||
<span className="font-black text-gray-900 mt-0.5 inline-block">
|
||||
{selectedTx.gateway}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<span className="text-gray-400 block font-medium">شناسه پیگیری (Track ID):</span>
|
||||
<span className="font-mono font-bold text-gray-900 dir-ltr inline-block">
|
||||
{selectedTx.trackId || 'ثبت نشده'}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<span className="text-gray-400 block font-medium">شماره مرجع بانکی:</span>
|
||||
<span className="font-mono font-bold text-gray-900 dir-ltr inline-block">
|
||||
{selectedTx.refNumber || 'ثبت نشده'}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<span className="text-gray-400 block font-medium">شماره کارت ماسک شده:</span>
|
||||
<span className="font-mono font-bold text-gray-900 dir-ltr inline-block">
|
||||
{selectedTx.cardNumber || 'ثبت نشده'}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Error Message / Reason */}
|
||||
{selectedTx.message && (
|
||||
<div
|
||||
className={`p-4 rounded-2xl border ${
|
||||
selectedTx.status === 'VERIFIED'
|
||||
? 'bg-emerald-50 border-emerald-200 text-emerald-900'
|
||||
: 'bg-rose-50 border-rose-200 text-rose-900'
|
||||
}`}
|
||||
>
|
||||
<div className="flex items-center gap-2 font-black text-xs mb-1">
|
||||
{selectedTx.status === 'VERIFIED' ? (
|
||||
<CheckCircle2 className="w-4 h-4 text-emerald-600" />
|
||||
) : (
|
||||
<AlertTriangle className="w-4 h-4 text-rose-600" />
|
||||
)}
|
||||
<span>پیام و نتیجه گزارش درگاه:</span>
|
||||
</div>
|
||||
<p className="text-xs font-bold leading-relaxed">{selectedTx.message}</p>
|
||||
{selectedTx.resultCode && (
|
||||
<p className="text-[11px] font-mono mt-1 text-gray-500">
|
||||
کد نتیجه زیبال: {selectedTx.resultCode}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Live Inquiry Section */}
|
||||
<div className="border border-indigo-100 bg-indigo-50/50 p-5 rounded-2xl space-y-3">
|
||||
<div className="flex items-center justify-between">
|
||||
<div className="flex items-center gap-2">
|
||||
<RotateCcw className="w-4 h-4 text-indigo-600" />
|
||||
<h4 className="font-black text-xs text-indigo-900">
|
||||
استعلام زنده از سرور زیبال (Live Gateway Inquiry)
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<button
|
||||
onClick={() => handleLiveInquiry(selectedTx.id)}
|
||||
disabled={liveInquiryLoading}
|
||||
className="bg-indigo-600 hover:bg-indigo-700 text-white text-xs font-bold px-3 py-1.5 rounded-xl transition-all flex items-center gap-1.5 disabled:opacity-50"
|
||||
>
|
||||
<RefreshCw
|
||||
className={`w-3.5 h-3.5 ${liveInquiryLoading ? 'animate-spin' : ''}`}
|
||||
/>
|
||||
<span>استعلام زنده لحظهای</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{liveInquiryData && (
|
||||
<div className="bg-white p-4 rounded-xl border border-indigo-200 space-y-2 text-xs font-mono">
|
||||
<div className="flex justify-between text-gray-700 font-bold font-vazir">
|
||||
<span>وضعیت زیبال:</span>
|
||||
<span className="text-indigo-600">{liveInquiryData.statusMessage}</span>
|
||||
</div>
|
||||
<pre className="text-[11px] bg-slate-900 text-emerald-400 p-3 rounded-lg overflow-x-auto dir-ltr">
|
||||
{JSON.stringify(liveInquiryData.gatewayResponse, null, 2)}
|
||||
</pre>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Close Button */}
|
||||
<div className="flex justify-end">
|
||||
<button
|
||||
onClick={() => {
|
||||
setSelectedTx(null);
|
||||
setLiveInquiryData(null);
|
||||
}}
|
||||
className="bg-gray-100 hover:bg-gray-200 text-gray-800 font-bold px-6 py-2.5 rounded-xl text-xs transition-colors"
|
||||
>
|
||||
بستن
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -34,6 +34,7 @@ const SeoSettingsPage = lazy(() => import('../pages/SeoSettingsPage'));
|
||||
const FinancialSettingsPage = lazy(() => import('../pages/FinancialSettingsPage'));
|
||||
const SystemSettingsPage = lazy(() => import('../pages/SystemSettingsPage'));
|
||||
const SmsSettingsPage = lazy(() => import('../pages/SmsSettingsPage'));
|
||||
const Transactions = lazy(() => import('../pages/Transactions'));
|
||||
|
||||
export interface AdminRouteConfig {
|
||||
path: string;
|
||||
@@ -57,6 +58,7 @@ export const router = createBrowserRouter([
|
||||
{ path: 'users/*', element: <Users /> },
|
||||
{ path: 'products/*', element: <Products /> },
|
||||
{ path: 'orders/*', element: <Orders /> },
|
||||
{ path: 'transactions/*', element: <Transactions /> },
|
||||
{ path: 'coupons/*', element: <Coupons /> },
|
||||
{ path: 'settings', element: <Settings /> },
|
||||
{ path: 'settings/sms', element: <SmsSettingsPage /> },
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
{
|
||||
"0": "AdminService",
|
||||
"1": "PetsController",
|
||||
"1": "pets/pets.controller.ts",
|
||||
"2": "Roles",
|
||||
"3": "UsersService",
|
||||
"4": "CmsController",
|
||||
"5": "BannersService",
|
||||
"6": "auth.service.ts",
|
||||
"6": "auth.controller.ts",
|
||||
"7": "app.module.ts",
|
||||
"8": "CreateVideoDto",
|
||||
"9": "ProductService",
|
||||
"10": "SmartAdvisor.tsx",
|
||||
"11": "compilerOptions",
|
||||
"12": "toPersian",
|
||||
"13": "pets/pets.controller.ts",
|
||||
"13": "SmsService",
|
||||
"14": "ProductsService",
|
||||
"15": "lib/services/api.ts",
|
||||
"16": "devDependencies",
|
||||
"16": "eslint",
|
||||
"17": "useSettingsStore",
|
||||
"18": "MetricsController",
|
||||
"18": "AppModule",
|
||||
"19": "B2B Inquiry Controller",
|
||||
"20": "Category Management Controller",
|
||||
"21": "RedisService",
|
||||
"21": "auth.service.ts",
|
||||
"22": "MediaController",
|
||||
"23": "Ingredient Management Controller",
|
||||
"24": "adminRoutes.tsx",
|
||||
"25": "admin.module.ts",
|
||||
"26": "api",
|
||||
"26": "ConfirmModal.tsx",
|
||||
"27": "Prescription Review Controller",
|
||||
"28": "Smart Advisor Controller",
|
||||
"29": "Testimonials Management Controller",
|
||||
@@ -34,18 +34,18 @@
|
||||
"32": "useCartStore",
|
||||
"33": "ZibalService",
|
||||
"34": "main.ts",
|
||||
"35": "payment.controller.ts",
|
||||
"35": "ContactService",
|
||||
"36": "Backend TypeScript Config",
|
||||
"37": "App TypeScript Config",
|
||||
"38": "ConfirmModal.tsx",
|
||||
"38": "Coupons.tsx",
|
||||
"39": "dependencies",
|
||||
"40": "Node TypeScript Config",
|
||||
"41": "Admin Blog Controller",
|
||||
"42": "WholesaleService",
|
||||
"42": "WholesaleApplyDto",
|
||||
"43": "devDependencies",
|
||||
"44": "Generic CRUD Controller",
|
||||
"45": "seo.module.ts",
|
||||
"46": "Coupon Management UI",
|
||||
"46": "OrdersController",
|
||||
"47": "Project Build Scripts",
|
||||
"48": "Home Data Module",
|
||||
"49": "devDependencies",
|
||||
@@ -61,9 +61,9 @@
|
||||
"59": "PrismaService",
|
||||
"60": "Jest Testing Config",
|
||||
"61": "PaginationDto",
|
||||
"62": "WikiController",
|
||||
"62": "SettingsService",
|
||||
"63": "FE-001",
|
||||
"64": "PetsService",
|
||||
"64": "payment.module.ts",
|
||||
"65": "rules/graphify.md",
|
||||
"66": "App Health Controller",
|
||||
"67": "dependencies",
|
||||
@@ -73,10 +73,10 @@
|
||||
"71": "Analytics and Report Charts",
|
||||
"72": "Task Orchestration Scripts",
|
||||
"73": "Backend Package Config",
|
||||
"74": "CreateHealthLogDto",
|
||||
"74": "BlogsController",
|
||||
"75": "React Error Boundary",
|
||||
"76": "Application Package Config",
|
||||
"77": ".findAll",
|
||||
"77": "WikiController",
|
||||
"78": "Error and Not Found Pages",
|
||||
"79": "VPN Utility Scripts",
|
||||
"80": "NestJS CLI Config",
|
||||
@@ -92,7 +92,7 @@
|
||||
"90": "Blog Listing Page",
|
||||
"91": "Blog Post Detail Page",
|
||||
"92": "@types/node",
|
||||
"93": "typescript",
|
||||
"93": "devDependencies",
|
||||
"94": "UI Text Seeding",
|
||||
"95": "Wiki Terms Seeding",
|
||||
"96": "Blog Management DTOs",
|
||||
@@ -102,7 +102,7 @@
|
||||
"100": "Network Status Banner",
|
||||
"101": "Docker Deployment Scripts",
|
||||
"102": "DB-001",
|
||||
"103": "CreateReminderDto",
|
||||
"103": "BlogsService",
|
||||
"104": "Database Migration Scripts",
|
||||
"105": "Scientific Terms Schema",
|
||||
"106": "Blog Data Seeding",
|
||||
@@ -116,10 +116,10 @@
|
||||
"114": "Manifest Data Generation",
|
||||
"115": "Honest Manifest Synchronization",
|
||||
"116": "Manifest Entry Synchronization",
|
||||
"117": "Videos.tsx",
|
||||
"117": "WikiService",
|
||||
"118": "TS-001",
|
||||
"119": "TEST-001",
|
||||
"120": "@tailwindcss/postcss",
|
||||
"120": "ValidateCouponDto",
|
||||
"121": "@types/react-dom",
|
||||
"122": "Admin Panel TSConfig",
|
||||
"123": "About Page Component",
|
||||
@@ -129,7 +129,7 @@
|
||||
"127": "DEVOPS-001",
|
||||
"128": "DOC-001",
|
||||
"129": "What You Must Do When Invoked",
|
||||
"130": "RolesGuard",
|
||||
"130": "JwtAuthGuard",
|
||||
"131": "راهنمای تست سیستم (Software Testing)",
|
||||
"132": "Role & Core Objective",
|
||||
"133": "Required Review Group Closures",
|
||||
@@ -140,8 +140,8 @@
|
||||
"138": "Operational Rules & Boundaries",
|
||||
"139": "Operational Rules & Boundaries",
|
||||
"140": "Bcrypt Type Definitions",
|
||||
"141": "Passport JWT Type Definitions",
|
||||
"142": "Supertest Type Definitions",
|
||||
"141": "bcryptjs",
|
||||
"142": "helmet",
|
||||
"143": "Blog Entity Model",
|
||||
"144": "Home Entity Model",
|
||||
"145": "Wiki Entity Model",
|
||||
@@ -213,7 +213,7 @@
|
||||
"211": "Phase 2 Final Quality Gate Summary Report",
|
||||
"212": "Task Modifications Log",
|
||||
"213": "Install",
|
||||
"214": "BlogsController",
|
||||
"214": ".findAll",
|
||||
"215": "System Discovery",
|
||||
"216": "Product Requirement Document (PRD)",
|
||||
"217": "Baseline Command Plan & Reconciled Command History",
|
||||
@@ -237,7 +237,7 @@
|
||||
"235": "👁️ UX & Persona Interface Review (08_visual_qa)",
|
||||
"236": "Compiler Diagnostic Dispositions",
|
||||
"237": "@eslint/eslintrc",
|
||||
"238": "eslint-plugin-prettier",
|
||||
"238": "js-yaml",
|
||||
"239": "globals",
|
||||
"240": "prettier",
|
||||
"241": "prisma",
|
||||
@@ -265,6 +265,23 @@
|
||||
"263": "application/public/fonts/sahel-font-v3.4.0/CHANGELOG.md",
|
||||
"264": "tailwindcss",
|
||||
"265": "typescript-eslint",
|
||||
"268": "wholesale.controller.ts",
|
||||
"273": "AGENTS.md"
|
||||
"266": "@nestjs/core",
|
||||
"267": "@nestjs/jwt",
|
||||
"268": "@nestjs/swagger",
|
||||
"269": "@nestjs/throttler",
|
||||
"270": "passport-jwt",
|
||||
"271": "@prisma/client",
|
||||
"272": "swagger-ui-express",
|
||||
"273": "AGENTS.md",
|
||||
"274": "eslint-config-prettier",
|
||||
"275": "@eslint/js",
|
||||
"276": "jest",
|
||||
"277": "@nestjs/schematics",
|
||||
"278": "@nestjs/testing",
|
||||
"279": "source-map-support",
|
||||
"280": "ts-jest",
|
||||
"281": "tsconfig-paths",
|
||||
"282": "@types/bcryptjs",
|
||||
"283": "typescript-eslint",
|
||||
"284": "globals"
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
{"0": "30a1c2fd9747456c", "1": "5863b59256c49e08", "2": "3d300b88f00ccf1b", "3": "8dab30332cfe7b4a", "4": "f34c872571e8a774", "5": "7478d6755ca2248a", "6": "175f6432fa736132", "7": "777b9a7c9e0f1331", "8": "de0d68774c418a39", "9": "24a1d952082d507a", "10": "17d3c105da90b4ed", "11": "7bf5b79d43d8adb6", "12": "2e74386825b1fbfe", "13": "0e290698fd1e38fc", "14": "8fb0bfac013b3325", "15": "4594bb1096f5da3c", "16": "9a39f6904a50a0d5", "17": "404a7df7025e3dcd", "18": "1a833537ef5e569c", "19": "4c59d1cd2ef8804b", "20": "f38c905c9af9edc0", "21": "e4c875487f38ca21", "22": "57bcc45ffc43d506", "23": "65e41c1c22dcd058", "24": "59c21afd1aef3cf8", "25": "76700bee9b0b348c", "26": "7b4c63b90462f277", "27": "73df605d6eec20d9", "28": "cb17af4eb831480f", "29": "5a6d4157fb91d937", "30": "74f27996c9783fc6", "31": "0b1ea141b3d385e4", "32": "21393d756e6cc9c6", "33": "c3c095b65e9ba3ad", "34": "926b11275f3779d4", "35": "e0cf92dd562fdd2e", "36": "f7d0b5a4835ae7b1", "37": "55ff2f267bd546b2", "38": "1a4105b7ff782b16", "39": "1f914a584cbde781", "40": "fd6d145000147563", "41": "3b1909d07e8fb962", "42": "5499104e9ca4fdad", "43": "b1c3283bd55a8fe9", "44": "d9e74b032c5b8440", "45": "62430df45afa65b5", "46": "95526a5655b981bc", "47": "b1fb8b1d0bcaa7fd", "48": "4ece6985263357c4", "49": "841013681f4e6e8c", "50": "656f816eb51f2ab1", "51": "bf5a253cc5340107", "52": "71d2ce6fb684bc0e", "53": "8ea0eab3d1fe8e62", "54": "f82008d7d17c733f", "55": "4eda46a5b0695ef6", "56": "db04321dca52a9ad", "57": "c2ee2f9838df873c", "58": "e2bda4d8806cbe01", "59": "ece5386762390485", "60": "e036dbd1de0f8b38", "61": "052aa003ecf113f5", "62": "0bf61615fa50a168", "63": "90b79d6027d60d30", "64": "7a15bcf51917680d", "65": "4654167fd211d027", "66": "c6b57d78299a27b3", "67": "f0f56796aaebb4f5", "68": "4cc0d8843a80fd04", "69": "9409b3b8a334f51d", "70": "ac95a9f152e3d1c4", "71": "989c014f76b74793", "72": "17ecb7325285cf7a", "73": "4487fd85ddc13c93", "74": "20ee2c8dca771e1b", "75": "167643bcbbc26244", "76": "dcffd9ad7a1f7df6", "77": "96d87080e1586a3d", "78": "48f898ce95c8e90c", "79": "a2fe690317aef2ee", "80": "fa2d7dcf52348095", "81": "b92a68cf0d823560", "82": "6bd6f2633370820c", "83": "1d80b74f885d6716", "84": "f4d1e3ec22fbfe3d", "85": "e9728eefddbaed5b", "86": "85cd9ca1246dc437", "87": "3e93071fc4a80e95", "88": "35d3a2679371e9a4", "89": "b8f35a499b36a57a", "90": "2d009974f4217730", "91": "00d9ddfeee7b4c47", "92": "6ddbf62ac93920e1", "93": "d0fc47de7f8bcf41", "94": "867babdd40f0c3fc", "95": "94971d590fc06983", "96": "00d275127a7e435e", "97": "2942a9d30dae4a29", "98": "3e21e2fb50e12670", "99": "17ca8d640a75a60d", "100": "6cc089e9f052ba3f", "101": "6256958a9b817133", "102": "7664e56213a29331", "103": "af64ebd98dd4a80d", "104": "7c65a1f3c4f1b858", "105": "67b5cef27d55952d", "106": "10b2996179aaaf2e", "107": "39031f751fb2d42f", "108": "1e833ee596b5ca23", "109": "2434b1a28b16557f", "110": "cb3fe87c920b0cb3", "111": "ddb9c95db6575999", "112": "e2250667e3a77089", "113": "9069d5dda9013eee", "114": "0077975cffee54dc", "115": "e6fcd0aec85fac92", "116": "9590124db1601a96", "117": "95071eae544f664e", "118": "942c4f9928c60a45", "119": "0614b98d9013b5f5", "120": "5a4d1c1ef8bed9bb", "121": "4ab8ffab1d51ca61", "122": "3be2a9ccdc6668cc", "123": "3fb0bef25bab507e", "124": "bd3010d97e467f52", "125": "703a4a9860d7ed16", "126": "85fd4a84b5393d0e", "127": "53ff49b3d54f0fba", "128": "2153ddcd7477dfb7", "129": "7abb5bc6a0e4f65f", "130": "dadd2f1ac72916bc", "131": "1c9a1f4c72613346", "132": "0f62727f3b4907c0", "133": "31a5a53f1fe77e46", "134": "69d0f8b228227690", "135": "22456307ff273d80", "136": "ba7bc17581366c9a", "137": "d7cad630fb1d1414", "138": "0727bb53199085fc", "139": "91393683c97d1773", "140": "ecfb692b6f7a1014", "141": "05f1ad1f29e435ff", "142": "bfcc583da029935c", "143": "e66a941c60456b44", "144": "a7cf02106e992a23", "145": "88604333ff6aa860", "146": "8365b02889fa6cfc", "147": "38a03e32ab28113e", "148": "9fd8a4abf0eb00a3", "149": "fe8ad8aaa5b6f652", "150": "be78134816511eaf", "151": "4737624cd139d117", "152": "5fcab665dcd75a7d", "153": "33b1870821fb012a", "154": "10992f7331cbdeba", "155": "cef806733796b489", "156": "76578e90353475ed", "157": "7dd5c61562c827a8", "158": "57931ddf408ceeeb", "159": "d64c6d160a7faed4", "160": "e6273a4f9b65952b", "161": "400d2883ce278be7", "162": "6e3ce4714f76f2f9", "163": "de2233c73c628824", "164": "a144dcdc61af17a5", "165": "672ba0ee4d6993c2", "166": "60a2d42e0373376c", "167": "934bee98555c5f5b", "168": "3323cd7407922799", "169": "9050a3ebe80326e5", "170": "10d7c8f3898b68e5", "171": "2ce5bbc30db985b5", "172": "2a963843e9a8e153", "173": "28537a0c0fbd566f", "174": "3659ed0b62c213c5", "175": "912cf03978233ef7", "176": "8176a164778526f9", "177": "70497658d0e0cea6", "178": "c4abf0eb38ef740d", "179": "75efc6457f7fce22", "180": "be62daa7d5bc336a", "181": "47c3e1a9d4bb7e67", "182": "82ff39c105ae3090", "183": "54f53e5e0cc8c385", "184": "821696b1ff49347b", "185": "25a6695f5783d2be", "186": "a74925b45b279d6f", "187": "f7a706f5fcb260c3", "188": "6e7b82d0387bf16d", "189"Line truncated
|
||||
{"0": "b93c1e7797d18f85", "1": "f645ec386246cccd", "2": "edd3588e92071857", "3": "7e1d73d793724c46", "4": "f34c872571e8a774", "5": "7478d6755ca2248a", "6": "c59d65efcc315d5d", "7": "42b434f9e90d00a9", "8": "1077fee6b5510591", "9": "24a1d952082d507a", "10": "17d3c105da90b4ed", "11": "7bf5b79d43d8adb6", "12": "2e74386825b1fbfe", "13": "3b660f91a2595a07", "14": "cdb5e3f729718f5b", "15": "4594bb1096f5da3c", "16": "70e62553403661a3", "17": "404a7df7025e3dcd", "18": "cf50c60576ede51d", "19": "4c59d1cd2ef8804b", "20": "f38c905c9af9edc0", "21": "454dbf552e2e48f2", "22": "a2843cfb0b7e7d68", "23": "65e41c1c22dcd058", "24": "cc9f6b9b9ae829fb", "25": "cea592c1b4184c43", "26": "9d1b8af0f2f4b24e", "27": "73df605d6eec20d9", "28": "cb17af4eb831480f", "29": "5a6d4157fb91d937", "30": "c5222f750b60a107", "31": "374f9379336f8190", "32": "21393d756e6cc9c6", "33": "7292714730b2f8e0", "34": "6198197b3da188d8", "35": "93d54dd865cba4db", "36": "f7d0b5a4835ae7b1", "37": "55ff2f267bd546b2", "38": "efd23a55366dfd0a", "39": "060c64726e8d1bd3", "40": "fd6d145000147563", "41": "3b1909d07e8fb962", "42": "8c213a62d97de6b1", "43": "b1c3283bd55a8fe9", "44": "d9e74b032c5b8440", "45": "62430df45afa65b5", "46": "27f4779cfe1c5afe", "47": "b1fb8b1d0bcaa7fd", "48": "4ece6985263357c4", "49": "39330b3594b27ead", "50": "656f816eb51f2ab1", "51": "bf5a253cc5340107", "52": "71d2ce6fb684bc0e", "53": "8ea0eab3d1fe8e62", "54": "f82008d7d17c733f", "55": "4eda46a5b0695ef6", "56": "db04321dca52a9ad", "57": "c2ee2f9838df873c", "58": "e2bda4d8806cbe01", "59": "25151b85263c124a", "60": "e036dbd1de0f8b38", "61": "8866fe073f53575c", "62": "a12ba2aaf372ff1a", "63": "90b79d6027d60d30", "64": "197343856166633c", "65": "4654167fd211d027", "66": "c6b57d78299a27b3", "67": "f0f56796aaebb4f5", "68": "62304118d8853724", "69": "9409b3b8a334f51d", "70": "ac95a9f152e3d1c4", "71": "989c014f76b74793", "72": "17ecb7325285cf7a", "73": "4487fd85ddc13c93", "74": "d308b8d47bb1d1ef", "75": "167643bcbbc26244", "76": "dcffd9ad7a1f7df6", "77": "f17c5fbca8a8e41e", "78": "48f898ce95c8e90c", "79": "a2fe690317aef2ee", "80": "fa2d7dcf52348095", "81": "b92a68cf0d823560", "82": "6bd6f2633370820c", "83": "1d80b74f885d6716", "84": "f4d1e3ec22fbfe3d", "85": "e9728eefddbaed5b", "86": "85cd9ca1246dc437", "87": "3e93071fc4a80e95", "88": "35d3a2679371e9a4", "89": "b8f35a499b36a57a", "90": "2d009974f4217730", "91": "00d9ddfeee7b4c47", "92": "6ddbf62ac93920e1", "93": "94bf724f55aba57a", "94": "867babdd40f0c3fc", "95": "94971d590fc06983", "96": "00d275127a7e435e", "97": "2942a9d30dae4a29", "98": "3e21e2fb50e12670", "99": "17ca8d640a75a60d", "100": "6cc089e9f052ba3f", "101": "6256958a9b817133", "102": "7664e56213a29331", "103": "6058c28d2bab04d5", "104": "7c65a1f3c4f1b858", "105": "67b5cef27d55952d", "106": "10b2996179aaaf2e", "107": "39031f751fb2d42f", "108": "1e833ee596b5ca23", "109": "2434b1a28b16557f", "110": "cb3fe87c920b0cb3", "111": "ddb9c95db6575999", "112": "e2250667e3a77089", "113": "9069d5dda9013eee", "114": "0077975cffee54dc", "115": "e6fcd0aec85fac92", "116": "9590124db1601a96", "117": "1ee682d3178edd99", "118": "942c4f9928c60a45", "119": "0614b98d9013b5f5", "120": "4a0ee509eb81db2e", "121": "4ab8ffab1d51ca61", "122": "3be2a9ccdc6668cc", "123": "3fb0bef25bab507e", "124": "bd3010d97e467f52", "125": "703a4a9860d7ed16", "126": "85fd4a84b5393d0e", "127": "53ff49b3d54f0fba", "128": "2153ddcd7477dfb7", "129": "7abb5bc6a0e4f65f", "130": "f15d79ac0ce9dec9", "131": "1c9a1f4c72613346", "132": "0f62727f3b4907c0", "133": "31a5a53f1fe77e46", "134": "69d0f8b228227690", "135": "22456307ff273d80", "136": "ba7bc17581366c9a", "137": "d7cad630fb1d1414", "138": "0727bb53199085fc", "139": "91393683c97d1773", "140": "ecfb692b6f7a1014", "141": "1d230c8fb897098f", "142": "3a6753a80123a0f4", "143": "e66a941c60456b44", "144": "a7cf02106e992a23", "145": "88604333ff6aa860", "146": "8365b02889fa6cfc", "147": "38a03e32ab28113e", "148": "9fd8a4abf0eb00a3", "149": "fe8ad8aaa5b6f652", "150": "be78134816511eaf", "151": "4737624cd139d117", "152": "5fcab665dcd75a7d", "153": "33b1870821fb012a", "154": "10992f7331cbdeba", "155": "cef806733796b489", "156": "76578e90353475ed", "157": "7dd5c61562c827a8", "158": "57931ddf408ceeeb", "159": "d64c6d160a7faed4", "160": "e6273a4f9b65952b", "161": "400d2883ce278be7", "162": "6e3ce4714f76f2f9", "163": "de2233c73c628824", "164": "a144dcdc61af17a5", "165": "672ba0ee4d6993c2", "166": "60a2d42e0373376c", "167": "934bee98555c5f5b", "168": "3323cd7407922799", "169": "9050a3ebe80326e5", "170": "10d7c8f3898b68e5", "171": "2ce5bbc30db985b5", "172": "2a963843e9a8e153", "173": "28537a0c0fbd566f", "174": "3659ed0b62c213c5", "175": "912cf03978233ef7", "176": "8176a164778526f9", "177": "70497658d0e0cea6", "178": "c4abf0eb38ef740d", "179": "75efc6457f7fce22", "180": "be62daa7d5bc336a", "181": "47c3e1a9d4bb7e67", "182": "82ff39c105ae3090", "183": "54f53e5e0cc8c385", "184": "821696b1ff49347b", "185": "25a6695f5783d2be", "186": "a74925b45b279d6f", "187": "f7a706f5fcb260c3", "188": "6e7b82d0387bf16d", "189"Line truncated
|
||||
@@ -1,31 +1,31 @@
|
||||
{
|
||||
"0": "AdminService",
|
||||
"1": "pets/pets.controller.ts",
|
||||
"1": "PetsController",
|
||||
"2": "Roles",
|
||||
"3": "UsersService",
|
||||
"4": "CmsController",
|
||||
"5": ".create",
|
||||
"6": "auth.controller.ts",
|
||||
"5": "BannersService",
|
||||
"6": "auth.service.ts",
|
||||
"7": "app.module.ts",
|
||||
"8": "CreateVideoDto",
|
||||
"9": "ProductService",
|
||||
"10": "SmartAdvisor.tsx",
|
||||
"11": "compilerOptions",
|
||||
"12": "toPersian",
|
||||
"13": "Products.tsx",
|
||||
"13": "pets/pets.controller.ts",
|
||||
"14": "ProductsService",
|
||||
"15": "lib/services/api.ts",
|
||||
"16": "devDependencies",
|
||||
"17": "useSettingsStore",
|
||||
"18": "AppModule",
|
||||
"18": "MetricsController",
|
||||
"19": "B2B Inquiry Controller",
|
||||
"20": "Category Management Controller",
|
||||
"21": "auth.service.ts",
|
||||
"21": "RedisService",
|
||||
"22": "MediaController",
|
||||
"23": "Ingredient Management Controller",
|
||||
"24": "adminRoutes.tsx",
|
||||
"25": "admin.module.ts",
|
||||
"26": "SmsService",
|
||||
"26": "api",
|
||||
"27": "Prescription Review Controller",
|
||||
"28": "Smart Advisor Controller",
|
||||
"29": "Testimonials Management Controller",
|
||||
@@ -34,7 +34,7 @@
|
||||
"32": "useCartStore",
|
||||
"33": "ZibalService",
|
||||
"34": "main.ts",
|
||||
"35": "ContactService",
|
||||
"35": "payment.controller.ts",
|
||||
"36": "Backend TypeScript Config",
|
||||
"37": "App TypeScript Config",
|
||||
"38": "ConfirmModal.tsx",
|
||||
@@ -61,9 +61,9 @@
|
||||
"59": "PrismaService",
|
||||
"60": "Jest Testing Config",
|
||||
"61": "PaginationDto",
|
||||
"62": "BlogsController",
|
||||
"62": "WikiController",
|
||||
"63": "FE-001",
|
||||
"64": "WikiService",
|
||||
"64": "PetsService",
|
||||
"65": "rules/graphify.md",
|
||||
"66": "App Health Controller",
|
||||
"67": "dependencies",
|
||||
@@ -73,10 +73,10 @@
|
||||
"71": "Analytics and Report Charts",
|
||||
"72": "Task Orchestration Scripts",
|
||||
"73": "Backend Package Config",
|
||||
"74": "CreateOrderDto",
|
||||
"74": "CreateHealthLogDto",
|
||||
"75": "React Error Boundary",
|
||||
"76": "Application Package Config",
|
||||
"77": "WikiController",
|
||||
"77": ".findAll",
|
||||
"78": "Error and Not Found Pages",
|
||||
"79": "VPN Utility Scripts",
|
||||
"80": "NestJS CLI Config",
|
||||
@@ -102,7 +102,7 @@
|
||||
"100": "Network Status Banner",
|
||||
"101": "Docker Deployment Scripts",
|
||||
"102": "DB-001",
|
||||
"103": ".adminLogin",
|
||||
"103": "CreateReminderDto",
|
||||
"104": "Database Migration Scripts",
|
||||
"105": "Scientific Terms Schema",
|
||||
"106": "Blog Data Seeding",
|
||||
@@ -116,7 +116,7 @@
|
||||
"114": "Manifest Data Generation",
|
||||
"115": "Honest Manifest Synchronization",
|
||||
"116": "Manifest Entry Synchronization",
|
||||
"117": "AuthController",
|
||||
"117": "Videos.tsx",
|
||||
"118": "TS-001",
|
||||
"119": "TEST-001",
|
||||
"120": "@tailwindcss/postcss",
|
||||
@@ -129,14 +129,14 @@
|
||||
"127": "DEVOPS-001",
|
||||
"128": "DOC-001",
|
||||
"129": "What You Must Do When Invoked",
|
||||
"130": "JwtAuthGuard",
|
||||
"130": "RolesGuard",
|
||||
"131": "راهنمای تست سیستم (Software Testing)",
|
||||
"132": "Role & Core Objective",
|
||||
"133": "Required Review Group Closures",
|
||||
"134": "Operational Rules & Boundaries",
|
||||
"135": "Operational Rules & Boundaries",
|
||||
"136": "🏢 AI Software Agency — Master Orchestration Protocol v3",
|
||||
"137": "BlogsService",
|
||||
"137": "@nestjs/cli",
|
||||
"138": "Operational Rules & Boundaries",
|
||||
"139": "Operational Rules & Boundaries",
|
||||
"140": "Bcrypt Type Definitions",
|
||||
@@ -213,7 +213,7 @@
|
||||
"211": "Phase 2 Final Quality Gate Summary Report",
|
||||
"212": "Task Modifications Log",
|
||||
"213": "Install",
|
||||
"214": ".findAll",
|
||||
"214": "BlogsController",
|
||||
"215": "System Discovery",
|
||||
"216": "Product Requirement Document (PRD)",
|
||||
"217": "Baseline Command Plan & Reconciled Command History",
|
||||
@@ -264,15 +264,7 @@
|
||||
"262": "application/CLAUDE.md",
|
||||
"263": "application/public/fonts/sahel-font-v3.4.0/CHANGELOG.md",
|
||||
"264": "tailwindcss",
|
||||
"265": "AuthService",
|
||||
"266": "RegisterDto",
|
||||
"267": "GetProductsDto",
|
||||
"268": "WholesaleApplyDto",
|
||||
"269": "AdminLoginDto",
|
||||
"270": "VerifyOtpDto",
|
||||
"271": "App.tsx",
|
||||
"272": "ValidateCouponDto",
|
||||
"273": "AGENTS.md",
|
||||
"274": "eslint-config-prettier",
|
||||
"275": "globals"
|
||||
"265": "typescript-eslint",
|
||||
"268": "wholesale.controller.ts",
|
||||
"273": "AGENTS.md"
|
||||
}
|
||||
@@ -1,47 +1,47 @@
|
||||
# Graph Report - canina (2026-08-16)
|
||||
|
||||
## Corpus Check
|
||||
- 461 files · ~673,005 words
|
||||
- 461 files · ~675,412 words
|
||||
- Verdict: corpus is large enough that graph structure adds value.
|
||||
|
||||
## Summary
|
||||
- 3199 nodes · 5155 edges · 276 communities (179 shown, 97 thin omitted)
|
||||
- Extraction: 97% EXTRACTED · 3% INFERRED · 0% AMBIGUOUS · INFERRED: 171 edges (avg confidence: 0.79)
|
||||
- 3213 nodes · 5194 edges · 268 communities (173 shown, 95 thin omitted)
|
||||
- Extraction: 97% EXTRACTED · 3% INFERRED · 0% AMBIGUOUS · INFERRED: 177 edges (avg confidence: 0.79)
|
||||
- Token cost: 0 input · 0 output
|
||||
|
||||
## Graph Freshness
|
||||
- Built from commit: `0934b4f3`
|
||||
- Built from commit: `d8c6aa8d`
|
||||
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
|
||||
- Run `graphify update .` after code changes (no API cost).
|
||||
|
||||
## Community Hubs (Navigation)
|
||||
- AdminService
|
||||
- pets/pets.controller.ts
|
||||
- PetsController
|
||||
- Roles
|
||||
- UsersService
|
||||
- CmsController
|
||||
- .create
|
||||
- auth.controller.ts
|
||||
- BannersService
|
||||
- auth.service.ts
|
||||
- app.module.ts
|
||||
- CreateVideoDto
|
||||
- ProductService
|
||||
- SmartAdvisor.tsx
|
||||
- compilerOptions
|
||||
- toPersian
|
||||
- Products.tsx
|
||||
- pets/pets.controller.ts
|
||||
- ProductsService
|
||||
- lib/services/api.ts
|
||||
- devDependencies
|
||||
- useSettingsStore
|
||||
- AppModule
|
||||
- MetricsController
|
||||
- B2B Inquiry Controller
|
||||
- Category Management Controller
|
||||
- auth.service.ts
|
||||
- RedisService
|
||||
- MediaController
|
||||
- Ingredient Management Controller
|
||||
- adminRoutes.tsx
|
||||
- admin.module.ts
|
||||
- SmsService
|
||||
- api
|
||||
- Prescription Review Controller
|
||||
- Smart Advisor Controller
|
||||
- Testimonials Management Controller
|
||||
@@ -50,7 +50,7 @@
|
||||
- useCartStore
|
||||
- ZibalService
|
||||
- main.ts
|
||||
- ContactService
|
||||
- payment.controller.ts
|
||||
- Backend TypeScript Config
|
||||
- App TypeScript Config
|
||||
- ConfirmModal.tsx
|
||||
@@ -77,9 +77,9 @@
|
||||
- PrismaService
|
||||
- Jest Testing Config
|
||||
- PaginationDto
|
||||
- BlogsController
|
||||
- WikiController
|
||||
- FE-001
|
||||
- WikiService
|
||||
- PetsService
|
||||
- rules/graphify.md
|
||||
- App Health Controller
|
||||
- dependencies
|
||||
@@ -89,10 +89,10 @@
|
||||
- Analytics and Report Charts
|
||||
- Task Orchestration Scripts
|
||||
- Backend Package Config
|
||||
- CreateOrderDto
|
||||
- CreateHealthLogDto
|
||||
- React Error Boundary
|
||||
- Application Package Config
|
||||
- WikiController
|
||||
- .findAll
|
||||
- Error and Not Found Pages
|
||||
- VPN Utility Scripts
|
||||
- NestJS CLI Config
|
||||
@@ -118,7 +118,7 @@
|
||||
- Network Status Banner
|
||||
- Docker Deployment Scripts
|
||||
- DB-001
|
||||
- .adminLogin
|
||||
- CreateReminderDto
|
||||
- Database Migration Scripts
|
||||
- Scientific Terms Schema
|
||||
- Blog Data Seeding
|
||||
@@ -132,7 +132,7 @@
|
||||
- Manifest Data Generation
|
||||
- Honest Manifest Synchronization
|
||||
- Manifest Entry Synchronization
|
||||
- AuthController
|
||||
- Videos.tsx
|
||||
- TS-001
|
||||
- TEST-001
|
||||
- @tailwindcss/postcss
|
||||
@@ -145,14 +145,14 @@
|
||||
- DEVOPS-001
|
||||
- DOC-001
|
||||
- What You Must Do When Invoked
|
||||
- JwtAuthGuard
|
||||
- RolesGuard
|
||||
- راهنمای تست سیستم (Software Testing)
|
||||
- Role & Core Objective
|
||||
- Required Review Group Closures
|
||||
- Operational Rules & Boundaries
|
||||
- Operational Rules & Boundaries
|
||||
- 🏢 AI Software Agency — Master Orchestration Protocol v3
|
||||
- BlogsService
|
||||
- @nestjs/cli
|
||||
- Operational Rules & Boundaries
|
||||
- Operational Rules & Boundaries
|
||||
- Bcrypt Type Definitions
|
||||
@@ -222,7 +222,7 @@
|
||||
- Phase 2 Final Quality Gate Summary Report
|
||||
- Task Modifications Log
|
||||
- Install
|
||||
- .findAll
|
||||
- BlogsController
|
||||
- System Discovery
|
||||
- Product Requirement Document (PRD)
|
||||
- Baseline Command Plan & Reconciled Command History
|
||||
@@ -266,23 +266,15 @@
|
||||
- @types/react
|
||||
- typescript
|
||||
- vitest
|
||||
- AuthService
|
||||
- RegisterDto
|
||||
- GetProductsDto
|
||||
- WholesaleApplyDto
|
||||
- AdminLoginDto
|
||||
- VerifyOtpDto
|
||||
- App.tsx
|
||||
- ValidateCouponDto
|
||||
- typescript-eslint
|
||||
- wholesale.controller.ts
|
||||
- AGENTS.md
|
||||
- eslint-config-prettier
|
||||
- globals
|
||||
|
||||
## God Nodes (most connected - your core abstractions)
|
||||
1. `PrismaService` - 74 edges
|
||||
2. `Roles()` - 51 edges
|
||||
2. `Roles()` - 54 edges
|
||||
3. `PaginationDto` - 39 edges
|
||||
4. `SmsService` - 34 edges
|
||||
4. `SmsService` - 38 edges
|
||||
5. `api` - 33 edges
|
||||
6. `useSettingsStore` - 33 edges
|
||||
7. `AdminService` - 31 edges
|
||||
@@ -311,43 +303,43 @@
|
||||
- **Rastikerdar Font Ecosystem** — frontend_application_public_fonts_shabnam_font_v5_0_1_readme, frontend_application_public_fonts_vazirmatn_v33_003_readme, vazir_font [EXTRACTED 0.95]
|
||||
- **Canina Deployment Stack** — scripts_compose_prod, scripts_compose_stage [EXTRACTED 1.00]
|
||||
|
||||
## Communities (276 total, 97 thin omitted)
|
||||
## Communities (268 total, 95 thin omitted)
|
||||
|
||||
### Community 0 - "AdminService"
|
||||
Cohesion: 0.07
|
||||
Nodes (22): AdminController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, Delete (+14 more)
|
||||
Cohesion: 0.06
|
||||
Nodes (24): AdminController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, Delete (+16 more)
|
||||
|
||||
### Community 1 - "pets/pets.controller.ts"
|
||||
Cohesion: 0.05
|
||||
Nodes (45): CreateHealthLogDto, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString, CreatePetDto, ApiProperty (+37 more)
|
||||
### Community 1 - "PetsController"
|
||||
Cohesion: 0.17
|
||||
Nodes (18): PetsController, ApiBadRequestResponse, ApiBearerAuth, ApiCreatedResponse, ApiNotFoundResponse, ApiOkResponse, ApiOperation, ApiTags (+10 more)
|
||||
|
||||
### Community 2 - "Roles"
|
||||
Cohesion: 0.07
|
||||
Nodes (32): BannersController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+24 more)
|
||||
Cohesion: 0.05
|
||||
Nodes (31): Roles(), SmsService, Injectable, ContactController, Body, Controller, Get, Param (+23 more)
|
||||
|
||||
### Community 3 - "UsersService"
|
||||
Cohesion: 0.07
|
||||
Nodes (34): JwtPayload, JwtStrategy, Injectable, AddressDto, ApiProperty, ApiPropertyOptional, IsBoolean, IsNotEmpty (+26 more)
|
||||
Cohesion: 0.06
|
||||
Nodes (37): AuthModule, Module, JwtPayload, JwtStrategy, Injectable, AddressDto, ApiProperty, ApiPropertyOptional (+29 more)
|
||||
|
||||
### Community 4 - "CmsController"
|
||||
Cohesion: 0.09
|
||||
Nodes (24): CmsController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+16 more)
|
||||
|
||||
### Community 5 - ".create"
|
||||
Cohesion: 0.18
|
||||
Nodes (11): ApiBadRequestResponse, ApiCreatedResponse, ApiNotFoundResponse, ApiOkResponse, ApiOperation, Body, Get, Param (+3 more)
|
||||
### Community 5 - "BannersService"
|
||||
Cohesion: 0.13
|
||||
Nodes (15): BannersController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+7 more)
|
||||
|
||||
### Community 6 - "auth.controller.ts"
|
||||
Cohesion: 0.18
|
||||
Nodes (10): LoginDto, ApiProperty, IsNotEmpty, IsString, MinLength, SendOtpDto, ApiProperty, IsNotEmpty (+2 more)
|
||||
### Community 6 - "auth.service.ts"
|
||||
Cohesion: 0.05
|
||||
Nodes (44): AuthController, ApiBadRequestResponse, ApiOkResponse, ApiOperation, ApiTags, Body, Controller, Post (+36 more)
|
||||
|
||||
### Community 7 - "app.module.ts"
|
||||
Cohesion: 0.07
|
||||
Nodes (28): B2BModule, Module, BannersModule, Module, CmsModule, Module, SmsModule, Global (+20 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (30): AdminModule, Module, BannersModule, Module, CmsModule, Module, SmsModule, Global (+22 more)
|
||||
|
||||
### Community 8 - "CreateVideoDto"
|
||||
Cohesion: 0.07
|
||||
Nodes (31): CreateVideoDto, ApiProperty, ApiPropertyOptional, IsBoolean, IsNotEmpty, IsOptional, IsString, UpdateVideoDto (+23 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (29): CreateVideoDto, ApiProperty, ApiPropertyOptional, IsBoolean, IsNotEmpty, IsOptional, IsString, UpdateVideoDto (+21 more)
|
||||
|
||||
### Community 9 - "ProductService"
|
||||
Cohesion: 0.07
|
||||
@@ -365,13 +357,13 @@ Nodes (32): compilerOptions, allowJs, esModuleInterop, incremental, isolatedModu
|
||||
Cohesion: 0.08
|
||||
Nodes (37): ClientLayout(), VerifyContent(), AddressModal(), AddressModalProps, AuthModal(), AuthModalProps, B2BPortal(), BackButton() (+29 more)
|
||||
|
||||
### Community 13 - "Products.tsx"
|
||||
Cohesion: 0.15
|
||||
Nodes (9): Pagination(), PaginationProps, BlogPost, Pet, Category, Product, Blogs, Pets (+1 more)
|
||||
### Community 13 - "pets/pets.controller.ts"
|
||||
Cohesion: 0.16
|
||||
Nodes (13): CreatePetDto, ApiProperty, ApiPropertyOptional, IsArray, IsNotEmpty, IsNumber, IsOptional, IsString (+5 more)
|
||||
|
||||
### Community 14 - "ProductsService"
|
||||
Cohesion: 0.12
|
||||
Nodes (13): ProductsController, ApiOperation, ApiTags, Body, Controller, Get, Param, Patch (+5 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (19): GetProductsDto, ApiPropertyOptional, IsEnum, IsOptional, IsString, ProductsController, ApiOperation, ApiTags (+11 more)
|
||||
|
||||
### Community 15 - "lib/services/api.ts"
|
||||
Cohesion: 0.08
|
||||
@@ -379,15 +371,15 @@ Nodes (17): metadata, ContactFormClient(), ContactInfoItem, PrescriptionUploadMo
|
||||
|
||||
### Community 16 - "devDependencies"
|
||||
Cohesion: 0.09
|
||||
Nodes (23): devDependencies, eslint, @eslint/js, jest, @nestjs/cli, @nestjs/schematics, @nestjs/testing, source-map-support (+15 more)
|
||||
Nodes (23): devDependencies, eslint, eslint-config-prettier, @eslint/js, jest, @nestjs/schematics, @nestjs/testing, source-map-support (+15 more)
|
||||
|
||||
### Community 17 - "useSettingsStore"
|
||||
Cohesion: 0.07
|
||||
Nodes (30): HomeClient(), HomeClientProps, getHomeData(), Home(), metadata, metadata, EnamadBadge(), Footer() (+22 more)
|
||||
|
||||
### Community 18 - "AppModule"
|
||||
Cohesion: 0.12
|
||||
Nodes (7): ApiExcludeController, AppModule, Module, MetricsController, Controller, Get, Res
|
||||
### Community 18 - "MetricsController"
|
||||
Cohesion: 0.20
|
||||
Nodes (5): ApiExcludeController, MetricsController, Controller, Get, Res
|
||||
|
||||
### Community 19 - "B2B Inquiry Controller"
|
||||
Cohesion: 0.13
|
||||
@@ -397,12 +389,12 @@ Nodes (15): B2BController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controlle
|
||||
Cohesion: 0.10
|
||||
Nodes (16): CategoriesController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, Delete (+8 more)
|
||||
|
||||
### Community 21 - "auth.service.ts"
|
||||
Cohesion: 0.14
|
||||
Nodes (10): CouponTargetInput, PaginationQuery, AdminLoginInput, LoginInput, RegisterInput, RedisModule, Global, Module (+2 more)
|
||||
### Community 21 - "RedisService"
|
||||
Cohesion: 0.19
|
||||
Nodes (5): RedisModule, Global, Module, RedisService, Injectable
|
||||
|
||||
### Community 22 - "MediaController"
|
||||
Cohesion: 0.10
|
||||
Cohesion: 0.11
|
||||
Nodes (16): MediaController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+8 more)
|
||||
|
||||
### Community 23 - "Ingredient Management Controller"
|
||||
@@ -410,12 +402,16 @@ Cohesion: 0.13
|
||||
Nodes (14): IngredientsController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+6 more)
|
||||
|
||||
### Community 24 - "adminRoutes.tsx"
|
||||
Cohesion: 0.09
|
||||
Nodes (18): ContactInfoItem, ContactSubmission, CategoryDist, DashboardData, PatternItem, SmsConfigState, GROUP_PAGE_MAP, GROUPS (+10 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (14): App(), ContactInfoItem, ContactSubmission, GROUP_PAGE_MAP, GROUPS, PAGE_TABS, AdminRouteConfig, ContactSubmissions (+6 more)
|
||||
|
||||
### Community 25 - "admin.module.ts"
|
||||
Cohesion: 0.09
|
||||
Nodes (15): AdminModule, Module, CategoryQuery, PetQuery, PetsService, Injectable, ReportsController, ApiBearerAuth (+7 more)
|
||||
Cohesion: 0.06
|
||||
Nodes (20): BlogQuery, BlogsService, Injectable, PetQuery, PetsService, Injectable, ReportsController, ApiBearerAuth (+12 more)
|
||||
|
||||
### Community 26 - "api"
|
||||
Cohesion: 0.11
|
||||
Nodes (12): HeroBanner, VetTestimonial, CategoryDist, DashboardData, PatternItem, SmsConfigState, SmsLogItem, SmsLogStats (+4 more)
|
||||
|
||||
### Community 27 - "Prescription Review Controller"
|
||||
Cohesion: 0.14
|
||||
@@ -430,28 +426,28 @@ Cohesion: 0.13
|
||||
Nodes (14): TestimonialsController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+6 more)
|
||||
|
||||
### Community 30 - "src/services/api.ts"
|
||||
Cohesion: 0.12
|
||||
Nodes (22): Layout(), ProtectedRoute(), menuGroups, Sidebar(), SidebarProps, SEARCHABLE_PAGES, Topbar(), TopbarProps (+14 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (25): Layout(), ProtectedRoute(), menuGroups, Sidebar(), SidebarProps, SEARCHABLE_PAGES, Topbar(), TopbarProps (+17 more)
|
||||
|
||||
### Community 31 - "Spinner.tsx"
|
||||
Cohesion: 0.09
|
||||
Nodes (21): Media, MediaSelector(), MediaSelectorProps, Spinner(), Category, Media, BannersManager, Categories (+13 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (19): Media, MediaSelector(), MediaSelectorProps, Spinner(), Category, Product, BannersManager, IngredientsManager (+11 more)
|
||||
|
||||
### Community 32 - "useCartStore"
|
||||
Cohesion: 0.12
|
||||
Nodes (16): metadata, ArchiveProductCard(), ProductCard(), Header(), MENU_ICONS, OrderSuccess(), OrderTracking(), PetProfile() (+8 more)
|
||||
|
||||
### Community 33 - "ZibalService"
|
||||
Cohesion: 0.07
|
||||
Nodes (30): InitiatePaymentDto, InitiateWalletTopupDto, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString, ApiPropertyOptional (+22 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (19): PaymentController, ApiBadRequestResponse, ApiBearerAuth, ApiOkResponse, ApiOperation, ApiTags, Body, Controller (+11 more)
|
||||
|
||||
### Community 34 - "main.ts"
|
||||
Cohesion: 0.14
|
||||
Nodes (9): CustomHttpExceptionFilter, Catch, PrismaExceptionFilter, Catch, DecimalInterceptor, Injectable, ApiErrorResponse, ErrorDetailField (+1 more)
|
||||
Cohesion: 0.11
|
||||
Nodes (11): AppModule, Module, CustomHttpExceptionFilter, Catch, PrismaExceptionFilter, Catch, DecimalInterceptor, Injectable (+3 more)
|
||||
|
||||
### Community 35 - "ContactService"
|
||||
Cohesion: 0.13
|
||||
Nodes (11): ContactController, Body, Controller, Get, Param, Post, Put, Query (+3 more)
|
||||
### Community 35 - "payment.controller.ts"
|
||||
Cohesion: 0.23
|
||||
Nodes (11): InitiatePaymentDto, InitiateWalletTopupDto, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString, ApiPropertyOptional (+3 more)
|
||||
|
||||
### Community 36 - "Backend TypeScript Config"
|
||||
Cohesion: 0.09
|
||||
@@ -462,8 +458,8 @@ Cohesion: 0.09
|
||||
Nodes (22): compilerOptions, allowImportingTsExtensions, erasableSyntaxOnly, jsx, lib, module, moduleDetection, moduleResolution (+14 more)
|
||||
|
||||
### Community 38 - "ConfirmModal.tsx"
|
||||
Cohesion: 0.09
|
||||
Nodes (17): ConfirmModal(), ConfirmModalProps, HeroBanner, VetTestimonial, fetchVideosList(), Video, Videos(), WholesaleRequest (+9 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (17): ConfirmModal(), ConfirmModalProps, Pagination(), PaginationProps, BlogPost, Category, Media, Pet (+9 more)
|
||||
|
||||
### Community 39 - "dependencies"
|
||||
Cohesion: 0.05
|
||||
@@ -507,7 +503,7 @@ Nodes (10): HomeController, ApiOkResponse, ApiOperation, ApiTags, Controller, Ge
|
||||
|
||||
### Community 49 - "devDependencies"
|
||||
Cohesion: 0.11
|
||||
Nodes (19): autoprefixer, devDependencies, autoprefixer, eslint, @eslint/js, postcss, @types/node, @types/react (+11 more)
|
||||
Nodes (19): autoprefixer, devDependencies, autoprefixer, eslint, @eslint/js, globals, postcss, @types/node (+11 more)
|
||||
|
||||
### Community 50 - "Database Seeding Logic"
|
||||
Cohesion: 0.17
|
||||
@@ -546,29 +542,25 @@ Cohesion: 0.15
|
||||
Nodes (11): PetsController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Controller, Delete, Get (+3 more)
|
||||
|
||||
### Community 59 - "PrismaService"
|
||||
Cohesion: 0.12
|
||||
Nodes (13): MeliPayamakPattern, MeliPayamakResponse, SendPatternSmsOptions, SmsConfig, CreateContactSubmissionDto, UpdateContactInfoItemDto, ZibalInquiryResponse, ZibalRequestResponse (+5 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (15): CategoryQuery, MeliPayamakPattern, MeliPayamakResponse, SendPatternSmsOptions, SmsConfig, SmsLogQuery, CreateContactSubmissionDto, UpdateContactInfoItemDto (+7 more)
|
||||
|
||||
### Community 60 - "Jest Testing Config"
|
||||
Cohesion: 0.15
|
||||
Nodes (13): jest, collectCoverageFrom, coverageDirectory, moduleFileExtensions, rootDir, testEnvironment, testRegex, transform (+5 more)
|
||||
|
||||
### Community 61 - "PaginationDto"
|
||||
Cohesion: 0.14
|
||||
Nodes (13): PaginationDto, SortOrder, ApiPropertyOptional, IsEnum, IsOptional, IsString, Type, Module (+5 more)
|
||||
Cohesion: 0.12
|
||||
Nodes (13): BlogsModule, Module, BlogsService, Injectable, PaginationDto, SortOrder, ApiPropertyOptional, IsEnum (+5 more)
|
||||
|
||||
### Community 62 - "BlogsController"
|
||||
### Community 62 - "WikiController"
|
||||
Cohesion: 0.20
|
||||
Nodes (7): BlogsController, ApiTags, Controller, BlogsModule, Module, BlogsService, Injectable
|
||||
Nodes (7): ApiTags, Controller, WikiController, Module, WikiModule, Injectable, WikiService
|
||||
|
||||
### Community 63 - "FE-001"
|
||||
Cohesion: 0.06
|
||||
Nodes (31): Acceptance Criteria, Affected Application, Affected Files, Alternative Direction, Architecture Overview & Confirmed Strengths, Category, Completion Statement, Confidence (+23 more)
|
||||
|
||||
### Community 64 - "WikiService"
|
||||
Cohesion: 0.22
|
||||
Nodes (3): Injectable, WikiQuery, WikiService
|
||||
|
||||
### Community 66 - "App Health Controller"
|
||||
Cohesion: 0.29
|
||||
Nodes (5): AppController, Controller, Get, AppService, Injectable
|
||||
@@ -578,8 +570,8 @@ Cohesion: 0.12
|
||||
Nodes (17): dependencies, axios, lucide-react, motion, next, react, react-dom, sonner (+9 more)
|
||||
|
||||
### Community 68 - "OrdersService"
|
||||
Cohesion: 0.15
|
||||
Nodes (9): OrdersController, ApiBearerAuth, ApiTags, Controller, UseGuards, OrdersModule, Module, OrdersService (+1 more)
|
||||
Cohesion: 0.06
|
||||
Nodes (35): CreateOrderDto, OrderItemDto, ApiProperty, ApiPropertyOptional, IsArray, IsNotEmpty, IsNumber, IsOptional (+27 more)
|
||||
|
||||
### Community 69 - "Integrity Validation Scripts"
|
||||
Cohesion: 0.20
|
||||
@@ -601,9 +593,9 @@ Nodes (8): cmd_next_task(), cmd_progress(), cmd_reset(), cmd_status(), cmd_unblo
|
||||
Cohesion: 0.22
|
||||
Nodes (8): author, description, license, name, prisma, seed, private, version
|
||||
|
||||
### Community 74 - "CreateOrderDto"
|
||||
Cohesion: 0.21
|
||||
Nodes (11): CreateOrderDto, OrderItemDto, ApiProperty, ApiPropertyOptional, IsArray, IsNotEmpty, IsNumber, IsOptional (+3 more)
|
||||
### Community 74 - "CreateHealthLogDto"
|
||||
Cohesion: 0.29
|
||||
Nodes (6): CreateHealthLogDto, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString
|
||||
|
||||
### Community 75 - "React Error Boundary"
|
||||
Cohesion: 0.22
|
||||
@@ -613,9 +605,9 @@ Nodes (3): ErrorBoundary, Props, State
|
||||
Cohesion: 0.22
|
||||
Nodes (8): name, private, scripts, build, dev, lint, start, version
|
||||
|
||||
### Community 77 - "WikiController"
|
||||
Cohesion: 0.21
|
||||
Nodes (9): ApiNotFoundResponse, ApiOkResponse, ApiOperation, ApiTags, Controller, Get, Param, Query (+1 more)
|
||||
### Community 77 - ".findAll"
|
||||
Cohesion: 0.32
|
||||
Nodes (6): ApiNotFoundResponse, ApiOkResponse, ApiOperation, Get, Param, Query
|
||||
|
||||
### Community 79 - "VPN Utility Scripts"
|
||||
Cohesion: 0.62
|
||||
@@ -677,17 +669,17 @@ Nodes (3): COMPOSE_DOCKER_CLI_BUILD, DOCKER_BUILDKIT, deploy.sh script
|
||||
Cohesion: 0.06
|
||||
Nodes (31): Acceptance Criteria, Affected Application, Affected Files, Alternative Direction, Category, Completion Statement, Confidence, Database and Data Integrity Audit Report (+23 more)
|
||||
|
||||
### Community 103 - ".adminLogin"
|
||||
Cohesion: 0.55
|
||||
Nodes (6): ApiBadRequestResponse, ApiOkResponse, ApiOperation, Body, Post, HttpCode
|
||||
### Community 103 - "CreateReminderDto"
|
||||
Cohesion: 0.29
|
||||
Nodes (6): CreateReminderDto, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString
|
||||
|
||||
### Community 109 - "Auth Architecture and Planning"
|
||||
Cohesion: 0.67
|
||||
Nodes (3): ADR-AUTH-001: Admin Panel Authentication Architecture & Token Management, Master Task Backlog (Phase 3.3), Phase 3 Master Execution Plan
|
||||
|
||||
### Community 117 - "AuthController"
|
||||
Cohesion: 0.20
|
||||
Nodes (7): AuthController, ApiTags, Controller, AuthModule, Module, Module, UsersModule
|
||||
### Community 117 - "Videos.tsx"
|
||||
Cohesion: 0.50
|
||||
Nodes (4): fetchVideosList(), Video, Videos(), Videos
|
||||
|
||||
### Community 118 - "TS-001"
|
||||
Cohesion: 0.06
|
||||
@@ -713,9 +705,9 @@ Nodes (31): Acceptance Criteria, Affected Application, Affected Files, Alternati
|
||||
Cohesion: 0.07
|
||||
Nodes (26): For /graphify add and --watch, For /graphify query, For the commit hook and native CLAUDE.md integration, For --update and --cluster-only, /graphify, Honesty Rules, Interpreter guard for subcommands, Part A - Structural extraction for code files (+18 more)
|
||||
|
||||
### Community 130 - "JwtAuthGuard"
|
||||
Cohesion: 0.19
|
||||
Nodes (7): JwtAuthGuard, Injectable, ROLES_KEY, RequestWithUser, RolesGuard, Injectable, UserReqPayload
|
||||
### Community 130 - "RolesGuard"
|
||||
Cohesion: 0.23
|
||||
Nodes (6): ROLES_KEY, RequestWithUser, RolesGuard, Injectable, UserReqPayload, ScientificTermData
|
||||
|
||||
### Community 131 - "راهنمای تست سیستم (Software Testing)"
|
||||
Cohesion: 0.07
|
||||
@@ -741,10 +733,6 @@ Nodes (18): 1. Framework-Aware Analysis, 2. DOM & Semantic Structure Analysis, 3
|
||||
Cohesion: 0.11
|
||||
Nodes (17): Activation, Agent Directory Reference, 🏢 AI Software Agency — Master Orchestration Protocol v3, Phase 1: Specialist Review (All agents read, none write code yet), Phase 2: Master Synthesis (02_product_manager in SYNTHESIS mode), Phase 3: Execution (Same as always), PIPELINE A — New Project (GREENFIELD), PIPELINE B — Review & Improve Existing Project (REVIEW_AND_PLAN) ★ (+9 more)
|
||||
|
||||
### Community 137 - "BlogsService"
|
||||
Cohesion: 0.22
|
||||
Nodes (3): BlogQuery, BlogsService, Injectable
|
||||
|
||||
### Community 138 - "Operational Rules & Boundaries"
|
||||
Cohesion: 0.11
|
||||
Nodes (17): 1. Hierarchical Decomposition Algorithm (3-Tier), 2. Sub-step Definition (Required for all tasks), 3. Brownfield Completeness Rule, 4. Role Assignment Rules, 5. Dependency Tracking (Strict), 6. Priority Assignment, 7. Forbidden Actions, DECOMPOSE MODE — Normal Operation (New Projects) (+9 more)
|
||||
@@ -869,9 +857,9 @@ Nodes (8): 1. `TASK-AUTH-001`, 2. `TASK-FIN-001`, 3. `DECISION-002`, 4. `TASK-VE
|
||||
Cohesion: 0.22
|
||||
Nodes (8): Arch Linux, bower, Install, npm, Shabnam Font, yarn, طریقه استفاده در صفحات وب:, نمونه متن Sample:
|
||||
|
||||
### Community 214 - ".findAll"
|
||||
Cohesion: 0.32
|
||||
Nodes (6): ApiNotFoundResponse, ApiOkResponse, ApiOperation, Get, Param, Query
|
||||
### Community 214 - "BlogsController"
|
||||
Cohesion: 0.21
|
||||
Nodes (9): BlogsController, ApiNotFoundResponse, ApiOkResponse, ApiOperation, ApiTags, Controller, Get, Param (+1 more)
|
||||
|
||||
### Community 215 - "System Discovery"
|
||||
Cohesion: 0.25
|
||||
@@ -949,49 +937,29 @@ Nodes (3): Expanding the ESLint configuration, React Compiler, React + TypeScrip
|
||||
Cohesion: 0.50
|
||||
Nodes (3): Deploy on Vercel, Getting Started, Learn More
|
||||
|
||||
### Community 266 - "RegisterDto"
|
||||
Cohesion: 0.22
|
||||
Nodes (8): RegisterDto, ApiProperty, ApiPropertyOptional, IsEmail, IsNotEmpty, IsOptional, IsString, MinLength
|
||||
|
||||
### Community 267 - "GetProductsDto"
|
||||
Cohesion: 0.29
|
||||
Nodes (6): GetProductsDto, ApiPropertyOptional, IsEnum, IsOptional, IsString, Query
|
||||
|
||||
### Community 268 - "WholesaleApplyDto"
|
||||
Cohesion: 0.29
|
||||
Nodes (6): ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString, WholesaleApplyDto
|
||||
|
||||
### Community 269 - "AdminLoginDto"
|
||||
Cohesion: 0.29
|
||||
Nodes (6): AdminLoginDto, ApiProperty, IsEmail, IsNotEmpty, IsString, MinLength
|
||||
|
||||
### Community 270 - "VerifyOtpDto"
|
||||
Cohesion: 0.29
|
||||
Nodes (6): ApiProperty, IsNotEmpty, IsString, Matches, VerifyOtpDto, Length
|
||||
|
||||
### Community 272 - "ValidateCouponDto"
|
||||
Cohesion: 0.50
|
||||
Nodes (4): IsNotEmpty, IsNumber, IsString, ValidateCouponDto
|
||||
### Community 268 - "wholesale.controller.ts"
|
||||
Cohesion: 0.17
|
||||
Nodes (8): B2BModule, Module, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString, WholesaleApplyDto
|
||||
|
||||
## Knowledge Gaps
|
||||
- **1175 isolated node(s):** `$schema`, `collection`, `sourceRoot`, `deleteOutDir`, `name` (+1170 more)
|
||||
- **1178 isolated node(s):** `$schema`, `collection`, `sourceRoot`, `deleteOutDir`, `name` (+1173 more)
|
||||
These have ≤1 connection - possible missing edges or undocumented components.
|
||||
- **97 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
|
||||
- **95 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
|
||||
|
||||
## Suggested Questions
|
||||
_Questions this graph is uniquely positioned to answer:_
|
||||
|
||||
- **Why does `ApiResponse` connect `src/services/api.ts` to `pets/pets.controller.ts`, `UsersService`, `OrdersService`, `WikiController`, `ProductsService`, `Home Data Module`, `AuthController`, `BlogsController`?**
|
||||
- **Why does `ApiResponse` connect `src/services/api.ts` to `PetsController`, `UsersService`, `OrdersService`, `auth.service.ts`, `ProductsService`, `Home Data Module`, `BlogsController`, `WikiController`?**
|
||||
_High betweenness centrality (0.036) - this node is a cross-community bridge._
|
||||
- **Why does `Roles()` connect `Roles` to `JwtAuthGuard`, `ContactService`, `CmsController`, `WholesaleService`, `ProductsService`, `B2B Inquiry Controller`, `Ingredient Management Controller`, `Prescription Review Controller`, `Smart Advisor Controller`, `Testimonials Management Controller`?**
|
||||
_High betweenness centrality (0.026) - this node is a cross-community bridge._
|
||||
- **Why does `JwtAuthGuard` connect `JwtAuthGuard` to `AdminService`, `ZibalService`, `pets/pets.controller.ts`, `UsersService`, `CmsController`, `OrdersService`, `CreateVideoDto`, `ProductsService`, `MediaController`, `admin.module.ts`?**
|
||||
- **Why does `Roles()` connect `Roles` to `RolesGuard`, `CmsController`, `BannersService`, `WholesaleService`, `wholesale.controller.ts`, `ProductsService`, `B2B Inquiry Controller`, `Ingredient Management Controller`, `admin.module.ts`, `Prescription Review Controller`, `Smart Advisor Controller`, `Testimonials Management Controller`?**
|
||||
_High betweenness centrality (0.024) - this node is a cross-community bridge._
|
||||
- **Why does `JwtAuthGuard` connect `admin.module.ts` to `AdminService`, `RolesGuard`, `payment.controller.ts`, `CmsController`, `OrdersService`, `UsersService`, `CreateVideoDto`, `wholesale.controller.ts`, `pets/pets.controller.ts`, `ProductsService`?**
|
||||
_High betweenness centrality (0.023) - this node is a cross-community bridge._
|
||||
- **What connects `$schema`, `collection`, `sourceRoot` to the rest of the system?**
|
||||
_1175 weakly-connected nodes found - possible documentation gaps or missing edges._
|
||||
_1178 weakly-connected nodes found - possible documentation gaps or missing edges._
|
||||
- **Should `AdminService` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.06690140845070422 - nodes in this community are weakly interconnected._
|
||||
- **Should `pets/pets.controller.ts` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.0528169014084507 - nodes in this community are weakly interconnected._
|
||||
_Cohesion score 0.06414414414414414 - nodes in this community are weakly interconnected._
|
||||
- **Should `Roles` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.06771929824561404 - nodes in this community are weakly interconnected._
|
||||
_Cohesion score 0.051446321102698506 - nodes in this community are weakly interconnected._
|
||||
- **Should `UsersService` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.06093189964157706 - nodes in this community are weakly interconnected._
|
||||
+4574
-3949
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
+151
-138
@@ -1,47 +1,47 @@
|
||||
# Graph Report - canina (2026-08-16)
|
||||
|
||||
## Corpus Check
|
||||
- 461 files · ~675,412 words
|
||||
- 463 files · ~678,911 words
|
||||
- Verdict: corpus is large enough that graph structure adds value.
|
||||
|
||||
## Summary
|
||||
- 3213 nodes · 5194 edges · 268 communities (173 shown, 95 thin omitted)
|
||||
- Extraction: 97% EXTRACTED · 3% INFERRED · 0% AMBIGUOUS · INFERRED: 177 edges (avg confidence: 0.79)
|
||||
- 3234 nodes · 5269 edges · 285 communities (172 shown, 113 thin omitted)
|
||||
- Extraction: 96% EXTRACTED · 4% INFERRED · 0% AMBIGUOUS · INFERRED: 186 edges (avg confidence: 0.79)
|
||||
- Token cost: 0 input · 0 output
|
||||
|
||||
## Graph Freshness
|
||||
- Built from commit: `d8c6aa8d`
|
||||
- Built from commit: `8de13513`
|
||||
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
|
||||
- Run `graphify update .` after code changes (no API cost).
|
||||
|
||||
## Community Hubs (Navigation)
|
||||
- AdminService
|
||||
- PetsController
|
||||
- pets/pets.controller.ts
|
||||
- Roles
|
||||
- UsersService
|
||||
- CmsController
|
||||
- BannersService
|
||||
- auth.service.ts
|
||||
- auth.controller.ts
|
||||
- app.module.ts
|
||||
- CreateVideoDto
|
||||
- ProductService
|
||||
- SmartAdvisor.tsx
|
||||
- compilerOptions
|
||||
- toPersian
|
||||
- pets/pets.controller.ts
|
||||
- SmsService
|
||||
- ProductsService
|
||||
- lib/services/api.ts
|
||||
- devDependencies
|
||||
- eslint
|
||||
- useSettingsStore
|
||||
- MetricsController
|
||||
- AppModule
|
||||
- B2B Inquiry Controller
|
||||
- Category Management Controller
|
||||
- RedisService
|
||||
- auth.service.ts
|
||||
- MediaController
|
||||
- Ingredient Management Controller
|
||||
- adminRoutes.tsx
|
||||
- admin.module.ts
|
||||
- api
|
||||
- ConfirmModal.tsx
|
||||
- Prescription Review Controller
|
||||
- Smart Advisor Controller
|
||||
- Testimonials Management Controller
|
||||
@@ -50,18 +50,18 @@
|
||||
- useCartStore
|
||||
- ZibalService
|
||||
- main.ts
|
||||
- payment.controller.ts
|
||||
- ContactService
|
||||
- Backend TypeScript Config
|
||||
- App TypeScript Config
|
||||
- ConfirmModal.tsx
|
||||
- Coupons.tsx
|
||||
- dependencies
|
||||
- Node TypeScript Config
|
||||
- Admin Blog Controller
|
||||
- WholesaleService
|
||||
- WholesaleApplyDto
|
||||
- devDependencies
|
||||
- Generic CRUD Controller
|
||||
- seo.module.ts
|
||||
- Coupon Management UI
|
||||
- OrdersController
|
||||
- Project Build Scripts
|
||||
- Home Data Module
|
||||
- devDependencies
|
||||
@@ -77,9 +77,9 @@
|
||||
- PrismaService
|
||||
- Jest Testing Config
|
||||
- PaginationDto
|
||||
- WikiController
|
||||
- SettingsService
|
||||
- FE-001
|
||||
- PetsService
|
||||
- payment.module.ts
|
||||
- rules/graphify.md
|
||||
- App Health Controller
|
||||
- dependencies
|
||||
@@ -89,10 +89,10 @@
|
||||
- Analytics and Report Charts
|
||||
- Task Orchestration Scripts
|
||||
- Backend Package Config
|
||||
- CreateHealthLogDto
|
||||
- BlogsController
|
||||
- React Error Boundary
|
||||
- Application Package Config
|
||||
- .findAll
|
||||
- WikiController
|
||||
- Error and Not Found Pages
|
||||
- VPN Utility Scripts
|
||||
- NestJS CLI Config
|
||||
@@ -108,7 +108,7 @@
|
||||
- Blog Listing Page
|
||||
- Blog Post Detail Page
|
||||
- @types/node
|
||||
- typescript
|
||||
- devDependencies
|
||||
- UI Text Seeding
|
||||
- Wiki Terms Seeding
|
||||
- Blog Management DTOs
|
||||
@@ -118,7 +118,7 @@
|
||||
- Network Status Banner
|
||||
- Docker Deployment Scripts
|
||||
- DB-001
|
||||
- CreateReminderDto
|
||||
- BlogsService
|
||||
- Database Migration Scripts
|
||||
- Scientific Terms Schema
|
||||
- Blog Data Seeding
|
||||
@@ -132,10 +132,10 @@
|
||||
- Manifest Data Generation
|
||||
- Honest Manifest Synchronization
|
||||
- Manifest Entry Synchronization
|
||||
- Videos.tsx
|
||||
- WikiService
|
||||
- TS-001
|
||||
- TEST-001
|
||||
- @tailwindcss/postcss
|
||||
- ValidateCouponDto
|
||||
- @types/react-dom
|
||||
- Admin Panel TSConfig
|
||||
- About Page Component
|
||||
@@ -145,7 +145,7 @@
|
||||
- DEVOPS-001
|
||||
- DOC-001
|
||||
- What You Must Do When Invoked
|
||||
- RolesGuard
|
||||
- JwtAuthGuard
|
||||
- راهنمای تست سیستم (Software Testing)
|
||||
- Role & Core Objective
|
||||
- Required Review Group Closures
|
||||
@@ -156,8 +156,8 @@
|
||||
- Operational Rules & Boundaries
|
||||
- Operational Rules & Boundaries
|
||||
- Bcrypt Type Definitions
|
||||
- Passport JWT Type Definitions
|
||||
- Supertest Type Definitions
|
||||
- bcryptjs
|
||||
- helmet
|
||||
- Blog Entity Model
|
||||
- Home Entity Model
|
||||
- Wiki Entity Model
|
||||
@@ -222,7 +222,7 @@
|
||||
- Phase 2 Final Quality Gate Summary Report
|
||||
- Task Modifications Log
|
||||
- Install
|
||||
- BlogsController
|
||||
- .findAll
|
||||
- System Discovery
|
||||
- Product Requirement Document (PRD)
|
||||
- Baseline Command Plan & Reconciled Command History
|
||||
@@ -246,7 +246,7 @@
|
||||
- 👁️ UX & Persona Interface Review (08_visual_qa)
|
||||
- Compiler Diagnostic Dispositions
|
||||
- @eslint/eslintrc
|
||||
- eslint-plugin-prettier
|
||||
- js-yaml
|
||||
- globals
|
||||
- prettier
|
||||
- prisma
|
||||
@@ -267,15 +267,32 @@
|
||||
- typescript
|
||||
- vitest
|
||||
- typescript-eslint
|
||||
- wholesale.controller.ts
|
||||
- @nestjs/core
|
||||
- @nestjs/jwt
|
||||
- @nestjs/swagger
|
||||
- @nestjs/throttler
|
||||
- passport-jwt
|
||||
- @prisma/client
|
||||
- swagger-ui-express
|
||||
- AGENTS.md
|
||||
- eslint-config-prettier
|
||||
- @eslint/js
|
||||
- jest
|
||||
- @nestjs/schematics
|
||||
- @nestjs/testing
|
||||
- source-map-support
|
||||
- ts-jest
|
||||
- tsconfig-paths
|
||||
- @types/bcryptjs
|
||||
- typescript-eslint
|
||||
- globals
|
||||
|
||||
## God Nodes (most connected - your core abstractions)
|
||||
1. `PrismaService` - 74 edges
|
||||
2. `Roles()` - 54 edges
|
||||
2. `Roles()` - 59 edges
|
||||
3. `PaginationDto` - 39 edges
|
||||
4. `SmsService` - 38 edges
|
||||
5. `api` - 33 edges
|
||||
5. `api` - 34 edges
|
||||
6. `useSettingsStore` - 33 edges
|
||||
7. `AdminService` - 31 edges
|
||||
8. `toPersian()` - 31 edges
|
||||
@@ -295,31 +312,31 @@
|
||||
backend/src/orders/orders.controller.ts → frontend/admin-panel/src/types/admin.ts
|
||||
|
||||
## Import Cycles
|
||||
- 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`
|
||||
- 3-file cycle: `frontend/application/lib/services/api.ts -> frontend/application/lib/store/userStore.ts -> frontend/application/lib/store/cartStore.ts -> frontend/application/lib/services/api.ts`
|
||||
- 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`
|
||||
|
||||
## Hyperedges (group relationships)
|
||||
- **Rastikerdar Font Ecosystem** — frontend_application_public_fonts_shabnam_font_v5_0_1_readme, frontend_application_public_fonts_vazirmatn_v33_003_readme, vazir_font [EXTRACTED 0.95]
|
||||
- **Canina Deployment Stack** — scripts_compose_prod, scripts_compose_stage [EXTRACTED 1.00]
|
||||
|
||||
## Communities (268 total, 95 thin omitted)
|
||||
## Communities (285 total, 113 thin omitted)
|
||||
|
||||
### Community 0 - "AdminService"
|
||||
Cohesion: 0.06
|
||||
Nodes (24): AdminController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, Delete (+16 more)
|
||||
Cohesion: 0.07
|
||||
Nodes (22): AdminController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, Delete (+14 more)
|
||||
|
||||
### Community 1 - "PetsController"
|
||||
Cohesion: 0.17
|
||||
Nodes (18): PetsController, ApiBadRequestResponse, ApiBearerAuth, ApiCreatedResponse, ApiNotFoundResponse, ApiOkResponse, ApiOperation, ApiTags (+10 more)
|
||||
### Community 1 - "pets/pets.controller.ts"
|
||||
Cohesion: 0.05
|
||||
Nodes (45): CreateHealthLogDto, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString, CreatePetDto, ApiProperty (+37 more)
|
||||
|
||||
### Community 2 - "Roles"
|
||||
Cohesion: 0.05
|
||||
Nodes (31): Roles(), SmsService, Injectable, ContactController, Body, Controller, Get, Param (+23 more)
|
||||
Cohesion: 0.19
|
||||
Nodes (16): Roles(), SettingsController, ApiBearerAuth, ApiOkResponse, ApiOperation, ApiTags, Body, Controller (+8 more)
|
||||
|
||||
### Community 3 - "UsersService"
|
||||
Cohesion: 0.06
|
||||
Nodes (37): AuthModule, Module, JwtPayload, JwtStrategy, Injectable, AddressDto, ApiProperty, ApiPropertyOptional (+29 more)
|
||||
Cohesion: 0.07
|
||||
Nodes (33): JwtPayload, JwtStrategy, Injectable, AddressDto, ApiProperty, ApiPropertyOptional, IsBoolean, IsNotEmpty (+25 more)
|
||||
|
||||
### Community 4 - "CmsController"
|
||||
Cohesion: 0.09
|
||||
@@ -329,17 +346,17 @@ Nodes (24): CmsController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controlle
|
||||
Cohesion: 0.13
|
||||
Nodes (15): BannersController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+7 more)
|
||||
|
||||
### Community 6 - "auth.service.ts"
|
||||
Cohesion: 0.05
|
||||
Nodes (44): AuthController, ApiBadRequestResponse, ApiOkResponse, ApiOperation, ApiTags, Body, Controller, Post (+36 more)
|
||||
### Community 6 - "auth.controller.ts"
|
||||
Cohesion: 0.07
|
||||
Nodes (39): AuthController, ApiBadRequestResponse, ApiOkResponse, ApiOperation, ApiTags, Body, Controller, Post (+31 more)
|
||||
|
||||
### Community 7 - "app.module.ts"
|
||||
Cohesion: 0.08
|
||||
Nodes (30): AdminModule, Module, BannersModule, Module, CmsModule, Module, SmsModule, Global (+22 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (25): AuthModule, Module, B2BModule, Module, BannersModule, Module, CmsModule, Module (+17 more)
|
||||
|
||||
### Community 8 - "CreateVideoDto"
|
||||
Cohesion: 0.08
|
||||
Nodes (29): CreateVideoDto, ApiProperty, ApiPropertyOptional, IsBoolean, IsNotEmpty, IsOptional, IsString, UpdateVideoDto (+21 more)
|
||||
Cohesion: 0.07
|
||||
Nodes (31): CreateVideoDto, ApiProperty, ApiPropertyOptional, IsBoolean, IsNotEmpty, IsOptional, IsString, UpdateVideoDto (+23 more)
|
||||
|
||||
### Community 9 - "ProductService"
|
||||
Cohesion: 0.07
|
||||
@@ -357,10 +374,6 @@ Nodes (32): compilerOptions, allowJs, esModuleInterop, incremental, isolatedModu
|
||||
Cohesion: 0.08
|
||||
Nodes (37): ClientLayout(), VerifyContent(), AddressModal(), AddressModalProps, AuthModal(), AuthModalProps, B2BPortal(), BackButton() (+29 more)
|
||||
|
||||
### Community 13 - "pets/pets.controller.ts"
|
||||
Cohesion: 0.16
|
||||
Nodes (13): CreatePetDto, ApiProperty, ApiPropertyOptional, IsArray, IsNotEmpty, IsNumber, IsOptional, IsString (+5 more)
|
||||
|
||||
### Community 14 - "ProductsService"
|
||||
Cohesion: 0.09
|
||||
Nodes (19): GetProductsDto, ApiPropertyOptional, IsEnum, IsOptional, IsString, ProductsController, ApiOperation, ApiTags (+11 more)
|
||||
@@ -369,18 +382,10 @@ Nodes (19): GetProductsDto, ApiPropertyOptional, IsEnum, IsOptional, IsString, P
|
||||
Cohesion: 0.08
|
||||
Nodes (17): metadata, ContactFormClient(), ContactInfoItem, PrescriptionUploadModal(), PrescriptionUploadModalProps, api, ApiErrorPayload, ApiErr (+9 more)
|
||||
|
||||
### Community 16 - "devDependencies"
|
||||
Cohesion: 0.09
|
||||
Nodes (23): devDependencies, eslint, eslint-config-prettier, @eslint/js, jest, @nestjs/schematics, @nestjs/testing, source-map-support (+15 more)
|
||||
|
||||
### Community 17 - "useSettingsStore"
|
||||
Cohesion: 0.07
|
||||
Nodes (30): HomeClient(), HomeClientProps, getHomeData(), Home(), metadata, metadata, EnamadBadge(), Footer() (+22 more)
|
||||
|
||||
### Community 18 - "MetricsController"
|
||||
Cohesion: 0.20
|
||||
Nodes (5): ApiExcludeController, MetricsController, Controller, Get, Res
|
||||
|
||||
### Community 19 - "B2B Inquiry Controller"
|
||||
Cohesion: 0.13
|
||||
Nodes (15): B2BController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Get, Param (+7 more)
|
||||
@@ -389,12 +394,12 @@ Nodes (15): B2BController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controlle
|
||||
Cohesion: 0.10
|
||||
Nodes (16): CategoriesController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, Delete (+8 more)
|
||||
|
||||
### Community 21 - "RedisService"
|
||||
Cohesion: 0.19
|
||||
Nodes (5): RedisModule, Global, Module, RedisService, Injectable
|
||||
### Community 21 - "auth.service.ts"
|
||||
Cohesion: 0.10
|
||||
Nodes (10): AdminLoginInput, AuthService, LoginInput, RegisterInput, Injectable, RedisModule, Global, Module (+2 more)
|
||||
|
||||
### Community 22 - "MediaController"
|
||||
Cohesion: 0.11
|
||||
Cohesion: 0.10
|
||||
Nodes (16): MediaController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+8 more)
|
||||
|
||||
### Community 23 - "Ingredient Management Controller"
|
||||
@@ -402,16 +407,16 @@ Cohesion: 0.13
|
||||
Nodes (14): IngredientsController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+6 more)
|
||||
|
||||
### Community 24 - "adminRoutes.tsx"
|
||||
Cohesion: 0.10
|
||||
Nodes (14): App(), ContactInfoItem, ContactSubmission, GROUP_PAGE_MAP, GROUPS, PAGE_TABS, AdminRouteConfig, ContactSubmissions (+6 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (18): App(), ContactInfoItem, ContactSubmission, CategoryDist, DashboardData, PatternItem, SmsConfigState, SmsLogItem (+10 more)
|
||||
|
||||
### Community 25 - "admin.module.ts"
|
||||
Cohesion: 0.06
|
||||
Nodes (20): BlogQuery, BlogsService, Injectable, PetQuery, PetsService, Injectable, ReportsController, ApiBearerAuth (+12 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (14): AdminModule, Module, PetQuery, PetsService, Injectable, ReportsController, ApiBearerAuth, ApiOperation (+6 more)
|
||||
|
||||
### Community 26 - "api"
|
||||
Cohesion: 0.11
|
||||
Nodes (12): HeroBanner, VetTestimonial, CategoryDist, DashboardData, PatternItem, SmsConfigState, SmsLogItem, SmsLogStats (+4 more)
|
||||
### Community 26 - "ConfirmModal.tsx"
|
||||
Cohesion: 0.10
|
||||
Nodes (16): ConfirmModal(), ConfirmModalProps, HeroBanner, VetTestimonial, Pet, fetchVideosList(), Video, Videos() (+8 more)
|
||||
|
||||
### Community 27 - "Prescription Review Controller"
|
||||
Cohesion: 0.14
|
||||
@@ -427,27 +432,27 @@ Nodes (14): TestimonialsController, ApiBearerAuth, ApiOperation, ApiTags, Body,
|
||||
|
||||
### Community 30 - "src/services/api.ts"
|
||||
Cohesion: 0.10
|
||||
Nodes (25): Layout(), ProtectedRoute(), menuGroups, Sidebar(), SidebarProps, SEARCHABLE_PAGES, Topbar(), TopbarProps (+17 more)
|
||||
Nodes (27): Layout(), ProtectedRoute(), menuGroups, Sidebar(), SidebarProps, SEARCHABLE_PAGES, Topbar(), TopbarProps (+19 more)
|
||||
|
||||
### Community 31 - "Spinner.tsx"
|
||||
Cohesion: 0.10
|
||||
Nodes (19): Media, MediaSelector(), MediaSelectorProps, Spinner(), Category, Product, BannersManager, IngredientsManager (+11 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (23): Media, MediaSelector(), MediaSelectorProps, Spinner(), BlogPost, Category, Category, Product (+15 more)
|
||||
|
||||
### Community 32 - "useCartStore"
|
||||
Cohesion: 0.12
|
||||
Nodes (16): metadata, ArchiveProductCard(), ProductCard(), Header(), MENU_ICONS, OrderSuccess(), OrderTracking(), PetProfile() (+8 more)
|
||||
|
||||
### Community 33 - "ZibalService"
|
||||
Cohesion: 0.10
|
||||
Nodes (19): PaymentController, ApiBadRequestResponse, ApiBearerAuth, ApiOkResponse, ApiOperation, ApiTags, Body, Controller (+11 more)
|
||||
Cohesion: 0.06
|
||||
Nodes (37): AdminTransactionFilterDto, ApiPropertyOptional, IsNumber, IsOptional, IsString, Type, InitiatePaymentDto, InitiateWalletTopupDto (+29 more)
|
||||
|
||||
### Community 34 - "main.ts"
|
||||
Cohesion: 0.11
|
||||
Nodes (11): AppModule, Module, CustomHttpExceptionFilter, Catch, PrismaExceptionFilter, Catch, DecimalInterceptor, Injectable (+3 more)
|
||||
Cohesion: 0.14
|
||||
Nodes (9): CustomHttpExceptionFilter, Catch, PrismaExceptionFilter, Catch, DecimalInterceptor, Injectable, ApiErrorResponse, ErrorDetailField (+1 more)
|
||||
|
||||
### Community 35 - "payment.controller.ts"
|
||||
Cohesion: 0.23
|
||||
Nodes (11): InitiatePaymentDto, InitiateWalletTopupDto, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString, ApiPropertyOptional (+3 more)
|
||||
### Community 35 - "ContactService"
|
||||
Cohesion: 0.13
|
||||
Nodes (11): ContactController, Body, Controller, Get, Param, Post, Put, Query (+3 more)
|
||||
|
||||
### Community 36 - "Backend TypeScript Config"
|
||||
Cohesion: 0.09
|
||||
@@ -457,13 +462,13 @@ Nodes (22): compilerOptions, allowSyntheticDefaultImports, baseUrl, declaration,
|
||||
Cohesion: 0.09
|
||||
Nodes (22): compilerOptions, allowImportingTsExtensions, erasableSyntaxOnly, jsx, lib, module, moduleDetection, moduleResolution (+14 more)
|
||||
|
||||
### Community 38 - "ConfirmModal.tsx"
|
||||
Cohesion: 0.10
|
||||
Nodes (17): ConfirmModal(), ConfirmModalProps, Pagination(), PaginationProps, BlogPost, Category, Media, Pet (+9 more)
|
||||
### Community 38 - "Coupons.tsx"
|
||||
Cohesion: 0.09
|
||||
Nodes (15): Pagination(), PaginationProps, Coupon, CouponFormData, CouponModalProps, CouponTarget, Media, Stats (+7 more)
|
||||
|
||||
### Community 39 - "dependencies"
|
||||
Cohesion: 0.05
|
||||
Nodes (41): dependencies, bcrypt, bcryptjs, class-transformer, class-validator, helmet, ioredis, js-yaml (+33 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (21): dependencies, bcrypt, class-transformer, class-validator, ioredis, @nestjs/common, @nestjs/passport, @nestjs/platform-express (+13 more)
|
||||
|
||||
### Community 40 - "Node TypeScript Config"
|
||||
Cohesion: 0.10
|
||||
@@ -473,9 +478,9 @@ Nodes (20): compilerOptions, allowImportingTsExtensions, erasableSyntaxOnly, lib
|
||||
Cohesion: 0.13
|
||||
Nodes (15): BlogsController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, Delete (+7 more)
|
||||
|
||||
### Community 42 - "WholesaleService"
|
||||
Cohesion: 0.14
|
||||
Nodes (14): ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Get, Param, Post (+6 more)
|
||||
### Community 42 - "WholesaleApplyDto"
|
||||
Cohesion: 0.10
|
||||
Nodes (20): ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString, WholesaleApplyDto, ApiBearerAuth, ApiOperation (+12 more)
|
||||
|
||||
### Community 43 - "devDependencies"
|
||||
Cohesion: 0.13
|
||||
@@ -489,9 +494,9 @@ Nodes (14): ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, De
|
||||
Cohesion: 0.16
|
||||
Nodes (10): SeoController, ApiOperation, ApiTags, Controller, Get, Param, SeoModule, Module (+2 more)
|
||||
|
||||
### Community 46 - "Coupon Management UI"
|
||||
Cohesion: 0.25
|
||||
Nodes (5): Coupon, CouponFormData, CouponModalProps, CouponTarget, Coupons
|
||||
### Community 46 - "OrdersController"
|
||||
Cohesion: 0.13
|
||||
Nodes (16): OrdersController, ApiBadRequestResponse, ApiBearerAuth, ApiCreatedResponse, ApiNotFoundResponse, ApiOkResponse, ApiOperation, ApiTags (+8 more)
|
||||
|
||||
### Community 47 - "Project Build Scripts"
|
||||
Cohesion: 0.11
|
||||
@@ -503,7 +508,7 @@ Nodes (10): HomeController, ApiOkResponse, ApiOperation, ApiTags, Controller, Ge
|
||||
|
||||
### Community 49 - "devDependencies"
|
||||
Cohesion: 0.11
|
||||
Nodes (19): autoprefixer, devDependencies, autoprefixer, eslint, @eslint/js, globals, postcss, @types/node (+11 more)
|
||||
Nodes (19): autoprefixer, devDependencies, autoprefixer, eslint, @eslint/js, postcss, @tailwindcss/postcss, @types/node (+11 more)
|
||||
|
||||
### Community 50 - "Database Seeding Logic"
|
||||
Cohesion: 0.17
|
||||
@@ -542,25 +547,29 @@ Cohesion: 0.15
|
||||
Nodes (11): PetsController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Controller, Delete, Get (+3 more)
|
||||
|
||||
### Community 59 - "PrismaService"
|
||||
Cohesion: 0.09
|
||||
Nodes (15): CategoryQuery, MeliPayamakPattern, MeliPayamakResponse, SendPatternSmsOptions, SmsConfig, SmsLogQuery, CreateContactSubmissionDto, UpdateContactInfoItemDto (+7 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (18): ApiExcludeController, CouponTargetInput, PaginationQuery, CategoryQuery, MetricsController, Controller, Get, Res (+10 more)
|
||||
|
||||
### Community 60 - "Jest Testing Config"
|
||||
Cohesion: 0.15
|
||||
Nodes (13): jest, collectCoverageFrom, coverageDirectory, moduleFileExtensions, rootDir, testEnvironment, testRegex, transform (+5 more)
|
||||
|
||||
### Community 61 - "PaginationDto"
|
||||
Cohesion: 0.12
|
||||
Nodes (13): BlogsModule, Module, BlogsService, Injectable, PaginationDto, SortOrder, ApiPropertyOptional, IsEnum (+5 more)
|
||||
Cohesion: 0.13
|
||||
Nodes (13): PaginationDto, SortOrder, ApiPropertyOptional, IsEnum, IsOptional, IsString, Type, Module (+5 more)
|
||||
|
||||
### Community 62 - "WikiController"
|
||||
Cohesion: 0.20
|
||||
Nodes (7): ApiTags, Controller, WikiController, Module, WikiModule, Injectable, WikiService
|
||||
### Community 62 - "SettingsService"
|
||||
Cohesion: 0.11
|
||||
Nodes (4): SmsLogQuery, ScientificTermData, SettingsService, Injectable
|
||||
|
||||
### Community 63 - "FE-001"
|
||||
Cohesion: 0.06
|
||||
Nodes (31): Acceptance Criteria, Affected Application, Affected Files, Alternative Direction, Architecture Overview & Confirmed Strengths, Category, Completion Statement, Confidence (+23 more)
|
||||
|
||||
### Community 64 - "payment.module.ts"
|
||||
Cohesion: 0.16
|
||||
Nodes (10): SmsModule, Global, Module, ContactModule, Module, PaymentModule, Module, ZibalInquiryResponse (+2 more)
|
||||
|
||||
### Community 66 - "App Health Controller"
|
||||
Cohesion: 0.29
|
||||
Nodes (5): AppController, Controller, Get, AppService, Injectable
|
||||
@@ -570,8 +579,8 @@ Cohesion: 0.12
|
||||
Nodes (17): dependencies, axios, lucide-react, motion, next, react, react-dom, sonner (+9 more)
|
||||
|
||||
### Community 68 - "OrdersService"
|
||||
Cohesion: 0.06
|
||||
Nodes (35): CreateOrderDto, OrderItemDto, ApiProperty, ApiPropertyOptional, IsArray, IsNotEmpty, IsNumber, IsOptional (+27 more)
|
||||
Cohesion: 0.12
|
||||
Nodes (15): CreateOrderDto, OrderItemDto, ApiProperty, ApiPropertyOptional, IsArray, IsNotEmpty, IsNumber, IsOptional (+7 more)
|
||||
|
||||
### Community 69 - "Integrity Validation Scripts"
|
||||
Cohesion: 0.20
|
||||
@@ -593,9 +602,9 @@ Nodes (8): cmd_next_task(), cmd_progress(), cmd_reset(), cmd_status(), cmd_unblo
|
||||
Cohesion: 0.22
|
||||
Nodes (8): author, description, license, name, prisma, seed, private, version
|
||||
|
||||
### Community 74 - "CreateHealthLogDto"
|
||||
Cohesion: 0.29
|
||||
Nodes (6): CreateHealthLogDto, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString
|
||||
### Community 74 - "BlogsController"
|
||||
Cohesion: 0.20
|
||||
Nodes (7): BlogsController, ApiTags, Controller, BlogsModule, Module, BlogsService, Injectable
|
||||
|
||||
### Community 75 - "React Error Boundary"
|
||||
Cohesion: 0.22
|
||||
@@ -605,9 +614,9 @@ Nodes (3): ErrorBoundary, Props, State
|
||||
Cohesion: 0.22
|
||||
Nodes (8): name, private, scripts, build, dev, lint, start, version
|
||||
|
||||
### Community 77 - ".findAll"
|
||||
Cohesion: 0.32
|
||||
Nodes (6): ApiNotFoundResponse, ApiOkResponse, ApiOperation, Get, Param, Query
|
||||
### Community 77 - "WikiController"
|
||||
Cohesion: 0.21
|
||||
Nodes (9): ApiNotFoundResponse, ApiOkResponse, ApiOperation, ApiTags, Controller, Get, Param, Query (+1 more)
|
||||
|
||||
### Community 79 - "VPN Utility Scripts"
|
||||
Cohesion: 0.62
|
||||
@@ -657,6 +666,10 @@ Nodes (4): Blog(), getBlogs(), metadata, BlogPage()
|
||||
Cohesion: 0.60
|
||||
Nodes (4): BlogPostPage(), generateMetadata(), getBlog(), revalidate
|
||||
|
||||
### Community 93 - "devDependencies"
|
||||
Cohesion: 0.22
|
||||
Nodes (9): devDependencies, eslint-plugin-prettier, @types/passport-jwt, @types/supertest, typescript, typescript, eslint-plugin-prettier, @types/passport-jwt (+1 more)
|
||||
|
||||
### Community 99 - "Wiki Page Routing"
|
||||
Cohesion: 0.83
|
||||
Nodes (3): generateMetadata(), getWikiTerm(), WikiTermPage()
|
||||
@@ -669,17 +682,17 @@ Nodes (3): COMPOSE_DOCKER_CLI_BUILD, DOCKER_BUILDKIT, deploy.sh script
|
||||
Cohesion: 0.06
|
||||
Nodes (31): Acceptance Criteria, Affected Application, Affected Files, Alternative Direction, Category, Completion Statement, Confidence, Database and Data Integrity Audit Report (+23 more)
|
||||
|
||||
### Community 103 - "CreateReminderDto"
|
||||
Cohesion: 0.29
|
||||
Nodes (6): CreateReminderDto, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString
|
||||
### Community 103 - "BlogsService"
|
||||
Cohesion: 0.22
|
||||
Nodes (3): BlogQuery, BlogsService, Injectable
|
||||
|
||||
### Community 109 - "Auth Architecture and Planning"
|
||||
Cohesion: 0.67
|
||||
Nodes (3): ADR-AUTH-001: Admin Panel Authentication Architecture & Token Management, Master Task Backlog (Phase 3.3), Phase 3 Master Execution Plan
|
||||
|
||||
### Community 117 - "Videos.tsx"
|
||||
Cohesion: 0.50
|
||||
Nodes (4): fetchVideosList(), Video, Videos(), Videos
|
||||
### Community 117 - "WikiService"
|
||||
Cohesion: 0.22
|
||||
Nodes (3): Injectable, WikiQuery, WikiService
|
||||
|
||||
### Community 118 - "TS-001"
|
||||
Cohesion: 0.06
|
||||
@@ -689,6 +702,10 @@ Nodes (31): Acceptance Criteria, Affected Application, Affected Files, Alternati
|
||||
Cohesion: 0.06
|
||||
Nodes (31): Acceptance Criteria, Affected Application, Affected Files, Alternative Direction, Category, Completion Statement, Confidence, Dependencies (+23 more)
|
||||
|
||||
### Community 120 - "ValidateCouponDto"
|
||||
Cohesion: 0.50
|
||||
Nodes (4): IsNotEmpty, IsNumber, IsString, ValidateCouponDto
|
||||
|
||||
### Community 126 - "Typography and Font Assets"
|
||||
Cohesion: 0.67
|
||||
Nodes (3): Shabnam Font README, Shabnam Font Sample, Vazir Font
|
||||
@@ -705,9 +722,9 @@ Nodes (31): Acceptance Criteria, Affected Application, Affected Files, Alternati
|
||||
Cohesion: 0.07
|
||||
Nodes (26): For /graphify add and --watch, For /graphify query, For the commit hook and native CLAUDE.md integration, For --update and --cluster-only, /graphify, Honesty Rules, Interpreter guard for subcommands, Part A - Structural extraction for code files (+18 more)
|
||||
|
||||
### Community 130 - "RolesGuard"
|
||||
Cohesion: 0.23
|
||||
Nodes (6): ROLES_KEY, RequestWithUser, RolesGuard, Injectable, UserReqPayload, ScientificTermData
|
||||
### Community 130 - "JwtAuthGuard"
|
||||
Cohesion: 0.18
|
||||
Nodes (7): JwtAuthGuard, Injectable, ROLES_KEY, RequestWithUser, RolesGuard, Injectable, UserReqPayload
|
||||
|
||||
### Community 131 - "راهنمای تست سیستم (Software Testing)"
|
||||
Cohesion: 0.07
|
||||
@@ -857,9 +874,9 @@ Nodes (8): 1. `TASK-AUTH-001`, 2. `TASK-FIN-001`, 3. `DECISION-002`, 4. `TASK-VE
|
||||
Cohesion: 0.22
|
||||
Nodes (8): Arch Linux, bower, Install, npm, Shabnam Font, yarn, طریقه استفاده در صفحات وب:, نمونه متن Sample:
|
||||
|
||||
### Community 214 - "BlogsController"
|
||||
Cohesion: 0.21
|
||||
Nodes (9): BlogsController, ApiNotFoundResponse, ApiOkResponse, ApiOperation, ApiTags, Controller, Get, Param (+1 more)
|
||||
### Community 214 - ".findAll"
|
||||
Cohesion: 0.32
|
||||
Nodes (6): ApiNotFoundResponse, ApiOkResponse, ApiOperation, Get, Param, Query
|
||||
|
||||
### Community 215 - "System Discovery"
|
||||
Cohesion: 0.25
|
||||
@@ -937,29 +954,25 @@ Nodes (3): Expanding the ESLint configuration, React Compiler, React + TypeScrip
|
||||
Cohesion: 0.50
|
||||
Nodes (3): Deploy on Vercel, Getting Started, Learn More
|
||||
|
||||
### Community 268 - "wholesale.controller.ts"
|
||||
Cohesion: 0.17
|
||||
Nodes (8): B2BModule, Module, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString, WholesaleApplyDto
|
||||
|
||||
## Knowledge Gaps
|
||||
- **1178 isolated node(s):** `$schema`, `collection`, `sourceRoot`, `deleteOutDir`, `name` (+1173 more)
|
||||
- **1179 isolated node(s):** `$schema`, `collection`, `sourceRoot`, `deleteOutDir`, `name` (+1174 more)
|
||||
These have ≤1 connection - possible missing edges or undocumented components.
|
||||
- **95 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
|
||||
- **113 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
|
||||
|
||||
## Suggested Questions
|
||||
_Questions this graph is uniquely positioned to answer:_
|
||||
|
||||
- **Why does `ApiResponse` connect `src/services/api.ts` to `PetsController`, `UsersService`, `OrdersService`, `auth.service.ts`, `ProductsService`, `Home Data Module`, `BlogsController`, `WikiController`?**
|
||||
_High betweenness centrality (0.036) - this node is a cross-community bridge._
|
||||
- **Why does `Roles()` connect `Roles` to `RolesGuard`, `CmsController`, `BannersService`, `WholesaleService`, `wholesale.controller.ts`, `ProductsService`, `B2B Inquiry Controller`, `Ingredient Management Controller`, `admin.module.ts`, `Prescription Review Controller`, `Smart Advisor Controller`, `Testimonials Management Controller`?**
|
||||
_High betweenness centrality (0.024) - this node is a cross-community bridge._
|
||||
- **Why does `JwtAuthGuard` connect `admin.module.ts` to `AdminService`, `RolesGuard`, `payment.controller.ts`, `CmsController`, `OrdersService`, `UsersService`, `CreateVideoDto`, `wholesale.controller.ts`, `pets/pets.controller.ts`, `ProductsService`?**
|
||||
_High betweenness centrality (0.023) - this node is a cross-community bridge._
|
||||
- **Why does `ApiResponse` connect `src/services/api.ts` to `pets/pets.controller.ts`, `UsersService`, `auth.controller.ts`, `BlogsController`, `WikiController`, `OrdersController`, `ProductsService`, `Home Data Module`?**
|
||||
_High betweenness centrality (0.039) - this node is a cross-community bridge._
|
||||
- **Why does `Roles()` connect `Roles` to `ZibalService`, `JwtAuthGuard`, `ContactService`, `CmsController`, `BannersService`, `WholesaleApplyDto`, `ProductsService`, `B2B Inquiry Controller`, `Ingredient Management Controller`, `Prescription Review Controller`, `Smart Advisor Controller`, `Testimonials Management Controller`, `SettingsService`?**
|
||||
_High betweenness centrality (0.037) - this node is a cross-community bridge._
|
||||
- **Why does `JwtAuthGuard` connect `JwtAuthGuard` to `AdminService`, `pets/pets.controller.ts`, `UsersService`, `CmsController`, `OrdersService`, `CreateVideoDto`, `MediaController`, `admin.module.ts`, `SettingsService`?**
|
||||
_High betweenness centrality (0.022) - this node is a cross-community bridge._
|
||||
- **What connects `$schema`, `collection`, `sourceRoot` to the rest of the system?**
|
||||
_1178 weakly-connected nodes found - possible documentation gaps or missing edges._
|
||||
_1179 weakly-connected nodes found - possible documentation gaps or missing edges._
|
||||
- **Should `AdminService` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.06414414414414414 - nodes in this community are weakly interconnected._
|
||||
- **Should `Roles` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.051446321102698506 - nodes in this community are weakly interconnected._
|
||||
_Cohesion score 0.06841046277665996 - nodes in this community are weakly interconnected._
|
||||
- **Should `pets/pets.controller.ts` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.053923541247484906 - nodes in this community are weakly interconnected._
|
||||
- **Should `UsersService` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.06093189964157706 - nodes in this community are weakly interconnected._
|
||||
_Cohesion score 0.06766917293233082 - nodes in this community are weakly interconnected._
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
{".ai_agency/AGENCY.md":{"size":8757,"mtime_ns":1785148021979607300,"indexed_at_ns":1786863693890454700,"word_count":1161,"hashes":{".ai_agency/agency.md":"88c7c13583a91fc7e41ce055fede9dce20f181e8d264557808989965e83a9030"}},".ai_agency/agents/00_intake.md":{"size":3819,"mtime_ns":1785148021984319000,"indexed_at_ns":1786863693892455200,"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":1786863693894964400,"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":1786863693896964700,"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":1786863693898470300,"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":1786863693899999300,"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":1786863693901997700,"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":1786863693902997800,"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":1786863693905070800,"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":1786863693907111900,"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":1786863693908113400,"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":1786863693910113400,"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":1786863693912113300,"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":1786863693913112900,"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":1786863693914617900,"word_count":34,"hashes":{".ai_agency/memory/agent_outputs/readme.txt":"49b19b781e865081a74a0a87282e6c266e373f443a79e0758ef60a6e644c6e04"}},".ai_agency/memory/backlog.json":{"size":10711,"mtime_ns":1785330750958890900,"indexed_at_ns":1786863680433252400,"word_count":981,"hashes":{".ai_agency/memory/backlog.json":"6bf3150a1877d03d03b368df21b84071381b1bb8cd03e3721fa9f8e6c38355be"}},".ai_agency/memory/scratchpad.md":{"size":1879,"mtime_ns":1785148022065114400,"indexed_at_ns":1786863693916623700,"word_count":249,"hashes":{".ai_agency/memory/scratchpad.md":"9d0f687cf8e95c6335f1efb070da8029878417c28117e3b89aa8536ad70a5b95"}},".ai_agency/memory/state.json":{"size":3654,"mtime_ns":1785330750963913800,"indexed_at_ns":1786863680437228800,"word_count":254,"hashes":{".ai_agency/memory/state.json":"1204676f8f295d89733888bb87936061b7a700df0cc936fbf08fd5269b534e8d"}},".ai_agency/orchestrate.py":{"size":6800,"mtime_ns":1785148022072662500,"indexed_at_ns":1786863680437736800,"word_count":644,"hashes":{".ai_agency/orchestrate.py":"90ec787fdd4c71f5203c56b6899aadcc26e6e0bad0cc576d2f982aa42eed42e1"}},".ai_agency/specs/api_contract.md":{"size":1515,"mtime_ns":1785148022077664900,"indexed_at_ns":1786863693918623100,"word_count":139,"hashes":{".ai_agency/specs/api_contract.md":"ea0911b6a5ad6a908ab707f7553f5f24712c1e198fd79255fa85e3249150e8b4"}},".ai_agency/specs/architecture_spec.md":{"size":790,"mtime_nsLine truncated
|
||||
{".ai_agency/AGENCY.md":{"size":8757,"mtime_ns":1785148021979607300,"indexed_at_ns":1786863693890454700,"word_count":1161,"hashes":{".ai_agency/agency.md":"88c7c13583a91fc7e41ce055fede9dce20f181e8d264557808989965e83a9030"}},".ai_agency/agents/00_intake.md":{"size":3819,"mtime_ns":1785148021984319000,"indexed_at_ns":1786863693892455200,"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":1786863693894964400,"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":1786863693896964700,"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":1786863693898470300,"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":1786863693899999300,"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":1786863693901997700,"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":1786863693902997800,"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":1786863693905070800,"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":1786863693907111900,"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":1786863693908113400,"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":1786863693910113400,"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":1786863693912113300,"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":1786863693913112900,"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":1786863693914617900,"word_count":34,"hashes":{".ai_agency/memory/agent_outputs/readme.txt":"49b19b781e865081a74a0a87282e6c266e373f443a79e0758ef60a6e644c6e04"}},".ai_agency/memory/backlog.json":{"size":10711,"mtime_ns":1785330750958890900,"indexed_at_ns":1786863680433252400,"word_count":981,"hashes":{".ai_agency/memory/backlog.json":"6bf3150a1877d03d03b368df21b84071381b1bb8cd03e3721fa9f8e6c38355be"}},".ai_agency/memory/scratchpad.md":{"size":1879,"mtime_ns":1785148022065114400,"indexed_at_ns":1786863693916623700,"word_count":249,"hashes":{".ai_agency/memory/scratchpad.md":"9d0f687cf8e95c6335f1efb070da8029878417c28117e3b89aa8536ad70a5b95"}},".ai_agency/memory/state.json":{"size":3654,"mtime_ns":1785330750963913800,"indexed_at_ns":1786863680437228800,"word_count":254,"hashes":{".ai_agency/memory/state.json":"1204676f8f295d89733888bb87936061b7a700df0cc936fbf08fd5269b534e8d"}},".ai_agency/orchestrate.py":{"size":6800,"mtime_ns":1785148022072662500,"indexed_at_ns":1786863680437736800,"word_count":644,"hashes":{".ai_agency/orchestrate.py":"90ec787fdd4c71f5203c56b6899aadcc26e6e0bad0cc576d2f982aa42eed42e1"}},".ai_agency/specs/api_contract.md":{"size":1515,"mtime_ns":1785148022077664900,"indexed_at_ns":1786863693918623100,"word_count":139,"hashes":{".ai_agency/specs/api_contract.md":"ea0911b6a5ad6a908ab707f7553f5f24712c1e198fd79255fa85e3249150e8b4"}},".ai_agency/specs/architecture_spec.md":{"size":790,"mtime_nsLine truncated
|
||||
@@ -63,12 +63,12 @@
|
||||
</div>
|
||||
<div id="legend"></div>
|
||||
</div>
|
||||
<div id="stats">3213 nodes · 5194 edges · 268 communities</div>
|
||||
<div id="stats">3234 nodes · 5269 edges · 285 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": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "orchestrate.py", "community": 72, "community_name": "Task Orchestration Scripts", "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": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "load_json()", "community": 72, "community_name": "Task Orchestration Scripts", "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": 11.2, "font": {"size": 0, "color": "#ffffff"}, "title": "save_json()", "community": 72, "community_name": "Task Orchestration Scripts", "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": 11.2, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_status()", "community": 72, "community_name": "Task Orchestration Scripts", "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": 11.2, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_progress()", "community": 72, "community_name": "Task Orchestration Scripts", "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": 11.2, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_next_task()", "community": 72, "community_name": "Task Orchestration Scripts", "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.6, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_unblock()", "community": 72, "community_name": "Task Orchestration Scripts", "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": 11.2, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_reset()", "community": 72, "community_name": "Task Orchestration Scripts", "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": 12.4, "font": {"size": 0, "color": "#ffffff"}, "title": "main()", "community": 72, "community_name": "Task Orchestration Scripts", "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": 12.4, "font": {"size": 0, "color": "#ffffff"}, "title": "with-vpn.sh", "community": 79, "community_name": "VPN Utility Scripts", "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": 11.2, "font": {"size": 0, "color": "#ffffff"}, "title": "with-vpn.sh script", "community": 79, "community_name": "VPN Utility Scripts", "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": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "log()", "community": 79, "community_name": "VPN Utility Scripts", "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": "#Line 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": "AdminService", "count": 75}, {"cid": 1, "color": "#F28E2B", "label": "PetsController", "count": 27}, {"cid": 2, "color": "#E15759", "label": "Roles", "count": 102}, {"cid": 3, "color": "#76B7B2", "label": "UsersService", "count": 63}, {"cid": 4, "color": "#59A14F", "label": "CmsController", "count": 53}, {"cid": 5, "color": "#EDC948", "label": "BannersService", "count": 27}, {"cid": 6, "color": "#B07AA1", "label": "auth.service.ts", "count": 65}, {"cid": 7, "color": "#FF9DA7", "label": "app.module.ts", "count": 44}, {"cid": 8, "color": "#9C755F", "label": "CreateVideoDto", "count": 44}, {"cid": 9, "color": "#BAB0AC", "label": "ProductService", "count": 60}, {"cid": 10, "color": "#4E79A7", "label": "SmartAdvisor.tsx", "count": 8}, {"cid": 11, "color": "#F28E2B", "label": "compilerOptions", "count": 33}, {"cid": 12, "color": "#E15759", "label": "toPersian", "count": 62}, {"cid": 13, "color": "#76B7B2", "label": "pets/pets.controller.ts", "count": 19}, {"cid": 14, "color": "#59A14F", "label": "ProductsService", "count": 39}, {"cid": 15, "color": "#EDC948", "label": "lib/services/api.ts", "count": 34}, {"cid": 16, "color": "#B07AA1", "label": "devDependencies", "count": 23}, {"cid": 17, "color": "#FF9DA7", "label": "useSettingsStore", "count": 48}, {"cid": 18, "color": "#9C755F", "label": "MetricsController", "count": 10}, {"cid": 19, "color": "#BAB0AC", "label": "B2B Inquiry Controller", "count": 29}, {"cid": 20, "color": "#4E79A7", "label": "Category Management Controller", "count": 28}, {"cid": 21, "color": "#F28E2B", "label": "RedisService", "count": 14}, {"cid": 22, "color": "#E15759", "label": "MediaController", "count": 26}, {"cid": 23, "color": "#76B7B2", "label": "Ingredient Management Controller", "count": 26}, {"cid": 24, "color": "#59A14F", "label": "adminRoutes.tsx", "count": 26}, {"cid": 25, "color": "#EDC948", "label": "admin.module.ts", "count": 52}, {"cid": 26, "color": "#B07AA1", "label": "api", "count": 18}, {"cid": 27, "color": "#FF9DA7", "label": "Prescription Review Controller", "count": 24}, {"cid": 28, "color": "#9C755F", "label": "Smart Advisor Controller", "count": 24}, {"cid": 29, "color": "#BAB0AC", "label": "Testimonials Management Controller", "count": 24}, {"cid": 30, "color": "#4E79A7", "label": "src/services/api.ts", "count": 38}, {"cid": 31, "color": "#F28E2B", "label": "Spinner.tsx", "count": 35}, {"cid": 32, "color": "#E15759", "label": "useCartStore", "count": 32}, {"cid": 33, "color": "#76B7B2", "label": "ZibalService", "count": 39}, {"cid": 34, "color": "#59A14F", "label": "main.ts", "count": 29}, {"cid": 35, "color": "#EDC948", "label": "payment.controller.ts", "count": 14}, {"cid": 36, "color": "#B07AA1", "label": "Backend TypeScript Config", "count": 23}, {"cid": 37, "color": "#FF9DA7", "label": "App TypeScript Config", "count": 23}, {"cid": 38, "color": "#9C755F", "label": "ConfirmModal.tsx", "count": 31}, {"cid": 39, "color": "#BAB0AC", "label": "dependencies", "count": 41}, {"cid": 40, "color": "#4E79A7", "label": "Node TypeScript Config", "count": 21}, {"cid": 41, "color": "#F28E2B", "label": "Admin Blog Controller", "count": 20}, {"cid": 42, "color": "#E15759", "label": "WholesaleService", "count": 24}, {"cid": 43, "color": "#76B7B2", "label": "devDependencies", "count": 15}, {"cid": 44, "color": "#59A14F", "label": "Generic CRUD Controller", "count": 19}, {"cid": 45, "color": "#EDC948", "label": "seo.module.ts", "count": 19}, {"cid": 46, "color": "#B07AA1", "label": "Coupon Management UI", "count": 8}, {"cid": 47, "color": "#FF9DA7", "label": "Project Build Scripts", "count": 18}, {"cid": 48, "color": "#9C755F", "label": "Home Data Module", "count": 17}, {"cid": 49, "color": "#BAB0AC", "label": "devDependencies", "count": 19}, {"cid": 50, "color": "#4E79A7", "label": "Database Seeding Logic", "count": 16}, {"cid": 51, "color": "#F28E2B", "label": "Prisma Database Migrations", "count": 15}, {"cid": 52, "color": "#E15759", "label": "dependencies", "count": 21}, {"cid": 53, "color": "#76B7B2", "label": "UI Skeleton and Tables", "count": 15}, {"cid": 54, "color": "#59A14F", "label": "components/Skeleton.tsx", "count": 7}, {"cid": 55, "color": "#EDC948", "label": "BE-001", "count": 33}, {"cid": 56, "color": "#B07AA1", "label": "VetGallery.tsx", "count": 13}, {"cid": 57, "color": "#FF9DA7", "label": "NPM Lifecycle Scripts", "count": 14}, {"cid": 58, "color": "#9C755F", "label": "Pet Management API", "count": 14}, {"cid": 59, "color": "#BAB0AC", "label": "PrismaService", "count": 35}, {"cid": 60, "color": "#4E79A7", "label": "Jest Testing Config", "count": 13}, {"cid": 61, "color": "#F28E2B", "label": "PaginationDto", "count": 22}, {"cid": 62, "color": "#E15759", "label": "WikiController", "count": 14}, {"cid": 63, "color": "#76B7B2", "label": "FE-001", "count": 32}, {"cid": 64, "color": "#59A14F", "label": "PetsService", "count": 10}, {"cid": 65, "color": "#EDC948", "label": "rules/graphify.md", "count": 2}, {"ciLine truncated
|
||||
const RAW_NODES = [{"id": "ai_agency_orchestrate", "label": "orchestrate.py", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "orchestrate.py", "community": 72, "community_name": "Task Orchestration Scripts", "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": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "load_json()", "community": 72, "community_name": "Task Orchestration Scripts", "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": 11.2, "font": {"size": 0, "color": "#ffffff"}, "title": "save_json()", "community": 72, "community_name": "Task Orchestration Scripts", "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": 11.2, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_status()", "community": 72, "community_name": "Task Orchestration Scripts", "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": 11.2, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_progress()", "community": 72, "community_name": "Task Orchestration Scripts", "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": 11.2, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_next_task()", "community": 72, "community_name": "Task Orchestration Scripts", "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.6, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_unblock()", "community": 72, "community_name": "Task Orchestration Scripts", "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": 11.2, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_reset()", "community": 72, "community_name": "Task Orchestration Scripts", "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": 12.4, "font": {"size": 0, "color": "#ffffff"}, "title": "main()", "community": 72, "community_name": "Task Orchestration Scripts", "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": 12.4, "font": {"size": 0, "color": "#ffffff"}, "title": "with-vpn.sh", "community": 79, "community_name": "VPN Utility Scripts", "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": 11.2, "font": {"size": 0, "color": "#ffffff"}, "title": "with-vpn.sh script", "community": 79, "community_name": "VPN Utility Scripts", "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": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "log()", "community": 79, "community_name": "VPN Utility Scripts", "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": "#Line 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": "AdminService", "count": 71}, {"cid": 1, "color": "#F28E2B", "label": "pets/pets.controller.ts", "count": 71}, {"cid": 2, "color": "#E15759", "label": "Roles", "count": 38}, {"cid": 3, "color": "#76B7B2", "label": "UsersService", "count": 57}, {"cid": 4, "color": "#59A14F", "label": "CmsController", "count": 53}, {"cid": 5, "color": "#EDC948", "label": "BannersService", "count": 27}, {"cid": 6, "color": "#B07AA1", "label": "auth.controller.ts", "count": 50}, {"cid": 7, "color": "#FF9DA7", "label": "app.module.ts", "count": 38}, {"cid": 8, "color": "#9C755F", "label": "CreateVideoDto", "count": 47}, {"cid": 9, "color": "#BAB0AC", "label": "ProductService", "count": 60}, {"cid": 10, "color": "#4E79A7", "label": "SmartAdvisor.tsx", "count": 8}, {"cid": 11, "color": "#F28E2B", "label": "compilerOptions", "count": 33}, {"cid": 12, "color": "#E15759", "label": "toPersian", "count": 62}, {"cid": 13, "color": "#76B7B2", "label": "SmsService", "count": 24}, {"cid": 14, "color": "#59A14F", "label": "ProductsService", "count": 38}, {"cid": 15, "color": "#EDC948", "label": "lib/services/api.ts", "count": 34}, {"cid": 16, "color": "#B07AA1", "label": "eslint", "count": 2}, {"cid": 17, "color": "#FF9DA7", "label": "useSettingsStore", "count": 48}, {"cid": 18, "color": "#9C755F", "label": "AppModule", "count": 9}, {"cid": 19, "color": "#BAB0AC", "label": "B2B Inquiry Controller", "count": 29}, {"cid": 20, "color": "#4E79A7", "label": "Category Management Controller", "count": 28}, {"cid": 21, "color": "#F28E2B", "label": "auth.service.ts", "count": 29}, {"cid": 22, "color": "#E15759", "label": "MediaController", "count": 28}, {"cid": 23, "color": "#76B7B2", "label": "Ingredient Management Controller", "count": 26}, {"cid": 24, "color": "#59A14F", "label": "adminRoutes.tsx", "count": 30}, {"cid": 25, "color": "#EDC948", "label": "admin.module.ts", "count": 26}, {"cid": 26, "color": "#B07AA1", "label": "ConfirmModal.tsx", "count": 26}, {"cid": 27, "color": "#FF9DA7", "label": "Prescription Review Controller", "count": 24}, {"cid": 28, "color": "#9C755F", "label": "Smart Advisor Controller", "count": 24}, {"cid": 29, "color": "#BAB0AC", "label": "Testimonials Management Controller", "count": 24}, {"cid": 30, "color": "#4E79A7", "label": "src/services/api.ts", "count": 42}, {"cid": 31, "color": "#F28E2B", "label": "Spinner.tsx", "count": 43}, {"cid": 32, "color": "#E15759", "label": "useCartStore", "count": 32}, {"cid": 33, "color": "#76B7B2", "label": "ZibalService", "count": 68}, {"cid": 34, "color": "#59A14F", "label": "main.ts", "count": 23}, {"cid": 35, "color": "#EDC948", "label": "ContactService", "count": 23}, {"cid": 36, "color": "#B07AA1", "label": "Backend TypeScript Config", "count": 23}, {"cid": 37, "color": "#FF9DA7", "label": "App TypeScript Config", "count": 23}, {"cid": 38, "color": "#9C755F", "label": "Coupons.tsx", "count": 25}, {"cid": 39, "color": "#BAB0AC", "label": "dependencies", "count": 21}, {"cid": 40, "color": "#4E79A7", "label": "Node TypeScript Config", "count": 21}, {"cid": 41, "color": "#F28E2B", "label": "Admin Blog Controller", "count": 20}, {"cid": 42, "color": "#E15759", "label": "WholesaleApplyDto", "count": 31}, {"cid": 43, "color": "#76B7B2", "label": "devDependencies", "count": 15}, {"cid": 44, "color": "#59A14F", "label": "Generic CRUD Controller", "count": 19}, {"cid": 45, "color": "#EDC948", "label": "seo.module.ts", "count": 19}, {"cid": 46, "color": "#B07AA1", "label": "OrdersController", "count": 23}, {"cid": 47, "color": "#FF9DA7", "label": "Project Build Scripts", "count": 18}, {"cid": 48, "color": "#9C755F", "label": "Home Data Module", "count": 17}, {"cid": 49, "color": "#BAB0AC", "label": "devDependencies", "count": 19}, {"cid": 50, "color": "#4E79A7", "label": "Database Seeding Logic", "count": 16}, {"cid": 51, "color": "#F28E2B", "label": "Prisma Database Migrations", "count": 15}, {"cid": 52, "color": "#E15759", "label": "dependencies", "count": 21}, {"cid": 53, "color": "#76B7B2", "label": "UI Skeleton and Tables", "count": 15}, {"cid": 54, "color": "#59A14F", "label": "components/Skeleton.tsx", "count": 7}, {"cid": 55, "color": "#EDC948", "label": "BE-001", "count": 33}, {"cid": 56, "color": "#B07AA1", "label": "VetGallery.tsx", "count": 13}, {"cid": 57, "color": "#FF9DA7", "label": "NPM Lifecycle Scripts", "count": 14}, {"cid": 58, "color": "#9C755F", "label": "Pet Management API", "count": 14}, {"cid": 59, "color": "#BAB0AC", "label": "PrismaService", "count": 41}, {"cid": 60, "color": "#4E79A7", "label": "Jest Testing Config", "count": 13}, {"cid": 61, "color": "#F28E2B", "label": "PaginationDto", "count": 21}, {"cid": 62, "color": "#E15759", "label": "SettingsService", "count": 22}, {"cid": 63, "color": "#76B7B2", "label": "FE-001", "count": 32}, {"cid": 64, "color": "#59A14F", "label": "payment.module.ts", "count": 15}, {"cid": 65, "color": "#EDC948", "label": "rules/graphify.md", "count": 2}, {"cid": 66, "colLine truncated
|
||||
|
||||
// HTML-escape helper — prevents XSS when injecting graph data into innerHTML
|
||||
function esc(s) {
|
||||
|
||||
+5688
-4557
File diff suppressed because it is too large.
Load diff
+514
-502
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user