# jensenix/app-ta-jensenix architecture

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

- Interactive diagram: https://gitdiagram.com/jensenix/app-ta-jensenix
- Repository: https://github.com/jensenix/app-ta-jensenix

## Overview

Data Tugas Akhir Viewer is a React app for browsing scraped MIKA thesis records. A user views bundled data or loads a JSON file; App normalizes it, coordinates search and facets, sorting, pagination, detail selection, and favorites, then presents responsive tables or cards. Users can export filtered or favorite records, follow validated repository links, and switch themes. The graph preserves the documented feature branches; relationships for unsampled components rely on the README or SOURCE INDEX references, not inspection of their implementations.

Main entry points: [`src/App.tsx`](https://github.com/jensenix/app-ta-jensenix/blob/main/src/App.tsx) (App state and orchestration), [`src/components/Icons.tsx`](https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/Icons.tsx) (Shared icons), [`src/components/DataTable.tsx`](https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/DataTable.tsx) (Desktop table), [`src/components/CardList.tsx`](https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/CardList.tsx) (Mobile cards)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application flow"]
  node_entry["React entry<br/>[main.tsx]"]
  node_app["App state and orchestration<br/>[App.tsx]"]
  node_bundled["Bundled records"]
end

subgraph group_processing["Data processing"]
  node_types["Record and filter types<br/>[types.ts]"]
  node_normalize["Data normalization<br/>[data.ts]"]
  node_filter["Filter, facets, sorting, paging<br/>[filters.ts]"]
  node_present["Display formatting<br/>[present.ts]"]
end

subgraph group_interface["User interface"]
  node_header["Header and controls<br/>[Header.tsx]"]
  node_stats["Summary cards<br/>[StatStrip.tsx]"]
  node_filters["Filter controls<br/>[FilterPanel.tsx]"]
  node_table["Desktop table<br/>[DataTable.tsx]"]
  node_cards["Mobile cards<br/>[CardList.tsx]"]
  node_pagination["Pagination controls<br/>[Pagination.tsx]"]
  node_detail["Record detail drawer<br/>[DetailDrawer.tsx]"]
  node_empty["Empty results<br/>[EmptyState.tsx]"]
  node_favoritespanel["Favorites panel<br/>[FavoritesPanel.tsx]"]
  node_repositorylink["Repository link<br/>[RepositoryLink.tsx]"]
  node_badge["Status badges<br/>[Badge.tsx]"]
  node_icons["Shared icons<br/>[Icons.tsx]"]
  node_search["Search field<br/>[SearchField.tsx]"]
end

subgraph group_state["Persistence and export"]
  node_favorites["Favorite NIM storage<br/>[favorites.ts]"]
  node_localstorage[("Browser localStorage")]
  node_download["CSV and JSON export<br/>[download.ts]"]
end

node_user(("Viewer user"))

node_user -->|"opens app"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"loads records"| node_bundled
node_app -->|"normalizes records"| node_normalize
node_app -->|"filters and sorts"| node_filter
node_app -->|"resolves favorites"| node_favorites
node_app -->|"exports rows"| node_download
node_app -->|"renders controls"| node_header
node_app -->|"renders summary"| node_stats
node_app -->|"supplies facets"| node_filters
node_app -->|"renders results"| node_table
node_app -->|"renders results"| node_cards
node_app -->|"renders controls"| node_pagination
node_app -->|"renders selection"| node_detail
node_app -->|"renders when empty"| node_empty
node_header -->|"renders panel"| node_favoritespanel
node_header -->|"invokes exports"| node_download
node_table -->|"renders link"| node_repositorylink
node_cards -->|"renders link"| node_repositorylink
node_table -->|"renders badges"| node_badge
node_cards -->|"renders badges"| node_badge
node_filters -->|"uses field"| node_search
node_filters -->|"uses formatting"| node_filter
node_pagination -->|"uses page items"| node_filter
node_favoritespanel -->|"exports favorites"| node_download
node_app -->|"stores theme"| node_localstorage
node_favorites -->|"reads and writes NIMs"| node_localstorage
node_app -->|"uses data types"| node_types
node_normalize -->|"returns typed rows"| node_types
node_filter -->|"uses filter types"| node_types
node_present -->|"sets status tone"| node_badge
node_table -->|"uses icons"| node_icons
node_cards -->|"uses icons"| node_icons
node_detail -->|"uses icons"| node_icons
node_favoritespanel -->|"uses icons"| node_icons
node_repositorylink -->|"uses icon"| node_icons

click node_entry "https://github.com/jensenix/app-ta-jensenix/blob/main/src/main.tsx"
click node_app "https://github.com/jensenix/app-ta-jensenix/blob/main/src/App.tsx"
click node_bundled "https://github.com/jensenix/app-ta-jensenix/blob/main/src/data/data_ta_filter_500.json"
click node_types "https://github.com/jensenix/app-ta-jensenix/blob/main/src/types.ts"
click node_normalize "https://github.com/jensenix/app-ta-jensenix/blob/main/src/lib/data.ts"
click node_filter "https://github.com/jensenix/app-ta-jensenix/blob/main/src/lib/filters.ts"
click node_present "https://github.com/jensenix/app-ta-jensenix/blob/main/src/lib/present.ts"
click node_header "https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/Header.tsx"
click node_stats "https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/StatStrip.tsx"
click node_filters "https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/FilterPanel.tsx"
click node_table "https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/DataTable.tsx"
click node_cards "https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/CardList.tsx"
click node_pagination "https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/Pagination.tsx"
click node_detail "https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/DetailDrawer.tsx"
click node_empty "https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/EmptyState.tsx"
click node_favoritespanel "https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/FavoritesPanel.tsx"
click node_repositorylink "https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/RepositoryLink.tsx"
click node_badge "https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/Badge.tsx"
click node_icons "https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/Icons.tsx"
click node_search "https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/SearchField.tsx"
click node_favorites "https://github.com/jensenix/app-ta-jensenix/blob/main/src/lib/favorites.ts"
click node_download "https://github.com/jensenix/app-ta-jensenix/blob/main/src/lib/download.ts"

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,node_bundled,node_user toneBlue
class node_types,node_normalize,node_filter,node_present toneAmber
class node_header,node_stats,node_filters,node_table,node_cards,node_pagination,node_detail,node_empty,node_favoritespanel,node_repositorylink,node_badge,node_icons,node_search toneMint
class node_favorites,node_localstorage,node_download toneRose
```

## Components

### Application flow

- [React entry](https://github.com/jensenix/app-ta-jensenix/blob/main/src/main.tsx): `src/main.tsx`
- [App state and orchestration](https://github.com/jensenix/app-ta-jensenix/blob/main/src/App.tsx): `src/App.tsx`
- [Bundled records](https://github.com/jensenix/app-ta-jensenix/blob/main/src/data/data_ta_filter_500.json): `src/data/data_ta_filter_500.json`

### Data processing

- [Record and filter types](https://github.com/jensenix/app-ta-jensenix/blob/main/src/types.ts): `src/types.ts`
- [Data normalization](https://github.com/jensenix/app-ta-jensenix/blob/main/src/lib/data.ts): `src/lib/data.ts`
- [Filter, facets, sorting, paging](https://github.com/jensenix/app-ta-jensenix/blob/main/src/lib/filters.ts): `src/lib/filters.ts`
- [Display formatting](https://github.com/jensenix/app-ta-jensenix/blob/main/src/lib/present.ts): `src/lib/present.ts`

### User interface

- [Header and controls](https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/Header.tsx): `src/components/Header.tsx`
- [Summary cards](https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/StatStrip.tsx): `src/components/StatStrip.tsx`
- [Filter controls](https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/FilterPanel.tsx): `src/components/FilterPanel.tsx`
- [Desktop table](https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/DataTable.tsx): `src/components/DataTable.tsx`
- [Mobile cards](https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/CardList.tsx): `src/components/CardList.tsx`
- [Pagination controls](https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/Pagination.tsx): `src/components/Pagination.tsx`
- [Record detail drawer](https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/DetailDrawer.tsx): `src/components/DetailDrawer.tsx`
- [Empty results](https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/EmptyState.tsx): `src/components/EmptyState.tsx`
- [Favorites panel](https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/FavoritesPanel.tsx): `src/components/FavoritesPanel.tsx`
- [Repository link](https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/RepositoryLink.tsx): `src/components/RepositoryLink.tsx`
- [Status badges](https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/Badge.tsx): `src/components/Badge.tsx`
- [Shared icons](https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/Icons.tsx): `src/components/Icons.tsx`
- [Search field](https://github.com/jensenix/app-ta-jensenix/blob/main/src/components/SearchField.tsx): `src/components/SearchField.tsx`

### Persistence and export

- [Favorite NIM storage](https://github.com/jensenix/app-ta-jensenix/blob/main/src/lib/favorites.ts): `src/lib/favorites.ts`
- **Browser localStorage**
- [CSV and JSON export](https://github.com/jensenix/app-ta-jensenix/blob/main/src/lib/download.ts): `src/lib/download.ts`

### Other components

- **Viewer user**

## Connections

- Viewer user → React entry: opens app (evidence: `README.md`)
- React entry → App state and orchestration: renders (evidence: `src/main.tsx`)
- App state and orchestration → Bundled records: loads records (evidence: `src/App.tsx`)
- App state and orchestration → Data normalization: normalizes records (evidence: `src/App.tsx`)
- App state and orchestration → Filter, facets, sorting, paging: filters and sorts (evidence: `src/App.tsx`)
- App state and orchestration → Favorite NIM storage: resolves favorites (evidence: `src/App.tsx`)
- App state and orchestration → CSV and JSON export: exports rows (evidence: `src/App.tsx`)
- App state and orchestration → Header and controls: renders controls (evidence: `src/App.tsx`)
- App state and orchestration → Summary cards: renders summary (evidence: `src/App.tsx`)
- App state and orchestration → Filter controls: supplies facets (evidence: `src/App.tsx`)
- App state and orchestration → Desktop table: renders results (evidence: `src/App.tsx`)
- App state and orchestration → Mobile cards: renders results (evidence: `src/App.tsx`)
- App state and orchestration → Pagination controls: renders controls (evidence: `src/App.tsx`)
- App state and orchestration → Record detail drawer: renders selection (evidence: `src/App.tsx`)
- App state and orchestration → Empty results: renders when empty (evidence: `src/App.tsx`)
- Header and controls → Favorites panel: renders panel (evidence: `src/components/Header.tsx`)
- Header and controls → CSV and JSON export: invokes exports (evidence: `src/App.tsx`)
- Desktop table → Repository link: renders link (evidence: `src/components/DataTable.tsx`)
- Mobile cards → Repository link: renders link (evidence: `src/components/CardList.tsx`)
- Desktop table → Status badges: renders badges (evidence: `src/components/DataTable.tsx`)
- Mobile cards → Status badges: renders badges (evidence: `src/components/CardList.tsx`)
- Filter controls → Search field: uses field (evidence: `src/components/FilterPanel.tsx`)
- Filter controls → Filter, facets, sorting, paging: uses formatting (evidence: `README.md`)
- Pagination controls → Filter, facets, sorting, paging: uses page items (evidence: `src/components/Pagination.tsx`)
- Favorites panel → CSV and JSON export: exports favorites (evidence: `README.md`)
- App state and orchestration → Browser localStorage: stores theme (evidence: `README.md`)
- Favorite NIM storage → Browser localStorage: reads and writes NIMs (evidence: `src/lib/favorites.ts`)
- App state and orchestration → Record and filter types: uses data types (evidence: `src/App.tsx`)
- Data normalization → Record and filter types: returns typed rows (evidence: `src/lib/data.ts`)
- Filter, facets, sorting, paging → Record and filter types: uses filter types (evidence: `src/lib/filters.ts`)
- Display formatting → Status badges: sets status tone (evidence: `src/components/Badge.tsx`)
- Desktop table → Shared icons: uses icons (evidence: `src/components/DataTable.tsx`)
- Mobile cards → Shared icons: uses icons (evidence: `src/components/CardList.tsx`)
- Record detail drawer → Shared icons: uses icons (evidence: `src/components/DetailDrawer.tsx`)
- Favorites panel → Shared icons: uses icons (evidence: `src/components/FavoritesPanel.tsx`)
- Repository link → Shared icons: uses icon (evidence: `src/components/RepositoryLink.tsx`)
