How hilalaktar/dmaast-smap-ui works
SMAP is a role-aware operations dashboard for cognitive digital twins and decision support. The main workflow is navigating to an overview or domain page, reviewing KPI/alert and twin data, then using simulation or optimization tools where authorized. The graph also includes alerting, sustainability, and reference/help capabilities, plus layout customization and shared application context. The README is empty; relationships are based on the source index and excerpts, so unsampled behavior and external integrations are not inferred.
Main entry points: App.tsx Router and Providers · Dashboard.tsx Dashboard · mockData.ts Sample Operations Data · ManufacturingDT.tsx Manufacturing Twin
Components 31
Application Shell
- Router and Providers
src/App.tsx - Page Layout
src/components/layout/Layout.tsx
Operations Overview
- Dashboard
src/pages/Dashboard.tsx - Alert Center
src/pages/AlertCenter.tsx - Sample Operations Data
src/data/mockData.ts
Digital Twins
- Value Chain Twin
src/pages/digital-twin/ValueChainDT.tsx - Manufacturing Twin
src/pages/digital-twin/ManufacturingDT.tsx - Logistics Twin
src/pages/digital-twin/LogisticsDT.tsx - Product Twin
src/pages/digital-twin/ProductDT.tsx - Sustainability Assessment
src/pages/digital-twin/SustainabilityDT.tsx
Decision Support
- Value Chain Simulation
src/pages/decision-support/ValueChainSim.tsx - Manufacturing Simulation
src/pages/decision-support/ManufacturingSim.tsx - Multi-objective Optimization
src/pages/decision-support/MODSS.tsx - Scheduling Assessment
src/pages/decision-support/SchedulingAssessment.tsx
Shared Services
- Help Center
src/pages/HelpCenter.tsx - Terminology Dictionary
src/pages/TerminologyDictionary.tsx - Role Permissions
src/contexts/RoleContext.tsx - Localization
src/contexts/LanguageContext.tsx - Toast Notifications
src/contexts/ToastContext.tsx - Accessibility Settings
src/contexts/AccessibilityContext.tsx - Page Layout Definitions
src/data/pageLayouts.ts - Layout State Hook
src/hooks/usePageLayout.ts - Page Customizer
src/components/shared/PageCustomizer.tsx - Page Toolbar
src/components/shared/PageToolbar.tsx - Filters and Refresh
src/components/shared/FilterBar.tsx - KPI Cards
src/components/shared/KpiCard.tsx - Scenario Panel
src/components/shared/ScenarioPanel.tsx - Guided Wizard
src/components/shared/Wizard.tsx - Human Validation
src/components/shared/HITLValidation.tsx - Report Export
src/components/shared/ExportPanel.tsx
Other components
- User
Connections 48
- User → Router and Providers: navigates
src/App.tsx - Router and Providers → Page Layout: routes through
src/App.tsx - Router and Providers → Dashboard: routes to
src/App.tsx - Router and Providers → Value Chain Twin: routes to
src/App.tsx - Router and Providers → Manufacturing Twin: routes to
src/App.tsx - Router and Providers → Logistics Twin: routes to
src/App.tsx - Router and Providers → Product Twin: routes to
src/App.tsx - Router and Providers → Sustainability Assessment: protects route
src/App.tsx - Router and Providers → Value Chain Simulation: protects route
src/App.tsx - Router and Providers → Manufacturing Simulation: protects route
src/App.tsx - Router and Providers → Multi-objective Optimization: protects route
src/App.tsx - Router and Providers → Scheduling Assessment: protects route
src/App.tsx - Router and Providers → Alert Center: routes to
src/App.tsx - Router and Providers → Help Center: routes to
src/App.tsx - Router and Providers → Terminology Dictionary: routes to
src/App.tsx - Router and Providers → Role Permissions: provides context
src/App.tsx - Router and Providers → Localization: provides context
src/App.tsx - Router and Providers → Toast Notifications: provides context
src/App.tsx - Router and Providers → Accessibility Settings: provides context
src/App.tsx - Page Layout → Dashboard: hosts routes
src/App.tsx - Dashboard → Sample Operations Data: reads
src/pages/Dashboard.tsx - Alert Center → Sample Operations Data: reads
src/pages/AlertCenter.tsx - Dashboard → Filters and Refresh: renders
src/pages/Dashboard.tsx - Dashboard → KPI Cards: renders
src/pages/Dashboard.tsx - Dashboard → Human Validation: renders
src/pages/Dashboard.tsx - Dashboard → Layout State Hook: uses
src/pages/Dashboard.tsx - Layout State Hook → Page Layout Definitions: loads and saves
src/hooks/usePageLayout.ts - Layout State Hook → Role Permissions: reads role
src/hooks/usePageLayout.ts - Dashboard → Page Toolbar: renders
src/pages/Dashboard.tsx - Page Toolbar → Page Customizer: renders button
src/components/shared/PageToolbar.tsx - Manufacturing Twin → Filters and Refresh: renders
src/pages/digital-twin/ManufacturingDT.tsx - Manufacturing Twin → KPI Cards: renders
src/pages/digital-twin/ManufacturingDT.tsx - Manufacturing Twin → Report Export: renders
src/pages/digital-twin/ManufacturingDT.tsx - Manufacturing Twin → Sample Operations Data: reads
src/pages/digital-twin/ManufacturingDT.tsx - Logistics Twin → Filters and Refresh: renders
src/pages/digital-twin/LogisticsDT.tsx - Logistics Twin → KPI Cards: renders
src/pages/digital-twin/LogisticsDT.tsx - Product Twin → Filters and Refresh: renders
src/pages/digital-twin/ProductDT.tsx - Product Twin → KPI Cards: renders
src/pages/digital-twin/ProductDT.tsx - Sustainability Assessment → Filters and Refresh: renders
src/pages/digital-twin/SustainabilityDT.tsx - Sustainability Assessment → KPI Cards: renders
src/pages/digital-twin/SustainabilityDT.tsx - Sustainability Assessment → Sample Operations Data: reads
src/pages/digital-twin/SustainabilityDT.tsx - Value Chain Simulation → Scenario Panel: renders
src/pages/decision-support/ValueChainSim.tsx - Value Chain Simulation → Guided Wizard: renders
src/pages/decision-support/ValueChainSim.tsx - Value Chain Simulation → Sample Operations Data: reads
src/pages/decision-support/ValueChainSim.tsx - Manufacturing Simulation → Scenario Panel: renders
src/pages/decision-support/ManufacturingSim.tsx - Manufacturing Simulation → Guided Wizard: renders
src/pages/decision-support/ManufacturingSim.tsx - Multi-objective Optimization → Guided Wizard: renders
src/pages/decision-support/MODSS.tsx - Multi-objective Optimization → Sample Operations Data: reads
src/pages/decision-support/MODSS.tsx