How harshavardhan1234-cmd/centralized-hub- works
Org Knowledge Hub is a demo enterprise knowledge-sharing application: employees search and read technical solutions, submit knowledge, and connect with experts; administrators govern solutions, users, taxonomy, and policy. The sampled code supports the search-to-ranking flow, client state providers, connection handling, and Gemini-backed API operations. Upload, analytics, and several administration screens are clear product areas from the tree, but their internal wiring was not sampled, so their connections are kept at the app-entry level where supported.
Main entry points: App.tsx App Routing · SearchPage.tsx Solution Search · KnowledgeContext.tsx Knowledge State · ConnectionContext.tsx Connection State
Components 26
Application
- App Routing
src/App.tsx - Authentication State
src/context/AuthContext.tsx - Knowledge State
src/context/KnowledgeContext.tsx
Knowledge Discovery
- Solution Search
src/pages/SearchPage.tsx - Search Input
src/components/search/SearchBar.tsx - Search Filters
src/components/search/SearchFilters.tsx - Solution Results
src/components/search/SolutionCard.tsx - Solution Details
src/pages/SolutionDetailPage.tsx - Document Viewer
src/components/solution/DocumentViewer.tsx - Solution Submission
src/pages/UploadSolutionPage.tsx - Solution Catalog
src/data/solutions.ts - Categories And Projects
src/data/categories.ts
People And Connections
- Connection State
src/context/ConnectionContext.tsx - Expert Directory
src/pages/ExpertsPage.tsx - Connection Screens
src/pages/MyConnectionsPage.tsx - Notifications
src/pages/NotificationsPage.tsx
Administration And Governance
- Admin Screens
src/pages/admin/AdminOverviewPage.tsx - Solution Governance
src/pages/admin/AdminSolutionsPage.tsx - Identity Management
src/pages/admin/AdminIAMPage.tsx - Taxonomy Management
src/pages/admin/AdminTaxonomyPage.tsx - Audit And Policy
src/pages/admin/AdminAuditPage.tsx - Usage Analytics
src/pages/AnalyticsPage.tsx
AI Services
- AI Request Client
src/services/geminiService.ts - API Server
server.ts
Other components
- Employee
- Google Gemini
Connections 28
- Employee → App Routing: uses
- App Routing → Authentication State: provides auth
- App Routing → Knowledge State: provides knowledge
- App Routing → Connection State: provides connections
- App Routing → Solution Search: routes to
- App Routing → Solution Submission: routes to
- App Routing → Solution Details: routes to
- App Routing → Expert Directory: routes to
- App Routing → Connection Screens: routes to
- App Routing → Notifications: routes to
- App Routing → Admin Screens: routes to
- App Routing → Solution Governance: routes to
- App Routing → Identity Management: routes to
- App Routing → Taxonomy Management: routes to
- App Routing → Audit And Policy: routes to
- App Routing → Usage Analytics: routes to
- Solution Search → Search Input: renders
- Solution Search → Search Filters: renders
- Solution Search → Solution Results: renders
- Solution Search → Knowledge State: reads solutions
- Solution Search → AI Request Client: requests ranking
- Search Filters → Knowledge State: reads taxonomy
- Solution Details → Document Viewer: renders document
- Knowledge State → Solution Catalog: initializes from
- Connection State → Authentication State: reads user
- Connection State → Solution Catalog: looks up solutions
- AI Request Client → API Server: posts requests
- API Server → Google Gemini: generates AI results