1
0
forked from maik/IPFS-portal

fix: bw/stats 404, gateway links, history crash

- swr.ts: remove useBandwidth(), drop bw from useDashboard()
- events/route.ts: skip bandwidth SSE (Kubo 0.28.0 unsupported)
- usage/page.tsx: remove getBWStats call + bw references
- helpers.ts: gatewayLink -> ipfs.maos.dedyn.io (subdomain only)
- upload/page.tsx: fix local gatewayLink (subdomain only)
- storage.ts: update default gatewayUrl, add defensive getHistory()
This commit is contained in:
maikrolf
2026-07-05 16:57:29 +02:00
parent c9432a16ba
commit 99c113b6f5
42 changed files with 10081 additions and 263 deletions
+111
View File
@@ -0,0 +1,111 @@
# Graph Report - . (2026-06-27)
## Corpus Check
- Corpus is ~21,600 words - fits in a single context window. You may not need a graph.
## Summary
- 251 nodes · 401 edges · 17 communities (12 shown, 5 thin omitted)
- Extraction: 100% EXTRACTED · 0% INFERRED · 0% AMBIGUOUS · INFERRED: 2 edges (avg confidence: 0.8)
- Token cost: 0 input · 0 output
## Community Hubs (Navigation)
- [[_COMMUNITY_Portal Layout & Navigation|Portal Layout & Navigation]]
- [[_COMMUNITY_Landing & Payment UI|Landing & Payment UI]]
- [[_COMMUNITY_Payment Smart Contract|Payment Smart Contract]]
- [[_COMMUNITY_IPFS Gateway & History|IPFS Gateway & History]]
- [[_COMMUNITY_Explorer Components|Explorer Components]]
- [[_COMMUNITY_NPM Dependencies|NPM Dependencies]]
- [[_COMMUNITY_TypeScript Config|TypeScript Config]]
- [[_COMMUNITY_API Routes & Proxy|API Routes & Proxy]]
- [[_COMMUNITY_File Preview|File Preview]]
- [[_COMMUNITY_Static Server|Static Server]]
- [[_COMMUNITY_Root Layout|Root Layout]]
- [[_COMMUNITY_Sidebar Navigation|Sidebar Navigation]]
- [[_COMMUNITY_Deploy Script|Deploy Script]]
- [[_COMMUNITY_Next.js Config|Next.js Config]]
## God Nodes (most connected - your core abstractions)
1. `PaymentService` - 31 edges
2. `compilerOptions` - 16 edges
3. `WalletProvider` - 15 edges
4. `apiFetch()` - 12 edges
5. `getInjectedProvider()` - 7 edges
6. `GET()` - 6 edges
7. `formatWeiToETH()` - 6 edges
8. `proxyIPFS()` - 5 edges
9. `POST()` - 5 edges
10. `DELETE()` - 5 edges
## Surprising Connections (you probably didn't know these)
- `AdminPaymentPage()` --calls--> `formatWeiToETH()` [EXTRACTED]
src/app/admin/payment/page.tsx → src/lib/wallet.ts
- `UploadPage()` --calls--> `GatewayLink()` [INFERRED]
src/app/upload/page.tsx → src/app/explorer/components/GatewayLink.tsx
- `PaymentPanel()` --calls--> `formatWeiToETH()` [EXTRACTED]
src/components/PaymentPanel.tsx → src/lib/wallet.ts
- `DirectoryListingProps` --references--> `IPFSEntry` [EXTRACTED]
src/app/explorer/components/DirectoryListing.tsx → src/lib/api.ts
## Import Cycles
- None detected.
## Communities (17 total, 5 thin omitted)
### Community 0 - "Portal Layout & Navigation"
Cohesion: 0.08
Nodes (28): PinBadgeProps, PeerData, PinData, Status, addPin(), apiFetch(), BWStats, checkHealth() (+20 more)
### Community 1 - "Landing & Payment UI"
Cohesion: 0.08
Nodes (30): PaymentPanel(), PaymentPanelProps, TOKEN_ICONS, listUsers(), ERC20_ABI, IPFS_PORTAL_PAYMENT_ABI, MAOSDiscountTier, PriceInfo (+22 more)
### Community 3 - "IPFS Gateway & History"
Cohesion: 0.11
Nodes (21): GatewayLink(), GatewayLinkProps, formatBytes(), HistoryPage(), uploadFile(), addToHistory(), clearHistory(), DEFAULT_SETTINGS (+13 more)
### Community 4 - "Explorer Components"
Cohesion: 0.09
Nodes (13): BreadcrumbSegment, BreadcrumbsProps, CIDInputProps, DirectoryListingProps, FileIconProps, BreadcrumbSegment, ExplorerPage(), ExplorerState (+5 more)
### Community 5 - "NPM Dependencies"
Cohesion: 0.08
Nodes (24): dependencies, clsx, lucide-react, next, postcss, react, react-dom, @tailwindcss/postcss (+16 more)
### Community 6 - "TypeScript Config"
Cohesion: 0.10
Nodes (19): compilerOptions, allowJs, esModuleInterop, incremental, isolatedModules, jsx, lib, module (+11 more)
### Community 7 - "API Routes & Proxy"
Cohesion: 0.44
Nodes (10): DELETE(), GET(), handleHealth(), mapToKuboAPI(), matchRoute(), POST(), proxyIPFS(), proxyResult() (+2 more)
### Community 8 - "File Preview"
Cohesion: 0.38
Nodes (4): detectFileType(), FilePreview(), FilePreviewProps, renderMarkdown()
### Community 9 - "Static Server"
Cohesion: 0.33
Nodes (5): fs, http, MIME, path, ROOT
## Knowledge Gaps
- **79 isolated node(s):** `deploy.sh script`, `nextConfig`, `name`, `version`, `private` (+74 more)
These have ≤1 connection - possible missing edges or undocumented components.
- **5 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 `PaymentService` connect `Payment Smart Contract` to `Landing & Payment UI`?**
_High betweenness centrality (0.153) - this node is a cross-community bridge._
- **Why does `http` connect `Static Server` to `Payment Smart Contract`?**
_High betweenness centrality (0.029) - this node is a cross-community bridge._
- **Why does `WalletProvider` connect `Payment Smart Contract` to `Landing & Payment UI`?**
_High betweenness centrality (0.017) - this node is a cross-community bridge._
- **What connects `deploy.sh script`, `nextConfig`, `name` to the rest of the system?**
_79 weakly-connected nodes found - possible documentation gaps or missing edges._
- **Should `Portal Layout & Navigation` be split into smaller, more focused modules?**
_Cohesion score 0.08194905869324474 - nodes in this community are weakly interconnected._
- **Should `Landing & Payment UI` be split into smaller, more focused modules?**
_Cohesion score 0.08305647840531562 - nodes in this community are weakly interconnected._
- **Should `IPFS Gateway & History` be split into smaller, more focused modules?**
_Cohesion score 0.1111111111111111 - nodes in this community are weakly interconnected._