# tariqjaved06/kanaban-board architecture

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

- Interactive diagram: https://gitdiagram.com/tariqjaved06/kanaban-board
- Repository: https://github.com/tariqjaved06/kanaban-board

## Overview

#### Purpose and Runtime

TaskFlow is a static, client-side Kanban productivity dashboard. It organizes in-memory tasks through a Pending → Doing → Done workflow, with priority, tags, due dates, and subtasks represented in the UI. It runs directly in the browser: there is no backend, database, API, or persistence layer.

Core runtime assets: `index.html`, `script.js`, `output.css`.

#### Entry Points and Page Model

`index.html` is the primary all-tasks dashboard and likely the main rendering host for JavaScript task data. Navigation is split into separate static HTML views rather than a router or SPA.

Relevant views:
- `index.html` — main/all-task board
- `home.html` — overview/home page
- `pending.html`, `doing.html`, `done.html` — status-specific views
- `about.html` — informational page

Each page is an independent browser document boundary; shared behavior and state must be reinitialized on navigation.

#### Task Data and Rendering Layer

`script.js` is the application’s core state and presentation controller. It holds the task data array and dynamically renders task cards into the Kanban interface. Task fields support the board’s central model: title/description, status, priority, due date, hashtag/project association, and subtasks.

The current task collection is runtime-only. Reloading or changing pages resets state because no browser storage or server synchronization exists.

Grounding paths: `script.js`, `index.html`, `pending.html`.

#### Kanban Workflow and View Boundaries

The primary control flow is:

1. Browser loads a static HTML view.
2. Shared CSS establishes responsive visual layout.
3. `script.js` initializes task data and renders cards.
4. Cards are grouped or filtered by workflow status.
5. Navigation/filter tabs expose all-task or status-specific board views.

Status is the main domain boundary: Pending, Doing, and Done. The repository has dedicated documents for each status (`pending.html`, `doing.html`, `done.html`), alongside the combined board in `index.html`.

#### UI Composition

The dashboard architecture centers on a persistent dashboard shell: sidebar navigation/profile, header controls, statistics, task filters, and Kanban columns. Task creation is represented by a modal UI, but its submission is not yet connected to mutation of the data array.

Architecturally meaningful UI hosts:
- `index.html` — dashboard shell, header, board, modal host
- `home.html` — overview-oriented entry view
- `script.js` — dynamic card rendering and task-state source

Search, sort, filter controls, drag-and-drop, live counts, and project CRUD are planned rather than functional integration points.

#### Styling and Build Boundary

Styling uses Tailwind CSS. `input.css` is the Tailwind source layer and `output.css` is the browser-consumed generated stylesheet. Node dependencies and package metadata support CSS generation, but the delivered application remains static HTML/CSS/JavaScript.

Grounding paths: `input.css`, `output.css`, `package.json`.

#### Infrastructure and External Dependencies

Infrastructure is limited to local static asset delivery and Node-managed frontend dependencies (`package.json`, `package-lock.json`, `node_modules`). No external services, authentication, server runtime, database, or API integration are present. The key future integration boundary is persistence: task mutations, modal submission, and cross-page consistency would require a shared client storage layer or backend API.

Main entry points: [`output.css`](https://github.com/tariqjaved06/kanaban-board/blob/main/output.css) (Generated stylesheet), [`index.html`](https://github.com/tariqjaved06/kanaban-board/blob/main/index.html) (All-tasks dashboard), [`script.js`](https://github.com/tariqjaved06/kanaban-board/blob/main/script.js) (Task controller), [`pending.html`](https://github.com/tariqjaved06/kanaban-board/blob/main/pending.html) (Pending view)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browser["Browser views"]
  node_index["All-tasks dashboard<br/>HTML view<br/>[index.html]"]
  node_home["Home overview<br/>HTML view<br/>[home.html]"]
  node_pending_page["Pending view<br/>HTML view<br/>[pending.html]"]
  node_doing_page["Doing view<br/>HTML view<br/>[doing.html]"]
  node_done_page["Done view<br/>HTML view<br/>[done.html]"]
  node_about["About page<br/>HTML view<br/>[about.html]"]
end

subgraph group_app["Task board"]
  node_controller["Task controller<br/>browser JavaScript<br/>[script.js]"]
  node_task_data[("In-memory tasks<br/>runtime state")]
  node_board["Kanban board<br/>UI composition<br/>[index.html]"]
  node_workflow["Pending → Doing → Done<br/>workflow model"]
  node_modal["Task creation modal<br/>UI host<br/>[index.html]"]
end

subgraph group_styles["Styling build"]
  node_tailwind_source["Tailwind source<br/>CSS source<br/>[input.css]"]
  node_stylesheet["Generated stylesheet<br/>browser CSS<br/>[output.css]"]
  node_package["Node dependencies<br/>package metadata<br/>[package.json]"]
end

node_index -->|"loads"| node_controller
node_pending_page -->|"loads"| node_controller
node_home -->|"uses"| node_stylesheet
node_index -->|"uses"| node_stylesheet
node_pending_page -->|"uses"| node_stylesheet
node_doing_page -->|"uses"| node_stylesheet
node_done_page -->|"uses"| node_stylesheet
node_about -->|"uses"| node_stylesheet
node_controller -->|"initializes"| node_task_data
node_controller -->|"renders cards into"| node_board
node_task_data -->|"assigns status"| node_workflow
node_workflow -->|"groups cards"| node_board
node_modal -.->|"planned mutation"| node_task_data
node_tailwind_source -->|"generates"| node_stylesheet
node_package -->|"build tooling"| node_tailwind_source
node_index -->|"status navigation"| node_pending_page
node_index -->|"status navigation"| node_doing_page
node_index -->|"status navigation"| node_done_page

click node_index "https://github.com/tariqjaved06/kanaban-board/blob/main/index.html"
click node_home "https://github.com/tariqjaved06/kanaban-board/blob/main/home.html"
click node_pending_page "https://github.com/tariqjaved06/kanaban-board/blob/main/pending.html"
click node_doing_page "https://github.com/tariqjaved06/kanaban-board/blob/main/doing.html"
click node_done_page "https://github.com/tariqjaved06/kanaban-board/blob/main/done.html"
click node_about "https://github.com/tariqjaved06/kanaban-board/blob/main/about.html"
click node_controller "https://github.com/tariqjaved06/kanaban-board/blob/main/script.js"
click node_board "https://github.com/tariqjaved06/kanaban-board/blob/main/index.html"
click node_modal "https://github.com/tariqjaved06/kanaban-board/blob/main/index.html"
click node_tailwind_source "https://github.com/tariqjaved06/kanaban-board/blob/main/input.css"
click node_stylesheet "https://github.com/tariqjaved06/kanaban-board/blob/main/output.css"
click node_package "https://github.com/tariqjaved06/kanaban-board/blob/main/package.json"

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_index,node_home,node_pending_page,node_doing_page,node_done_page,node_about toneBlue
class node_controller,node_task_data,node_board,node_workflow,node_modal toneAmber
class node_tailwind_source,node_stylesheet,node_package toneMint
```

## Components

### Browser views

Independent static document boundaries.

- [All-tasks dashboard](https://github.com/tariqjaved06/kanaban-board/blob/main/index.html): HTML view · Primary dashboard shell, board, and modal host. · `index.html`
- [Home overview](https://github.com/tariqjaved06/kanaban-board/blob/main/home.html): HTML view · `home.html`
- [Pending view](https://github.com/tariqjaved06/kanaban-board/blob/main/pending.html): HTML view · `pending.html`
- [Doing view](https://github.com/tariqjaved06/kanaban-board/blob/main/doing.html): HTML view · `doing.html`
- [Done view](https://github.com/tariqjaved06/kanaban-board/blob/main/done.html): HTML view · `done.html`
- [About page](https://github.com/tariqjaved06/kanaban-board/blob/main/about.html): HTML view · `about.html`

### Task board

- [Task controller](https://github.com/tariqjaved06/kanaban-board/blob/main/script.js): browser JavaScript · Owns runtime task data and renders task cards. · `script.js`
- **In-memory tasks**: runtime state · Resets on reload or navigation.
- [Kanban board](https://github.com/tariqjaved06/kanaban-board/blob/main/index.html): UI composition · Cards are organized by task status. · `index.html`
- **Pending → Doing → Done**: workflow model · Status is the primary domain boundary.
- [Task creation modal](https://github.com/tariqjaved06/kanaban-board/blob/main/index.html): UI host · Submission is not connected to task mutation. · `index.html`

### Styling build

- [Tailwind source](https://github.com/tariqjaved06/kanaban-board/blob/main/input.css): CSS source · `input.css`
- [Generated stylesheet](https://github.com/tariqjaved06/kanaban-board/blob/main/output.css): browser CSS · Shared responsive styling. · `output.css`
- [Node dependencies](https://github.com/tariqjaved06/kanaban-board/blob/main/package.json): package metadata · Supports CSS generation only. · `package.json`

## Connections

- All-tasks dashboard → Task controller: loads
- Pending view → Task controller: loads
- Home overview → Generated stylesheet: uses
- All-tasks dashboard → Generated stylesheet: uses
- Pending view → Generated stylesheet: uses
- Doing view → Generated stylesheet: uses
- Done view → Generated stylesheet: uses
- About page → Generated stylesheet: uses
- Task controller → In-memory tasks: initializes
- Task controller → Kanban board: renders cards into
- In-memory tasks → Pending → Doing → Done: assigns status
- Pending → Doing → Done → Kanban board: groups cards
- Task creation modal → In-memory tasks: planned mutation
- Tailwind source → Generated stylesheet: generates
- Node dependencies → Tailwind source: build tooling
- All-tasks dashboard → Pending view: status navigation
- All-tasks dashboard → Doing view: status navigation
- All-tasks dashboard → Done view: status navigation
