# kouroshie/texas-uic-tracker architecture

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

- Interactive diagram: https://gitdiagram.com/kouroshie/texas-uic-tracker
- Repository: https://github.com/kouroshie/texas-uic-tracker

## Overview

Texas UIC Tracker is a Streamlit application for exploring public Texas injection-well records and screening for possible compliance concerns. Users enter through the app’s navigation, then view district summaries, screening results, operator-level counts, or an individual well’s permit and reporting history; tables can be filtered and downloaded. The app loads a published data bundle, while the repository also contains parsers and source-download helpers for producing that data. The excerpts show the app/data and shared UI paths; some page-to-module relationships are supported only by the source index or README.

Main entry points: [`uicpublic/data.py`](https://github.com/kouroshie/texas-uic-tracker/blob/main/uicpublic/data.py) (Data bundle), [`uicpublic/ui.py`](https://github.com/kouroshie/texas-uic-tracker/blob/main/uicpublic/ui.py) (Shared UI), [`app.py`](https://github.com/kouroshie/texas-uic-tracker/blob/main/app.py) (App entry), [`uicpublic/checks.py`](https://github.com/kouroshie/texas-uic-tracker/blob/main/uicpublic/checks.py) (Screening checks)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_app_entry["App entry<br/>[app.py]"]
  node_shared_ui["Shared UI<br/>[ui.py]"]
  node_help["Help and coverage<br/>[help.py]"]
end

subgraph group_data["Data access"]
  node_data_store[("Data bundle<br/>[data.py]")]
end

subgraph group_screening["Screening logic"]
  node_checks["Screening checks<br/>[checks.py]"]
  node_code_tables["RRC code tables<br/>[codes.py]"]
end

subgraph group_pages["User experiences"]
  node_overview["District overview<br/>[overview.py]"]
  node_checks_page["Checks page<br/>[checks_page.py]"]
  node_well_page["Well record<br/>[well.py]"]
  node_operators_page["Operator summaries<br/>[operators.py]"]
  node_about_page["About and methods<br/>[about.py]"]
end

subgraph group_ingest["Public data preparation"]
  node_sources["Source downloads<br/>[sources.py]"]
  node_uic_parser["UIC file parser<br/>[uif700a.py]"]
  node_county_codes["County mappings<br/>[counties.py]"]
end

node_user(("App user"))
node_release[("Published data release")]
node_rrc[("RRC public files")]
node_texnet[("TexNet service")]

node_user -->|"opens app"| node_app_entry
node_app_entry -->|"checks and downloads"| node_data_store
node_data_store -->|"downloads bundle"| node_release
node_app_entry -->|"routes navigation"| node_overview
node_app_entry -->|"routes navigation"| node_checks_page
node_app_entry -->|"routes navigation"| node_well_page
node_app_entry -->|"routes navigation"| node_operators_page
node_app_entry -->|"routes navigation"| node_about_page
node_overview -->|"uses shared UI"| node_shared_ui
node_overview -->|"uses checks"| node_checks
node_overview -->|"uses data"| node_data_store
node_checks_page -->|"uses shared UI"| node_shared_ui
node_checks_page -->|"uses checks"| node_checks
node_checks_page -->|"uses data"| node_data_store
node_well_page -->|"loads tables"| node_shared_ui
node_well_page -->|"uses checks"| node_checks
node_well_page -->|"uses data"| node_data_store
node_well_page -->|"labels records"| node_code_tables
node_operators_page -->|"uses shared UI"| node_shared_ui
node_operators_page -->|"uses checks"| node_checks
node_about_page -->|"uses shared UI"| node_shared_ui
node_about_page -->|"lists checks"| node_checks
node_about_page -->|"reads metadata"| node_data_store
node_shared_ui -->|"loads tables"| node_data_store
node_shared_ui -->|"computes checks"| node_checks
node_shared_ui -->|"uses tooltips"| node_help
node_checks -->|"labels findings"| node_code_tables
node_about_page -->|"shows coverage"| node_help
node_sources -->|"downloads files"| node_rrc
node_sources -->|"queries records"| node_texnet
node_uic_parser -->|"uses mappings"| node_county_codes
node_sources -.->|"prepares inputs"| node_data_store
node_uic_parser -.->|"parses source data"| node_data_store

click node_app_entry "https://github.com/kouroshie/texas-uic-tracker/blob/main/app.py"
click node_data_store "https://github.com/kouroshie/texas-uic-tracker/blob/main/uicpublic/data.py"
click node_shared_ui "https://github.com/kouroshie/texas-uic-tracker/blob/main/uicpublic/ui.py"
click node_help "https://github.com/kouroshie/texas-uic-tracker/blob/main/uicpublic/help.py"
click node_checks "https://github.com/kouroshie/texas-uic-tracker/blob/main/uicpublic/checks.py"
click node_code_tables "https://github.com/kouroshie/texas-uic-tracker/blob/main/uicpublic/codes.py"
click node_overview "https://github.com/kouroshie/texas-uic-tracker/blob/main/views/overview.py"
click node_checks_page "https://github.com/kouroshie/texas-uic-tracker/blob/main/views/checks_page.py"
click node_well_page "https://github.com/kouroshie/texas-uic-tracker/blob/main/views/well.py"
click node_operators_page "https://github.com/kouroshie/texas-uic-tracker/blob/main/views/operators.py"
click node_about_page "https://github.com/kouroshie/texas-uic-tracker/blob/main/views/about.py"
click node_sources "https://github.com/kouroshie/texas-uic-tracker/blob/main/uicpublic/sources.py"
click node_uic_parser "https://github.com/kouroshie/texas-uic-tracker/blob/main/uicpublic/uif700a.py"
click node_county_codes "https://github.com/kouroshie/texas-uic-tracker/blob/main/uicpublic/counties.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_app_entry,node_shared_ui,node_help,node_user toneBlue
class node_data_store,node_release,node_rrc,node_texnet toneAmber
class node_checks,node_code_tables toneMint
class node_overview,node_checks_page,node_well_page,node_operators_page,node_about_page toneRose
class node_sources,node_uic_parser,node_county_codes toneIndigo
```

## Components

### Application

- [App entry](https://github.com/kouroshie/texas-uic-tracker/blob/main/app.py): `app.py`
- [Shared UI](https://github.com/kouroshie/texas-uic-tracker/blob/main/uicpublic/ui.py): `uicpublic/ui.py`
- [Help and coverage](https://github.com/kouroshie/texas-uic-tracker/blob/main/uicpublic/help.py): `uicpublic/help.py`

### Data access

- [Data bundle](https://github.com/kouroshie/texas-uic-tracker/blob/main/uicpublic/data.py): `uicpublic/data.py`

### Screening logic

- [Screening checks](https://github.com/kouroshie/texas-uic-tracker/blob/main/uicpublic/checks.py): `uicpublic/checks.py`
- [RRC code tables](https://github.com/kouroshie/texas-uic-tracker/blob/main/uicpublic/codes.py): `uicpublic/codes.py`

### User experiences

- [District overview](https://github.com/kouroshie/texas-uic-tracker/blob/main/views/overview.py): `views/overview.py`
- [Checks page](https://github.com/kouroshie/texas-uic-tracker/blob/main/views/checks_page.py): `views/checks_page.py`
- [Well record](https://github.com/kouroshie/texas-uic-tracker/blob/main/views/well.py): `views/well.py`
- [Operator summaries](https://github.com/kouroshie/texas-uic-tracker/blob/main/views/operators.py): `views/operators.py`
- [About and methods](https://github.com/kouroshie/texas-uic-tracker/blob/main/views/about.py): `views/about.py`

### Public data preparation

- [Source downloads](https://github.com/kouroshie/texas-uic-tracker/blob/main/uicpublic/sources.py): `uicpublic/sources.py`
- [UIC file parser](https://github.com/kouroshie/texas-uic-tracker/blob/main/uicpublic/uif700a.py): `uicpublic/uif700a.py`
- [County mappings](https://github.com/kouroshie/texas-uic-tracker/blob/main/uicpublic/counties.py): `uicpublic/counties.py`

### Other components

- **App user**
- **Published data release**
- **RRC public files**
- **TexNet service**

## Connections

- App user → App entry: opens app (evidence: `README.md`)
- App entry → Data bundle: checks and downloads (evidence: `app.py`)
- Data bundle → Published data release: downloads bundle (evidence: `uicpublic/data.py`)
- App entry → District overview: routes navigation (evidence: `app.py`)
- App entry → Checks page: routes navigation (evidence: `app.py`)
- App entry → Well record: routes navigation (evidence: `app.py`)
- App entry → Operator summaries: routes navigation (evidence: `app.py`)
- App entry → About and methods: routes navigation (evidence: `app.py`)
- District overview → Shared UI: uses shared UI (evidence: `views/overview.py`)
- District overview → Screening checks: uses checks (evidence: `views/overview.py`)
- District overview → Data bundle: uses data (evidence: `views/overview.py`)
- Checks page → Shared UI: uses shared UI (evidence: `views/checks_page.py`)
- Checks page → Screening checks: uses checks (evidence: `views/checks_page.py`)
- Checks page → Data bundle: uses data (evidence: `views/checks_page.py`)
- Well record → Shared UI: loads tables (evidence: `views/well.py`)
- Well record → Screening checks: uses checks (evidence: `views/well.py`)
- Well record → Data bundle: uses data (evidence: `views/well.py`)
- Well record → RRC code tables: labels records (evidence: `views/well.py`)
- Operator summaries → Shared UI: uses shared UI (evidence: `views/operators.py`)
- Operator summaries → Screening checks: uses checks (evidence: `views/operators.py`)
- About and methods → Shared UI: uses shared UI (evidence: `views/about.py`)
- About and methods → Screening checks: lists checks (evidence: `views/about.py`)
- About and methods → Data bundle: reads metadata (evidence: `views/about.py`)
- Shared UI → Data bundle: loads tables (evidence: `uicpublic/ui.py`)
- Shared UI → Screening checks: computes checks (evidence: `uicpublic/ui.py`)
- Shared UI → Help and coverage: uses tooltips (evidence: `uicpublic/ui.py`)
- Screening checks → RRC code tables: labels findings (evidence: `uicpublic/checks.py`)
- About and methods → Help and coverage: shows coverage (evidence: `views/about.py`)
- Source downloads → RRC public files: downloads files (evidence: `uicpublic/sources.py`)
- Source downloads → TexNet service: queries records (evidence: `uicpublic/sources.py`)
- UIC file parser → County mappings: uses mappings (evidence: `uicpublic/uif700a.py`)
- Source downloads → Data bundle: prepares inputs
- UIC file parser → Data bundle: parses source data
