# nosin-stha/group-3_petadoptionsystem_39b_computing architecture

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

- Interactive diagram: https://gitdiagram.com/nosin-stha/group-3_petadoptionsystem_39b_computing
- Repository: https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing

## Overview

Paws & Claws Finder is a desktop pet-adoption system for adopters, shelter providers, and administrators. The adopter workflow browses and filters pets, opens pet and shelter details, saves favourites, submits adoption requests, and tracks their outcomes; providers manage listings and respond to requests, while administrators handle reports and account restrictions. Swing views are coordinated by controllers, which use DAOs for persistence and shared model data. The graph emphasizes documented calls and capabilities evident in the source index; several unsampled areas are included as subsystem nodes, with uncertain wiring left out.

Main entry points: [`src/DAO`](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/tree/master/src/DAO) (Data access), [`src/Controller/PetDetailsController.java`](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/PetDetailsController.java) (Pet details), [`src/Controller/LoginController.java`](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/LoginController.java) (Login and registration), [`src/Controller/PetController.java`](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/PetController.java) (Pet browsing and filters)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App and access"]
  node_launch["Desktop startup"]
  node_login["Login and registration"]
  node_signup["Signup flow"]
  node_otp["OTP verification<br/>[OTPController.java]"]
  node_authview["Access windows<br/>[Login.java]"]
  node_otpview["OTP window<br/>[OTPWindow.java]"]
  node_signupview["Signup window<br/>[SignupWindow.java]"]
end

subgraph group_adopter["Adopter experience"]
  node_browse["Pet browsing and filters<br/>[PetController.java]"]
  node_adopterhome["Adopter home"]
  node_petdetails["Pet details"]
  node_petviews["Pet detail views"]
  node_favourites["Saved favourites"]
  node_request["Adoption request"]
  node_tracking["Request tracking"]
  node_shelterbrowse["Shelter discovery"]
  node_shelterdetail["Shelter details"]
  node_navigation["Adopter navigation"]
end

subgraph group_provider["Shelter operations"]
  node_providerpets["Listing management<br/>[PetController.java]"]
  node_providerhome["Provider home"]
  node_providerrequests["Request decisions"]
  node_providerhistory["Adoption history"]
  node_providerprofile["Provider profiles"]
end

subgraph group_admin["Administration"]
  node_reports["Account reports"]
  node_accountadmin["Account status"]
  node_unfreeze["Unfreeze requests"]
  node_petreport["Provider reporting"]
end

subgraph group_core["Persistence and services"]
  node_dao["Data access"]
  node_models["Domain and session data<br/>[PetsData.java]"]
  node_mysql["MySQL connector"]
  node_email["Email notifications<br/>[EmailService.java]"]
end

node_user(("User"))
node_database[("Pet adoption database")]
node_mail["SMTP mail service"]

node_user -->|"starts"| node_launch
node_launch -->|"opens"| node_login
node_launch -->|"shows"| node_authview
node_user -->|"uses"| node_authview
node_login -->|"opens"| node_signup
node_login -->|"verifies"| node_otp
node_signup -->|"verifies"| node_otp
node_login -->|"controls"| node_authview
node_otp -->|"controls"| node_otpview
node_signup -->|"controls"| node_signupview
node_otp -->|"sends codes"| node_email
node_user -->|"browses"| node_adopterhome
node_adopterhome -->|"loads pets"| node_browse
node_browse -->|"renders cards"| node_adopterhome
node_browse -->|"queries listings"| node_dao
node_browse -->|"opens details"| node_petdetails
node_petdetails -->|"populates"| node_petviews
node_petdetails -->|"loads pet data"| node_dao
node_petdetails -->|"opens shelter"| node_shelterdetail
node_petdetails -->|"starts application"| node_request
node_favourites -->|"reads favourites"| node_dao
node_favourites -->|"opens details"| node_petdetails
node_request -->|"stores request"| node_dao
node_tracking -.->|"loads status"| node_dao
node_shelterbrowse -.->|"loads shelters"| node_dao
node_shelterdetail -->|"loads details"| node_dao
node_navigation -->|"opens listing"| node_shelterbrowse
node_navigation -->|"opens favourites"| node_favourites
node_user -.->|"manages"| node_providerhome
node_providerhome -->|"manages listings"| node_providerpets
node_providerpets -->|"saves listings"| node_dao
node_providerhome -.->|"reviews applications"| node_providerrequests
node_providerrequests -->|"loads decisions"| node_dao
node_providerrequests -->|"notifies adopters"| node_email
node_providerhistory -.->|"loads history"| node_dao
node_providerprofile -.->|"updates profile"| node_dao
node_user -.->|"administers"| node_reports
node_reports -->|"handles reports"| node_dao
node_accountadmin -->|"lists accounts"| node_dao
node_unfreeze -->|"handles requests"| node_dao
node_unfreeze -->|"notifies providers"| node_email
node_petreport -.->|"files reports"| node_dao
node_dao -->|"uses connector"| node_mysql
node_mysql -->|"queries"| node_database
node_email -->|"sends SMTP"| node_mail

click node_launch "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/group3petadoptionsystem/Group3PetAdoptionSystem.java"
click node_login "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/LoginController.java"
click node_signup "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/SignUpController.java"
click node_otp "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/OTPController.java"
click node_authview "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/view/Login.java"
click node_otpview "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/view/OTPWindow.java"
click node_signupview "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/view/SignupWindow.java"
click node_browse "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/PetController.java"
click node_adopterhome "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/view/AdopterHomePage.java"
click node_petdetails "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/PetDetailsController.java"
click node_petviews "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/view/AdopterViewPetDetails.java"
click node_favourites "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/PetFavController.java"
click node_request "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/AdoptionReqController.java"
click node_tracking "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/AdoptionRequestTrackingController.java"
click node_shelterbrowse "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/ShelterController.java"
click node_shelterdetail "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/ShelterDetailController.java"
click node_navigation "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/NavigationController.java"
click node_providerpets "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/PetController.java"
click node_providerhome "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/view/ProviderHomePage.java"
click node_providerrequests "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/AdoptionRequestsBoardController.java"
click node_providerhistory "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/ProviderAdoptionHistoryController.java"
click node_providerprofile "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/ProviderProfileController.java"
click node_reports "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/AdminReportedAccountController.java"
click node_accountadmin "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/AdminAllAccountsController.java"
click node_unfreeze "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/AdminUnfreezeController.java"
click node_petreport "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/ReportPetProviderController.java"
click node_dao "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/tree/master/src/DAO"
click node_models "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/model/PetsData.java"
click node_mysql "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/database/MySqlConnector.java"
click node_email "https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/utils/EmailService.java"

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_launch,node_login,node_signup,node_otp,node_authview,node_otpview,node_signupview,node_user toneBlue
class node_browse,node_adopterhome,node_petdetails,node_petviews,node_favourites,node_request,node_tracking,node_shelterbrowse,node_shelterdetail,node_navigation,node_database toneAmber
class node_providerpets,node_providerhome,node_providerrequests,node_providerhistory,node_providerprofile toneMint
class node_reports,node_accountadmin,node_unfreeze,node_petreport toneRose
class node_dao,node_models,node_mysql,node_email,node_mail toneIndigo
```

## Components

### App and access

- [Desktop startup](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/group3petadoptionsystem/Group3PetAdoptionSystem.java): `src/group3petadoptionsystem/Group3PetAdoptionSystem.java`
- [Login and registration](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/LoginController.java): `src/Controller/LoginController.java`
- [Signup flow](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/SignUpController.java): `src/Controller/SignUpController.java`
- [OTP verification](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/OTPController.java): `src/Controller/OTPController.java`
- [Access windows](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/view/Login.java): `src/view/Login.java`
- [OTP window](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/view/OTPWindow.java): `src/view/OTPWindow.java`
- [Signup window](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/view/SignupWindow.java): `src/view/SignupWindow.java`

### Adopter experience

- [Pet browsing and filters](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/PetController.java): `src/Controller/PetController.java`
- [Adopter home](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/view/AdopterHomePage.java): `src/view/AdopterHomePage.java`
- [Pet details](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/PetDetailsController.java): `src/Controller/PetDetailsController.java`
- [Pet detail views](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/view/AdopterViewPetDetails.java): `src/view/AdopterViewPetDetails.java`
- [Saved favourites](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/PetFavController.java): `src/Controller/PetFavController.java`
- [Adoption request](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/AdoptionReqController.java): `src/Controller/AdoptionReqController.java`
- [Request tracking](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/AdoptionRequestTrackingController.java): `src/Controller/AdoptionRequestTrackingController.java`
- [Shelter discovery](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/ShelterController.java): `src/Controller/ShelterController.java`
- [Shelter details](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/ShelterDetailController.java): `src/Controller/ShelterDetailController.java`
- [Adopter navigation](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/NavigationController.java): `src/Controller/NavigationController.java`

### Shelter operations

- [Listing management](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/PetController.java): `src/Controller/PetController.java`
- [Provider home](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/view/ProviderHomePage.java): `src/view/ProviderHomePage.java`
- [Request decisions](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/AdoptionRequestsBoardController.java): `src/Controller/AdoptionRequestsBoardController.java`
- [Adoption history](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/ProviderAdoptionHistoryController.java): `src/Controller/ProviderAdoptionHistoryController.java`
- [Provider profiles](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/ProviderProfileController.java): `src/Controller/ProviderProfileController.java`

### Administration

- [Account reports](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/AdminReportedAccountController.java): `src/Controller/AdminReportedAccountController.java`
- [Account status](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/AdminAllAccountsController.java): `src/Controller/AdminAllAccountsController.java`
- [Unfreeze requests](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/AdminUnfreezeController.java): `src/Controller/AdminUnfreezeController.java`
- [Provider reporting](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/Controller/ReportPetProviderController.java): `src/Controller/ReportPetProviderController.java`

### Persistence and services

- [Data access](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/tree/master/src/DAO): `src/DAO`
- [Domain and session data](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/model/PetsData.java): `src/model/PetsData.java`
- [MySQL connector](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/database/MySqlConnector.java): `src/database/MySqlConnector.java`
- [Email notifications](https://github.com/nosin-stha/group-3_petadoptionsystem_39b_computing/blob/master/src/utils/EmailService.java): `src/utils/EmailService.java`

### Other components

- **User**
- **Pet adoption database**
- **SMTP mail service**

## Connections

- User → Desktop startup: starts (evidence: `src/group3petadoptionsystem/Group3PetAdoptionSystem.java`)
- Desktop startup → Login and registration: opens (evidence: `src/group3petadoptionsystem/Group3PetAdoptionSystem.java`)
- Desktop startup → Access windows: shows (evidence: `src/group3petadoptionsystem/Group3PetAdoptionSystem.java`)
- User → Access windows: uses
- Login and registration → Signup flow: opens (evidence: `src/Controller/LoginController.java`)
- Login and registration → OTP verification: verifies (evidence: `src/Controller/OTPController.java`)
- Signup flow → OTP verification: verifies (evidence: `src/Controller/SignUpController.java`)
- Login and registration → Access windows: controls (evidence: `src/Controller/LoginController.java`)
- OTP verification → OTP window: controls (evidence: `src/Controller/OTPController.java`)
- Signup flow → Signup window: controls (evidence: `src/Controller/SignUpController.java`)
- OTP verification → Email notifications: sends codes (evidence: `src/Controller/OTPController.java`)
- User → Adopter home: browses (evidence: `src/view/AdopterHomePage.java`)
- Adopter home → Pet browsing and filters: loads pets (evidence: `src/view/AdopterHomePage.java`)
- Pet browsing and filters → Adopter home: renders cards (evidence: `src/Controller/PetController.java`)
- Pet browsing and filters → Data access: queries listings (evidence: `src/Controller/PetController.java`)
- Pet browsing and filters → Pet details: opens details (evidence: `src/Controller/PetController.java`)
- Pet details → Pet detail views: populates (evidence: `src/Controller/PetDetailsController.java`)
- Pet details → Data access: loads pet data (evidence: `src/Controller/PetDetailsController.java`)
- Pet details → Shelter details: opens shelter (evidence: `src/Controller/PetDetailsController.java`)
- Pet details → Adoption request: starts application (evidence: `src/Controller/PetDetailsController.java`)
- Saved favourites → Data access: reads favourites (evidence: `src/Controller/PetFavController.java`)
- Saved favourites → Pet details: opens details (evidence: `src/Controller/PetFavController.java`)
- Adoption request → Data access: stores request (evidence: `src/Controller/AdoptionReqController.java`)
- Request tracking → Data access: loads status
- Shelter discovery → Data access: loads shelters
- Shelter details → Data access: loads details (evidence: `src/Controller/ShelterDetailController.java`)
- Adopter navigation → Shelter discovery: opens listing (evidence: `src/Controller/NavigationController.java`)
- Adopter navigation → Saved favourites: opens favourites (evidence: `src/Controller/NavigationController.java`)
- User → Provider home: manages
- Provider home → Listing management: manages listings (evidence: `src/Controller/PetController.java`)
- Listing management → Data access: saves listings (evidence: `src/Controller/PetController.java`)
- Provider home → Request decisions: reviews applications
- Request decisions → Data access: loads decisions (evidence: `src/Controller/AdoptionRequestsBoardController.java`)
- Request decisions → Email notifications: notifies adopters (evidence: `src/Controller/AdoptionRequestsBoardController.java`)
- Adoption history → Data access: loads history
- Provider profiles → Data access: updates profile
- User → Account reports: administers
- Account reports → Data access: handles reports (evidence: `src/Controller/AdminReportedAccountController.java`)
- Account status → Data access: lists accounts (evidence: `src/Controller/AdminAllAccountsController.java`)
- Unfreeze requests → Data access: handles requests (evidence: `src/Controller/AdminUnfreezeController.java`)
- Unfreeze requests → Email notifications: notifies providers (evidence: `src/Controller/AdminUnfreezeController.java`)
- Provider reporting → Data access: files reports
- Data access → MySQL connector: uses connector (evidence: `src/DAO/PetDAO.java`)
- MySQL connector → Pet adoption database: queries (evidence: `src/database/MySqlConnector.java`)
- Email notifications → SMTP mail service: sends SMTP (evidence: `src/utils/EmailService.java`)
