# dadou1985/mysweethotelpro architecture

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

- Interactive diagram: https://gitdiagram.com/dadou1985/mysweethotelpro
- Repository: https://github.com/dadou1985/mysweethotelpro

## Overview

My Sweet Hotel Pro is a hotel-staff operations application. Staff enter through authentication, navigate hotel workflows, and manage operational and guest information through feature screens; the instruction book and custom visual tools are also documented capabilities. Sampled code shows Firebase/Firestore-backed screens and shared mutation helpers, while the README describes a separate GraphQL and Socket.IO API; their exact integration in this tree is not established, so that documented API relationship is marked unverified.

Main entry points: [`src/utils/drawer/drawer.js`](https://github.com/dadou1985/mysweethotelpro/blob/master/src/utils/drawer/drawer.js) (Mobile navigation), [`src/components/chat/chat.js`](https://github.com/dadou1985/mysweethotelpro/blob/master/src/components/chat/chat.js) (Multilingual chat), [`src/utils/hooks/useFirestore.js`](https://github.com/dadou1985/mysweethotelpro/blob/master/src/utils/hooks/useFirestore.js) (Firestore hooks), [`src/config/Firebase/config.js`](https://github.com/dadou1985/mysweethotelpro/blob/master/src/config/Firebase/config.js) (Firebase services)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and navigation"]
  node_login["Staff login<br/>[login.js]"]
  node_home["Home dashboard<br/>[home.js]"]
  node_drawer["Mobile navigation<br/>[drawer.js]"]
end

subgraph group_operations["Hotel operations"]
  node_dashboard["Hotel dashboard<br/>[dashboard.js]"]
  node_checklists["Operational checklists<br/>[checkList.js]"]
  node_maintenance["Maintenance book<br/>[maintenance.js]"]
  node_cash["Cash sheet<br/>[safeDetailSheet.js]"]
  node_transport["VTC scheduling<br/>[cab.mobile.js]"]
  node_wakeups["Wake-up scheduling<br/>[clock.mobile.js]"]
end

subgraph group_guest["Guest services"]
  node_crm["Guest CRM<br/>[crmTable.js]"]
  node_chat["Multilingual chat<br/>[chat.js]"]
  node_lostfound["Lost and found<br/>[lostNFound.js]"]
  node_instruction["Instruction book<br/>[nootebook.js]"]
  node_visuals["Custom visual tools<br/>[profile.js]"]
end

subgraph group_platform["Data and shared services"]
  node_firebase[("Firebase services<br/>[config.js]")]
  node_firestore["Firestore hooks<br/>[useFirestore.js]"]
  node_mutations["Firestore mutations<br/>[commonFunctions.js]"]
  node_translations["Translation setup<br/>[config.js]"]
end

node_staff(("Hotel staff"))
node_api["Back-office API"]

node_staff -->|"signs in"| node_login
node_login -->|"authenticates with"| node_firebase
node_staff -.->|"opens"| node_home
node_home -.->|"shows"| node_dashboard
node_staff -->|"navigates"| node_drawer
node_drawer -->|"routes to"| node_dashboard
node_drawer -->|"routes to"| node_checklists
node_drawer -->|"routes to"| node_transport
node_drawer -->|"routes to"| node_wakeups
node_drawer -->|"routes to"| node_maintenance
node_drawer -->|"routes to"| node_lostfound
node_crm -->|"reads and writes"| node_firestore
node_crm -->|"renders timeline"| node_chat
node_chat -->|"uses services"| node_firebase
node_lostfound -->|"uses queries"| node_firestore
node_instruction -->|"uses queries"| node_firestore
node_firestore -->|"delegates writes"| node_mutations
node_mutations -->|"writes Firestore"| node_firebase
node_visuals -->|"uses services"| node_firebase
node_staff -.->|"uses documented API"| node_api
node_chat -.->|"real-time messaging"| node_api
node_translations -.->|"supports languages"| node_chat

click node_login "https://github.com/dadou1985/mysweethotelpro/blob/master/src/components/auth/login.js"
click node_home "https://github.com/dadou1985/mysweethotelpro/blob/master/src/pages/home.js"
click node_drawer "https://github.com/dadou1985/mysweethotelpro/blob/master/src/utils/drawer/drawer.js"
click node_dashboard "https://github.com/dadou1985/mysweethotelpro/blob/master/src/components/dashboard/dashboard.js"
click node_checklists "https://github.com/dadou1985/mysweethotelpro/blob/master/src/components/checkList/checkList.js"
click node_maintenance "https://github.com/dadou1985/mysweethotelpro/blob/master/src/components/section/sidebar/desktop/maintenance.js"
click node_cash "https://github.com/dadou1985/mysweethotelpro/blob/master/src/utils/safe/safeDetailSheet.js"
click node_transport "https://github.com/dadou1985/mysweethotelpro/blob/master/src/components/section/sidebar/mobile/cab.mobile.js"
click node_wakeups "https://github.com/dadou1985/mysweethotelpro/blob/master/src/components/section/sidebar/mobile/clock.mobile.js"
click node_crm "https://github.com/dadou1985/mysweethotelpro/blob/master/src/components/crm/crmTable.js"
click node_chat "https://github.com/dadou1985/mysweethotelpro/blob/master/src/components/chat/chat.js"
click node_lostfound "https://github.com/dadou1985/mysweethotelpro/blob/master/src/components/lostAndFound/lostNFound.js"
click node_instruction "https://github.com/dadou1985/mysweethotelpro/blob/master/src/components/notebook/nootebook.js"
click node_visuals "https://github.com/dadou1985/mysweethotelpro/blob/master/src/components/profile/profile.js"
click node_firebase "https://github.com/dadou1985/mysweethotelpro/blob/master/src/config/Firebase/config.js"
click node_firestore "https://github.com/dadou1985/mysweethotelpro/blob/master/src/utils/hooks/useFirestore.js"
click node_mutations "https://github.com/dadou1985/mysweethotelpro/blob/master/src/utils/commonFunctions.js"
click node_translations "https://github.com/dadou1985/mysweethotelpro/blob/master/i18n/config.js"

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_home,node_drawer toneBlue
class node_dashboard,node_checklists,node_maintenance,node_cash,node_transport,node_wakeups toneAmber
class node_crm,node_chat,node_lostfound,node_instruction,node_visuals,node_api toneMint
class node_firebase,node_firestore,node_mutations,node_translations toneRose
class node_staff toneIndigo
```

## Components

### Entry and navigation

- [Staff login](https://github.com/dadou1985/mysweethotelpro/blob/master/src/components/auth/login.js): `src/components/auth/login.js`
- [Home dashboard](https://github.com/dadou1985/mysweethotelpro/blob/master/src/pages/home.js): `src/pages/home.js`
- [Mobile navigation](https://github.com/dadou1985/mysweethotelpro/blob/master/src/utils/drawer/drawer.js): `src/utils/drawer/drawer.js`

### Hotel operations

- [Hotel dashboard](https://github.com/dadou1985/mysweethotelpro/blob/master/src/components/dashboard/dashboard.js): `src/components/dashboard/dashboard.js`
- [Operational checklists](https://github.com/dadou1985/mysweethotelpro/blob/master/src/components/checkList/checkList.js): `src/components/checkList/checkList.js`
- [Maintenance book](https://github.com/dadou1985/mysweethotelpro/blob/master/src/components/section/sidebar/desktop/maintenance.js): `src/components/section/sidebar/desktop/maintenance.js`
- [Cash sheet](https://github.com/dadou1985/mysweethotelpro/blob/master/src/utils/safe/safeDetailSheet.js): `src/utils/safe/safeDetailSheet.js`
- [VTC scheduling](https://github.com/dadou1985/mysweethotelpro/blob/master/src/components/section/sidebar/mobile/cab.mobile.js): `src/components/section/sidebar/mobile/cab.mobile.js`
- [Wake-up scheduling](https://github.com/dadou1985/mysweethotelpro/blob/master/src/components/section/sidebar/mobile/clock.mobile.js): `src/components/section/sidebar/mobile/clock.mobile.js`

### Guest services

- [Guest CRM](https://github.com/dadou1985/mysweethotelpro/blob/master/src/components/crm/crmTable.js): `src/components/crm/crmTable.js`
- [Multilingual chat](https://github.com/dadou1985/mysweethotelpro/blob/master/src/components/chat/chat.js): `src/components/chat/chat.js`
- [Lost and found](https://github.com/dadou1985/mysweethotelpro/blob/master/src/components/lostAndFound/lostNFound.js): `src/components/lostAndFound/lostNFound.js`
- [Instruction book](https://github.com/dadou1985/mysweethotelpro/blob/master/src/components/notebook/nootebook.js): `src/components/notebook/nootebook.js`
- [Custom visual tools](https://github.com/dadou1985/mysweethotelpro/blob/master/src/components/profile/profile.js): `src/components/profile/profile.js`

### Data and shared services

- [Firebase services](https://github.com/dadou1985/mysweethotelpro/blob/master/src/config/Firebase/config.js): `src/config/Firebase/config.js`
- [Firestore hooks](https://github.com/dadou1985/mysweethotelpro/blob/master/src/utils/hooks/useFirestore.js): `src/utils/hooks/useFirestore.js`
- [Firestore mutations](https://github.com/dadou1985/mysweethotelpro/blob/master/src/utils/commonFunctions.js): `src/utils/commonFunctions.js`
- [Translation setup](https://github.com/dadou1985/mysweethotelpro/blob/master/i18n/config.js): `i18n/config.js`

### Other components

- **Hotel staff**
- **Back-office API**

## Connections

- Hotel staff → Staff login: signs in
- Staff login → Firebase services: authenticates with (evidence: `src/components/auth/login.js`)
- Hotel staff → Home dashboard: opens
- Home dashboard → Hotel dashboard: shows
- Hotel staff → Mobile navigation: navigates (evidence: `src/utils/drawer/drawer.js`)
- Mobile navigation → Hotel dashboard: routes to (evidence: `src/utils/drawer/drawer.js`)
- Mobile navigation → Operational checklists: routes to (evidence: `src/utils/drawer/drawer.js`)
- Mobile navigation → VTC scheduling: routes to (evidence: `src/utils/drawer/drawer.js`)
- Mobile navigation → Wake-up scheduling: routes to (evidence: `src/utils/drawer/drawer.js`)
- Mobile navigation → Maintenance book: routes to (evidence: `src/utils/drawer/drawer.js`)
- Mobile navigation → Lost and found: routes to (evidence: `src/utils/drawer/drawer.js`)
- Guest CRM → Firestore hooks: reads and writes (evidence: `src/components/crm/crmTable.js`)
- Guest CRM → Multilingual chat: renders timeline (evidence: `src/components/crm/crmTable.js`)
- Multilingual chat → Firebase services: uses services (evidence: `src/components/chat/chat.js`)
- Lost and found → Firestore hooks: uses queries (evidence: `src/components/lostAndFound/lostNFound.js`)
- Instruction book → Firestore hooks: uses queries (evidence: `src/components/notebook/nootebook.js`)
- Firestore hooks → Firestore mutations: delegates writes (evidence: `src/utils/hooks/useFirestore.js`)
- Firestore mutations → Firebase services: writes Firestore (evidence: `src/utils/commonFunctions.js`)
- Custom visual tools → Firebase services: uses services (evidence: `src/components/profile/profile.js`)
- Hotel staff → Back-office API: uses documented API (evidence: `README.md`)
- Multilingual chat → Back-office API: real-time messaging (evidence: `README.md`)
- Translation setup → Multilingual chat: supports languages (evidence: `README.md`)
