How ennva/einvoice-frontend works
This is a browser-based e-invoicing management frontend. Users enter through public landing, documentation, login, or registration pages; authenticated users reach a dashboard and invoice, customer, reference-data, integration, billing, API-key, and settings areas. Invoice creation collects parties and line items, previews totals, and submits an invoice through the API client. The supplied excerpts establish routing, authentication, invoice submission, and integration configuration calls; other page-to-service details are not inferred from filenames alone.
Main entry points: App.js Routes and providers · InvoiceCreate.jsx Invoice creation · AuthContext.jsx Authentication state · api.js HTTP API client
Components 21
App and access
- Routes and providers
src/App.js - Authentication state
src/context/AuthContext.jsx - Landing and docs
src/pages/Landing.jsx - Login and registration
src/pages/auth/Login.jsx - Authenticated shell
src/components/layout/AppLayout.jsx
Invoice workflow
- Dashboard
src/pages/Dashboard.jsx - Invoice list
src/pages/InvoiceList.jsx - Invoice creation
src/pages/InvoiceCreate.jsx - Invoice detail
src/pages/InvoiceDetail.jsx
Workspace management
- Customers
src/pages/Customers.jsx - Countries
src/pages/Countries.jsx - Currencies
src/pages/Currencies.jsx - Integrations page
src/pages/Integrations.jsx - Integration configuration
src/components/IntegrationManager.js - API keys
src/pages/ApiKeys.jsx - Billing
src/pages/Billing.jsx - Settings
src/pages/Settings.jsx
Shared client layers
- HTTP API client
src/lib/api.js - Shared UI components
src/components/ui
Other components
- User
- Backend API
Connections 23
- User → Routes and providers: uses
- Routes and providers → Authentication state: provides auth
src/App.js - Routes and providers → Landing and docs: routes to
src/App.js - Routes and providers → Login and registration: routes to
src/App.js - Routes and providers → Authenticated shell: wraps protected routes
src/App.js - Routes and providers → Dashboard: routes to
src/App.js - Routes and providers → Invoice list: routes to
src/App.js - Routes and providers → Invoice creation: routes to
src/App.js - Routes and providers → Invoice detail: routes to
src/App.js - Routes and providers → Customers: routes to
src/App.js - Routes and providers → Countries: routes to
src/App.js - Routes and providers → Currencies: routes to
src/App.js - Routes and providers → Integrations page: routes to
src/App.js - Routes and providers → API keys: routes to
src/App.js - Routes and providers → Billing: routes to
src/App.js - Routes and providers → Settings: routes to
src/App.js - Login and registration → Authentication state: calls auth
src/pages/auth/Login.jsx - Authentication state → HTTP API client: sends auth requests
src/context/AuthContext.jsx - Invoice creation → HTTP API client: submits invoice
src/pages/InvoiceCreate.jsx - Integration configuration → Backend API: manages configurations
src/components/IntegrationManager.js - HTTP API client → Backend API: sends HTTP requests
src/lib/api.js - Invoice creation → Shared UI components: renders with
src/pages/InvoiceCreate.jsx - Authenticated shell → Shared UI components: uses
src/components/layout/AppLayout.jsx