# jocious/student-task-planner architecture

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

- Interactive diagram: https://gitdiagram.com/jocious/student-task-planner
- Repository: https://github.com/jocious/student-task-planner

## Overview

This is a student assignment planner built with React Native and Expo. The user adds or edits assignments, then views them filtered by subject and sorted by deadline; task controls support completion and deletion. App.tsx owns the in-memory task state and routes between screens. The source excerpts show the main screen and callback wiring; no persistence layer or external service is evidenced.

Main entry points: [`App.tsx`](https://github.com/jocious/student-task-planner/blob/main/App.tsx) (App State), [`screens/HomeScreen.tsx`](https://github.com/jocious/student-task-planner/blob/main/screens/HomeScreen.tsx) (Assignment List), [`screens/AddTaskScreen.tsx`](https://github.com/jocious/student-task-planner/blob/main/screens/AddTaskScreen.tsx) (Task Editor), [`components/TaskItem.tsx`](https://github.com/jocious/student-task-planner/blob/main/components/TaskItem.tsx) (Task Controls)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App Runtime"]
  node_entry["Expo Entry<br/>[index.ts]"]
  node_app_state["App State<br/>[App.tsx]"]
end

subgraph group_screens["Planner Screens"]
  node_home["Assignment List<br/>[HomeScreen.tsx]"]
  node_editor["Task Editor<br/>[AddTaskScreen.tsx]"]
end

subgraph group_tasks["Task Presentation"]
  node_task_item["Task Controls<br/>[TaskItem.tsx]"]
end

node_user(("Student"))

node_entry -->|"registers"| node_app_state
node_user -->|"uses"| node_home
node_user -->|"uses"| node_editor
node_app_state -->|"renders"| node_home
node_app_state -->|"renders"| node_editor
node_home -->|"renders"| node_task_item
node_editor -->|"saves task"| node_app_state
node_task_item -->|"dispatches actions"| node_app_state

click node_entry "https://github.com/jocious/student-task-planner/blob/main/index.ts"
click node_app_state "https://github.com/jocious/student-task-planner/blob/main/App.tsx"
click node_home "https://github.com/jocious/student-task-planner/blob/main/screens/HomeScreen.tsx"
click node_editor "https://github.com/jocious/student-task-planner/blob/main/screens/AddTaskScreen.tsx"
click node_task_item "https://github.com/jocious/student-task-planner/blob/main/components/TaskItem.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_entry,node_app_state toneBlue
class node_home,node_editor toneAmber
class node_task_item toneMint
class node_user toneIndigo
```

## Components

### App Runtime

- [Expo Entry](https://github.com/jocious/student-task-planner/blob/main/index.ts): `index.ts`
- [App State](https://github.com/jocious/student-task-planner/blob/main/App.tsx): `App.tsx`

### Planner Screens

- [Assignment List](https://github.com/jocious/student-task-planner/blob/main/screens/HomeScreen.tsx): `screens/HomeScreen.tsx`
- [Task Editor](https://github.com/jocious/student-task-planner/blob/main/screens/AddTaskScreen.tsx): `screens/AddTaskScreen.tsx`

### Task Presentation

- [Task Controls](https://github.com/jocious/student-task-planner/blob/main/components/TaskItem.tsx): `components/TaskItem.tsx`

### Other components

- **Student**

## Connections

- Expo Entry → App State: registers (evidence: `index.ts`)
- Student → Assignment List: uses (evidence: `screens/HomeScreen.tsx`)
- Student → Task Editor: uses (evidence: `screens/AddTaskScreen.tsx`)
- App State → Assignment List: renders (evidence: `App.tsx`)
- App State → Task Editor: renders (evidence: `App.tsx`)
- Assignment List → Task Controls: renders (evidence: `screens/HomeScreen.tsx`)
- Task Editor → App State: saves task (evidence: `screens/AddTaskScreen.tsx`)
- Task Controls → App State: dispatches actions (evidence: `screens/HomeScreen.tsx`)
