# karllimjuco/fitness-expert-management architecture

> Architecture diagram of the GitHub repository karllimjuco/fitness-expert-management, 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/karllimjuco/fitness-expert-management
- Repository: https://github.com/karllimjuco/fitness-expert-management

## Overview

This is a browser-based gym staff dashboard. Staff-facing pages cover sign-in and registration, dashboard operations, member management, and monthly plans; the sampled dashboard logic updates daily counters, revenue summaries, undo history, and plan messages. The source excerpt does not show how the HTML pages load scripts or how account helpers are called, so those links are omitted. The relationships shown are limited to the sampled redirect and browser-storage operations.

Main entry points: [`dashboard/app.js`](https://github.com/karllimjuco/fitness-expert-management/blob/main/dashboard/app.js) (Dashboard logic), [`loginstaff.html`](https://github.com/karllimjuco/fitness-expert-management/blob/main/loginstaff.html) (Staff login)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Staff access"]
  node_login["Staff login<br/>[loginstaff.html]"]
  node_registration["Registration<br/>[regis.html]"]
  node_accounts["Account seeds<br/>[AccountsDB.js]"]
end

subgraph group_operations["Gym operations"]
  node_dashboard["Dashboard page<br/>[dashboard.html]"]
  node_members["Member list<br/>[members.html]"]
  node_addmember["Add member<br/>[addmember.html]"]
  node_monthly["Monthly plans<br/>[monthly.html]"]
  node_dashboard_logic["Dashboard logic<br/>[app.js]"]
end

subgraph group_state["Browser state"]
  node_counters[("Daily counters")]
  node_undo_history[("Undo history")]
  node_session[("Staff session")]
end

node_staff(("Staff"))

node_staff -.->|"uses"| node_login
node_dashboard_logic -->|"redirects to"| node_login
node_dashboard_logic -->|"reads and clears"| node_session
node_dashboard_logic -->|"reads and writes"| node_counters
node_dashboard_logic -->|"reads and writes"| node_undo_history

click node_login "https://github.com/karllimjuco/fitness-expert-management/blob/main/loginstaff.html"
click node_registration "https://github.com/karllimjuco/fitness-expert-management/blob/main/regis.html"
click node_accounts "https://github.com/karllimjuco/fitness-expert-management/blob/main/AccountsDB.js"
click node_dashboard "https://github.com/karllimjuco/fitness-expert-management/blob/main/dashboard/dashboard.html"
click node_members "https://github.com/karllimjuco/fitness-expert-management/blob/main/dashboard/members.html"
click node_addmember "https://github.com/karllimjuco/fitness-expert-management/blob/main/dashboard/addmember.html"
click node_monthly "https://github.com/karllimjuco/fitness-expert-management/blob/main/dashboard/monthly.html"
click node_dashboard_logic "https://github.com/karllimjuco/fitness-expert-management/blob/main/dashboard/app.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_registration,node_accounts toneBlue
class node_dashboard,node_members,node_addmember,node_monthly,node_dashboard_logic toneAmber
class node_counters,node_undo_history,node_session toneMint
class node_staff toneIndigo
```

## Components

### Staff access

- [Staff login](https://github.com/karllimjuco/fitness-expert-management/blob/main/loginstaff.html): `loginstaff.html`
- [Registration](https://github.com/karllimjuco/fitness-expert-management/blob/main/regis.html): `regis.html`
- [Account seeds](https://github.com/karllimjuco/fitness-expert-management/blob/main/AccountsDB.js): `AccountsDB.js`

### Gym operations

- [Dashboard page](https://github.com/karllimjuco/fitness-expert-management/blob/main/dashboard/dashboard.html): `dashboard/dashboard.html`
- [Member list](https://github.com/karllimjuco/fitness-expert-management/blob/main/dashboard/members.html): `dashboard/members.html`
- [Add member](https://github.com/karllimjuco/fitness-expert-management/blob/main/dashboard/addmember.html): `dashboard/addmember.html`
- [Monthly plans](https://github.com/karllimjuco/fitness-expert-management/blob/main/dashboard/monthly.html): `dashboard/monthly.html`
- [Dashboard logic](https://github.com/karllimjuco/fitness-expert-management/blob/main/dashboard/app.js): `dashboard/app.js`

### Browser state

- **Daily counters**
- **Undo history**
- **Staff session**

### Other components

- **Staff**

## Connections

- Staff → Staff login: uses
- Dashboard logic → Staff login: redirects to (evidence: `dashboard/app.js`)
- Dashboard logic → Staff session: reads and clears (evidence: `dashboard/app.js`)
- Dashboard logic → Daily counters: reads and writes (evidence: `dashboard/app.js`)
- Dashboard logic → Undo history: reads and writes (evidence: `dashboard/app.js`)
