# anttikurittu/incident-report-template architecture

> Architecture diagram of the GitHub repository anttikurittu/incident-report-template, 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/anttikurittu/incident-report-template
- Repository: https://github.com/anttikurittu/incident-report-template

## Overview

This repository is an incident investigation report template, with a browser viewer for assembling and presenting Markdown reports. The principal workflow is to write the numbered report sections, then load the Markdown files in the viewer to navigate, review, and print the report. The template also supports investigation diagrams and attachments. Report sections are represented as distinct stages based on the repository structure; their internal links are not shown because the sampled evidence does not establish runtime relationships between them.

Main entry points: [`viewer/src/App.tsx`](https://github.com/anttikurittu/incident-report-template/blob/main/viewer/src/App.tsx) (File loading screen), [`Report`](https://github.com/anttikurittu/incident-report-template/tree/main/Report) (Markdown report files), [`viewer/src/main.tsx`](https://github.com/anttikurittu/incident-report-template/blob/main/viewer/src/main.tsx) (Browser entry), [`Report/2 Executive summary.md`](https://github.com/anttikurittu/incident-report-template/blob/main/Report/2%20Executive%20summary.md) (Executive summary)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_report["Report template"]
  node_exec["Executive summary"]
  node_impact["Impact and goals"]
  node_limitations["Investigation limits"]
  node_targets["Investigation targets"]
  node_timeline["Event timeline"]
  node_investigation["Investigation findings<br/>[4 Investigation.md]"]
  node_conclusions["Conclusions"]
  node_attachments_section["Attachment index<br/>[6 Attachments.md]"]
end

subgraph group_evidence["Supporting material"]
  node_attachments["Incident attachments"]
  node_diagrams["Investigation diagrams"]
end

subgraph group_viewer["Browser viewer"]
  node_files["Markdown report files"]
  node_app["File loading screen<br/>[App.tsx]"]
  node_viewer_ui["Report viewer<br/>[ReportViewer.tsx]"]
  node_entry["Browser entry<br/>[main.tsx]"]
end

node_author(("Report author"))

node_author -->|"writes report"| node_exec
node_author -->|"documents impact"| node_impact
node_author -->|"documents limits"| node_limitations
node_author -->|"sets goals"| node_targets
node_author -->|"records events"| node_timeline
node_author -->|"writes findings"| node_investigation
node_author -->|"writes conclusions"| node_conclusions
node_author -->|"lists attachments"| node_attachments_section
node_author -->|"adds materials"| node_attachments
node_author -->|"creates diagrams"| node_diagrams
node_author -->|"selects files"| node_app
node_files -->|"loads Markdown"| node_app
node_app -->|"renders viewer"| node_viewer_ui
node_entry -->|"mounts app"| node_app

click node_exec "https://github.com/anttikurittu/incident-report-template/blob/main/Report/2%20Executive%20summary.md"
click node_impact "https://github.com/anttikurittu/incident-report-template/blob/main/Report/2.1%20Business%20Impact%20Analysis.md"
click node_limitations "https://github.com/anttikurittu/incident-report-template/blob/main/Report/2.2%20Investigation%20limitations.md"
click node_targets "https://github.com/anttikurittu/incident-report-template/blob/main/Report/2.3%20Investigation%20goals%20and%20targets.md"
click node_timeline "https://github.com/anttikurittu/incident-report-template/blob/main/Report/3.1%20Incident%20timeline.md"
click node_investigation "https://github.com/anttikurittu/incident-report-template/blob/main/Report/4%20Investigation.md"
click node_conclusions "https://github.com/anttikurittu/incident-report-template/blob/main/Report/5%20Conclusions%20and%20recommendations.md"
click node_attachments_section "https://github.com/anttikurittu/incident-report-template/blob/main/Report/6%20Attachments.md"
click node_attachments "https://github.com/anttikurittu/incident-report-template/tree/main/Attachments"
click node_diagrams "https://github.com/anttikurittu/incident-report-template/tree/main/Diagrams"
click node_files "https://github.com/anttikurittu/incident-report-template/tree/main/Report"
click node_app "https://github.com/anttikurittu/incident-report-template/blob/main/viewer/src/App.tsx"
click node_viewer_ui "https://github.com/anttikurittu/incident-report-template/blob/main/viewer/src/ReportViewer.tsx"
click node_entry "https://github.com/anttikurittu/incident-report-template/blob/main/viewer/src/main.tsx"

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_exec,node_impact,node_limitations,node_targets,node_timeline,node_investigation,node_conclusions,node_attachments_section toneBlue
class node_attachments,node_diagrams toneAmber
class node_files,node_app,node_viewer_ui,node_entry toneMint
class node_author toneIndigo
```

## Components

### Report template

- [Executive summary](https://github.com/anttikurittu/incident-report-template/blob/main/Report/2%20Executive%20summary.md): `Report/2 Executive summary.md`
- [Impact and goals](https://github.com/anttikurittu/incident-report-template/blob/main/Report/2.1%20Business%20Impact%20Analysis.md): `Report/2.1 Business Impact Analysis.md`
- [Investigation limits](https://github.com/anttikurittu/incident-report-template/blob/main/Report/2.2%20Investigation%20limitations.md): `Report/2.2 Investigation limitations.md`
- [Investigation targets](https://github.com/anttikurittu/incident-report-template/blob/main/Report/2.3%20Investigation%20goals%20and%20targets.md): `Report/2.3 Investigation goals and targets.md`
- [Event timeline](https://github.com/anttikurittu/incident-report-template/blob/main/Report/3.1%20Incident%20timeline.md): `Report/3.1 Incident timeline.md`
- [Investigation findings](https://github.com/anttikurittu/incident-report-template/blob/main/Report/4%20Investigation.md): `Report/4 Investigation.md`
- [Conclusions](https://github.com/anttikurittu/incident-report-template/blob/main/Report/5%20Conclusions%20and%20recommendations.md): `Report/5 Conclusions and recommendations.md`
- [Attachment index](https://github.com/anttikurittu/incident-report-template/blob/main/Report/6%20Attachments.md): `Report/6 Attachments.md`

### Supporting material

- [Incident attachments](https://github.com/anttikurittu/incident-report-template/tree/main/Attachments): `Attachments`
- [Investigation diagrams](https://github.com/anttikurittu/incident-report-template/tree/main/Diagrams): `Diagrams`

### Browser viewer

- [Markdown report files](https://github.com/anttikurittu/incident-report-template/tree/main/Report): `Report`
- [File loading screen](https://github.com/anttikurittu/incident-report-template/blob/main/viewer/src/App.tsx): `viewer/src/App.tsx`
- [Report viewer](https://github.com/anttikurittu/incident-report-template/blob/main/viewer/src/ReportViewer.tsx): `viewer/src/ReportViewer.tsx`
- [Browser entry](https://github.com/anttikurittu/incident-report-template/blob/main/viewer/src/main.tsx): `viewer/src/main.tsx`

### Other components

- **Report author**

## Connections

- Report author → Executive summary: writes report (evidence: `README.md`)
- Report author → Impact and goals: documents impact (evidence: `README.md`)
- Report author → Investigation limits: documents limits (evidence: `README.md`)
- Report author → Investigation targets: sets goals (evidence: `README.md`)
- Report author → Event timeline: records events (evidence: `README.md`)
- Report author → Investigation findings: writes findings (evidence: `README.md`)
- Report author → Conclusions: writes conclusions (evidence: `README.md`)
- Report author → Attachment index: lists attachments (evidence: `README.md`)
- Report author → Incident attachments: adds materials (evidence: `README.md`)
- Report author → Investigation diagrams: creates diagrams (evidence: `README.md`)
- Report author → File loading screen: selects files (evidence: `README.md`)
- Markdown report files → File loading screen: loads Markdown (evidence: `viewer/src/App.tsx`)
- File loading screen → Report viewer: renders viewer (evidence: `viewer/src/App.tsx`)
- Browser entry → File loading screen: mounts app (evidence: `viewer/src/main.tsx`)
