# harripersoda/prg271-baobab-ridge architecture

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

- Interactive diagram: https://gitdiagram.com/harripersoda/prg271-baobab-ridge
- Repository: https://github.com/harripersoda/prg271-baobab-ridge

## Overview

Baobab Ridge is a Windows Forms wildlife rehabilitation records application. Its visible workflow loads pipe-delimited animal records, validates fields and stored classifications, constructs animal records, then binds accepted records to the form’s grid. The model derives status and housing from recovery score. The README names the broader records-system product, but the sampled code shows only this loading and display workflow; editing and other capabilities are not established.

Main entry points: [`PRG271-Baobab-Ridge/Form1.cs`](https://github.com/harripersoda/prg271-baobab-ridge/blob/main/PRG271-Baobab-Ridge/Form1.cs) (Record loader and grid), [`PRG271-Baobab-Ridge/Program.cs`](https://github.com/harripersoda/prg271-baobab-ridge/blob/main/PRG271-Baobab-Ridge/Program.cs) (App entry point), [`PRG271-Baobab-Ridge/AnimalValidator.cs`](https://github.com/harripersoda/prg271-baobab-ridge/blob/main/PRG271-Baobab-Ridge/AnimalValidator.cs) (Field validation), [`PRG271-Baobab-Ridge/Animal.cs`](https://github.com/harripersoda/prg271-baobab-ridge/blob/main/PRG271-Baobab-Ridge/Animal.cs) (Animal classification)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_startup["Application startup"]
  node_program["App entry point<br/>[Program.cs]"]
end

subgraph group_records["Animal records"]
  node_validator["Field validation<br/>[AnimalValidator.cs]"]
  node_animal["Animal classification<br/>[Animal.cs]"]
  node_file[("Animal records file<br/>[animals.txt]")]
end

subgraph group_presentation["Records interface"]
  node_form["Record loader and grid<br/>[Form1.cs]"]
end

node_staff(("Wildlife staff"))

node_program -->|"starts"| node_form
node_form -->|"reads records"| node_file
node_form -->|"validates fields"| node_validator
node_form -->|"constructs records"| node_animal
node_staff -.->|"uses interface"| node_form
node_form -.->|"shows accepted records"| node_staff

click node_program "https://github.com/harripersoda/prg271-baobab-ridge/blob/main/PRG271-Baobab-Ridge/Program.cs"
click node_form "https://github.com/harripersoda/prg271-baobab-ridge/blob/main/PRG271-Baobab-Ridge/Form1.cs"
click node_validator "https://github.com/harripersoda/prg271-baobab-ridge/blob/main/PRG271-Baobab-Ridge/AnimalValidator.cs"
click node_animal "https://github.com/harripersoda/prg271-baobab-ridge/blob/main/PRG271-Baobab-Ridge/Animal.cs"
click node_file "https://github.com/harripersoda/prg271-baobab-ridge/blob/main/PRG271-Baobab-Ridge/animals.txt"

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_program toneBlue
class node_validator,node_animal,node_file toneAmber
class node_form toneMint
class node_staff toneIndigo
```

## Components

### Application startup

- [App entry point](https://github.com/harripersoda/prg271-baobab-ridge/blob/main/PRG271-Baobab-Ridge/Program.cs): `PRG271-Baobab-Ridge/Program.cs`

### Animal records

- [Field validation](https://github.com/harripersoda/prg271-baobab-ridge/blob/main/PRG271-Baobab-Ridge/AnimalValidator.cs): `PRG271-Baobab-Ridge/AnimalValidator.cs`
- [Animal classification](https://github.com/harripersoda/prg271-baobab-ridge/blob/main/PRG271-Baobab-Ridge/Animal.cs): `PRG271-Baobab-Ridge/Animal.cs`
- [Animal records file](https://github.com/harripersoda/prg271-baobab-ridge/blob/main/PRG271-Baobab-Ridge/animals.txt): `PRG271-Baobab-Ridge/animals.txt`

### Records interface

- [Record loader and grid](https://github.com/harripersoda/prg271-baobab-ridge/blob/main/PRG271-Baobab-Ridge/Form1.cs): `PRG271-Baobab-Ridge/Form1.cs`

### Other components

- **Wildlife staff**

## Connections

- App entry point → Record loader and grid: starts (evidence: `PRG271-Baobab-Ridge/Program.cs`)
- Record loader and grid → Animal records file: reads records (evidence: `PRG271-Baobab-Ridge/Form1.cs`)
- Record loader and grid → Field validation: validates fields (evidence: `PRG271-Baobab-Ridge/Form1.cs`)
- Record loader and grid → Animal classification: constructs records (evidence: `PRG271-Baobab-Ridge/Form1.cs`)
- Wildlife staff → Record loader and grid: uses interface
- Record loader and grid → Wildlife staff: shows accepted records
