How jawadabuhalaweh/saas-dashboard works
Zenith Business Command Center is a multi-company finance and operations command center. The main workflow is executive or operational staff selecting a company/branch scope, navigating a dashboard or domain view, drilling into financial or transactional detail, and recording vouchers that update the ledger. Supporting branches include governance and reconciliation, collaboration, and grounded AI analysis. The source index and excerpts establish the UI routing and several service calls; other README-described capabilities are included, but unsampled implementation links are omitted or marked unverified.
Main entry points: App.tsx App router · database.ts In-memory repository · AIAnalystView.tsx AI analyst · postingEngine.ts Posting engine
Components 28
Application shell
- App router
src/App.tsx
Business operations
- Companies
src/components/companies/CompaniesView.tsx - Branches
src/components/branches/BranchesView.tsx - Sales and customers
src/components/operations/SalesView.tsx - Purchases and suppliers
src/components/operations/PurchasesView.tsx - Inventory
src/components/operations/InventoryView.tsx - Expenses
src/components/operations/ExpensesView.tsx
Finance and governance
- Financial reports
src/components/finance/FinancialReportsView.tsx - General ledger
src/components/finance/GeneralLedgerView.tsx - Cash and banking
src/components/finance/CashBankingView.tsx - Journal voucher
src/components/modals/NewJournalVoucherModal.tsx - Reconciliation
src/components/governance/ReconciliationCenter.tsx - Audit center
src/components/governance/AuditCenter.tsx - Approvals
src/components/governance/ApprovalsView.tsx
Intelligence and collaboration
- Executive dashboard
src/components/dashboard/ExecutiveDashboard.tsx - AI analyst
src/components/intelligence/AIAnalystView.tsx - Tasks
src/components/collaboration/TasksView.tsx - Messages
src/components/collaboration/MessagesView.tsx
Shared runtime
- Scope and drill-down
src/context/ScopeContext.tsx - Role access
src/context/AuthContext.tsx - Arabic/English
src/context/I18nContext.tsx - Posting engine
src/services/postingEngine.ts - Reporting service
src/services/reportingService.ts - Invariant auditor
src/services/reconciliationService.ts - Permission evaluator
src/services/permissionService.ts - In-memory repository
src/services/database.ts
Other components
- Business user
- Gemini SDK
Connections 41
- Business user → App router: uses
README.md - App router → Scope and drill-down: provides scope
src/App.tsx - App router → Role access: provides identity
src/App.tsx - App router → Arabic/English: provides language
src/App.tsx - App router → Executive dashboard: routes to
src/App.tsx - App router → Companies: routes to
src/App.tsx - App router → Branches: routes to
src/App.tsx - App router → Sales and customers: routes to
src/App.tsx - App router → Purchases and suppliers: routes to
src/App.tsx - App router → Inventory: routes to
src/App.tsx - App router → Expenses: routes to
src/App.tsx - App router → Financial reports: routes to
src/App.tsx - App router → General ledger: routes to
src/App.tsx - App router → Cash and banking: routes to
src/App.tsx - App router → Reconciliation: routes to
src/App.tsx - App router → Audit center: routes to
src/App.tsx - App router → Approvals: routes to
src/App.tsx - App router → AI analyst: routes to
src/App.tsx - App router → Tasks: routes to
src/App.tsx - App router → Messages: routes to
src/App.tsx - Companies → In-memory repository: reads
src/components/companies/CompaniesView.tsx - Branches → In-memory repository: reads
src/components/branches/BranchesView.tsx - Sales and customers → In-memory repository: reads
src/components/operations/SalesView.tsx - Sales and customers → Journal voucher: opens
src/App.tsx - Expenses → Posting engine: posts expense
- Journal voucher → Posting engine: posts voucher
src/services/postingEngine.ts - Posting engine → In-memory repository: saves journal
src/services/postingEngine.ts - General ledger → Posting engine: uses
src/components/finance/GeneralLedgerView.tsx - General ledger → In-memory repository: reads
src/components/finance/GeneralLedgerView.tsx - Executive dashboard → Reporting service: requests KPIs
src/components/dashboard/ExecutiveDashboard.tsx - Financial reports → Reporting service: requests reports
src/components/finance/FinancialReportsView.tsx - Reporting service → In-memory repository: reads
src/services/reportingService.ts - Reconciliation → Invariant auditor: runs checks
src/components/governance/ReconciliationCenter.tsx - Invariant auditor → In-memory repository: reads
src/services/reconciliationService.ts - Role access → Permission evaluator: checks access
src/context/AuthContext.tsx - Role access → In-memory repository: loads users
src/context/AuthContext.tsx - AI analyst → In-memory repository: reads business data
src/components/intelligence/AIAnalystView.tsx - AI analyst → Reporting service: requests metrics
src/components/intelligence/AIAnalystView.tsx - Tasks → In-memory repository: reads and updates
src/components/collaboration/TasksView.tsx - Messages → In-memory repository: uses messages
src/components/collaboration/MessagesView.tsx - AI analyst → Gemini SDK: queries model
README.md