How aadityaparse/swiss-strategy-hub works
Hindsight Strategy Co-Pilot is a strategic decision-support workspace: executives review organizational and competitor context, inspect deterministic financials, simulate strategy levers, receive memory-grounded explanations, and make decisions whose outcomes are retained. The graph preserves the README’s documented stages and major dashboard capabilities. Backend implementation files were not excerpted, so their documented relationships cite the README; unverified implementation details are omitted.
Main entry points: Dashboard.tsx Workspace dashboard · actions.ts Workflow actions · api.ts Queries and mutations · ExecutiveAI.tsx Executive AI
Components 25
Executive workspace
- Product entry
src/pages/Landing.tsx - Workspace dashboard
src/pages/Dashboard.tsx - Financial journey
src/components/copilot/FinancialJourney.tsx - Strategic radar
src/components/copilot/StrategicRadar.tsx - Strategy canvas
src/components/copilot/StrategyCanvas.tsx - Competitor monitor
src/components/copilot/CompetitorMonitor.tsx - Decision memory
src/components/copilot/DecisionMemory.tsx - Memory inspector
src/components/copilot/MemoryInspector.tsx - Executive AI
src/components/copilot/ExecutiveAI.tsx - Evidence labels
src/components/copilot/evidence.tsx
Decision orchestration
- Queries and mutations
src/convex/api.ts - Workflow actions
src/convex/actions.ts - Memory-grounded agent
src/convex/agent.ts - Financial analysis
src/convex/financials.ts - What-if engine
src/convex/simulation.ts - Competitor intelligence
src/convex/hypotheses.ts - Demo organization data
src/convex/mockdata.ts
Persistent memory
- Hindsight client
src/convex/hindsight_client.ts - Memory operations
src/convex/memory.ts - Hindsight server
Identity and access
- Sign-in flow
src/pages/Auth.tsx - Auth state hook
src/hooks/use-auth.ts - Convex authentication
src/convex/auth.ts
Other components
- Executive
- User
Connections 33
- Executive → Product entry: opens
- Product entry → Sign-in flow: signs in
src/pages/Landing.tsx - User → Sign-in flow: submits OTP
src/pages/Auth.tsx - Sign-in flow → Auth state hook: requests sign-in
src/pages/Auth.tsx - Auth state hook → Convex authentication: uses auth actions
- Sign-in flow → Workspace dashboard: redirects after sign-in
src/main.tsx - Workspace dashboard → Financial journey: renders
src/pages/Dashboard.tsx - Workspace dashboard → Strategic radar: renders
src/pages/Dashboard.tsx - Workspace dashboard → Strategy canvas: renders
src/pages/Dashboard.tsx - Workspace dashboard → Competitor monitor: renders
src/pages/Dashboard.tsx - Workspace dashboard → Decision memory: renders
src/pages/Dashboard.tsx - Workspace dashboard → Memory inspector: renders
src/pages/Dashboard.tsx - Workspace dashboard → Executive AI: renders
src/pages/Dashboard.tsx - Executive AI → Evidence labels: renders evidence labels
src/components/copilot/ExecutiveAI.tsx - Workspace dashboard → Workflow actions: ingests demo data
src/pages/Dashboard.tsx - Workspace dashboard → Memory operations: reads and sets seed state
src/pages/Dashboard.tsx - Executive AI → Queries and mutations: queries chat
src/components/copilot/ExecutiveAI.tsx - Executive AI → Workflow actions: asks and builds briefs
src/components/copilot/ExecutiveAI.tsx - Financial journey → Queries and mutations: loads financial view
- Strategy canvas → Queries and mutations: requests simulations
- Queries and mutations → Financial analysis: serves financials
- Queries and mutations → Competitor intelligence: serves competitor data
- Workflow actions → Memory-grounded agent: delegates questions and briefs
- Workflow actions → Financial analysis: computes KPIs
- Workflow actions → What-if engine: runs scenarios
- Workflow actions → Hindsight client: ingests and queries memory
- Memory-grounded agent → Hindsight client: recalls and reflects
- Memory-grounded agent → What-if engine: simulates when requested
- Hindsight client → Hindsight server: retains, recalls, reflects
- Hindsight client → Demo organization data: uses fallback data
src/convex/hindsight_client.ts - Workflow actions → Demo organization data: seeds demo records
- User → Workspace dashboard: reviews and decides
- Memory-grounded agent → Workflow actions: returns grounded answer