109 lines
4.9 KiB
Markdown
109 lines
4.9 KiB
Markdown
# Graph Report - C:\Users\hp\Desktop\projects\restroAI (2026-08-05)
|
|
|
|
## Corpus Check
|
|
- cluster-only mode — file stats not available
|
|
|
|
## Summary
|
|
- 222 nodes · 385 edges · 11 communities (10 shown, 1 thin omitted)
|
|
- Extraction: 100% EXTRACTED · 0% INFERRED · 0% AMBIGUOUS
|
|
- Token cost: 0 input · 0 output
|
|
|
|
## Community Hubs (Navigation)
|
|
- App.tsx
|
|
- react
|
|
- package.json
|
|
- compilerOptions
|
|
- devDependencies
|
|
- compilerOptions
|
|
- VoiceAssistantModal.tsx
|
|
- AdminDesktopShell.tsx
|
|
- index.ts
|
|
- tsconfig.json
|
|
|
|
## God Nodes (most connected - your core abstractions)
|
|
1. `react` - 28 edges
|
|
2. `compilerOptions` - 18 edges
|
|
3. `compilerOptions` - 15 edges
|
|
4. `api` - 13 edges
|
|
5. `MenuItem` - 10 edges
|
|
6. `OrderStatus` - 10 edges
|
|
7. `MENU_ITEMS` - 9 edges
|
|
8. `App()` - 8 edges
|
|
9. `KDSOrder` - 8 edges
|
|
10. `StatusBadge()` - 7 edges
|
|
|
|
## Surprising Connections (you probably didn't know these)
|
|
- `plugins` --extends--> `typescript` [EXTRACTED]
|
|
.oxlintrc.json → package.json
|
|
- `DetectedItem` --references--> `MenuItem` [EXTRACTED]
|
|
src/components/customer/VoiceAssistantModal.tsx → src/data/menuData.ts
|
|
- `CustomizationModalProps` --references--> `MenuItem` [EXTRACTED]
|
|
src/components/customer/CustomizationModal.tsx → src/data/menuData.ts
|
|
- `MenuBrowseViewProps` --references--> `MenuItem` [EXTRACTED]
|
|
src/components/customer/MenuBrowseView.tsx → src/data/menuData.ts
|
|
- `getFrontendMenuItem()` --references--> `MENU_ITEMS` [EXTRACTED]
|
|
src/services/api.ts → src/data/menuData.ts
|
|
|
|
## Import Cycles
|
|
- None detected.
|
|
|
|
## Communities (11 total, 1 thin omitted)
|
|
|
|
### Community 0 - "App.tsx"
|
|
Cohesion: 0.08
|
|
Nodes (30): App(), CustomerView, getTableNumFromUrl(), StaffLoginModal(), StaffLoginModalProps, BillPaymentView(), BillPaymentViewProps, CustomizationModal() (+22 more)
|
|
|
|
### Community 1 - "react"
|
|
Cohesion: 0.16
|
|
Nodes (14): react, NavigationProps, StatusBadge(), CartReviewView(), CartReviewViewProps, CustomizationModalProps, DIETARY_FILTERS, MenuBrowseView() (+6 more)
|
|
|
|
### Community 2 - "package.json"
|
|
Cohesion: 0.08
|
|
Nodes (23): @emotion/react, @emotion/styled, @mui/icons-material, @mui/material, dependencies, @emotion/react, @emotion/styled, @mui/icons-material (+15 more)
|
|
|
|
### Community 3 - "compilerOptions"
|
|
Cohesion: 0.08
|
|
Nodes (23): DOM, src, vite/client, compilerOptions, allowArbitraryExtensions, allowImportingTsExtensions, erasableSyntaxOnly, jsx (+15 more)
|
|
|
|
### Community 4 - "devDependencies"
|
|
Cohesion: 0.09
|
|
Nodes (22): oxlint, plugins, rules, react/only-export-components, react/rules-of-hooks, $schema, devDependencies, oxlint (+14 more)
|
|
|
|
### Community 5 - "compilerOptions"
|
|
Cohesion: 0.10
|
|
Nodes (19): node, vite.config.ts, compilerOptions, allowImportingTsExtensions, erasableSyntaxOnly, lib, module, moduleDetection (+11 more)
|
|
|
|
### Community 6 - "VoiceAssistantModal.tsx"
|
|
Cohesion: 0.16
|
|
Nodes (14): DetectedItem, parseTranscriptToItems(), QUICK_COMMANDS, VoiceAssistantModal(), VoiceAssistantModalProps, ISpeechRecognition, SpeechRecognitionErrorEvent, SpeechRecognitionEvent (+6 more)
|
|
|
|
### Community 7 - "AdminDesktopShell.tsx"
|
|
Cohesion: 0.17
|
|
Nodes (12): AdminDesktopShell(), TabType, BillingManagerView(), FeedbackInboxView(), InventoryView(), ReservationsView(), StaffShiftsView(), SuppliersView() (+4 more)
|
|
|
|
### Community 8 - "index.ts"
|
|
Cohesion: 0.20
|
|
Nodes (14): AdminDesktopShellProps, StatusBadgeProps, KDSKanbanProps, KDSTicketCard(), KDSTicketCardProps, VoiceOrderingView(), VoiceOrderingViewProps, AnalyticsMetric (+6 more)
|
|
|
|
## Knowledge Gaps
|
|
- **85 isolated node(s):** `$schema`, `oxc`, `react/rules-of-hooks`, `warn`, `name` (+80 more)
|
|
These have ≤1 connection - possible missing edges or undocumented components.
|
|
- **1 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 `react` connect `react` to `App.tsx`, `devDependencies`, `VoiceAssistantModal.tsx`, `AdminDesktopShell.tsx`, `index.ts`?**
|
|
_High betweenness centrality (0.333) - this node is a cross-community bridge._
|
|
- **Why does `plugins` connect `devDependencies` to `react`?**
|
|
_High betweenness centrality (0.252) - this node is a cross-community bridge._
|
|
- **Why does `devDependencies` connect `devDependencies` to `package.json`?**
|
|
_High betweenness centrality (0.217) - this node is a cross-community bridge._
|
|
- **What connects `$schema`, `oxc`, `react/rules-of-hooks` to the rest of the system?**
|
|
_85 weakly-connected nodes found - possible documentation gaps or missing edges._
|
|
- **Should `App.tsx` be split into smaller, more focused modules?**
|
|
_Cohesion score 0.08080808080808081 - nodes in this community are weakly interconnected._
|
|
- **Should `package.json` be split into smaller, more focused modules?**
|
|
_Cohesion score 0.08333333333333333 - nodes in this community are weakly interconnected._
|
|
- **Should `compilerOptions` be split into smaller, more focused modules?**
|
|
_Cohesion score 0.08333333333333333 - nodes in this community are weakly interconnected._ |