How shygul22/leager works
ZENJOURNEY is a browser-based ERP and accounting application. Its main user journey is to sign in, pass account/license and role checks, then use business modules to manage records and review financial results. The README describes accounting, tax, sales, suppliers, people, documents, and support capabilities; the source index identifies their principal page files. Supabase is the documented backend. Some domain-page internals and links were not sampled, so those connections are shown as unverified rather than inferred as specific calls.
Main entry points: client.ts Supabase client · App.tsx Route and access control · FinancialStatements.tsx Accounting and statements · Clients.tsx Client records
Components 24
Access and navigation
- Route and access control
src/App.tsx - Authentication and account
src/contexts/AuthContext.tsx - Application layout
src/components/AppLayout.tsx
Finance and tax
- Financial dashboards
src/pages/Dashboard.tsx - Transactions ledger
src/pages/Transactions.tsx - Accounting and statements
src/pages/accounting/FinancialStatements.tsx - Tax and compliance
src/pages/TaxReports.tsx - Tax calculators and ledger
src/components/tax/IncomeTaxCalculator.tsx
Business operations
- Invoices and bills
src/pages/Invoices.tsx - Client records
src/pages/Clients.tsx - Client portal
src/pages/ClientPortal.tsx - Lead tracking
src/pages/LeadTracking.tsx - Suppliers and payouts
src/pages/Suppliers.tsx - Shareholders and dividends
src/pages/Shareholders.tsx - Employees and payroll
src/pages/Employees.tsx - Projects and timesheets
src/pages/Projects.tsx - Document library
src/pages/Documents.tsx - Support and bug tracking
src/pages/Tickets.tsx
Shared services
- Supabase client
src/integrations/supabase/client.ts - Supabase PostgreSQL
- Accounting calculations
src/lib/accountingEngine.ts - UI primitives
src/components/ui - Document components
src/components/documents/EntityDocumentsSection.tsx
Other components
- User
Connections 30
- User → Route and access control: opens app
src/App.tsx - Route and access control → Authentication and account: checks session
src/App.tsx - Authentication and account → Supabase client: loads session
src/contexts/AuthContext.tsx - Route and access control → Application layout: renders routes
src/App.tsx - Route and access control → Financial dashboards: routes to
src/App.tsx - Route and access control → Transactions ledger: routes to
src/App.tsx - Route and access control → Invoices and bills: routes to
src/App.tsx - Route and access control → Client portal: routes to
src/App.tsx - Route and access control → Shareholders and dividends: routes to
src/App.tsx - Route and access control → Employees and payroll: routes to
src/App.tsx - Route and access control → Projects and timesheets: routes to
src/App.tsx - Client records → Supabase client: reads and writes
src/pages/Clients.tsx - Client records → Document components: renders
src/pages/Clients.tsx - Document components → Supabase client: accesses records
src/components/documents/EntityDocumentsSection.tsx - Supabase client → Supabase PostgreSQL: connects to
README.md - Financial dashboards → Supabase client: loads metrics
- Transactions ledger → Supabase client: stores transactions
- Invoices and bills → Supabase client: stores invoices
- Client portal → Supabase client: loads client data
src/pages/ClientPortal.tsx - Lead tracking → Supabase client: manages leads
- Suppliers and payouts → Supabase client: stores payouts
- Shareholders and dividends → Supabase client: stores equity
- Employees and payroll → Supabase client: stores payroll data
- Projects and timesheets → Supabase client: stores project data
- Document library → Supabase client: stores documents
- Support and bug tracking → Supabase client: stores tickets
- Tax and compliance → Tax calculators and ledger: provides tax tools
README.md - Accounting and statements → Accounting calculations: uses calculations
src/pages/accounting/FinancialStatements.tsx - Accounting and statements → Supabase client: loads statements
src/pages/accounting/FinancialStatements.tsx - Application layout → UI primitives: uses components
src/components/AppLayout.tsx