# nebainer/losjuniors-2026 architecture

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

- Interactive diagram: https://gitdiagram.com/nebainer/losjuniors-2026
- Repository: https://github.com/nebainer/losjuniors-2026

## Overview

LA MESA is an Ionic/Angular restaurant-management app for customers and staff using QR-based table access. The main flow is customer registration or login, table assignment and menu access, order submission, kitchen/bar preparation, waiter delivery, then customer confirmation; accounts, surveys, games, and waiter consultations are additional capabilities. The graph combines documented capabilities with relationships visible in the supplied excerpts and SOURCE INDEX. Several feature implementations were not sampled, so their internal calls are left unspecified.

Main entry points: [`src/app/app.routes.ts`](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/app.routes.ts) (Route dispatcher), [`src/app/core/services/supabase.service.ts`](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/core/services/supabase.service.ts) (Supabase client), [`src/app/home/home.page.ts`](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/home/home.page.ts) (Role dashboard), [`src/app/core/services/notificaciones.service.ts`](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/core/services/notificaciones.service.ts) (Notifications)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry and access"]
  node_routes["Route dispatcher<br/>[app.routes.ts]"]
  node_home["Role dashboard<br/>[home.page.ts]"]
  node_registration["Customer registration"]
  node_approval["Pending customers"]
end

subgraph group_restaurant["Restaurant operations"]
  node_mesa_admin["Table administration<br/>[mesa.service.ts]"]
  node_waitlist["Waitlist assignment"]
  node_menu["Menu and products"]
  node_product_service["Product catalog service"]
  node_ordering["Order assembly<br/>[pedido.page.ts]"]
  node_order_service["Order lifecycle<br/>[pedido.service.ts]"]
  node_sector_orders["Kitchen and bar"]
  node_waiter_orders["Waiter delivery"]
end

subgraph group_customer["Customer features"]
  node_consultation["Waiter consultation"]
  node_accounts["Table accounts<br/>[cuenta.page.ts]"]
  node_surveys["Customer surveys<br/>[encuesta.page.ts]"]
  node_games["Discount games<br/>[juegos.page.ts]"]
end

subgraph group_platform["Shared platform"]
  node_auth["Authentication<br/>[auth.service.ts]"]
  node_users["User profiles"]
  node_notifications["Notifications"]
  node_qr["QR scanning<br/>[qr-app.service.ts]"]
  node_supabase_service["Supabase client"]
end

node_customer_actor(("Customer"))
node_staff_actor(("Restaurant staff"))
node_supabase[("Supabase")]
node_local_notifications["Device notifications"]

node_customer_actor -.->|"opens app"| node_routes
node_staff_actor -.->|"opens app"| node_routes
node_routes -->|"routes to"| node_home
node_routes -->|"routes to"| node_registration
node_routes -->|"routes to"| node_approval
node_routes -->|"routes to"| node_consultation
node_routes -->|"routes to"| node_sector_orders
node_routes -->|"routes to"| node_games
node_registration -->|"creates account"| node_auth
node_registration -->|"registers profile"| node_users
node_approval -->|"updates approval"| node_users
node_home -->|"checks session"| node_auth
node_home -->|"loads profile"| node_users
node_home -->|"checks assignment"| node_mesa_admin
node_home -->|"uses"| node_notifications
node_home -->|"uses"| node_qr
node_waitlist -->|"assigns tables"| node_mesa_admin
node_menu -->|"loads catalog"| node_product_service
node_ordering -->|"loads products"| node_product_service
node_ordering -->|"validates table"| node_mesa_admin
node_ordering -->|"submits order"| node_order_service
node_ordering -->|"uses"| node_notifications
node_sector_orders -->|"updates sector"| node_order_service
node_sector_orders -->|"uses"| node_notifications
node_waiter_orders -->|"loads orders"| node_order_service
node_order_service -->|"reads and writes"| node_supabase_service
node_mesa_admin -->|"reads and writes"| node_supabase_service
node_product_service -->|"reads and writes"| node_supabase_service
node_auth -->|"authenticates with"| node_supabase_service
node_users -->|"reads and writes"| node_supabase_service
node_supabase_service -->|"connects to"| node_supabase
node_notifications -->|"subscribes to events"| node_supabase_service
node_notifications -->|"shows alerts"| node_local_notifications
node_menu -.->|"offers consultation"| node_consultation
node_waiter_orders -.->|"supports account service"| node_accounts
node_accounts -.->|"available after delivery"| node_surveys
node_accounts -.->|"available after delivery"| node_games

click node_routes "https://github.com/nebainer/losjuniors-2026/blob/main/src/app/app.routes.ts"
click node_home "https://github.com/nebainer/losjuniors-2026/blob/main/src/app/home/home.page.ts"
click node_registration "https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/registro-cliente/registro-cliente.page.ts"
click node_approval "https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/clientes-pendientes/clientes-pendientes.page.ts"
click node_auth "https://github.com/nebainer/losjuniors-2026/blob/main/src/app/core/services/auth.service.ts"
click node_users "https://github.com/nebainer/losjuniors-2026/blob/main/src/app/core/services/usuarios.service.ts"
click node_mesa_admin "https://github.com/nebainer/losjuniors-2026/blob/main/src/app/core/services/mesa.service.ts"
click node_waitlist "https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/metre-lista-espera/metre-lista-espera.page.ts"
click node_menu "https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/carta/carta.ver.component.ts"
click node_product_service "https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/producto/producto.service.ts"
click node_ordering "https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/pedido/pedido.page.ts"
click node_order_service "https://github.com/nebainer/losjuniors-2026/blob/main/src/app/core/services/pedido.service.ts"
click node_sector_orders "https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/pedidos-sector/pedidos-sector.page.ts"
click node_waiter_orders "https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/pedidos-mozo/pedidos-mozo.page.ts"
click node_consultation "https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/consulta-mozo/consulta-mozo.page.ts"
click node_accounts "https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/cuenta/cuenta.page.ts"
click node_surveys "https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/encuesta/encuesta.page.ts"
click node_games "https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/juegos/juegos.page.ts"
click node_notifications "https://github.com/nebainer/losjuniors-2026/blob/main/src/app/core/services/notificaciones.service.ts"
click node_qr "https://github.com/nebainer/losjuniors-2026/blob/main/src/app/core/services/qr-app.service.ts"
click node_supabase_service "https://github.com/nebainer/losjuniors-2026/blob/main/src/app/core/services/supabase.service.ts"

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_routes,node_home,node_registration,node_approval toneBlue
class node_mesa_admin,node_waitlist,node_menu,node_product_service,node_ordering,node_order_service,node_sector_orders,node_waiter_orders,node_supabase toneAmber
class node_consultation,node_accounts,node_surveys,node_games toneMint
class node_auth,node_users,node_notifications,node_qr,node_supabase_service toneRose
class node_customer_actor,node_staff_actor,node_local_notifications toneIndigo
```

## Components

### App entry and access

- [Route dispatcher](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/app.routes.ts): `src/app/app.routes.ts`
- [Role dashboard](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/home/home.page.ts): `src/app/home/home.page.ts`
- [Customer registration](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/registro-cliente/registro-cliente.page.ts): `src/app/pages/registro-cliente/registro-cliente.page.ts`
- [Pending customers](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/clientes-pendientes/clientes-pendientes.page.ts): `src/app/pages/clientes-pendientes/clientes-pendientes.page.ts`

### Restaurant operations

- [Table administration](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/core/services/mesa.service.ts): `src/app/core/services/mesa.service.ts`
- [Waitlist assignment](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/metre-lista-espera/metre-lista-espera.page.ts): `src/app/pages/metre-lista-espera/metre-lista-espera.page.ts`
- [Menu and products](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/carta/carta.ver.component.ts): `src/app/pages/carta/carta.ver.component.ts`
- [Product catalog service](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/producto/producto.service.ts): `src/app/pages/producto/producto.service.ts`
- [Order assembly](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/pedido/pedido.page.ts): `src/app/pages/pedido/pedido.page.ts`
- [Order lifecycle](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/core/services/pedido.service.ts): `src/app/core/services/pedido.service.ts`
- [Kitchen and bar](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/pedidos-sector/pedidos-sector.page.ts): `src/app/pages/pedidos-sector/pedidos-sector.page.ts`
- [Waiter delivery](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/pedidos-mozo/pedidos-mozo.page.ts): `src/app/pages/pedidos-mozo/pedidos-mozo.page.ts`

### Customer features

- [Waiter consultation](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/consulta-mozo/consulta-mozo.page.ts): `src/app/pages/consulta-mozo/consulta-mozo.page.ts`
- [Table accounts](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/cuenta/cuenta.page.ts): `src/app/pages/cuenta/cuenta.page.ts`
- [Customer surveys](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/encuesta/encuesta.page.ts): `src/app/pages/encuesta/encuesta.page.ts`
- [Discount games](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/pages/juegos/juegos.page.ts): `src/app/pages/juegos/juegos.page.ts`

### Shared platform

- [Authentication](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/core/services/auth.service.ts): `src/app/core/services/auth.service.ts`
- [User profiles](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/core/services/usuarios.service.ts): `src/app/core/services/usuarios.service.ts`
- [Notifications](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/core/services/notificaciones.service.ts): `src/app/core/services/notificaciones.service.ts`
- [QR scanning](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/core/services/qr-app.service.ts): `src/app/core/services/qr-app.service.ts`
- [Supabase client](https://github.com/nebainer/losjuniors-2026/blob/main/src/app/core/services/supabase.service.ts): `src/app/core/services/supabase.service.ts`

### Other components

- **Customer**
- **Restaurant staff**
- **Supabase**
- **Device notifications**

## Connections

- Customer → Route dispatcher: opens app (evidence: `README.md`)
- Restaurant staff → Route dispatcher: opens app (evidence: `README.md`)
- Route dispatcher → Role dashboard: routes to (evidence: `src/app/app.routes.ts`)
- Route dispatcher → Customer registration: routes to (evidence: `src/app/app.routes.ts`)
- Route dispatcher → Pending customers: routes to (evidence: `src/app/app.routes.ts`)
- Route dispatcher → Waiter consultation: routes to (evidence: `src/app/app.routes.ts`)
- Route dispatcher → Kitchen and bar: routes to (evidence: `src/app/app.routes.ts`)
- Route dispatcher → Discount games: routes to (evidence: `src/app/app.routes.ts`)
- Customer registration → Authentication: creates account (evidence: `src/app/pages/registro-cliente/registro-cliente.page.ts`)
- Customer registration → User profiles: registers profile (evidence: `src/app/pages/registro-cliente/registro-cliente.page.ts`)
- Pending customers → User profiles: updates approval (evidence: `src/app/pages/clientes-pendientes/clientes-pendientes.page.ts`)
- Role dashboard → Authentication: checks session (evidence: `src/app/home/home.page.ts`)
- Role dashboard → User profiles: loads profile (evidence: `src/app/home/home.page.ts`)
- Role dashboard → Table administration: checks assignment (evidence: `src/app/home/home.page.ts`)
- Role dashboard → Notifications: uses (evidence: `src/app/home/home.page.ts`)
- Role dashboard → QR scanning: uses (evidence: `src/app/home/home.page.ts`)
- Waitlist assignment → Table administration: assigns tables (evidence: `src/app/pages/metre-lista-espera/metre-lista-espera.page.ts`)
- Menu and products → Product catalog service: loads catalog (evidence: `src/app/pages/carta/carta.ver.component.ts`)
- Order assembly → Product catalog service: loads products (evidence: `src/app/pages/pedido/pedido.page.ts`)
- Order assembly → Table administration: validates table (evidence: `src/app/pages/pedido/pedido.page.ts`)
- Order assembly → Order lifecycle: submits order (evidence: `src/app/pages/pedido/pedido.page.ts`)
- Order assembly → Notifications: uses (evidence: `src/app/pages/pedido/pedido.page.ts`)
- Kitchen and bar → Order lifecycle: updates sector (evidence: `src/app/pages/pedidos-sector/pedidos-sector.page.ts`)
- Kitchen and bar → Notifications: uses (evidence: `src/app/pages/pedidos-sector/pedidos-sector.page.ts`)
- Waiter delivery → Order lifecycle: loads orders (evidence: `src/app/pages/pedidos-mozo/pedidos-mozo.page.ts`)
- Order lifecycle → Supabase client: reads and writes (evidence: `src/app/core/services/pedido.service.ts`)
- Table administration → Supabase client: reads and writes (evidence: `src/app/core/services/mesa.service.ts`)
- Product catalog service → Supabase client: reads and writes (evidence: `src/app/pages/producto/producto.service.ts`)
- Authentication → Supabase client: authenticates with (evidence: `src/app/core/services/auth.service.ts`)
- User profiles → Supabase client: reads and writes (evidence: `src/app/core/services/usuarios.service.ts`)
- Supabase client → Supabase: connects to (evidence: `src/app/core/services/supabase.service.ts`)
- Notifications → Supabase client: subscribes to events (evidence: `src/app/core/services/notificaciones.service.ts`)
- Notifications → Device notifications: shows alerts (evidence: `src/app/core/services/notificaciones.service.ts`)
- Menu and products → Waiter consultation: offers consultation (evidence: `README.md`)
- Waiter delivery → Table accounts: supports account service (evidence: `README.md`)
- Table accounts → Customer surveys: available after delivery (evidence: `README.md`)
- Table accounts → Discount games: available after delivery (evidence: `README.md`)
