# lorieemaee/csit284-capstone-gabuya architecture

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

- Interactive diagram: https://gitdiagram.com/lorieemaee/csit284-capstone-gabuya
- Repository: https://github.com/lorieemaee/csit284-capstone-gabuya

## Overview

Book Borrowing Tracker is a Flutter app whose main workflow is browsing or searching a book collection, then borrowing or returning books and reviewing due dates and loan history. Users can also add books. The README states that collection and borrowing-history data stay in memory and reset on restart. Dart implementation details were not excerpted, so links among screens and state are limited to capabilities explicitly described in the README; no persistence service or external integration is shown.

Main entry points: [`lib/screens/book_list_screen.dart`](https://github.com/lorieemaee/csit284-capstone-gabuya/blob/main/lib/screens/book_list_screen.dart) (Book list), [`lib/screens/borrowing_history_screen.dart`](https://github.com/lorieemaee/csit284-capstone-gabuya/blob/main/lib/screens/borrowing_history_screen.dart) (Loan history), [`lib`](https://github.com/lorieemaee/csit284-capstone-gabuya/tree/main/lib) (In-memory data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App interface"]
  node_entry["App entry<br/>[main.dart]"]
  node_book_list["Book list"]
  node_book_item["Book item"]
  node_history["Loan history"]
  node_profile["Profile"]
end

subgraph group_domain["Book lending"]
  node_book["Book model<br/>[book.dart]"]
  node_memory[("In-memory data")]
end

node_user(("User"))

node_user -->|"browse and search"| node_book_list
node_user -->|"borrow and return"| node_book_list
node_user -->|"add books"| node_book_list
node_user -->|"view history"| node_history
node_user -->|"view due dates"| node_history
node_book_list -->|"updates collection"| node_memory
node_history -->|"tracks loan history"| node_memory

click node_entry "https://github.com/lorieemaee/csit284-capstone-gabuya/blob/main/lib/main.dart"
click node_book_list "https://github.com/lorieemaee/csit284-capstone-gabuya/blob/main/lib/screens/book_list_screen.dart"
click node_book_item "https://github.com/lorieemaee/csit284-capstone-gabuya/blob/main/lib/widgets/book_list_item.dart"
click node_history "https://github.com/lorieemaee/csit284-capstone-gabuya/blob/main/lib/screens/borrowing_history_screen.dart"
click node_profile "https://github.com/lorieemaee/csit284-capstone-gabuya/blob/main/lib/screens/profile_screen.dart"
click node_book "https://github.com/lorieemaee/csit284-capstone-gabuya/blob/main/lib/models/book.dart"
click node_memory "https://github.com/lorieemaee/csit284-capstone-gabuya/tree/main/lib"

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_book_list,node_book_item,node_history,node_profile,node_user toneBlue
class node_book,node_memory toneAmber
```

## Components

### App interface

- [App entry](https://github.com/lorieemaee/csit284-capstone-gabuya/blob/main/lib/main.dart): `lib/main.dart`
- [Book list](https://github.com/lorieemaee/csit284-capstone-gabuya/blob/main/lib/screens/book_list_screen.dart): `lib/screens/book_list_screen.dart`
- [Book item](https://github.com/lorieemaee/csit284-capstone-gabuya/blob/main/lib/widgets/book_list_item.dart): `lib/widgets/book_list_item.dart`
- [Loan history](https://github.com/lorieemaee/csit284-capstone-gabuya/blob/main/lib/screens/borrowing_history_screen.dart): `lib/screens/borrowing_history_screen.dart`
- [Profile](https://github.com/lorieemaee/csit284-capstone-gabuya/blob/main/lib/screens/profile_screen.dart): `lib/screens/profile_screen.dart`

### Book lending

- [Book model](https://github.com/lorieemaee/csit284-capstone-gabuya/blob/main/lib/models/book.dart): `lib/models/book.dart`
- [In-memory data](https://github.com/lorieemaee/csit284-capstone-gabuya/tree/main/lib): `lib`

### Other components

- **User**

## Connections

- User → Book list: browse and search (evidence: `README.md`)
- User → Book list: borrow and return (evidence: `README.md`)
- User → Book list: add books (evidence: `README.md`)
- User → Loan history: view history (evidence: `README.md`)
- User → Loan history: view due dates (evidence: `README.md`)
- Book list → In-memory data: updates collection (evidence: `README.md`)
- Loan history → In-memory data: tracks loan history (evidence: `README.md`)
