# joyandocoderelatedemail-ux/rnz_supportsystem architecture

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

- Interactive diagram: https://gitdiagram.com/joyandocoderelatedemail-ux/rnz_supportsystem
- Repository: https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem

## Overview

RNZWEBSITE is a client support and service portal paired with a technician/admin console. Clients sign in to view account status and use ticketing, hardware/software, maintenance, order, and work-order services; staff manage tickets and operational resources through the backend. The graph preserves both portal branches and core shared concerns. Source evidence is uneven: several major capabilities are named in the backend authorization metadata, but their implementation and request flows were not sampled, so those connections are left unverified rather than inferred.

Main entry points: [`backend/includes/auth.php`](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/includes/auth.php) (Staff Authorization), [`index.php`](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/index.php) (Client Dashboard), [`login.php`](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/login.php) (Client Login), [`backend/index.php`](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/index.php) (Staff Dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client Portal"]
  node_client_login["Client Login<br/>[login.php]"]
  node_portal_home["Client Dashboard<br/>[index.php]"]
  node_tickets["Support Tickets<br/>[tickets.php]"]
  node_ticket_detail["Ticket Detail<br/>[ticket_detail.php]"]
  node_hardware["Hardware Services<br/>[hardware.php]"]
  node_software["Software Services<br/>[software.php]"]
  node_orders["Client Orders<br/>[orders.php]"]
  node_maintenance["Maintenance Requests<br/>[maintenance.php]"]
  node_workorders["Work Orders<br/>[workorders.php]"]
  node_technotes["Technotes<br/>[technotes.php]"]
  node_client_account["Account Profile<br/>[profile.php]"]
end

subgraph group_admin["Staff Console"]
  node_admin_login["Staff Login<br/>[login.php]"]
  node_dashboard["Staff Dashboard<br/>[index.php]"]
  node_admin_tickets["Ticket Management<br/>[tickets.php]"]
  node_admin_ticket_detail["Staff Ticket Detail<br/>[ticket_detail.php]"]
  node_admin_inventory["Inventory Management<br/>[inventory.php]"]
  node_admin_accounts["Account Management<br/>[accounts.php]"]
  node_admin_events["Events Scheduling<br/>[events.php]"]
  node_admin_orders["Order Fulfillment<br/>[orders.php]"]
  node_admin_maintenance["POS Maintenance<br/>[maintenance.php]"]
  node_admin_analytics["Business Analytics<br/>[analytics.php]"]
end

subgraph group_shared["Shared Services"]
  node_client_db[("Portal Database Access<br/>[config.php]")]
  node_portal_schema["Portal Data Setup<br/>[db_init.php]"]
  node_support_schedule["Support Availability"]
  node_admin_db[("Staff Database Access<br/>[config.php]")]
  node_admin_auth["Staff Authorization<br/>[auth.php]"]
end

subgraph group_demo["Demo Site"]
  node_demo_admin["Demo Administration<br/>[admin-demo.php]"]
  node_demo_submit["Demo Request Submission<br/>[submit-demo.php]"]
  node_demo_storage["Demo Request Storage<br/>[demo-storage.php]"]
end

node_client(("Client"))
node_staff(("Technician"))
node_demo_user(("Demo Visitor"))

node_client -.->|"signs in"| node_client_login
node_client_login -.->|"opens portal"| node_portal_home
node_client_login -.->|"authenticates against"| node_client_db
node_client_login -->|"uses"| node_portal_schema
node_portal_home -.->|"queries"| node_client_db
node_portal_home -->|"initializes data"| node_portal_schema
node_portal_home -->|"checks availability"| node_support_schedule
node_portal_home -.->|"navigates to"| node_tickets
node_tickets -.->|"opens ticket"| node_ticket_detail
node_staff -.->|"signs in"| node_admin_login
node_admin_login -->|"authenticates with"| node_admin_auth
node_admin_auth -->|"uses"| node_admin_db
node_dashboard -->|"checks access"| node_admin_auth
node_dashboard -->|"links to"| node_admin_tickets
node_dashboard -->|"links to"| node_admin_events
node_admin_auth -->|"authorizes page"| node_admin_inventory
node_admin_auth -->|"authorizes page"| node_admin_accounts
node_admin_auth -->|"authorizes page"| node_admin_orders
node_admin_auth -->|"authorizes page"| node_admin_maintenance
node_admin_auth -->|"authorizes page"| node_admin_analytics
node_admin_tickets -.->|"opens ticket"| node_admin_ticket_detail
node_demo_user -.->|"submits request"| node_demo_submit
node_demo_submit -.->|"stores request"| node_demo_storage
node_demo_admin -.->|"manages requests"| node_demo_storage

click node_client_login "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/login.php"
click node_portal_home "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/index.php"
click node_tickets "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/tickets.php"
click node_ticket_detail "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/ticket_detail.php"
click node_hardware "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/hardware.php"
click node_software "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/software.php"
click node_orders "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/orders.php"
click node_maintenance "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/maintenance.php"
click node_workorders "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/workorders.php"
click node_technotes "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/technotes.php"
click node_client_account "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/profile.php"
click node_client_db "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/includes/config.php"
click node_portal_schema "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/includes/db_init.php"
click node_support_schedule "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/includes/support_availability.php"
click node_admin_login "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/login.php"
click node_dashboard "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/index.php"
click node_admin_tickets "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/tickets.php"
click node_admin_ticket_detail "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/ticket_detail.php"
click node_admin_inventory "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/inventory.php"
click node_admin_accounts "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/accounts.php"
click node_admin_events "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/events.php"
click node_admin_orders "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/orders.php"
click node_admin_maintenance "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/maintenance.php"
click node_admin_analytics "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/analytics.php"
click node_admin_db "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/includes/config.php"
click node_admin_auth "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/includes/auth.php"
click node_demo_admin "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/RNZWEBSITE/admin-demo.php"
click node_demo_submit "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/RNZWEBSITE/submit-demo.php"
click node_demo_storage "https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/RNZWEBSITE/demo-storage.php"

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_client_login,node_portal_home,node_tickets,node_ticket_detail,node_hardware,node_software,node_orders,node_maintenance,node_workorders,node_technotes,node_client_account,node_client toneBlue
class node_admin_login,node_dashboard,node_admin_tickets,node_admin_ticket_detail,node_admin_inventory,node_admin_accounts,node_admin_events,node_admin_orders,node_admin_maintenance,node_admin_analytics toneAmber
class node_client_db,node_portal_schema,node_support_schedule,node_admin_db,node_admin_auth toneMint
class node_demo_admin,node_demo_submit,node_demo_storage toneRose
class node_staff,node_demo_user toneIndigo
```

## Components

### Client Portal

- [Client Login](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/login.php): `login.php`
- [Client Dashboard](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/index.php): `index.php`
- [Support Tickets](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/tickets.php): `tickets.php`
- [Ticket Detail](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/ticket_detail.php): `ticket_detail.php`
- [Hardware Services](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/hardware.php): `hardware.php`
- [Software Services](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/software.php): `software.php`
- [Client Orders](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/orders.php): `orders.php`
- [Maintenance Requests](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/maintenance.php): `maintenance.php`
- [Work Orders](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/workorders.php): `workorders.php`
- [Technotes](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/technotes.php): `technotes.php`
- [Account Profile](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/profile.php): `profile.php`

### Staff Console

- [Staff Login](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/login.php): `backend/login.php`
- [Staff Dashboard](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/index.php): `backend/index.php`
- [Ticket Management](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/tickets.php): `backend/tickets.php`
- [Staff Ticket Detail](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/ticket_detail.php): `backend/ticket_detail.php`
- [Inventory Management](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/inventory.php): `backend/inventory.php`
- [Account Management](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/accounts.php): `backend/accounts.php`
- [Events Scheduling](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/events.php): `backend/events.php`
- [Order Fulfillment](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/orders.php): `backend/orders.php`
- [POS Maintenance](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/maintenance.php): `backend/maintenance.php`
- [Business Analytics](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/analytics.php): `backend/analytics.php`

### Shared Services

- [Portal Database Access](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/includes/config.php): `includes/config.php`
- [Portal Data Setup](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/includes/db_init.php): `includes/db_init.php`
- [Support Availability](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/includes/support_availability.php): `includes/support_availability.php`
- [Staff Database Access](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/includes/config.php): `backend/includes/config.php`
- [Staff Authorization](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/backend/includes/auth.php): `backend/includes/auth.php`

### Demo Site

- [Demo Administration](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/RNZWEBSITE/admin-demo.php): `RNZWEBSITE/admin-demo.php`
- [Demo Request Submission](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/RNZWEBSITE/submit-demo.php): `RNZWEBSITE/submit-demo.php`
- [Demo Request Storage](https://github.com/joyandocoderelatedemail-ux/rnz_supportsystem/blob/main/RNZWEBSITE/demo-storage.php): `RNZWEBSITE/demo-storage.php`

### Other components

- **Client**
- **Technician**
- **Demo Visitor**

## Connections

- Client → Client Login: signs in
- Client Login → Client Dashboard: opens portal (evidence: `index.php`)
- Client Login → Portal Database Access: authenticates against (evidence: `login.php`)
- Client Login → Portal Data Setup: uses
- Client Dashboard → Portal Database Access: queries (evidence: `index.php`)
- Client Dashboard → Portal Data Setup: initializes data (evidence: `index.php`)
- Client Dashboard → Support Availability: checks availability (evidence: `index.php`)
- Client Dashboard → Support Tickets: navigates to
- Support Tickets → Ticket Detail: opens ticket
- Technician → Staff Login: signs in
- Staff Login → Staff Authorization: authenticates with (evidence: `backend/login.php`)
- Staff Authorization → Staff Database Access: uses (evidence: `backend/includes/auth.php`)
- Staff Dashboard → Staff Authorization: checks access (evidence: `backend/index.php`)
- Staff Dashboard → Ticket Management: links to
- Staff Dashboard → Events Scheduling: links to (evidence: `backend/index.php`)
- Staff Authorization → Inventory Management: authorizes page (evidence: `backend/includes/auth.php`)
- Staff Authorization → Account Management: authorizes page (evidence: `backend/includes/auth.php`)
- Staff Authorization → Order Fulfillment: authorizes page (evidence: `backend/includes/auth.php`)
- Staff Authorization → POS Maintenance: authorizes page (evidence: `backend/includes/auth.php`)
- Staff Authorization → Business Analytics: authorizes page (evidence: `backend/includes/auth.php`)
- Ticket Management → Staff Ticket Detail: opens ticket
- Demo Visitor → Demo Request Submission: submits request
- Demo Request Submission → Demo Request Storage: stores request
- Demo Administration → Demo Request Storage: manages requests
