# emmanuellumai/army-log architecture

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

- Interactive diagram: https://gitdiagram.com/emmanuellumai/army-log
- Repository: https://github.com/emmanuellumai/army-log

## Overview

Accountability Mirror is a small Streamlit daily-report app. A user unlocks access, completes a field report, and submits it to Supabase’s `daily_logs` table. Authentication and report entry are implemented in one file; the graph separates these responsibilities for clarity. Credentials come from environment variables or Streamlit secrets. The repository is only one source file, so no further internal layers or documented capabilities are evident.

Main entry points: [`app.py`](https://github.com/emmanuellumai/army-log/blob/main/app.py) (Password gate)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access"]
  node_auth["Password gate<br/>[app.py]"]
end

subgraph group_reporting["Daily reporting"]
  node_report["Report form and submission<br/>[app.py]"]
  node_supabase[("Supabase daily_logs")]
end

node_user(("User"))
node_credentials[("App credentials")]

node_user -->|"enters code"| node_auth
node_credentials -->|"provides password"| node_auth
node_auth -->|"unlocks form"| node_report
node_user -->|"submits report"| node_report
node_report -->|"inserts log"| node_supabase
node_credentials -->|"configures connection"| node_supabase

click node_auth "https://github.com/emmanuellumai/army-log/blob/main/app.py"
click node_report "https://github.com/emmanuellumai/army-log/blob/main/app.py"

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_auth,node_user toneBlue
class node_report,node_supabase,node_credentials toneAmber
```

## Components

### Access

- [Password gate](https://github.com/emmanuellumai/army-log/blob/main/app.py): `app.py`

### Daily reporting

- [Report form and submission](https://github.com/emmanuellumai/army-log/blob/main/app.py): `app.py`
- **Supabase daily_logs**

### Other components

- **User**
- **App credentials**

## Connections

- User → Password gate: enters code (evidence: `app.py`)
- App credentials → Password gate: provides password (evidence: `app.py`)
- Password gate → Report form and submission: unlocks form (evidence: `app.py`)
- User → Report form and submission: submits report (evidence: `app.py`)
- Report form and submission → Supabase daily_logs: inserts log (evidence: `app.py`)
- App credentials → Supabase daily_logs: configures connection
