# jjhelloo/rf_tracker_frontend architecture

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

- Interactive diagram: https://gitdiagram.com/jjhelloo/rf_tracker_frontend
- Repository: https://github.com/jjhelloo/rf_tracker_frontend

## Overview

This is a React web interface for tracking RF devices and managing web and app users. The main workflow is login, navigate to the device map or user-management screen, then search for a device or submit a user form. The map loads device data and fetches a selected device’s location; user forms submit additions to the backend. The excerpts show these API calls, but not backend implementation or responses beyond the UI’s handling. Toast is included as a core component, though the sampled user-management code does not render it.

Main entry points: [`src/App.js`](https://github.com/jjhelloo/rf_tracker_frontend/blob/main/src/App.js) (App and Dashboard), [`src/components/map_view.js`](https://github.com/jjhelloo/rf_tracker_frontend/blob/main/src/components/map_view.js) (Device Map and Search), [`src/components/user_management.js`](https://github.com/jjhelloo/rf_tracker_frontend/blob/main/src/components/user_management.js) (User Management), [`src/components/login_page.js`](https://github.com/jjhelloo/rf_tracker_frontend/blob/main/src/components/login_page.js) (Web Login)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Navigation and Access"]
  node_app["App and Dashboard<br/>[App.js]"]
  node_login["Web Login<br/>[login_page.js]"]
end

subgraph group_devices["RF Device Tracking"]
  node_map_view["Device Map and Search<br/>[map_view.js]"]
end

subgraph group_users["User Management"]
  node_user_management["User Management<br/>[user_management.js]"]
  node_add_web_user["Add Web User<br/>[AddWebUser.js]"]
  node_add_app_user["Add App User<br/>[AddAppUser.js]"]
  node_toast["Toast Component<br/>[Toast.js]"]
end

node_visitor(("Web User"))
node_device_api["Device Backend API"]
node_auth_api["Authentication API"]
node_user_api["User Backend API"]
node_map_tiles["OpenStreetMap Tiles"]

node_visitor -->|"uses"| node_app
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_map_view
node_app -->|"routes to"| node_user_management
node_login -->|"submits credentials"| node_auth_api
node_map_view -->|"fetches device data"| node_device_api
node_map_view -->|"fetches location"| node_device_api
node_map_view -->|"loads tiles"| node_map_tiles
node_user_management -->|"renders form"| node_add_web_user
node_user_management -->|"renders form"| node_add_app_user
node_add_web_user -->|"submits user"| node_user_api
node_add_app_user -->|"submits user"| node_user_api

click node_app "https://github.com/jjhelloo/rf_tracker_frontend/blob/main/src/App.js"
click node_login "https://github.com/jjhelloo/rf_tracker_frontend/blob/main/src/components/login_page.js"
click node_user_management "https://github.com/jjhelloo/rf_tracker_frontend/blob/main/src/components/user_management.js"
click node_add_web_user "https://github.com/jjhelloo/rf_tracker_frontend/blob/main/src/components/AddWebUser.js"
click node_add_app_user "https://github.com/jjhelloo/rf_tracker_frontend/blob/main/src/components/AddAppUser.js"
click node_toast "https://github.com/jjhelloo/rf_tracker_frontend/blob/main/src/components/Toast.js"
click node_map_view "https://github.com/jjhelloo/rf_tracker_frontend/blob/main/src/components/map_view.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_app,node_login,node_visitor,node_user_api toneBlue
class node_map_view toneAmber
class node_user_management,node_add_web_user,node_add_app_user,node_toast,node_device_api,node_auth_api toneMint
class node_map_tiles toneIndigo
```

## Components

### Navigation and Access

- [App and Dashboard](https://github.com/jjhelloo/rf_tracker_frontend/blob/main/src/App.js): `src/App.js`
- [Web Login](https://github.com/jjhelloo/rf_tracker_frontend/blob/main/src/components/login_page.js): `src/components/login_page.js`

### RF Device Tracking

- [Device Map and Search](https://github.com/jjhelloo/rf_tracker_frontend/blob/main/src/components/map_view.js): `src/components/map_view.js`

### User Management

- [User Management](https://github.com/jjhelloo/rf_tracker_frontend/blob/main/src/components/user_management.js): `src/components/user_management.js`
- [Add Web User](https://github.com/jjhelloo/rf_tracker_frontend/blob/main/src/components/AddWebUser.js): `src/components/AddWebUser.js`
- [Add App User](https://github.com/jjhelloo/rf_tracker_frontend/blob/main/src/components/AddAppUser.js): `src/components/AddAppUser.js`
- [Toast Component](https://github.com/jjhelloo/rf_tracker_frontend/blob/main/src/components/Toast.js): `src/components/Toast.js`

### Other components

- **Web User**
- **Device Backend API**
- **Authentication API**
- **User Backend API**
- **OpenStreetMap Tiles**

## Connections

- Web User → App and Dashboard: uses (evidence: `README.md`)
- App and Dashboard → Web Login: routes to (evidence: `src/App.js`)
- App and Dashboard → Device Map and Search: routes to (evidence: `src/App.js`)
- App and Dashboard → User Management: routes to (evidence: `src/App.js`)
- Web Login → Authentication API: submits credentials (evidence: `src/components/login_page.js`)
- Device Map and Search → Device Backend API: fetches device data (evidence: `src/components/map_view.js`)
- Device Map and Search → Device Backend API: fetches location (evidence: `src/components/map_view.js`)
- Device Map and Search → OpenStreetMap Tiles: loads tiles (evidence: `src/components/map_view.js`)
- User Management → Add Web User: renders form (evidence: `src/components/user_management.js`)
- User Management → Add App User: renders form (evidence: `src/components/user_management.js`)
- Add Web User → User Backend API: submits user (evidence: `src/components/AddWebUser.js`)
- Add App User → User Backend API: submits user (evidence: `src/components/AddAppUser.js`)
