# bear7066/dm-final architecture

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

- Interactive diagram: https://gitdiagram.com/bear7066/dm-final
- Repository: https://github.com/bear7066/dm-final

## Overview

This repository contains a Typst-authored data-mining project proposal and a separate analysis script that checks weekly order-volume variation in Online Retail II data. The proposal workflow is source to compiled PDF; the README documents that relationship. The analysis script reads the supplied workbook, filters and summarizes invoices, then writes weekly counts. Its relationship to the proposal is not established. The slide-kit files are included as proposal-supporting source, but their use by the proposal cannot be confirmed from the available excerpts.

Main entry points: [`analysis/weekly_orders.py`](https://github.com/bear7066/dm-final/blob/main/analysis/weekly_orders.py) (Weekly order analysis), [`final-proposal.typ`](https://github.com/bear7066/dm-final/blob/main/final-proposal.typ) (Proposal source), [`final-proposal.pdf`](https://github.com/bear7066/dm-final/blob/main/final-proposal.pdf) (Proposal PDF), [`analysis/out/weekly_orders.csv`](https://github.com/bear7066/dm-final/blob/main/analysis/out/weekly_orders.csv) (Weekly order counts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_proposal["Proposal"]
  node_proposal_source["Proposal source<br/>[final-proposal.typ]"]
  node_slide_core["Slide core<br/>[core.typ]"]
  node_slide_nav["Slide navigation<br/>[nav.typ]"]
  node_slide_patterns["Slide patterns<br/>[patterns.typ]"]
  node_slide_themes["Slide themes<br/>[themes.typ]"]
  node_proposal_pdf["Proposal PDF<br/>[final-proposal.pdf]"]
end

subgraph group_analysis["Order Analysis"]
  node_weekly_analysis["Weekly order analysis<br/>[weekly_orders.py]"]
  node_weekly_csv["Weekly order counts<br/>[weekly_orders.csv]"]
end

node_author(("Proposal author"))
node_analyst(("Data analyst"))
node_retail_data["Retail workbook"]

node_author -->|"authors"| node_proposal_source
node_proposal_source -->|"compiles to"| node_proposal_pdf
node_analyst -->|"runs"| node_weekly_analysis
node_retail_data -->|"reads workbook"| node_weekly_analysis
node_weekly_analysis -->|"writes counts"| node_weekly_csv

click node_proposal_source "https://github.com/bear7066/dm-final/blob/main/final-proposal.typ"
click node_slide_core "https://github.com/bear7066/dm-final/blob/main/slide-kit/core.typ"
click node_slide_nav "https://github.com/bear7066/dm-final/blob/main/slide-kit/nav.typ"
click node_slide_patterns "https://github.com/bear7066/dm-final/blob/main/slide-kit/patterns.typ"
click node_slide_themes "https://github.com/bear7066/dm-final/blob/main/slide-kit/themes.typ"
click node_proposal_pdf "https://github.com/bear7066/dm-final/blob/main/final-proposal.pdf"
click node_weekly_analysis "https://github.com/bear7066/dm-final/blob/main/analysis/weekly_orders.py"
click node_weekly_csv "https://github.com/bear7066/dm-final/blob/main/analysis/out/weekly_orders.csv"

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_proposal_source,node_slide_core,node_slide_nav,node_slide_patterns,node_slide_themes,node_proposal_pdf toneBlue
class node_weekly_analysis,node_weekly_csv toneAmber
class node_author,node_analyst,node_retail_data toneIndigo
```

## Components

### Proposal

- [Proposal source](https://github.com/bear7066/dm-final/blob/main/final-proposal.typ): `final-proposal.typ`
- [Slide core](https://github.com/bear7066/dm-final/blob/main/slide-kit/core.typ): `slide-kit/core.typ`
- [Slide navigation](https://github.com/bear7066/dm-final/blob/main/slide-kit/nav.typ): `slide-kit/nav.typ`
- [Slide patterns](https://github.com/bear7066/dm-final/blob/main/slide-kit/patterns.typ): `slide-kit/patterns.typ`
- [Slide themes](https://github.com/bear7066/dm-final/blob/main/slide-kit/themes.typ): `slide-kit/themes.typ`
- [Proposal PDF](https://github.com/bear7066/dm-final/blob/main/final-proposal.pdf): `final-proposal.pdf`

### Order Analysis

- [Weekly order analysis](https://github.com/bear7066/dm-final/blob/main/analysis/weekly_orders.py): `analysis/weekly_orders.py`
- [Weekly order counts](https://github.com/bear7066/dm-final/blob/main/analysis/out/weekly_orders.csv): `analysis/out/weekly_orders.csv`

### Other components

- **Proposal author**
- **Data analyst**
- **Retail workbook**

## Connections

- Proposal author → Proposal source: authors
- Proposal source → Proposal PDF: compiles to (evidence: `README.md`)
- Data analyst → Weekly order analysis: runs (evidence: `analysis/weekly_orders.py`)
- Retail workbook → Weekly order analysis: reads workbook (evidence: `analysis/weekly_orders.py`)
- Weekly order analysis → Weekly order counts: writes counts (evidence: `analysis/weekly_orders.py`)
