# medissaoui711/salon-dashboard-clean architecture

> Architecture diagram of the GitHub repository medissaoui711/salon-dashboard-clean, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/medissaoui711/salon-dashboard-clean
- Repository: https://github.com/medissaoui711/salon-dashboard-clean

## Overview

Salon Dashboard is a bilingual, offline-first salon management web app made of standalone HTML pages, with no backend. The principal workflow is PIN login into the dashboard, where staff manage sales, expenses, employees, payroll, and store costs; dashboard data supports analytics and report exports. A separate admin page manages PINs and settings. The README documents IndexedDB with localStorage fallback and offline operation; the sampled service worker caches app pages and optional CDN assets. Most page implementations were not sampled, so feature relationships below rely on README statements rather than inspected page code.

Main entry points: [`public/index.html`](https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/index.html) (Dashboard), [`public/sw.js`](https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/sw.js) (Service worker), [`public/admin.html`](https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/admin.html) (Admin panel), [`public/login.html`](https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/login.html) (PIN login)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and administration"]
  node_login["PIN login<br/>[login.html]"]
  node_admin["Admin panel<br/>[admin.html]"]
  node_support["Support page<br/>[support.html]"]
  node_faq["FAQ page<br/>[faq.html]"]
  node_privacy["Privacy page<br/>[privacy.html]"]
end

subgraph group_operations["Salon operations"]
  node_dashboard["Dashboard<br/>[index.html]"]
  node_employees["Employee profiles<br/>[index.html]"]
  node_sales_expenses["Sales and expenses<br/>[index.html]"]
  node_payroll["Payroll<br/>[index.html]"]
  node_store_costs["Store costs<br/>[index.html]"]
end

subgraph group_insights["Analytics and reporting"]
  node_analytics["Dashboard analytics<br/>[index.html]"]
  node_exports["Report exports<br/>[index.html]"]
  node_whatsapp["WhatsApp sharing<br/>[index.html]"]
end

subgraph group_offline["Offline and persistence"]
  node_storage[("Browser storage")]
  node_service_worker["Service worker<br/>[sw.js]"]
end

node_staff(("Salon staff"))
node_browser(("Browser"))

node_staff -->|"opens"| node_login
node_login -->|"admits session"| node_dashboard
node_staff -->|"opens admin"| node_admin
node_admin -->|"manages PINs"| node_login
node_admin -->|"manages settings"| node_dashboard
node_staff -->|"uses"| node_dashboard
node_dashboard -->|"manages"| node_employees
node_dashboard -->|"records"| node_sales_expenses
node_dashboard -->|"calculates"| node_payroll
node_dashboard -->|"edits"| node_store_costs
node_dashboard -->|"shows"| node_analytics
node_dashboard -->|"exports reports"| node_exports
node_dashboard -->|"shares report"| node_whatsapp
node_dashboard -->|"persists changes"| node_storage
node_browser -->|"dispatches requests"| node_service_worker
node_service_worker -->|"caches assets"| node_storage
node_service_worker -->|"caches page"| node_login
node_service_worker -->|"caches page"| node_dashboard
node_service_worker -->|"caches page"| node_admin
node_staff -->|"opens"| node_support
node_staff -->|"opens"| node_faq
node_staff -->|"opens"| node_privacy

click node_login "https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/login.html"
click node_dashboard "https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/index.html"
click node_admin "https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/admin.html"
click node_employees "https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/index.html"
click node_sales_expenses "https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/index.html"
click node_payroll "https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/index.html"
click node_store_costs "https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/index.html"
click node_analytics "https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/index.html"
click node_exports "https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/index.html"
click node_whatsapp "https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/index.html"
click node_service_worker "https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/sw.js"
click node_support "https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/support.html"
click node_faq "https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/faq.html"
click node_privacy "https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/privacy.html"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_login,node_admin,node_support,node_faq,node_privacy,node_browser toneBlue
class node_dashboard,node_employees,node_sales_expenses,node_payroll,node_store_costs toneAmber
class node_analytics,node_exports,node_whatsapp toneMint
class node_storage,node_service_worker toneRose
class node_staff toneIndigo
```

## Components

### Access and administration

- [PIN login](https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/login.html): `public/login.html`
- [Admin panel](https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/admin.html): `public/admin.html`
- [Support page](https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/support.html): `public/support.html`
- [FAQ page](https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/faq.html): `public/faq.html`
- [Privacy page](https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/privacy.html): `public/privacy.html`

### Salon operations

- [Dashboard](https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/index.html): `public/index.html`
- [Employee profiles](https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/index.html): `public/index.html`
- [Sales and expenses](https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/index.html): `public/index.html`
- [Payroll](https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/index.html): `public/index.html`
- [Store costs](https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/index.html): `public/index.html`

### Analytics and reporting

- [Dashboard analytics](https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/index.html): `public/index.html`
- [Report exports](https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/index.html): `public/index.html`
- [WhatsApp sharing](https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/index.html): `public/index.html`

### Offline and persistence

- **Browser storage**
- [Service worker](https://github.com/medissaoui711/salon-dashboard-clean/blob/main/public/sw.js): `public/sw.js`

### Other components

- **Salon staff**
- **Browser**

## Connections

- Salon staff → PIN login: opens (evidence: `README.md`)
- PIN login → Dashboard: admits session (evidence: `README.md`)
- Salon staff → Admin panel: opens admin (evidence: `README.md`)
- Admin panel → PIN login: manages PINs (evidence: `README.md`)
- Admin panel → Dashboard: manages settings (evidence: `README.md`)
- Salon staff → Dashboard: uses (evidence: `README.md`)
- Dashboard → Employee profiles: manages (evidence: `README.md`)
- Dashboard → Sales and expenses: records (evidence: `README.md`)
- Dashboard → Payroll: calculates (evidence: `README.md`)
- Dashboard → Store costs: edits (evidence: `README.md`)
- Dashboard → Dashboard analytics: shows (evidence: `README.md`)
- Dashboard → Report exports: exports reports (evidence: `README.md`)
- Dashboard → WhatsApp sharing: shares report (evidence: `README.md`)
- Dashboard → Browser storage: persists changes (evidence: `README.md`)
- Browser → Service worker: dispatches requests (evidence: `public/sw.js`)
- Service worker → Browser storage: caches assets (evidence: `public/sw.js`)
- Service worker → PIN login: caches page (evidence: `public/sw.js`)
- Service worker → Dashboard: caches page (evidence: `public/sw.js`)
- Service worker → Admin panel: caches page (evidence: `public/sw.js`)
- Salon staff → Support page: opens (evidence: `README.md`)
- Salon staff → FAQ page: opens (evidence: `README.md`)
- Salon staff → Privacy page: opens (evidence: `README.md`)
