feat(media): add summary and view more toggle button for video and podcast descriptions
Some checks failed
Deploy Canina / deploy (push) Successful in 1m30s
E2E Playwright Tests / Run Full E2E & Security Suites (push) Failing after 6s

This commit is contained in:
parsa aghaei 2026-08-26 17:17:19 +03:30
parent 5db23443ed
commit 40176ac60e
13 changed files with 4847 additions and 4695 deletions

View File

@ -12,7 +12,9 @@ import {
Check,
Headphones,
Loader2,
Sparkles
Sparkles,
ChevronDown,
ChevronUp
} from "lucide-react";
import SafeImage from "./SafeImage";
@ -44,6 +46,7 @@ export default function PodcastInlinePlayer({ podcast }: PodcastInlinePlayerProp
const [showRateMenu, setShowRateMenu] = useState(false);
const [isBuffering, setIsBuffering] = useState(false);
const [isCopied, setIsCopied] = useState(false);
const [isExpandedDesc, setIsExpandedDesc] = useState(false);
// Close rate menu when clicking outside
useEffect(() => {
@ -265,9 +268,27 @@ export default function PodcastInlinePlayer({ podcast }: PodcastInlinePlayerProp
<h4 className="text-base sm:text-lg font-black text-white line-clamp-1">
{podcast.title || "پادکست و بررسی صوتی بالینی مکمل"}
</h4>
<p className="text-xs text-white/70 font-medium leading-relaxed line-clamp-2 mt-1">
{podcast.description || "توضیحات صوتی دامپزشک و کادر علمی درباره اثربخشی، مکانیسم اثر و نحوه مصرف دقیق"}
</p>
{(() => {
const pDesc = podcast.description || "توضیحات صوتی دامپزشک و کادر علمی درباره اثربخشی، مکانیسم اثر و نحوه مصرف دقیق";
const isLong = pDesc.length > 120;
return (
<div className="space-y-1 mt-1">
<p className="text-xs text-white/70 font-medium leading-relaxed">
{isLong && !isExpandedDesc ? `${pDesc.slice(0, 120)}...` : pDesc}
</p>
{isLong && (
<button
type="button"
onClick={() => setIsExpandedDesc(prev => !prev)}
className="text-cyan-300 hover:text-cyan-200 text-[11px] font-bold inline-flex items-center gap-1 cursor-pointer transition-colors"
>
<span>{isExpandedDesc ? 'بستن متن' : 'مشاهده متن کامل'}</span>
{isExpandedDesc ? <ChevronUp className="w-3.5 h-3.5" /> : <ChevronDown className="w-3.5 h-3.5" />}
</button>
)}
</div>
);
})()}
</div>
{/* Soundcloud-Style Waveform Visualizer & Track */}
@ -344,7 +365,7 @@ export default function PodcastInlinePlayer({ podcast }: PodcastInlinePlayerProp
</div>
{/* Central Controls: -15s on Left, Play in Center, +15s on Right in RTL */}
<div className="flex items-center gap-2 sm:gap-3" dir="rtl">
<div className="flex items-center gap-2 sm:gap-3" dir="ltr">
<button
type="button"
onClick={togglePlay}

View File

@ -94,6 +94,7 @@ export default function ProductPage({ productSlug }: { productSlug: string }) {
const [activeImage, setActiveImage] = useState<string | null>(null);
const [isImageZoomOpen, setIsImageZoomOpen] = useState(false);
const [isVideoModalOpen, setIsVideoModalOpen] = useState(false);
const [isFullVideoDescOpen, setIsFullVideoDescOpen] = useState(false);
useEffect(() => {
Promise.resolve().then(() => setIsMounted(true));
@ -831,9 +832,27 @@ export default function ProductPage({ productSlug }: { productSlug: string }) {
<h4 className="text-lg font-black text-white">
{product.videoTitle || "ویدیو راهنمای مصرف و معرفی مکمل"}
</h4>
<p className="text-xs text-white/70 font-medium leading-relaxed">
{product.videoDescription || "مشاهده ویدیوی آموزشی، دوزبندی دقیق و نحوه مصرف مکمل توسط کادر علمی کنینا"}
</p>
{(() => {
const vDesc = product.videoDescription || "مشاهده ویدیوی آموزشی، دوزبندی دقیق و نحوه مصرف مکمل توسط کادر علمی کنینا";
const isLong = vDesc.length > 120;
return (
<div className="space-y-1.5">
<p className="text-xs text-white/70 font-medium leading-relaxed">
{isLong && !isFullVideoDescOpen ? `${vDesc.slice(0, 120)}...` : vDesc}
</p>
{isLong && (
<button
type="button"
onClick={() => setIsFullVideoDescOpen(prev => !prev)}
className="text-cyan-300 hover:text-cyan-200 text-[11px] font-bold inline-flex items-center gap-1 cursor-pointer transition-colors"
>
<span>{isFullVideoDescOpen ? 'بستن متن' : 'مشاهده متن کامل'}</span>
{isFullVideoDescOpen ? <ChevronUp className="w-3.5 h-3.5" /> : <ChevronDown className="w-3.5 h-3.5" />}
</button>
)}
</div>
);
})()}
<div className="pt-2 flex justify-center md:justify-start">
<button
type="button"

View File

@ -112,7 +112,7 @@
"110": "Operational Rules & Boundaries",
"111": "Operational Rules & Boundaries",
"112": "Operational Rules & Boundaries",
"113": "Reports.tsx",
"113": "RegisterDto",
"114": "AppService",
"115": "VetGallery.tsx",
"116": "Vazirmatn Changelog",
@ -147,7 +147,7 @@
"145": "admin.service.ts",
"146": "System Discovery",
"147": "HomeClient.tsx",
"148": "@nestjs/swagger",
"148": "bcrypt",
"149": "SmsSettingsPage.tsx",
"150": "Product Requirement Document (PRD)",
"151": "class-transformer",
@ -323,6 +323,6 @@
"321": "orders/page.tsx",
"322": "pets/page.tsx",
"323": "eslint-config-prettier",
"324": "@types/react-dom",
"324": "eslint-config-next",
"327": "eslint-plugin-react-refresh"
}

File diff suppressed because one or more lines are too long

View File

@ -7,9 +7,9 @@
"5": "CmsController",
"6": "tickets.controller.ts",
"7": "Button.tsx",
"8": "users.service.ts",
"8": "users.controller.ts",
"9": "devDependencies",
"10": "reviews.controller.ts",
"10": "CreateReviewDto",
"11": "MediaSelector.tsx",
"12": "index.ts",
"13": "app-audit-verification.e2e-spec.js",
@ -64,7 +64,7 @@
"62": "ProductDto",
"63": "dependencies",
"64": "compilerOptions",
"65": "app.e2e-spec.js",
"65": "BlogsService",
"66": "ApiOperation",
"67": "PetsController",
"68": "UserDashboard.tsx",
@ -75,7 +75,7 @@
"73": "Operational Rules & Boundaries",
"74": "WikiController",
"75": "PetsController",
"76": "Param",
"76": "AdminService",
"77": "seo.module.ts",
"78": "rss.xml/route.ts",
"79": "🏢 AI Software Agency — Master Orchestration Protocol v3",
@ -89,10 +89,10 @@
"87": "dependencies",
"88": "CreateEBankCheckoutDto",
"89": "seed-products.ts",
"90": "lib/services/api.ts",
"90": "api",
"91": "Reconciled Audit Roles & Assignments",
"92": "OrdersService",
"93": "BlogsService",
"93": "lib/services/api.ts",
"94": "Phase 3.1 — Human Review Preparation and Master Backlog Critique",
"95": "wiki/[slug]/page.tsx",
"96": "compilerOptions",
@ -112,7 +112,7 @@
"110": "Operational Rules & Boundaries",
"111": "Operational Rules & Boundaries",
"112": "Operational Rules & Boundaries",
"113": "AdminService",
"113": "Reports.tsx",
"114": "AppService",
"115": "VetGallery.tsx",
"116": "Vazirmatn Changelog",
@ -122,13 +122,13 @@
"120": "compilerOptions",
"121": "backend/README.md",
"122": "AdminController",
"123": "auth.service.ts",
"123": "AuthService",
"124": "Repository Map",
"125": "validate_integrity.js",
"126": "admin-panel/package.json",
"127": "Sahel-Font",
"128": ".createCoupon",
"129": "auth.controller.ts",
"128": "Body",
"129": "auth.service.ts",
"130": "Sahel-Font",
"131": "Role & Core Objective",
"132": "orchestrate.py",
@ -183,7 +183,7 @@
"181": "⚙️ Backend Technical Review (05_dev_backend)",
"182": "🎨 Frontend & Admin Panel Technical Review (06_dev_frontend)",
"183": "🚀 SEO & Content Strategy Review (12_seo_content)",
"184": "MetricsController",
"184": "track/page.tsx",
"185": "@eslint/eslintrc",
"186": "seed-ui-texts.ts",
"187": "seed-wiki.ts",
@ -230,7 +230,7 @@
"228": "rules/graphify.md",
"229": ".agents/workflows/graphify.md",
"230": "instructions.md",
"231": "RevalidationService",
"231": "RedisService",
"232": "helmet",
"233": "tailwindcss",
"234": "@nestjs/schematics",
@ -322,7 +322,7 @@
"320": "@testing-library/react",
"321": "orders/page.tsx",
"322": "pets/page.tsx",
"323": "eslint",
"324": "eslint-config-next",
"323": "eslint-config-prettier",
"324": "@types/react-dom",
"327": "eslint-plugin-react-refresh"
}

View File

@ -1,16 +1,16 @@
# Graph Report - canina (2026-08-26)
## Corpus Check
- 589 files · ~1,333,704 words
- 590 files · ~1,334,711 words
- Verdict: corpus is large enough that graph structure adds value.
## Summary
- 4114 nodes · 7414 edges · 326 communities (207 shown, 119 thin omitted)
- 4118 nodes · 7419 edges · 326 communities (208 shown, 118 thin omitted)
- Extraction: 96% EXTRACTED · 4% INFERRED · 0% AMBIGUOUS · INFERRED: 281 edges (avg confidence: 0.79)
- Token cost: 0 input · 0 output
## Graph Freshness
- Built from commit: `5f58ba82`
- Built from commit: `0ddc635d`
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
- Run `graphify update .` after code changes (no API cost).
@ -23,9 +23,9 @@
- CmsController
- tickets.controller.ts
- Button.tsx
- users.service.ts
- users.controller.ts
- devDependencies
- reviews.controller.ts
- CreateReviewDto
- MediaSelector.tsx
- index.ts
- app-audit-verification.e2e-spec.js
@ -80,7 +80,7 @@
- ProductDto
- dependencies
- compilerOptions
- app.e2e-spec.js
- BlogsService
- ApiOperation
- PetsController
- UserDashboard.tsx
@ -91,7 +91,7 @@
- Operational Rules & Boundaries
- WikiController
- PetsController
- Param
- AdminService
- seo.module.ts
- rss.xml/route.ts
- 🏢 AI Software Agency — Master Orchestration Protocol v3
@ -105,10 +105,10 @@
- dependencies
- CreateEBankCheckoutDto
- seed-products.ts
- lib/services/api.ts
- api
- Reconciled Audit Roles & Assignments
- OrdersService
- BlogsService
- lib/services/api.ts
- Phase 3.1 — Human Review Preparation and Master Backlog Critique
- wiki/[slug]/page.tsx
- compilerOptions
@ -128,7 +128,7 @@
- Operational Rules & Boundaries
- Operational Rules & Boundaries
- Operational Rules & Boundaries
- AdminService
- Reports.tsx
- AppService
- VetGallery.tsx
- Vazirmatn Changelog
@ -138,13 +138,13 @@
- compilerOptions
- backend/README.md
- AdminController
- auth.service.ts
- AuthService
- Repository Map
- validate_integrity.js
- admin-panel/package.json
- Sahel-Font
- .createCoupon
- auth.controller.ts
- Body
- auth.service.ts
- Sahel-Font
- Role & Core Objective
- orchestrate.py
@ -198,7 +198,7 @@
- ⚙️ Backend Technical Review (05_dev_backend)
- 🎨 Frontend & Admin Panel Technical Review (06_dev_frontend)
- 🚀 SEO & Content Strategy Review (12_seo_content)
- MetricsController
- track/page.tsx
- @eslint/eslintrc
- seed-ui-texts.ts
- seed-wiki.ts
@ -245,7 +245,7 @@
- rules/graphify.md
- .agents/workflows/graphify.md
- instructions.md
- RevalidationService
- RedisService
- helmet
- tailwindcss
- @nestjs/schematics
@ -318,8 +318,8 @@
- MaskableField.tsx
- @eslint/js
- @testing-library/react
- eslint
- eslint-config-next
- eslint-config-prettier
- @types/react-dom
- eslint-plugin-react-refresh
## God Nodes (most connected - your core abstractions)
@ -347,19 +347,19 @@
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/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`
- 3-file cycle: `frontend/application/lib/services/api.ts -> frontend/application/lib/store/userStore.ts -> frontend/application/lib/store/cartStore.ts -> frontend/application/lib/services/api.ts`
- 4-file cycle: `frontend/application/lib/services/api.ts -> frontend/application/lib/store/userStore.ts -> frontend/application/lib/store/cartStore.ts -> frontend/application/lib/services/orderService.ts -> frontend/application/lib/services/api.ts`
## Communities (326 total, 119 thin omitted)
## Communities (326 total, 118 thin omitted)
### Community 0 - "Roles"
Cohesion: 0.24
Nodes (13): Roles(), PaymentController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Get (+5 more)
### Community 1 - "app.module.ts"
Cohesion: 0.07
Nodes (38): B2BModule, Module, BannersModule, Module, CmsModule, Module, SmsModule, Global (+30 more)
Cohesion: 0.06
Nodes (37): B2BModule, Module, BannersModule, Module, CmsModule, Module, SmsModule, Global (+29 more)
### Community 2 - "SmsService"
Cohesion: 0.06
@ -367,11 +367,11 @@ Nodes (27): SmsService, Injectable, SmsLogQueryDto, ApiPropertyOptional, IsIn, I
### Community 3 - "ProductService"
Cohesion: 0.06
Nodes (34): dynamic, revalidate, DEFAULT_CATEGORIES, dynamic, revalidate, dynamic, revalidate, BlogCategory (+26 more)
Nodes (33): dynamic, revalidate, DEFAULT_CATEGORIES, dynamic, revalidate, dynamic, revalidate, BlogCategory (+25 more)
### Community 4 - "ProductPage.tsx"
Cohesion: 0.13
Nodes (14): revalidate, PLAYBACK_RATES, PodcastInlinePlayer(), PodcastInlinePlayerProps, CalculatorState, ICON_MAP, ProductPage(), ProductReviews (+6 more)
Nodes (13): PLAYBACK_RATES, PodcastInlinePlayer(), PodcastInlinePlayerProps, ProductImageZoomModalProps, CalculatorState, ICON_MAP, ProductImageZoomModal, ProductPage() (+5 more)
### Community 5 - "CmsController"
Cohesion: 0.09
@ -385,17 +385,17 @@ Nodes (29): AdminUpdateTicketDto, CreateTicketDto, ReplyTicketDto, ApiProperty,
Cohesion: 0.12
Nodes (14): Button(), ButtonProps, ButtonSize, ButtonVariant, Spinner(), FAQ, BlogCommentItem, ProductReview (+6 more)
### Community 8 - "users.service.ts"
### Community 8 - "users.controller.ts"
Cohesion: 0.13
Nodes (14): AddressDto, ApiProperty, ApiPropertyOptional, IsBoolean, IsNotEmpty, IsOptional, IsString, ApiPropertyOptional (+6 more)
Nodes (13): AddressDto, ApiProperty, ApiPropertyOptional, IsBoolean, IsNotEmpty, IsOptional, IsString, ApiPropertyOptional (+5 more)
### Community 9 - "devDependencies"
Cohesion: 0.22
Nodes (9): devDependencies, eslint-config-prettier, @types/bcryptjs, @types/node, typescript, @types/node, typescript, eslint-config-prettier (+1 more)
Nodes (9): devDependencies, eslint, @types/bcryptjs, @types/node, typescript, eslint, @types/node, typescript (+1 more)
### Community 10 - "reviews.controller.ts"
Cohesion: 0.07
Nodes (30): CreateReviewDto, ApiProperty, IsInt, IsNotEmpty, IsOptional, IsString, Min, ApiProperty (+22 more)
### Community 10 - "CreateReviewDto"
Cohesion: 0.08
Nodes (25): CreateReviewDto, ApiProperty, IsInt, IsNotEmpty, IsOptional, IsString, Min, ReviewsController (+17 more)
### Community 11 - "MediaSelector.tsx"
Cohesion: 0.06
@ -406,12 +406,12 @@ Cohesion: 0.06
Nodes (24): backend, frontend, playwright.config.ts, @playwright/test, tests/**/*.ts, authFile, test, compilerOptions (+16 more)
### Community 13 - "app-audit-verification.e2e-spec.js"
Cohesion: 0.06
Nodes (28): AppModule, Module, EnvironmentVariables, IsNotEmpty, IsOptional, IsString, validateEnv(), CustomHttpExceptionFilter (+20 more)
Cohesion: 0.07
Nodes (26): EnvironmentVariables, IsNotEmpty, IsOptional, IsString, validateEnv(), CustomHttpExceptionFilter, Catch, PrismaExceptionFilter (+18 more)
### Community 14 - "PetProfile.tsx"
Cohesion: 0.14
Nodes (19): metadata, Header(), MENU_ICONS, PrescriptionUploadModal(), PrescriptionUploadModalProps, CURRENT_SYMPTOMS, MEDICAL_HISTORIES, SmartAdvisor() (+11 more)
Cohesion: 0.13
Nodes (20): ClientLayout(), metadata, Header(), PetProfile(), PrescriptionUploadModal(), PrescriptionUploadModalProps, CURRENT_SYMPTOMS, MEDICAL_HISTORIES (+12 more)
### Community 15 - "src/services/api.ts"
Cohesion: 0.08
@ -426,20 +426,20 @@ Cohesion: 0.14
Nodes (18): B2BPage(), generateMetadata(), ContactPage(), generateMetadata(), generateMetadata(), getInitialVideos(), Videos(), ContactFormClient() (+10 more)
### Community 18 - "JwtAuthGuard"
Cohesion: 0.18
Cohesion: 0.19
Nodes (7): JwtAuthGuard, Injectable, ROLES_KEY, RequestWithUser, RolesGuard, Injectable, UserReqPayload
### Community 19 - "ProductsService"
Cohesion: 0.11
Nodes (14): ProductsController, ApiOperation, ApiTags, Body, Controller, Get, Param, Patch (+6 more)
Cohesion: 0.09
Nodes (19): GetProductsDto, ApiPropertyOptional, IsEnum, IsOptional, IsString, ProductsController, ApiOperation, ApiTags (+11 more)
### Community 20 - "CreateVideoDto"
Cohesion: 0.07
Nodes (32): CreateVideoDto, ApiProperty, ApiPropertyOptional, IsBoolean, IsNotEmpty, IsOptional, IsString, UpdateVideoDto (+24 more)
Cohesion: 0.08
Nodes (29): CreateVideoDto, ApiProperty, ApiPropertyOptional, IsBoolean, IsNotEmpty, IsOptional, IsString, UpdateVideoDto (+21 more)
### Community 21 - "admin.module.ts"
Cohesion: 0.06
Nodes (23): AdminModule, Module, PetQuery, PetsService, Injectable, ReportsController, ApiBearerAuth, ApiOperation (+15 more)
Cohesion: 0.07
Nodes (20): AdminModule, Module, PetQuery, PetsService, Injectable, ReportsController, ApiBearerAuth, ApiOperation (+12 more)
### Community 22 - "FeaturedProducts.tsx"
Cohesion: 0.14
@ -482,8 +482,8 @@ Cohesion: 0.06
Nodes (31): Acceptance Criteria, Affected Application, Affected Files, Alternative Direction, Category, Completion Statement, Confidence, Dependencies (+23 more)
### Community 32 - "adminRoutes.tsx"
Cohesion: 0.06
Nodes (24): App(), Props, RouteErrorBoundary, State, HeroBanner, VetTestimonial, BestSellerItem, CategoryDistItem (+16 more)
Cohesion: 0.08
Nodes (17): App(), Props, RouteErrorBoundary, State, HeroBanner, VetTestimonial, AdminRouteConfig, CMS (+9 more)
### Community 33 - "WholesaleService"
Cohesion: 0.14
@ -546,7 +546,7 @@ Cohesion: 0.13
Nodes (14): IngredientsController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+6 more)
### Community 48 - "UsersController"
Cohesion: 0.21
Cohesion: 0.20
Nodes (16): ApiBadRequestResponse, ApiBearerAuth, ApiCreatedResponse, ApiOkResponse, ApiOperation, ApiTags, Body, Controller (+8 more)
### Community 49 - "devDependencies"
@ -555,11 +555,11 @@ Nodes (19): autoprefixer, devDependencies, autoprefixer, eslint, @eslint/js, glo
### Community 50 - "devDependencies"
Cohesion: 0.13
Nodes (15): devDependencies, eslint, jsdom, tailwindcss, @tailwindcss/postcss, @types/node, @types/react-dom, @vitejs/plugin-react (+7 more)
Nodes (15): eslint-config-next, devDependencies, eslint, eslint-config-next, jsdom, tailwindcss, @tailwindcss/postcss, @types/node (+7 more)
### Community 51 - "BlogsController"
Cohesion: 0.07
Nodes (18): BlogsController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, Delete (+10 more)
Cohesion: 0.14
Nodes (16): BlogsController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, Delete (+8 more)
### Community 52 - "PrescriptionsService"
Cohesion: 0.14
@ -598,7 +598,7 @@ Cohesion: 0.22
Nodes (7): AdminTransactionFilterDto, ApiPropertyOptional, IsIn, IsNumber, IsOptional, IsString, Type
### Community 62 - "ProductDto"
Cohesion: 0.17
Cohesion: 0.22
Nodes (7): ProductDto, ApiPropertyOptional, IsArray, IsBoolean, IsNumber, IsOptional, IsString
### Community 63 - "dependencies"
@ -609,12 +609,12 @@ Nodes (23): dependencies, bcrypt, bcryptjs, class-validator, compression, ioredi
Cohesion: 0.10
Nodes (20): compilerOptions, allowImportingTsExtensions, erasableSyntaxOnly, lib, module, moduleDetection, moduleResolution, noEmit (+12 more)
### Community 65 - "app.e2e-spec.js"
Cohesion: 0.50
Nodes (3): app_module_1, supertest_1, testing_1
### Community 65 - "BlogsService"
Cohesion: 0.06
Nodes (14): BlogsService, Injectable, RevalidationModule, Global, Module, RevalidationService, Injectable, ApiProperty (+6 more)
### Community 66 - "ApiOperation"
Cohesion: 0.22
Cohesion: 0.12
Nodes (8): ApiOperation, ApiQuery, Get, Query, AdminQueryDto, ApiPropertyOptional, IsOptional, IsString
### Community 67 - "PetsController"
@ -622,8 +622,8 @@ Cohesion: 0.15
Nodes (11): PetsController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Controller, Delete, Get (+3 more)
### Community 68 - "UserDashboard.tsx"
Cohesion: 0.09
Nodes (35): AuthModal, HomeClient(), VerifyContent(), AddressFormData, AddressModal(), AddressModalProps, normalizeDigits(), validateAddressForm() (+27 more)
Cohesion: 0.14
Nodes (23): AddressFormData, AddressModal(), AddressModalProps, normalizeDigits(), validateAddressForm(), BackButton(), BackButtonProps, CheckoutPage() (+15 more)
### Community 69 - "Required Review Group Closures"
Cohesion: 0.10
@ -653,6 +653,10 @@ Nodes (14): ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, De
Cohesion: 0.05
Nodes (47): CreateHealthLogDto, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString, CreatePetDto, ApiProperty (+39 more)
### Community 76 - "AdminService"
Cohesion: 0.20
Nodes (4): Delete, Param, AdminService, Injectable
### Community 77 - "seo.module.ts"
Cohesion: 0.16
Nodes (10): SeoController, ApiOperation, ApiTags, Controller, Get, Param, SeoModule, Module (+2 more)
@ -687,7 +691,7 @@ Nodes (16): 1. Active Secret Scanning (All Modified Files), 2. Docker Container
### Community 85 - "useSettingsStore"
Cohesion: 0.13
Nodes (17): ClientLayout(), B2BLandingClient(), BrandLogo(), BrandLogoProps, FAQItem, FAQSection(), Footer(), Hero() (+9 more)
Nodes (20): AuthModal, AuthModal(), AuthModalProps, extractOtpFromText(), B2BLandingClient(), BrandLogo(), BrandLogoProps, FAQItem (+12 more)
### Community 86 - "zibal.service.ts"
Cohesion: 0.16
@ -705,29 +709,29 @@ Nodes (8): CreateEBankCheckoutDto, ApiProperty, ApiPropertyOptional, IsNotEmpty,
Cohesion: 0.17
Nodes (12): prisma, main(), prisma, determineSuitableFor(), findOrCreateCategory(), getProductImageUrl(), main(), parseSize() (+4 more)
### Community 90 - "lib/services/api.ts"
Cohesion: 0.06
Nodes (20): LoginModal, ContactInfoItem, LoginModal(), LoginModalProps, api, ApiErrorPayload, baseURL, ApiErr (+12 more)
### Community 90 - "api"
Cohesion: 0.10
Nodes (13): LoginModal, ContactInfoItem, LoginModal(), LoginModalProps, api, ApiErr, AuthResponse, AuthService (+5 more)
### Community 91 - "Reconciled Audit Roles & Assignments"
Cohesion: 0.12
Nodes (15): 10. Documentation Engineer, 1. Lead Architect / Orchestrator, 2. React / Vite Storefront Auditor, 3. NestJS Backend Auditor, 4. Admin Features Auditor, 5. Database & Data Integrity Auditor, 6. Security Auditor, 7. TypeScript & Code Quality Auditor (+7 more)
### Community 92 - "OrdersService"
Cohesion: 0.07
Nodes (29): CreateOrderDto, OrderItemDto, ApiProperty, ApiPropertyOptional, IsArray, IsNotEmpty, IsNumber, IsOptional (+21 more)
Cohesion: 0.06
Nodes (35): CreateOrderDto, OrderItemDto, ApiProperty, ApiPropertyOptional, IsArray, IsNotEmpty, IsNumber, IsOptional (+27 more)
### Community 93 - "BlogsService"
Cohesion: 0.14
Nodes (5): BlogsModule, Module, BlogFilterDto, BlogsService, Injectable
### Community 93 - "lib/services/api.ts"
Cohesion: 0.09
Nodes (21): B2BPortal, B2BPortal(), BlogPostClientProps, BlogPost, BlogPreviewSection(), OrderDetailsModal(), OrderDetailsModalProps, PLAYBACK_RATES (+13 more)
### Community 94 - "Phase 3.1 — Human Review Preparation and Master Backlog Critique"
Cohesion: 0.13
Nodes (14): 10. Dependency & Wave Adjustments, 11. Acceptance Criteria Refinements, 12. Business and Product Decision Classification, 13. Final Recommended Backlog Summary, 1. Executive Assessment, 2. Findings That Require No Change, 3. Findings Requiring Task Refinements, 4. Tasks Requiring Splitting (+6 more)
### Community 95 - "wiki/[slug]/page.tsx"
Cohesion: 0.24
Nodes (15): BlogPostPage(), generateMetadata(), getBlog(), revalidate, safeIso(), safeLocalDate(), generateMetadata(), generateMetadata() (+7 more)
Cohesion: 0.19
Nodes (16): BlogPostPage(), generateMetadata(), getBlog(), revalidate, safeIso(), safeLocalDate(), generateMetadata(), revalidate (+8 more)
### Community 96 - "compilerOptions"
Cohesion: 0.06
@ -771,11 +775,11 @@ Nodes (11): 1. Detect Test Runner from Tech Stack, 2. Execution Output Capture (
### Community 107 - "PaginationDto"
Cohesion: 0.06
Nodes (33): PaginationDto, SortOrder, ApiPropertyOptional, IsEnum, IsInt, IsOptional, IsString, Min (+25 more)
Nodes (27): BlogsModule, Module, BlogFilterDto, BlogsService, Injectable, PaginationDto, SortOrder, ApiPropertyOptional (+19 more)
### Community 108 - "PrismaService"
Cohesion: 0.08
Nodes (17): CategoryQuery, MeliPayamakPattern, MeliPayamakResponse, SendPatternSmsOptions, SmsConfig, SmsLogQuery, CreateContactSubmissionDto, UpdateContactInfoItemDto (+9 more)
Cohesion: 0.06
Nodes (27): ApiExcludeController, CategoryQuery, MetricsController, Controller, Get, Res, MeliPayamakPattern, MeliPayamakResponse (+19 more)
### Community 109 - "1. Summary of Integrity Repairs Performed"
Cohesion: 0.17
@ -793,13 +797,17 @@ Nodes (10): 1. Mark Active Task as Complete, 2. Documentation Updates, 3. Dynami
Cohesion: 0.18
Nodes (10): 1. Pre-Deployment Checklist, 2. Build Verification, 3. Deployment Strategy (Based on Target), 4. Post-Deployment Health Check, 5. Forbidden Actions, Expected JSON Output Schema, Operational Rules & Boundaries, Required Output Artifacts (What files to write/update) (+2 more)
### Community 113 - "Reports.tsx"
Cohesion: 0.20
Nodes (7): BestSellerItem, CategoryDistItem, COLORS, CustomTooltipProps, ReportData, TopCouponItem, Reports
### Community 114 - "AppService"
Cohesion: 0.29
Nodes (5): AppController, Controller, Get, AppService, Injectable
### Community 115 - "VetGallery.tsx"
Cohesion: 0.16
Nodes (12): BackButton(), BackButtonProps, VideoModalPlayer, DisplayVideoItem, FALLBACK_VIDEOS, TestimonialItem, VetGallery(), PLAYBACK_RATES (+4 more)
Cohesion: 0.20
Nodes (10): VideoModalPlayer, DisplayVideoItem, FALLBACK_VIDEOS, TestimonialItem, VetGallery(), PLAYBACK_RATES, VideoModalPlayer(), VideoModalPlayerProps (+2 more)
### Community 116 - "Vazirmatn Changelog"
Cohesion: 0.18
@ -827,11 +835,11 @@ Nodes (9): Compile and run the project, Deployment, Description, License, Projec
### Community 122 - "AdminController"
Cohesion: 0.14
Nodes (7): AdminController, ApiBearerAuth, ApiTags, Body, Controller, Put, UseGuards
Nodes (6): AdminController, ApiBearerAuth, ApiTags, Controller, Put, UseGuards
### Community 123 - "auth.service.ts"
Cohesion: 0.09
Nodes (17): AdminLoginInput, AuthService, LoginInput, RegisterInput, Injectable, SendOtpDto, ApiProperty, IsNotEmpty (+9 more)
### Community 123 - "AuthService"
Cohesion: 0.18
Nodes (4): AuthService, Injectable, normalizeMobile(), UserAddressInput
### Community 124 - "Repository Map"
Cohesion: 0.20
@ -849,9 +857,9 @@ Nodes (9): name, private, scripts, build, dev, lint, preview, type (+1 more)
Cohesion: 0.20
Nodes (9): Arch Linux, Contributors, Install, Known problems for variable version, License, Sahel-Font, To Do (variable), طریقه استفاده از نسخه متغیر variable (+1 more)
### Community 129 - "auth.controller.ts"
Cohesion: 0.10
Nodes (19): AdminLoginDto, ApiProperty, IsEmail, IsNotEmpty, IsString, MinLength, LoginDto, ApiProperty (+11 more)
### Community 129 - "auth.service.ts"
Cohesion: 0.06
Nodes (33): AdminLoginInput, LoginInput, RegisterInput, AdminLoginDto, ApiProperty, IsEmail, IsNotEmpty, IsString (+25 more)
### Community 130 - "Sahel-Font"
Cohesion: 0.20
@ -922,8 +930,8 @@ Cohesion: 0.25
Nodes (7): Active Core Applications, Current Architecture, Evidence-Based Status Matrix, Excluded / Non-Auditable Artifacts, Major Business Domains Discovered, System Discovery, Technical Architecture Summary
### Community 147 - "HomeClient.tsx"
Cohesion: 0.09
Nodes (26): HomeClientProps, ArchivePage(), CATEGORY_MAP, ICON_MAP, BannerPlacement(), BannerPlacementProps, BlogPostClientProps, BlogPost (+18 more)
Cohesion: 0.11
Nodes (20): HomeClient(), HomeClientProps, ArchivePage(), ArchiveProductCard(), CATEGORY_MAP, ICON_MAP, BannerPlacement(), BannerPlacementProps (+12 more)
### Community 149 - "SmsSettingsPage.tsx"
Cohesion: 0.29
@ -934,8 +942,8 @@ Cohesion: 0.29
Nodes (6): 1. Executive Vision, 2. Target Audience, 3. Functional Requirements, 4. Non-Functional Requirements (Performance, Security), 5. Epic / Feature Breakdown, Product Requirement Document (PRD)
### Community 152 - "useCartStore"
Cohesion: 0.15
Nodes (13): B2BPortal, CartDrawer, B2BPortal(), CartDrawer(), DeleteConfirmModal(), DeleteConfirmModalProps, OrderSuccess(), OrderTracking() (+5 more)
Cohesion: 0.09
Nodes (16): CartDrawer, VerifyContent(), CartDrawer(), DeleteConfirmModal(), DeleteConfirmModalProps, OrderSuccess(), mockProduct, ApiErr (+8 more)
### Community 153 - "exclude"
Cohesion: 0.22
@ -1037,10 +1045,6 @@ Nodes (3): Architectural Overview, Critical Review Findings & Required Enhanceme
Cohesion: 0.50
Nodes (3): Overview & Content Foundation, SEO & Content Requirements, 🚀 SEO & Content Strategy Review (12_seo_content)
### Community 184 - "MetricsController"
Cohesion: 0.20
Nodes (5): ApiExcludeController, MetricsController, Controller, Get, Res
### Community 191 - "graphify reference: add a URL and watch a folder"
Cohesion: 0.50
Nodes (3): For /graphify add, For --watch, graphify reference: add a URL and watch a folder
@ -1085,12 +1089,12 @@ Nodes (3): ADR-AUTH-001: Admin Panel Authentication Architecture & Token Managem
Cohesion: 0.67
Nodes (3): Shabnam Font README, Shabnam Font Sample, Vazir Font
### Community 231 - "RevalidationService"
Cohesion: 0.12
Nodes (7): RevalidationModule, Global, Module, RevalidationService, Injectable, RedisService, Injectable
### Community 231 - "RedisService"
Cohesion: 0.11
Nodes (7): AppModule, Module, RedisModule, Global, Module, RedisService, Injectable
### Community 298 - ".initiateOrderPayment"
Cohesion: 0.20
Cohesion: 0.18
Nodes (10): ApiPropertyOptional, IsOptional, IsString, ZibalCallbackQueryDto, ApiBadRequestResponse, ApiOkResponse, Req, Res (+2 more)
### Community 313 - "Modal.tsx"
@ -1102,24 +1106,24 @@ Cohesion: 0.83
Nodes (3): GET(), handleRevalidate(), POST()
## Knowledge Gaps
- **1337 isolated node(s):** `$schema`, `collection`, `sourceRoot`, `deleteOutDir`, `name` (+1332 more)
- **1338 isolated node(s):** `$schema`, `collection`, `sourceRoot`, `deleteOutDir`, `name` (+1333 more)
These have ≤1 connection - possible missing edges or undocumented components.
- **119 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
- **118 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
## Suggested Questions
_Questions this graph is uniquely positioned to answer:_
- **Why does `ApiResponse` connect `src/services/api.ts` to `BlogsController`, `AuthController`, `PetsController`, `PaginationDto`, `HomeController`, `UsersController`, `ProductsService`, `OrdersService`?**
_High betweenness centrality (0.085) - this node is a cross-community bridge._
- **Why does `Roles()` connect `Roles` to `WholesaleService`, `B2BService`, `SmsService`, `FaqService`, `CmsController`, `tickets.controller.ts`, `SslController`, `BannersService`, `reviews.controller.ts`, `TestimonialsService`, `IngredientsService`, `JwtAuthGuard`, `ProductsService`, `PrescriptionsService`, `SmartAdvisorService`, `MenuService`, `ContactService`?**
- **Why does `Roles()` connect `Roles` to `BlogsService`, `B2BService`, `SmsService`, `FaqService`, `CmsController`, `tickets.controller.ts`, `WholesaleService`, `SslController`, `BannersService`, `CreateReviewDto`, `TestimonialsService`, `IngredientsService`, `JwtAuthGuard`, `ProductsService`, `PrescriptionsService`, `SmartAdvisorService`, `MenuService`, `ContactService`?**
_High betweenness centrality (0.066) - this node is a cross-community bridge._
- **Why does `JwtAuthGuard` connect `JwtAuthGuard` to `auth.controller.ts`, `CmsController`, `tickets.controller.ts`, `users.service.ts`, `reviews.controller.ts`, `PaginationDto`, `PetsController`, `DoctorQueryDto`, `admin.service.ts`, `CreateVideoDto`, `admin.module.ts`, `BlogsService`?**
- **Why does `JwtAuthGuard` connect `JwtAuthGuard` to `auth.service.ts`, `BlogsService`, `CmsController`, `tickets.controller.ts`, `users.controller.ts`, `PaginationDto`, `PetsController`, `DoctorQueryDto`, `admin.service.ts`, `ProductsService`, `CreateVideoDto`, `admin.module.ts`, `OrdersService`?**
_High betweenness centrality (0.033) - this node is a cross-community bridge._
- **What connects `$schema`, `collection`, `sourceRoot` to the rest of the system?**
_1337 weakly-connected nodes found - possible documentation gaps or missing edges._
_1338 weakly-connected nodes found - possible documentation gaps or missing edges._
- **Should `app.module.ts` be split into smaller, more focused modules?**
_Cohesion score 0.06516290726817042 - nodes in this community are weakly interconnected._
_Cohesion score 0.05706214689265537 - nodes in this community are weakly interconnected._
- **Should `SmsService` be split into smaller, more focused modules?**
_Cohesion score 0.055040197897340756 - nodes in this community are weakly interconnected._
- **Should `ProductService` be split into smaller, more focused modules?**
_Cohesion score 0.06093189964157706 - nodes in this community are weakly interconnected._
_Cohesion score 0.06393442622950819 - nodes in this community are weakly interconnected._

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
# Graph Report - canina (2026-08-26)
## Corpus Check
- 590 files · ~1,334,711 words
- 590 files · ~1,334,899 words
- Verdict: corpus is large enough that graph structure adds value.
## Summary
@ -10,7 +10,7 @@
- Token cost: 0 input · 0 output
## Graph Freshness
- Built from commit: `0ddc635d`
- Built from commit: `5db23443`
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
- Run `graphify update .` after code changes (no API cost).
@ -128,7 +128,7 @@
- Operational Rules & Boundaries
- Operational Rules & Boundaries
- Operational Rules & Boundaries
- Reports.tsx
- RegisterDto
- AppService
- VetGallery.tsx
- Vazirmatn Changelog
@ -163,7 +163,7 @@
- admin.service.ts
- System Discovery
- HomeClient.tsx
- @nestjs/swagger
- bcrypt
- SmsSettingsPage.tsx
- Product Requirement Document (PRD)
- class-transformer
@ -319,7 +319,7 @@
- @eslint/js
- @testing-library/react
- eslint-config-prettier
- @types/react-dom
- eslint-config-next
- eslint-plugin-react-refresh
## God Nodes (most connected - your core abstractions)
@ -358,8 +358,8 @@ Cohesion: 0.24
Nodes (13): Roles(), PaymentController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Get (+5 more)
### Community 1 - "app.module.ts"
Cohesion: 0.06
Nodes (37): B2BModule, Module, BannersModule, Module, CmsModule, Module, SmsModule, Global (+29 more)
Cohesion: 0.05
Nodes (39): B2BModule, Module, BannersModule, Module, CmsModule, Module, SmsModule, Global (+31 more)
### Community 2 - "SmsService"
Cohesion: 0.06
@ -482,8 +482,8 @@ Cohesion: 0.06
Nodes (31): Acceptance Criteria, Affected Application, Affected Files, Alternative Direction, Category, Completion Statement, Confidence, Dependencies (+23 more)
### Community 32 - "adminRoutes.tsx"
Cohesion: 0.08
Nodes (17): App(), Props, RouteErrorBoundary, State, HeroBanner, VetTestimonial, AdminRouteConfig, CMS (+9 more)
Cohesion: 0.06
Nodes (24): App(), Props, RouteErrorBoundary, State, HeroBanner, VetTestimonial, BestSellerItem, CategoryDistItem (+16 more)
### Community 33 - "WholesaleService"
Cohesion: 0.14
@ -555,7 +555,7 @@ Nodes (19): autoprefixer, devDependencies, autoprefixer, eslint, @eslint/js, glo
### Community 50 - "devDependencies"
Cohesion: 0.13
Nodes (15): eslint-config-next, devDependencies, eslint, eslint-config-next, jsdom, tailwindcss, @tailwindcss/postcss, @types/node (+7 more)
Nodes (15): devDependencies, eslint, jsdom, tailwindcss, @tailwindcss/postcss, @types/node, @types/react-dom, @vitejs/plugin-react (+7 more)
### Community 51 - "BlogsController"
Cohesion: 0.14
@ -603,7 +603,7 @@ Nodes (7): ProductDto, ApiPropertyOptional, IsArray, IsBoolean, IsNumber, IsOpti
### Community 63 - "dependencies"
Cohesion: 0.09
Nodes (23): dependencies, bcrypt, bcryptjs, class-validator, compression, ioredis, @nestjs/common, @nestjs/passport (+15 more)
Nodes (23): dependencies, bcryptjs, class-validator, compression, ioredis, @nestjs/common, @nestjs/passport, @nestjs/platform-express (+15 more)
### Community 64 - "compilerOptions"
Cohesion: 0.10
@ -611,7 +611,7 @@ Nodes (20): compilerOptions, allowImportingTsExtensions, erasableSyntaxOnly, lib
### Community 65 - "BlogsService"
Cohesion: 0.06
Nodes (14): BlogsService, Injectable, RevalidationModule, Global, Module, RevalidationService, Injectable, ApiProperty (+6 more)
Nodes (12): BlogsService, Injectable, RevalidationModule, Global, Module, RevalidationService, Injectable, ApiProperty (+4 more)
### Community 66 - "ApiOperation"
Cohesion: 0.12
@ -797,9 +797,9 @@ Nodes (10): 1. Mark Active Task as Complete, 2. Documentation Updates, 3. Dynami
Cohesion: 0.18
Nodes (10): 1. Pre-Deployment Checklist, 2. Build Verification, 3. Deployment Strategy (Based on Target), 4. Post-Deployment Health Check, 5. Forbidden Actions, Expected JSON Output Schema, Operational Rules & Boundaries, Required Output Artifacts (What files to write/update) (+2 more)
### Community 113 - "Reports.tsx"
Cohesion: 0.20
Nodes (7): BestSellerItem, CategoryDistItem, COLORS, CustomTooltipProps, ReportData, TopCouponItem, Reports
### Community 113 - "RegisterDto"
Cohesion: 0.22
Nodes (8): RegisterDto, ApiProperty, ApiPropertyOptional, IsEmail, IsNotEmpty, IsOptional, IsString, MinLength
### Community 114 - "AppService"
Cohesion: 0.29
@ -858,8 +858,8 @@ Cohesion: 0.20
Nodes (9): Arch Linux, Contributors, Install, Known problems for variable version, License, Sahel-Font, To Do (variable), طریقه استفاده از نسخه متغیر variable (+1 more)
### Community 129 - "auth.service.ts"
Cohesion: 0.06
Nodes (33): AdminLoginInput, LoginInput, RegisterInput, AdminLoginDto, ApiProperty, IsEmail, IsNotEmpty, IsString (+25 more)
Cohesion: 0.08
Nodes (25): AdminLoginInput, LoginInput, RegisterInput, AdminLoginDto, ApiProperty, IsEmail, IsNotEmpty, IsString (+17 more)
### Community 130 - "Sahel-Font"
Cohesion: 0.20
@ -1094,7 +1094,7 @@ Cohesion: 0.11
Nodes (7): AppModule, Module, RedisModule, Global, Module, RedisService, Injectable
### Community 298 - ".initiateOrderPayment"
Cohesion: 0.18
Cohesion: 0.20
Nodes (10): ApiPropertyOptional, IsOptional, IsString, ZibalCallbackQueryDto, ApiBadRequestResponse, ApiOkResponse, Req, Res (+2 more)
### Community 313 - "Modal.tsx"
@ -1115,14 +1115,14 @@ _Questions this graph is uniquely positioned to answer:_
- **Why does `ApiResponse` connect `src/services/api.ts` to `BlogsController`, `AuthController`, `PetsController`, `PaginationDto`, `HomeController`, `UsersController`, `ProductsService`, `OrdersService`?**
_High betweenness centrality (0.085) - this node is a cross-community bridge._
- **Why does `Roles()` connect `Roles` to `BlogsService`, `B2BService`, `SmsService`, `FaqService`, `CmsController`, `tickets.controller.ts`, `WholesaleService`, `SslController`, `BannersService`, `CreateReviewDto`, `TestimonialsService`, `IngredientsService`, `JwtAuthGuard`, `ProductsService`, `PrescriptionsService`, `SmartAdvisorService`, `MenuService`, `ContactService`?**
- **Why does `Roles()` connect `Roles` to `WholesaleService`, `B2BService`, `SmsService`, `FaqService`, `CmsController`, `tickets.controller.ts`, `SslController`, `BannersService`, `CreateReviewDto`, `TestimonialsService`, `IngredientsService`, `JwtAuthGuard`, `ProductsService`, `PrescriptionsService`, `SmartAdvisorService`, `MenuService`, `ContactService`?**
_High betweenness centrality (0.066) - this node is a cross-community bridge._
- **Why does `JwtAuthGuard` connect `JwtAuthGuard` to `auth.service.ts`, `BlogsService`, `CmsController`, `tickets.controller.ts`, `users.controller.ts`, `PaginationDto`, `PetsController`, `DoctorQueryDto`, `admin.service.ts`, `ProductsService`, `CreateVideoDto`, `admin.module.ts`, `OrdersService`?**
- **Why does `JwtAuthGuard` connect `JwtAuthGuard` to `auth.service.ts`, `CmsController`, `tickets.controller.ts`, `users.controller.ts`, `PaginationDto`, `PetsController`, `DoctorQueryDto`, `admin.service.ts`, `ProductsService`, `CreateVideoDto`, `admin.module.ts`, `OrdersService`?**
_High betweenness centrality (0.033) - this node is a cross-community bridge._
- **What connects `$schema`, `collection`, `sourceRoot` to the rest of the system?**
_1338 weakly-connected nodes found - possible documentation gaps or missing edges._
- **Should `app.module.ts` be split into smaller, more focused modules?**
_Cohesion score 0.05706214689265537 - nodes in this community are weakly interconnected._
_Cohesion score 0.05478750640040963 - nodes in this community are weakly interconnected._
- **Should `SmsService` be split into smaller, more focused modules?**
_Cohesion score 0.055040197897340756 - nodes in this community are weakly interconnected._
- **Should `ProductService` be split into smaller, more focused modules?**

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff