How madiha-maha/omniscience works
Omniscience Enterprise is a social-media intelligence and campaign-planning dashboard. Users enter the dashboard, choose a platform, review analytics and audience/market signals, generate AI-assisted content, and model campaign strategy; they can also save posts and manage a profile. The app is largely a client-side interface with some Firestore persistence and Gemini-backed features. Several major views are present in the source index but their internal data flows were not sampled, so those connections are shown only where the app’s routing or explicit calls provide evidence.
Main entry points: App.tsx Dashboard Shell · firebase.ts Firebase Client · ProfileView.tsx Agency Profile · ai.ts AI Services
Components 20
Application Shell
- Dashboard Shell
src/App.tsx
Intelligence Views
- Social Dashboard
src/components/DashboardView.tsx - Audience Analysis
src/components/AudienceView.tsx - Sentiment Analysis
src/components/SentimentView.tsx - Forecasting
src/components/ForecastingView.tsx - Competitor Analysis
src/components/CompetitorAnalysisView.tsx - Trend Mapping
src/components/TrendMapView.tsx - Executive Reports
src/components/ExecutiveReportModal.tsx
Content and Strategy
- Post Generator
src/components/PostGenerator.tsx - Strategy Simulator
src/components/StrategySimulatorView.tsx - Saved Intelligence
src/components/SavedIntelView.tsx
Identity and Persistence
- Agency Profile
src/components/ProfileView.tsx - Authentication Page
src/components/AuthPage.tsx - Auth Context
src/lib/AuthContext.tsx
AI and Data Services
- Firestore
- Firebase Client
src/lib/firebase.ts - AI Services
src/services/ai.ts - Firestore Error Handler
src/lib/firestoreUtils.ts
Other components
- Executive User
- Google Gemini
Connections 25
- Executive User → Dashboard Shell: uses
src/App.tsx - Dashboard Shell → Auth Context: reads session
src/App.tsx - Dashboard Shell → Social Dashboard: routes to
src/App.tsx - Dashboard Shell → Audience Analysis: routes to
src/App.tsx - Dashboard Shell → Sentiment Analysis: routes to
src/App.tsx - Dashboard Shell → Forecasting: routes to
src/App.tsx - Dashboard Shell → Competitor Analysis: routes to
src/App.tsx - Dashboard Shell → Trend Mapping: routes to
src/App.tsx - Dashboard Shell → Strategy Simulator: routes to
src/App.tsx - Dashboard Shell → Saved Intelligence: routes to
src/App.tsx - Social Dashboard → Post Generator: renders
src/components/DashboardView.tsx - Social Dashboard → AI Services: requests insights
src/components/DashboardView.tsx - Strategy Simulator → AI Services: requests insights
src/components/StrategySimulatorView.tsx - Post Generator → AI Services: generates content
src/components/PostGenerator.tsx - AI Services → Google Gemini: calls model
src/services/ai.ts - Post Generator → Firebase Client: saves posts
src/components/PostGenerator.tsx - Firebase Client → Firestore: connects
src/lib/firebase.ts - Agency Profile → Auth Context: reads user
src/components/ProfileView.tsx - Agency Profile → Firebase Client: writes profile
src/components/ProfileView.tsx - Saved Intelligence → Firebase Client: uses persistence
src/components/SavedIntelView.tsx - Agency Profile → Firestore Error Handler: reports errors
src/components/ProfileView.tsx - Firestore Error Handler → Firebase Client: reads auth
src/lib/firestoreUtils.ts - Dashboard Shell → Executive Reports: opens report
src/App.tsx - Dashboard Shell → Agency Profile: routes to
src/App.tsx - Dashboard Shell → Authentication Page: routes to