# moonsumhi/jira-weekly-schedule-reporter architecture

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

- Interactive diagram: https://gitdiagram.com/moonsumhi/jira-weekly-schedule-reporter
- Repository: https://github.com/moonsumhi/jira-weekly-schedule-reporter

## Overview

Jira Schedule Reporter is a full-stack operations application for Jira work reporting, server-asset and inspection management, project work, service requests, and on-call schedules. The principal flow is a user working through the Vue/Quasar interface, reaching FastAPI routes, which apply domain logic and persist data in MongoDB. Authentication and inspection have visible route-to-internal-layer evidence; other major feature areas are represented from the repository tree and README, but their internal call paths were not sampled, so those links are omitted. The README documents Jira integration, but sampled code does not establish its runtime call path.

Main entry points: [`app/db/mongo.py`](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/db/mongo.py) (MongoDB manager), [`app/main.py`](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/main.py) (FastAPI application), [`app/routers/auth.py`](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/routers/auth.py) (Authentication routes), [`app/routers/inspection_tasks.py`](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/routers/inspection_tasks.py) (Inspection tasks)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["User interface"]
  node_ui["Vue Quasar app<br/>[App.vue]"]
end

subgraph group_access["Application access"]
  node_api["FastAPI application<br/>[main.py]"]
  node_auth["Authentication routes<br/>[auth.py]"]
  node_security["JWT security<br/>[security.py]"]
  node_user_model["User schemas<br/>[user.py]"]
end

subgraph group_operations["Assets and inspections"]
  node_asset_routes["Asset routes<br/>[assets.py]"]
  node_asset_catalog["Asset catalog<br/>[asset_catalog.py]"]
  node_asset_service["Asset operations<br/>[assets_service.py]"]
  node_rack_routes["Rack routes<br/>[racks.py]"]
  node_rack_service["Rack placement"]
  node_inspection_routes["Inspection tasks"]
  node_inspection_service["Inspection logic"]
  node_plan_tasks["Inspection plan tasks"]
  node_work_plans["Inspection work plans"]
  node_monthly_reports["Inspection reports"]
end

subgraph group_work["Work management"]
  node_pm_routes["Project management"]
  node_sr_routes["Service requests"]
  node_job_routes["Work documents<br/>[form_entries.py]"]
  node_watch_routes["On-call schedules<br/>[watch.py]"]
end

subgraph group_platform["Persistence and integrations"]
  node_mongo_manager[("MongoDB manager<br/>[mongo.py]")]
  node_startup["Database startup<br/>[startup.py]"]
  node_jira_client["Jira client<br/>[client.py]"]
  node_jira_service["Jira workflows<br/>[jira_poller.py]"]
end

node_user(("Staff user"))
node_jira["Jira"]

node_user -->|"uses"| node_ui
node_ui -->|"calls API"| node_api
node_api -->|"registers routes"| node_auth
node_api -->|"registers routes"| node_inspection_routes
node_auth -->|"reads and writes"| node_mongo_manager
node_auth -->|"uses tokens"| node_security
node_auth -->|"returns schema"| node_user_model
node_startup -->|"initializes data"| node_mongo_manager
node_api -->|"runs startup"| node_startup
node_inspection_routes -->|"delegates tasks"| node_inspection_service
node_inspection_routes -->|"registers plans"| node_plan_tasks
node_inspection_routes -->|"manages links"| node_work_plans
node_inspection_service -->|"reads and writes"| node_mongo_manager
node_inspection_service -->|"selects documents"| node_work_plans
node_plan_tasks -->|"uses logic"| node_inspection_service
node_plan_tasks -->|"uses plans"| node_work_plans
node_asset_service -->|"uses placement"| node_rack_service
node_rack_service -->|"reads placements"| node_mongo_manager
node_asset_catalog -->|"reads assets"| node_mongo_manager
node_pm_routes -.->|"persists work"| node_mongo_manager
node_sr_routes -.->|"persists requests"| node_mongo_manager
node_job_routes -.->|"persists documents"| node_mongo_manager
node_watch_routes -.->|"persists schedules"| node_mongo_manager
node_jira_service -.->|"uses client"| node_jira_client
node_jira_client -.->|"queries Jira"| node_jira

click node_ui "https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/frontend/optool/src/App.vue"
click node_api "https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/main.py"
click node_auth "https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/routers/auth.py"
click node_security "https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/core/security.py"
click node_user_model "https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/models/user.py"
click node_mongo_manager "https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/db/mongo.py"
click node_startup "https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/db/startup.py"
click node_asset_routes "https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/routers/assets.py"
click node_asset_catalog "https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/services/asset_catalog.py"
click node_asset_service "https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/services/assets_service.py"
click node_rack_routes "https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/routers/racks.py"
click node_rack_service "https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/services/rack_placement_service.py"
click node_inspection_routes "https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/routers/inspection_tasks.py"
click node_inspection_service "https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/services/inspection_service.py"
click node_plan_tasks "https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/services/inspection_plan_tasks.py"
click node_work_plans "https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/services/inspection_work_plans.py"
click node_monthly_reports "https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/services/monthly_inspection_reports.py"
click node_pm_routes "https://github.com/moonsumhi/jira-weekly-schedule-reporter/tree/main/app/routers/pm"
click node_sr_routes "https://github.com/moonsumhi/jira-weekly-schedule-reporter/tree/main/app/routers/sr"
click node_job_routes "https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/routers/form_entries.py"
click node_watch_routes "https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/routers/watch.py"
click node_jira_client "https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/jira/client.py"
click node_jira_service "https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/services/jira_poller.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_ui,node_user toneBlue
class node_api,node_auth,node_security,node_user_model toneAmber
class node_asset_routes,node_asset_catalog,node_asset_service,node_rack_routes,node_rack_service,node_inspection_routes,node_inspection_service,node_plan_tasks,node_work_plans,node_monthly_reports toneMint
class node_pm_routes,node_sr_routes,node_job_routes,node_watch_routes toneRose
class node_mongo_manager,node_startup,node_jira_client,node_jira_service,node_jira toneIndigo
```

## Components

### User interface

- [Vue Quasar app](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/frontend/optool/src/App.vue): `frontend/optool/src/App.vue`

### Application access

- [FastAPI application](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/main.py): `app/main.py`
- [Authentication routes](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/routers/auth.py): `app/routers/auth.py`
- [JWT security](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/core/security.py): `app/core/security.py`
- [User schemas](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/models/user.py): `app/models/user.py`

### Assets and inspections

- [Asset routes](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/routers/assets.py): `app/routers/assets.py`
- [Asset catalog](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/services/asset_catalog.py): `app/services/asset_catalog.py`
- [Asset operations](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/services/assets_service.py): `app/services/assets_service.py`
- [Rack routes](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/routers/racks.py): `app/routers/racks.py`
- [Rack placement](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/services/rack_placement_service.py): `app/services/rack_placement_service.py`
- [Inspection tasks](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/routers/inspection_tasks.py): `app/routers/inspection_tasks.py`
- [Inspection logic](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/services/inspection_service.py): `app/services/inspection_service.py`
- [Inspection plan tasks](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/services/inspection_plan_tasks.py): `app/services/inspection_plan_tasks.py`
- [Inspection work plans](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/services/inspection_work_plans.py): `app/services/inspection_work_plans.py`
- [Inspection reports](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/services/monthly_inspection_reports.py): `app/services/monthly_inspection_reports.py`

### Work management

- [Project management](https://github.com/moonsumhi/jira-weekly-schedule-reporter/tree/main/app/routers/pm): `app/routers/pm`
- [Service requests](https://github.com/moonsumhi/jira-weekly-schedule-reporter/tree/main/app/routers/sr): `app/routers/sr`
- [Work documents](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/routers/form_entries.py): `app/routers/form_entries.py`
- [On-call schedules](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/routers/watch.py): `app/routers/watch.py`

### Persistence and integrations

- [MongoDB manager](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/db/mongo.py): `app/db/mongo.py`
- [Database startup](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/db/startup.py): `app/db/startup.py`
- [Jira client](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/jira/client.py): `app/jira/client.py`
- [Jira workflows](https://github.com/moonsumhi/jira-weekly-schedule-reporter/blob/main/app/services/jira_poller.py): `app/services/jira_poller.py`

### Other components

- **Staff user**
- **Jira**

## Connections

- Staff user → Vue Quasar app: uses
- Vue Quasar app → FastAPI application: calls API
- FastAPI application → Authentication routes: registers routes (evidence: `app/main.py`)
- FastAPI application → Inspection tasks: registers routes (evidence: `app/main.py`)
- Authentication routes → MongoDB manager: reads and writes (evidence: `app/routers/auth.py`)
- Authentication routes → JWT security: uses tokens (evidence: `app/routers/auth.py`)
- Authentication routes → User schemas: returns schema (evidence: `app/routers/auth.py`)
- Database startup → MongoDB manager: initializes data (evidence: `app/db/startup.py`)
- FastAPI application → Database startup: runs startup (evidence: `app/main.py`)
- Inspection tasks → Inspection logic: delegates tasks (evidence: `app/routers/inspection_tasks.py`)
- Inspection tasks → Inspection plan tasks: registers plans (evidence: `app/routers/inspection_tasks.py`)
- Inspection tasks → Inspection work plans: manages links (evidence: `app/routers/inspection_tasks.py`)
- Inspection logic → MongoDB manager: reads and writes (evidence: `app/services/inspection_service.py`)
- Inspection logic → Inspection work plans: selects documents (evidence: `app/services/inspection_service.py`)
- Inspection plan tasks → Inspection logic: uses logic (evidence: `app/services/inspection_plan_tasks.py`)
- Inspection plan tasks → Inspection work plans: uses plans (evidence: `app/services/inspection_plan_tasks.py`)
- Asset operations → Rack placement: uses placement (evidence: `app/services/assets_service.py`)
- Rack placement → MongoDB manager: reads placements (evidence: `app/services/rack_service.py`)
- Asset catalog → MongoDB manager: reads assets (evidence: `app/services/asset_catalog.py`)
- Project management → MongoDB manager: persists work
- Service requests → MongoDB manager: persists requests
- Work documents → MongoDB manager: persists documents
- On-call schedules → MongoDB manager: persists schedules
- Jira workflows → Jira client: uses client
- Jira client → Jira: queries Jira
