# domgas08/finals-week architecture

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

- Interactive diagram: https://gitdiagram.com/domgas08/finals-week
- Repository: https://github.com/domgas08/finals-week

## Overview

Finals Week is a student study app for creating and importing course question sets, revising due questions, and playing live rounds. The visible runtime registers in-memory deck and session stores, plus CSV/JSON importers and an upload guard; the README also describes shared sets, live play, and topic insights. Several README capabilities have no sampled implementation or runtime wiring, so those branches are shown as documented capabilities only. The README’s PostgreSQL claim is not reflected in the sampled service registrations.

Main entry points: [`src/FinalsWeek.Web/Program.cs`](https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Web/Program.cs) (Blazor app), [`src/FinalsWeek.Core/Question.cs`](https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Core/Question.cs) (Question model), [`src/FinalsWeek.Application/JsonImporter.cs`](https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Application/JsonImporter.cs) (JSON importer), [`src/FinalsWeek.Application/CsvImporter.cs`](https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Application/CsvImporter.cs) (CSV importer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_webapp["Blazor app<br/>[Program.cs]"]
  node_deckpages["Deck pages<br/>[Pages]"]
  node_studyui["Study UI<br/>[Pages]"]
end

subgraph group_application["Application services"]
  node_deckstore[("Deck store")]
  node_sessionstore[("Session store")]
  node_uploadguard["Upload guard<br/>[UploadGuard.cs]"]
  node_csvimport["CSV importer<br/>[CsvImporter.cs]"]
  node_jsonimport["JSON importer<br/>[JsonImporter.cs]"]
  node_importresult["Import result<br/>[ImportResult.cs]"]
  node_rowfailure["Row failure"]
  node_transfer["Question transfer"]
  node_viewmodels["Study view models"]
  node_viewextensions["View model mapping"]
end

subgraph group_domain["Study domain"]
  node_question["Question model<br/>[Question.cs]"]
  node_deck["Deck model<br/>[Deck.cs]"]
  node_session["Study session<br/>[StudySession.cs]"]
  node_progress["Session progress<br/>[SessionProgress.cs]"]
  node_grader["Answer grader<br/>[AnswerGrader.cs]"]
  node_grading["Grading result<br/>[AnswerGrading.cs]"]
  node_enumerator["Study enumerator"]
end

subgraph group_documented["Documented capabilities"]
  node_liveui["Live rounds UI<br/>[Pages]"]
  node_insights["Topic insights<br/>[Pages]"]
end

node_student(("Student"))
node_livegroup(("Course group"))

node_student -->|"uses"| node_webapp
node_webapp -->|"registers"| node_deckstore
node_webapp -->|"registers"| node_sessionstore
node_webapp -->|"registers"| node_uploadguard
node_webapp -->|"registers"| node_csvimport
node_webapp -->|"registers"| node_jsonimport
node_student -->|"creates sets"| node_deckpages
node_student -->|"imports questions"| node_csvimport
node_student -->|"revises questions"| node_studyui
node_student -->|"starts rounds"| node_liveui
node_livegroup -->|"joins round"| node_liveui
node_student -->|"checks weak topics"| node_insights
node_csvimport -->|"creates"| node_question
node_csvimport -->|"returns"| node_importresult
node_csvimport -->|"records failures"| node_rowfailure
node_jsonimport -->|"creates"| node_question
node_jsonimport -->|"returns"| node_importresult
node_jsonimport -->|"records failures"| node_rowfailure
node_jsonimport -->|"deserializes"| node_transfer
node_deck -->|"contains"| node_question
node_session -->|"holds"| node_question
node_session -->|"computes"| node_progress
node_grader -->|"grades against"| node_question
node_grader -->|"returns"| node_grading
node_enumerator -->|"enumerates"| node_deck
node_enumerator -->|"selects"| node_question
node_viewextensions -->|"maps"| node_question
node_viewextensions -->|"produces"| node_viewmodels
node_deckstore -->|"stores"| node_deck
node_sessionstore -->|"stores"| node_session
node_sessionstore -->|"creates session from"| node_deck

click node_webapp "https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Web/Program.cs"
click node_deckpages "https://github.com/domgas08/finals-week/tree/main/src/FinalsWeek.Web/Components/Pages"
click node_studyui "https://github.com/domgas08/finals-week/tree/main/src/FinalsWeek.Web/Components/Pages"
click node_liveui "https://github.com/domgas08/finals-week/tree/main/src/FinalsWeek.Web/Components/Pages"
click node_insights "https://github.com/domgas08/finals-week/tree/main/src/FinalsWeek.Web/Components/Pages"
click node_deckstore "https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Application/InMemoryDeckStore.cs"
click node_sessionstore "https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Application/InMemorySessionStore.cs"
click node_uploadguard "https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Application/UploadGuard.cs"
click node_csvimport "https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Application/CsvImporter.cs"
click node_jsonimport "https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Application/JsonImporter.cs"
click node_importresult "https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Application/ImportResult.cs"
click node_rowfailure "https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Application/ImportRowFailure.cs"
click node_question "https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Core/Question.cs"
click node_deck "https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Core/Deck.cs"
click node_session "https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Core/StudySession.cs"
click node_progress "https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Core/SessionProgress.cs"
click node_grader "https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Core/AnswerGrader.cs"
click node_grading "https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Core/AnswerGrading.cs"
click node_enumerator "https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Core/StudySessionEnumerator.cs"
click node_transfer "https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Application/QuestionTransfer.cs"
click node_viewmodels "https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Application/StudyQuestionViewModel.cs"
click node_viewextensions "https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Application/QuestionViewModelExtensions.cs"

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_webapp,node_deckpages,node_studyui toneBlue
class node_deckstore,node_sessionstore,node_uploadguard,node_csvimport,node_jsonimport,node_importresult,node_rowfailure,node_transfer,node_viewmodels,node_viewextensions toneAmber
class node_question,node_deck,node_session,node_progress,node_grader,node_grading,node_enumerator toneMint
class node_liveui,node_insights toneRose
class node_student,node_livegroup toneIndigo
```

## Components

### Web experience

- [Blazor app](https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Web/Program.cs): `src/FinalsWeek.Web/Program.cs`
- [Deck pages](https://github.com/domgas08/finals-week/tree/main/src/FinalsWeek.Web/Components/Pages): `src/FinalsWeek.Web/Components/Pages`
- [Study UI](https://github.com/domgas08/finals-week/tree/main/src/FinalsWeek.Web/Components/Pages): `src/FinalsWeek.Web/Components/Pages`

### Application services

- [Deck store](https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Application/InMemoryDeckStore.cs): `src/FinalsWeek.Application/InMemoryDeckStore.cs`
- [Session store](https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Application/InMemorySessionStore.cs): `src/FinalsWeek.Application/InMemorySessionStore.cs`
- [Upload guard](https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Application/UploadGuard.cs): `src/FinalsWeek.Application/UploadGuard.cs`
- [CSV importer](https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Application/CsvImporter.cs): `src/FinalsWeek.Application/CsvImporter.cs`
- [JSON importer](https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Application/JsonImporter.cs): `src/FinalsWeek.Application/JsonImporter.cs`
- [Import result](https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Application/ImportResult.cs): `src/FinalsWeek.Application/ImportResult.cs`
- [Row failure](https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Application/ImportRowFailure.cs): `src/FinalsWeek.Application/ImportRowFailure.cs`
- [Question transfer](https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Application/QuestionTransfer.cs): `src/FinalsWeek.Application/QuestionTransfer.cs`
- [Study view models](https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Application/StudyQuestionViewModel.cs): `src/FinalsWeek.Application/StudyQuestionViewModel.cs`
- [View model mapping](https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Application/QuestionViewModelExtensions.cs): `src/FinalsWeek.Application/QuestionViewModelExtensions.cs`

### Study domain

- [Question model](https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Core/Question.cs): `src/FinalsWeek.Core/Question.cs`
- [Deck model](https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Core/Deck.cs): `src/FinalsWeek.Core/Deck.cs`
- [Study session](https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Core/StudySession.cs): `src/FinalsWeek.Core/StudySession.cs`
- [Session progress](https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Core/SessionProgress.cs): `src/FinalsWeek.Core/SessionProgress.cs`
- [Answer grader](https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Core/AnswerGrader.cs): `src/FinalsWeek.Core/AnswerGrader.cs`
- [Grading result](https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Core/AnswerGrading.cs): `src/FinalsWeek.Core/AnswerGrading.cs`
- [Study enumerator](https://github.com/domgas08/finals-week/blob/main/src/FinalsWeek.Core/StudySessionEnumerator.cs): `src/FinalsWeek.Core/StudySessionEnumerator.cs`

### Documented capabilities

- [Live rounds UI](https://github.com/domgas08/finals-week/tree/main/src/FinalsWeek.Web/Components/Pages): `src/FinalsWeek.Web/Components/Pages`
- [Topic insights](https://github.com/domgas08/finals-week/tree/main/src/FinalsWeek.Web/Components/Pages): `src/FinalsWeek.Web/Components/Pages`

### Other components

- **Student**
- **Course group**

## Connections

- Student → Blazor app: uses (evidence: `README.md`)
- Blazor app → Deck store: registers (evidence: `src/FinalsWeek.Web/Program.cs`)
- Blazor app → Session store: registers (evidence: `src/FinalsWeek.Web/Program.cs`)
- Blazor app → Upload guard: registers (evidence: `src/FinalsWeek.Web/Program.cs`)
- Blazor app → CSV importer: registers (evidence: `src/FinalsWeek.Web/Program.cs`)
- Blazor app → JSON importer: registers (evidence: `src/FinalsWeek.Web/Program.cs`)
- Student → Deck pages: creates sets (evidence: `README.md`)
- Student → CSV importer: imports questions (evidence: `README.md`)
- Student → Study UI: revises questions (evidence: `README.md`)
- Student → Live rounds UI: starts rounds (evidence: `README.md`)
- Course group → Live rounds UI: joins round (evidence: `README.md`)
- Student → Topic insights: checks weak topics (evidence: `README.md`)
- CSV importer → Question model: creates (evidence: `src/FinalsWeek.Application/CsvImporter.cs`)
- CSV importer → Import result: returns (evidence: `src/FinalsWeek.Application/CsvImporter.cs`)
- CSV importer → Row failure: records failures (evidence: `src/FinalsWeek.Application/CsvImporter.cs`)
- JSON importer → Question model: creates (evidence: `src/FinalsWeek.Application/JsonImporter.cs`)
- JSON importer → Import result: returns (evidence: `src/FinalsWeek.Application/JsonImporter.cs`)
- JSON importer → Row failure: records failures (evidence: `src/FinalsWeek.Application/JsonImporter.cs`)
- JSON importer → Question transfer: deserializes (evidence: `src/FinalsWeek.Application/JsonImporter.cs`)
- Deck model → Question model: contains (evidence: `src/FinalsWeek.Core/Deck.cs`)
- Study session → Question model: holds (evidence: `src/FinalsWeek.Core/StudySession.cs`)
- Study session → Session progress: computes (evidence: `src/FinalsWeek.Core/StudySession.cs`)
- Answer grader → Question model: grades against (evidence: `src/FinalsWeek.Core/AnswerGrader.cs`)
- Answer grader → Grading result: returns (evidence: `src/FinalsWeek.Core/AnswerGrader.cs`)
- Study enumerator → Deck model: enumerates (evidence: `src/FinalsWeek.Core/StudySessionEnumerator.cs`)
- Study enumerator → Question model: selects (evidence: `src/FinalsWeek.Core/StudySessionEnumerator.cs`)
- View model mapping → Question model: maps (evidence: `src/FinalsWeek.Application/QuestionViewModelExtensions.cs`)
- View model mapping → Study view models: produces (evidence: `src/FinalsWeek.Application/QuestionViewModelExtensions.cs`)
- Deck store → Deck model: stores (evidence: `src/FinalsWeek.Application/InMemoryDeckStore.cs`)
- Session store → Study session: stores (evidence: `src/FinalsWeek.Application/InMemorySessionStore.cs`)
- Session store → Deck model: creates session from (evidence: `src/FinalsWeek.Application/InMemorySessionStore.cs`)
