Files
shanxia2.0/web-admin/graphify-out/GRAPH_REPORT.md
T
2026-05-20 09:28:36 +08:00

293 lines
17 KiB
Markdown

# Graph Report - src (2026-05-20)
## Corpus Check
- Large corpus: 575 files · ~279,298 words. Semantic extraction will be expensive (many Claude tokens). Consider running on a subfolder, or use --no-semantic to run AST-only.
## Summary
- 1447 nodes · 1853 edges · 42 communities detected
- Extraction: 78% EXTRACTED · 22% INFERRED · 0% AMBIGUOUS · INFERRED: 414 edges (avg confidence: 0.8)
- Token cost: 0 input · 0 output
## Community Hubs (Navigation)
- [[_COMMUNITY_Admin API Calls|Admin API Calls]]
- [[_COMMUNITY_Protocol & Sample API|Protocol & Sample API]]
- [[_COMMUNITY_Auth & Menu System|Auth & Menu System]]
- [[_COMMUNITY_Production & Business API|Production & Business API]]
- [[_COMMUNITY_Fireworks Art Effect|Fireworks Art Effect]]
- [[_COMMUNITY_Site & Department API|Site & Department API]]
- [[_COMMUNITY_Settings & WebSocket|Settings & WebSocket]]
- [[_COMMUNITY_Order Business API|Order Business API]]
- [[_COMMUNITY_Locales & Storage|Locales & Storage]]
- [[_COMMUNITY_HTTP Crypto Layer|HTTP Crypto Layer]]
- [[_COMMUNITY_System API|System API]]
- [[_COMMUNITY_Operations Admin API|Operations Admin API]]
- [[_COMMUNITY_Donation Form Logic|Donation Form Logic]]
- [[_COMMUNITY_User Management|User Management]]
- [[_COMMUNITY_Collection Region API|Collection Region API]]
- [[_COMMUNITY_Material Management|Material Management]]
- [[_COMMUNITY_Code Highlight Utils|Code Highlight Utils]]
- [[_COMMUNITY_Workflow API|Workflow API]]
- [[_COMMUNITY_Project Price System|Project Price System]]
- [[_COMMUNITY_Menu Management|Menu Management]]
- [[_COMMUNITY_Module 20|Module 20]]
- [[_COMMUNITY_Module 21|Module 21]]
- [[_COMMUNITY_Module 22|Module 22]]
- [[_COMMUNITY_Module 23|Module 23]]
- [[_COMMUNITY_Module 24|Module 24]]
- [[_COMMUNITY_Module 25|Module 25]]
- [[_COMMUNITY_Module 26|Module 26]]
- [[_COMMUNITY_Module 27|Module 27]]
- [[_COMMUNITY_Module 29|Module 29]]
- [[_COMMUNITY_Module 31|Module 31]]
- [[_COMMUNITY_Module 32|Module 32]]
- [[_COMMUNITY_Module 33|Module 33]]
- [[_COMMUNITY_Module 34|Module 34]]
- [[_COMMUNITY_Module 35|Module 35]]
- [[_COMMUNITY_Module 36|Module 36]]
- [[_COMMUNITY_Module 37|Module 37]]
- [[_COMMUNITY_Module 38|Module 38]]
- [[_COMMUNITY_Module 39|Module 39]]
- [[_COMMUNITY_Module 40|Module 40]]
- [[_COMMUNITY_Module 41|Module 41]]
- [[_COMMUNITY_Module 42|Module 42]]
- [[_COMMUNITY_Module 44|Module 44]]
## God Nodes (most connected - your core abstractions)
1. `get()` - 150 edges
2. `WebSocketClient` - 26 edges
3. `withFullscreenLoading()` - 21 edges
4. `push()` - 19 edges
5. `MenuProcessor` - 16 edges
6. `VersionManager` - 15 edges
7. `handleDynamicRoutes()` - 15 edges
8. `TableCache` - 14 edges
9. `StorageCompatibilityManager` - 12 edges
10. `StorageConfig` - 10 edges
## Surprising Connections (you probably didn't know these)
- `handleBatchDelete()` --calls--> `withFullscreenLoading()` [INFERRED]
views/system/site/index.vue → utils/fullscreen-loading.ts
- `handleDelete()` --calls--> `withFullscreenLoading()` [INFERRED]
views/pilot-service/project-price-system/index.vue → utils/fullscreen-loading.ts
- `handleBatchDelete()` --calls--> `withFullscreenLoading()` [INFERRED]
views/pilot-service/project-price-system/index.vue → utils/fullscreen-loading.ts
- `handleBatchDelete()` --calls--> `withFullscreenLoading()` [INFERRED]
views/basic-info/cell-sample-type/index.vue → utils/fullscreen-loading.ts
- `handleBatchDelete()` --calls--> `withFullscreenLoading()` [INFERRED]
views/basic-info/collection-region/index.vue → utils/fullscreen-loading.ts
## Communities
### Community 0 - "Admin API Calls"
Cohesion: 0.01
Nodes (77): fetchActiveRegions(), fetchCategoryList(), fetchCategoryParameters(), fetchCellProductPriceList(), fetchCellProductSpecList(), fetchCellProductTypeList(), fetchChannelAgreementPrices(), fetchChannelAgreements() (+69 more)
### Community 1 - "Protocol & Sample API"
Cohesion: 0.03
Nodes (56): fetchBatchGenerateProtocolNos(), fetchBatchGenerateSampleCodes(), fetchBatchIssueProtocolNos(), fetchBatchIssueSampleCodes(), fetchCollectionProtocolNoList(), fetchCreateCollectionProtocolNo(), fetchCreateSampleCode(), fetchDeleteCollectionProtocolNo() (+48 more)
### Community 2 - "Auth & Menu System"
Cohesion: 0.04
Nodes (31): fetchGetMenuList(), fetchGetMenuCodes(), fetchGetUserInfo(), fetchLogin(), IframeRouteManager, MenuProcessor, RouteRegistry, useAppMode() (+23 more)
### Community 3 - "Production & Business API"
Cohesion: 0.03
Nodes (37): fetchUploadAttachment(), fetchAllConsumablePacks(), fetchAllConsumables(), fetchAllOutputTypes(), fetchAllProcessCategories(), fetchAllProcesses(), fetchAllReagents(), fetchAllSopDocuments() (+29 more)
### Community 4 - "Fireworks Art Effect"
Cohesion: 0.05
Nodes (24): FireworkSystem, reload(), collectIds(), formatUserLabel(), onPersonSelectChange(), RoutePermissionValidator, formatLeaderUserLabel(), handleMenuJump() (+16 more)
### Community 5 - "Site & Department API"
Cohesion: 0.06
Nodes (36): fetchCreateDept(), fetchCreateSite(), fetchDeleteDept(), fetchDeleteSite(), fetchDictDataOptions(), fetchSiteList(), fetchUpdateDept(), fetchUpdateSite() (+28 more)
### Community 6 - "Settings & WebSocket"
Cohesion: 0.09
Nodes (5): handleReset(), handleSearch(), WebSocketClient, TableCache, emit()
### Community 7 - "Order Business API"
Cohesion: 0.05
Nodes (17): fetchAttachmentDownloadUrl(), fetchOrderAdjusts(), fetchOrderDetail(), fetchOrderItems(), fetchOrderList(), fetchPriceVersionDetail(), fetchSystemConfig(), handleReceptionAttachmentDownload() (+9 more)
### Community 8 - "Locales & Storage"
Cohesion: 0.09
Nodes (8): getDefaultLanguage(), checkStorageCompatibility(), StorageConfig, getSystemStorage(), getSysVersion(), StorageKeyManager, StorageCompatibilityManager, validateStorageData()
### Community 9 - "HTTP Crypto Layer"
Cohesion: 0.09
Nodes (28): toLogin(), base64ToBytes(), bytesToBase64(), decryptJson(), deriveKey(), encryptJson(), fromBase64Url(), hexToBytes() (+20 more)
### Community 10 - "System API"
Cohesion: 0.09
Nodes (9): fetchGetAllUpgradeLogs(), fetchGetChinaMapData(), fetchGetComments(), fetchGetCurrentVersion(), fetchGetLatestUpgradeLog(), fetchGetSystemConfig(), fetchGetUpgradeLogs(), systemUpgrade() (+1 more)
### Community 11 - "Operations Admin API"
Cohesion: 0.1
Nodes (23): fetchAccessLogList(), fetchCleanRoomList(), fetchCreateAccessLog(), fetchCreateCleanRoom(), fetchDeleteAccessLog(), fetchDeleteCleanRoom(), fetchUpdateAccessLog(), fetchUpdateCleanRoom() (+15 more)
### Community 12 - "Donation Form Logic"
Cohesion: 0.1
Nodes (13): fetchEthnicList(), addSample(), applyDonationBundleToForm(), confirmBatchTransportApply(), createEmptyTransport(), ensureDonationProtocolNoInOptions(), ensureEthnicOptionInList(), handleOpenForAdd() (+5 more)
### Community 13 - "User Management"
Cohesion: 0.09
Nodes (21): fetchCreateUser(), fetchDeleteUser(), fetchDeptTree(), fetchPostBoundUserIds(), fetchResetPassword(), fetchUpdateUser(), loadDeptData(), collectAllPostBindDeptIds() (+13 more)
### Community 14 - "Collection Region API"
Cohesion: 0.09
Nodes (18): fetchCollectionRegionList(), fetchCreateCollectionRegion(), fetchCreateHospital(), fetchDeleteCollectionRegion(), fetchDeleteHospital(), fetchHospitalList(), fetchUpdateCollectionRegion(), fetchUpdateHospital() (+10 more)
### Community 15 - "Material Management"
Cohesion: 0.11
Nodes (17): fetchCreateMaterial(), fetchDeleteMaterial(), fetchMaterialList(), fetchMaterialOptions(), fetchMaterialStockLogList(), fetchStockInMaterial(), fetchStockOutMaterial(), fetchUpdateMaterial() (+9 more)
### Community 16 - "Code Highlight Utils"
Cohesion: 0.12
Nodes (15): addCopyButton(), highlightCode(), insertLineNumbers(), isBlockProcessed(), markBlockAsProcessed(), processBlock(), setupHighlightDirective(), setupRippleDirective() (+7 more)
### Community 17 - "Workflow API"
Cohesion: 0.12
Nodes (12): fetchApproveTask(), fetchBusinessAllTasks(), fetchCompletedTasks(), fetchDesignerData(), fetchInstanceDetail(), fetchMyInstances(), fetchPendingTasks(), fetchProcessDefList() (+4 more)
### Community 18 - "Project Price System"
Cohesion: 0.14
Nodes (16): fetchCreateProjectSystem(), fetchCreateProjectSystemItem(), fetchDeleteProjectSystemItem(), fetchProjectSystemItems(), fetchProjectSystemList(), fetchUpdateProjectSystem(), handleAdd(), handleBatchDelete() (+8 more)
### Community 19 - "Menu Management"
Cohesion: 0.15
Nodes (14): fetchCreateMenu(), fetchDeleteMenu(), fetchMenuTree(), fetchUpdateMenu(), applyTreeExpand(), handleAdd(), handleAddChild(), handleDelete() (+6 more)
### Community 20 - "Module 20"
Cohesion: 0.16
Nodes (10): useTable(), useTableImpl(), getColumnChecks(), useTableColumns(), createErrorHandler(), createSmartDebounce(), defaultResponseAdapter(), extractPagination() (+2 more)
### Community 21 - "Module 21"
Cohesion: 0.2
Nodes (2): ComponentLoader, RouteTransformer
### Community 22 - "Module 22"
Cohesion: 0.27
Nodes (14): useChart(), useChartComponent(), useChartOps(), colourBlend(), getCssVar(), getDarkColor(), getLightColor(), handleElementThemeColor() (+6 more)
### Community 23 - "Module 23"
Cohesion: 0.17
Nodes (12): fetchCellSampleTypeList(), fetchCreateCellSampleType(), fetchDeleteCellSampleType(), fetchUpdateCellSampleType(), handleAdd(), handleBatchDelete(), handleDelete(), handleReset() (+4 more)
### Community 24 - "Module 24"
Cohesion: 0.14
Nodes (8): useSettingsHandlers(), useSettingsPanel(), useSettingsState(), useCeremony(), useTheme(), themeAnimation(), toggleTheme(), toggleTransition()
### Community 25 - "Module 25"
Cohesion: 0.18
Nodes (11): fetchCreateCustomer(), fetchCustomerList(), fetchDeleteCustomer(), fetchUpdateCustomer(), handleAdd(), handleDelete(), handleReset(), handleSearch() (+3 more)
### Community 26 - "Module 26"
Cohesion: 0.14
Nodes (2): fetchProductionTaskDetail(), fetchProductionTaskList()
### Community 27 - "Module 27"
Cohesion: 0.22
Nodes (9): auditorDisplay(), dash(), expressName(), formatYm(), formatYmd(), sampleTypeName(), siteName(), unitName() (+1 more)
### Community 29 - "Module 29"
Cohesion: 0.17
Nodes (3): fetchResearchDonationAuditList(), fetchResearchDonationDetail(), fetchResearchDonationList()
### Community 31 - "Module 31"
Cohesion: 0.39
Nodes (6): isIgnorableScriptError(), normalizeErrorMessage(), registerPromiseErrorHandler(), registerResourceErrorHandler(), scriptErrorHandler(), setupErrorHandle()
### Community 32 - "Module 32"
Cohesion: 0.29
Nodes (2): handleTouchEnd(), setTransition()
### Community 33 - "Module 33"
Cohesion: 0.36
Nodes (1): TableHeightCalculator
### Community 34 - "Module 34"
Cohesion: 0.33
Nodes (2): logApiCryptoBootInfo(), maskSecret()
### Community 35 - "Module 35"
Cohesion: 0.29
Nodes (2): fetchLeaveDetail(), fetchLeaveList()
### Community 36 - "Module 36"
Cohesion: 0.47
Nodes (3): isPaymentDueWithinWarnWindow(), parsePaymentDueYmd(), startOfLocalDay()
### Community 37 - "Module 37"
Cohesion: 0.33
Nodes (2): fetchSampleReceptionCheckItemList(), fetchSampleReceptionCheckItemsActive()
### Community 38 - "Module 38"
Cohesion: 0.33
Nodes (2): fetchQcThirdPartyCompanyList(), fetchQcThirdPartyCompanyOptions()
### Community 39 - "Module 39"
Cohesion: 0.33
Nodes (2): fetchQcTaskDetail(), fetchQcTaskList()
### Community 40 - "Module 40"
Cohesion: 0.5
Nodes (2): focusInput(), handleKeydown()
### Community 41 - "Module 41"
Cohesion: 0.67
Nodes (2): if(), logSidebarMenu()
### Community 42 - "Module 42"
Cohesion: 1.0
Nodes (2): getSettingDefaults(), resetToDefaults()
### Community 44 - "Module 44"
Cohesion: 1.0
Nodes (2): defaultAvatarPathByRole(), resolveUserAvatarUrl()
## Knowledge Gaps
- **Thin community `Module 21`** (17 nodes): `ComponentLoader`, `.constructor()`, `.createEmptyComponent()`, `.createErrorComponent()`, `.load()`, `.loadIframe()`, `.loadLayout()`, `.load()`, `RouteTransformer`, `.extractFirstSegment()`, `.handleFirstLevelRoute()`, `.handleIframeRoute()`, `.handleNormalRoute()`, `.isFirstLevelRoute()`, `.transform()`, `ComponentLoader.ts`, `RouteTransformer.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Module 26`** (14 nodes): `fetchAddTaskStep()`, `fetchCreateProductionTask()`, `fetchDeleteTaskStep()`, `fetchProductionTaskDetail()`, `fetchProductionTaskList()`, `fetchReplaceStepConsumables()`, `fetchReplaceStepDataCollection()`, `fetchReplaceStepReagents()`, `fetchSetTaskInputs()`, `fetchSetTaskOutputs()`, `fetchUpdateProductionTask()`, `fetchUpdateProductionTaskStatus()`, `fetchUpdateTaskStep()`, `production-task.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Module 32`** (8 nodes): `cleanupEventListeners()`, `handleTouchEnd()`, `handleTouchMove()`, `handleTouchStart()`, `handleWheelScroll()`, `setTransition()`, `setupEventListeners()`, `index.vue`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Module 33`** (8 nodes): `TableHeightCalculator`, `.calculate()`, `.calculateOffset()`, `.calculatePaginationOffset()`, `.constructor()`, `.getHeaderHeight()`, `useTableHeight()`, `useTableHeight.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Module 34`** (7 nodes): `App.vue`, `main.ts`, `refreshButtonAutoIcons()`, `refreshPanelTitleIcons()`, `logApiCryptoBootInfo()`, `maskSecret()`, `console.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Module 35`** (7 nodes): `fetchCreateLeave()`, `fetchDeleteLeave()`, `fetchLeaveDetail()`, `fetchLeaveList()`, `fetchSubmitLeave()`, `fetchUpdateLeave()`, `leave.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Module 37`** (6 nodes): `fetchCreateSampleReceptionCheckItem()`, `fetchDeleteSampleReceptionCheckItem()`, `fetchSampleReceptionCheckItemList()`, `fetchSampleReceptionCheckItemsActive()`, `fetchUpdateSampleReceptionCheckItem()`, `sample-reception-check-item.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Module 38`** (6 nodes): `fetchCreateQcThirdPartyCompany()`, `fetchDeleteQcThirdPartyCompany()`, `fetchQcThirdPartyCompanyList()`, `fetchQcThirdPartyCompanyOptions()`, `fetchUpdateQcThirdPartyCompany()`, `qc-third-party-company.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Module 39`** (6 nodes): `fetchCompleteQcTask()`, `fetchQcTaskDetail()`, `fetchQcTaskList()`, `fetchStartQcTask()`, `fetchUpdateQcTaskAttachments()`, `qc-task.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Module 40`** (5 nodes): `focusInput()`, `handleKeydown()`, `if()`, `search()`, `index.vue`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Module 41`** (4 nodes): `if()`, `logSidebarMenu()`, `index.vue`, `SidebarSubmenu.vue`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Module 42`** (3 nodes): `getSettingDefaults()`, `resetToDefaults()`, `setting.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Module 44`** (3 nodes): `defaultAvatarPathByRole()`, `resolveUserAvatarUrl()`, `user-avatar.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
## Suggested Questions
_Questions this graph is uniquely positioned to answer:_
- **Why does `get()` connect `Admin API Calls` to `Protocol & Sample API`, `Auth & Menu System`, `Production & Business API`, `Fireworks Art Effect`, `Site & Department API`, `Order Business API`, `System API`, `Operations Admin API`, `Donation Form Logic`, `User Management`, `Collection Region API`, `Material Management`, `Workflow API`, `Project Price System`, `Menu Management`, `Module 23`, `Module 25`, `Module 26`, `Module 29`, `Module 35`, `Module 37`, `Module 38`, `Module 39`?**
_High betweenness centrality (0.238) - this node is a cross-community bridge._
- **Why does `push()` connect `Fireworks Art Effect` to `Admin API Calls`, `Production & Business API`, `Settings & WebSocket`, `Order Business API`, `System API`, `Donation Form Logic`, `User Management`?**
_High betweenness centrality (0.070) - this node is a cross-community bridge._
- **Why does `handleDynamicRoutes()` connect `Auth & Menu System` to `Fireworks Art Effect`?**
_High betweenness centrality (0.054) - this node is a cross-community bridge._
- **Are the 149 inferred relationships involving `get()` (e.g. with `buildTreePathLabelFromFlat()` and `alignFqPaymentDetailsForDisplay()`) actually correct?**
_`get()` has 149 INFERRED edges - model-reasoned connections that need verification._
- **Are the 20 inferred relationships involving `withFullscreenLoading()` (e.g. with `.close()` and `handleSubmit()`) actually correct?**
_`withFullscreenLoading()` has 20 INFERRED edges - model-reasoned connections that need verification._
- **Are the 18 inferred relationships involving `push()` (e.g. with `fetchAllPagedRecords()` and `calcInstallmentDueAmounts()`) actually correct?**
_`push()` has 18 INFERRED edges - model-reasoned connections that need verification._
- **Should `Admin API Calls` be split into smaller, more focused modules?**
_Cohesion score 0.01 - nodes in this community are weakly interconnected._