# cheshire137/nash-grave-plot architecture

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

- Interactive diagram: https://gitdiagram.com/cheshire137/nash-grave-plot
- Repository: https://github.com/cheshire137/nash-grave-plot

## Overview

NashGravePlot is a Nashville cemetery-information browser. Visitors browse interment records in a filterable, paginated table, adjust visible fields, and can switch to a photo gallery or About page. The data context converts the bundled survey features into sorted domain records; table columns and filters expose the survey’s person, location, marker, parcel, and survey details. The README also documents the photo-gallery capability. Unsampled component implementations limit the detail shown for some display and filter interactions.

Main entry points: [`src/App.tsx`](https://github.com/cheshire137/nash-grave-plot/blob/main/src/App.tsx) (App routes), [`src/components/IntermentList.tsx`](https://github.com/cheshire137/nash-grave-plot/blob/main/src/components/IntermentList.tsx) (Interment table), [`src/hooks/use-interment-list-columns.ts`](https://github.com/cheshire137/nash-grave-plot/blob/main/src/hooks/use-interment-list-columns.ts) (Column configuration), [`src/contexts/EnabledFieldsContext.tsx`](https://github.com/cheshire137/nash-grave-plot/blob/main/src/contexts/EnabledFieldsContext.tsx) (Enabled fields)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App routing"]
  node_app["App routes<br/>[App.tsx]"]
  node_layout["Page layout<br/>[AppLayout.tsx]"]
  node_about["About page<br/>[AboutPage.tsx]"]
end

subgraph group_records["Records and data"]
  node_recorddata["Survey data context"]
  node_interment["Interment model<br/>[Interment.ts]"]
  node_cemetery["Cemetery model<br/>[Cemetery.ts]"]
  node_address["Address model<br/>[Address.ts]"]
  node_person["Person model<br/>[Person.ts]"]
  node_inscription["Inscription model<br/>[Inscription.ts]"]
end

subgraph group_browse["Browse and filter"]
  node_filterlogic["Filter logic<br/>[filters.ts]"]
  node_columns["Column configuration"]
  node_filterdialogs["Filter dialogs"]
  node_cemfilter["Cemetery filter dialog"]
  node_personfilter["Person filter dialog"]
  node_parcel["Parcel filter dialog"]
  node_table["Interment table<br/>[IntermentList.tsx]"]
  node_gallery["Photo gallery<br/>[PhotoGallery.tsx]"]
end

subgraph group_state["View state"]
  node_fields["Enabled fields"]
  node_fielddialog["Column settings"]
  node_page["Page state<br/>[PageContext.tsx]"]
  node_windowsize["Window dimensions"]
  node_localstorage[("Browser storage<br/>[LocalStorage.ts]")]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_app
node_app -->|"routes through"| node_layout
node_app -->|"routes to"| node_table
node_app -->|"routes to"| node_gallery
node_app -->|"routes to"| node_about
node_app -->|"provides context"| node_recorddata
node_app -->|"provides context"| node_fields
node_app -->|"provides context"| node_page
node_app -->|"provides context"| node_windowsize
node_recorddata -->|"constructs records"| node_interment
node_interment -->|"constructs"| node_person
node_interment -->|"constructs"| node_cemetery
node_interment -->|"constructs"| node_inscription
node_cemetery -->|"constructs"| node_address
node_table -->|"reads records"| node_recorddata
node_table -->|"configures filters"| node_filterlogic
node_table -->|"gets columns"| node_columns
node_table -->|"reads settings"| node_fields
node_table -->|"sets page details"| node_page
node_columns -->|"reads enabled fields"| node_fields
node_columns -->|"uses address filter"| node_filterdialogs
node_columns -->|"uses cemetery filter"| node_cemfilter
node_columns -->|"uses person filter"| node_personfilter
node_columns -->|"uses parcel filter"| node_parcel
node_fielddialog -->|"updates settings"| node_fields
node_fields -->|"reads and writes"| node_localstorage
node_gallery -->|"reads records"| node_recorddata
node_gallery -->|"sets page details"| node_page
node_table -->|"sizes rows"| node_windowsize
node_layout -->|"reads page state"| node_page
node_about -->|"sets page title"| node_page

click node_app "https://github.com/cheshire137/nash-grave-plot/blob/main/src/App.tsx"
click node_layout "https://github.com/cheshire137/nash-grave-plot/blob/main/src/components/AppLayout.tsx"
click node_about "https://github.com/cheshire137/nash-grave-plot/blob/main/src/components/AboutPage.tsx"
click node_recorddata "https://github.com/cheshire137/nash-grave-plot/blob/main/src/contexts/CemeteryDataContext.tsx"
click node_interment "https://github.com/cheshire137/nash-grave-plot/blob/main/src/models/Interment.ts"
click node_cemetery "https://github.com/cheshire137/nash-grave-plot/blob/main/src/models/Cemetery.ts"
click node_address "https://github.com/cheshire137/nash-grave-plot/blob/main/src/models/Address.ts"
click node_person "https://github.com/cheshire137/nash-grave-plot/blob/main/src/models/Person.ts"
click node_inscription "https://github.com/cheshire137/nash-grave-plot/blob/main/src/models/Inscription.ts"
click node_filterlogic "https://github.com/cheshire137/nash-grave-plot/blob/main/src/filters.ts"
click node_columns "https://github.com/cheshire137/nash-grave-plot/blob/main/src/hooks/use-interment-list-columns.ts"
click node_filterdialogs "https://github.com/cheshire137/nash-grave-plot/blob/main/src/components/AddressFilterDialog.tsx"
click node_cemfilter "https://github.com/cheshire137/nash-grave-plot/blob/main/src/components/CemeteryFilterDialog.tsx"
click node_personfilter "https://github.com/cheshire137/nash-grave-plot/blob/main/src/components/PersonFilterDialog.tsx"
click node_parcel "https://github.com/cheshire137/nash-grave-plot/blob/main/src/components/TractParcelFilterDialog.tsx"
click node_table "https://github.com/cheshire137/nash-grave-plot/blob/main/src/components/IntermentList.tsx"
click node_gallery "https://github.com/cheshire137/nash-grave-plot/blob/main/src/components/PhotoGallery.tsx"
click node_fields "https://github.com/cheshire137/nash-grave-plot/blob/main/src/contexts/EnabledFieldsContext.tsx"
click node_fielddialog "https://github.com/cheshire137/nash-grave-plot/blob/main/src/components/EnabledColumnsDialog.tsx"
click node_page "https://github.com/cheshire137/nash-grave-plot/blob/main/src/contexts/PageContext.tsx"
click node_windowsize "https://github.com/cheshire137/nash-grave-plot/blob/main/src/contexts/WindowSizeContext.tsx"
click node_localstorage "https://github.com/cheshire137/nash-grave-plot/blob/main/src/models/LocalStorage.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_app,node_layout,node_about toneBlue
class node_recorddata,node_interment,node_cemetery,node_address,node_person,node_inscription toneAmber
class node_filterlogic,node_columns,node_filterdialogs,node_cemfilter,node_personfilter,node_parcel,node_table,node_gallery toneMint
class node_fields,node_fielddialog,node_page,node_windowsize,node_localstorage toneRose
class node_visitor toneIndigo
```

## Components

### App routing

- [App routes](https://github.com/cheshire137/nash-grave-plot/blob/main/src/App.tsx): `src/App.tsx`
- [Page layout](https://github.com/cheshire137/nash-grave-plot/blob/main/src/components/AppLayout.tsx): `src/components/AppLayout.tsx`
- [About page](https://github.com/cheshire137/nash-grave-plot/blob/main/src/components/AboutPage.tsx): `src/components/AboutPage.tsx`

### Records and data

- [Survey data context](https://github.com/cheshire137/nash-grave-plot/blob/main/src/contexts/CemeteryDataContext.tsx): `src/contexts/CemeteryDataContext.tsx`
- [Interment model](https://github.com/cheshire137/nash-grave-plot/blob/main/src/models/Interment.ts): `src/models/Interment.ts`
- [Cemetery model](https://github.com/cheshire137/nash-grave-plot/blob/main/src/models/Cemetery.ts): `src/models/Cemetery.ts`
- [Address model](https://github.com/cheshire137/nash-grave-plot/blob/main/src/models/Address.ts): `src/models/Address.ts`
- [Person model](https://github.com/cheshire137/nash-grave-plot/blob/main/src/models/Person.ts): `src/models/Person.ts`
- [Inscription model](https://github.com/cheshire137/nash-grave-plot/blob/main/src/models/Inscription.ts): `src/models/Inscription.ts`

### Browse and filter

- [Filter logic](https://github.com/cheshire137/nash-grave-plot/blob/main/src/filters.ts): `src/filters.ts`
- [Column configuration](https://github.com/cheshire137/nash-grave-plot/blob/main/src/hooks/use-interment-list-columns.ts): `src/hooks/use-interment-list-columns.ts`
- [Filter dialogs](https://github.com/cheshire137/nash-grave-plot/blob/main/src/components/AddressFilterDialog.tsx): `src/components/AddressFilterDialog.tsx`
- [Cemetery filter dialog](https://github.com/cheshire137/nash-grave-plot/blob/main/src/components/CemeteryFilterDialog.tsx): `src/components/CemeteryFilterDialog.tsx`
- [Person filter dialog](https://github.com/cheshire137/nash-grave-plot/blob/main/src/components/PersonFilterDialog.tsx): `src/components/PersonFilterDialog.tsx`
- [Parcel filter dialog](https://github.com/cheshire137/nash-grave-plot/blob/main/src/components/TractParcelFilterDialog.tsx): `src/components/TractParcelFilterDialog.tsx`
- [Interment table](https://github.com/cheshire137/nash-grave-plot/blob/main/src/components/IntermentList.tsx): `src/components/IntermentList.tsx`
- [Photo gallery](https://github.com/cheshire137/nash-grave-plot/blob/main/src/components/PhotoGallery.tsx): `src/components/PhotoGallery.tsx`

### View state

- [Enabled fields](https://github.com/cheshire137/nash-grave-plot/blob/main/src/contexts/EnabledFieldsContext.tsx): `src/contexts/EnabledFieldsContext.tsx`
- [Column settings](https://github.com/cheshire137/nash-grave-plot/blob/main/src/components/EnabledColumnsDialog.tsx): `src/components/EnabledColumnsDialog.tsx`
- [Page state](https://github.com/cheshire137/nash-grave-plot/blob/main/src/contexts/PageContext.tsx): `src/contexts/PageContext.tsx`
- [Window dimensions](https://github.com/cheshire137/nash-grave-plot/blob/main/src/contexts/WindowSizeContext.tsx): `src/contexts/WindowSizeContext.tsx`
- [Browser storage](https://github.com/cheshire137/nash-grave-plot/blob/main/src/models/LocalStorage.ts): `src/models/LocalStorage.ts`

### Other components

- **Visitor**

## Connections

- Visitor → App routes: opens (evidence: `src/App.tsx`)
- App routes → Page layout: routes through (evidence: `src/App.tsx`)
- App routes → Interment table: routes to (evidence: `src/App.tsx`)
- App routes → Photo gallery: routes to (evidence: `src/App.tsx`)
- App routes → About page: routes to (evidence: `src/App.tsx`)
- App routes → Survey data context: provides context (evidence: `src/App.tsx`)
- App routes → Enabled fields: provides context (evidence: `src/App.tsx`)
- App routes → Page state: provides context (evidence: `src/App.tsx`)
- App routes → Window dimensions: provides context (evidence: `src/App.tsx`)
- Survey data context → Interment model: constructs records (evidence: `src/contexts/CemeteryDataContext.tsx`)
- Interment model → Person model: constructs (evidence: `src/models/Interment.ts`)
- Interment model → Cemetery model: constructs (evidence: `src/models/Interment.ts`)
- Interment model → Inscription model: constructs (evidence: `src/models/Interment.ts`)
- Cemetery model → Address model: constructs (evidence: `src/models/Cemetery.ts`)
- Interment table → Survey data context: reads records (evidence: `src/components/IntermentList.tsx`)
- Interment table → Filter logic: configures filters (evidence: `src/components/IntermentList.tsx`)
- Interment table → Column configuration: gets columns (evidence: `src/components/IntermentList.tsx`)
- Interment table → Enabled fields: reads settings (evidence: `src/components/IntermentList.tsx`)
- Interment table → Page state: sets page details (evidence: `src/components/IntermentList.tsx`)
- Column configuration → Enabled fields: reads enabled fields (evidence: `src/hooks/use-interment-list-columns.ts`)
- Column configuration → Filter dialogs: uses address filter (evidence: `src/hooks/use-interment-list-columns.ts`)
- Column configuration → Cemetery filter dialog: uses cemetery filter (evidence: `src/hooks/use-interment-list-columns.ts`)
- Column configuration → Person filter dialog: uses person filter (evidence: `src/hooks/use-interment-list-columns.ts`)
- Column configuration → Parcel filter dialog: uses parcel filter (evidence: `src/hooks/use-interment-list-columns.ts`)
- Column settings → Enabled fields: updates settings (evidence: `src/components/EnabledColumnsDialog.tsx`)
- Enabled fields → Browser storage: reads and writes (evidence: `src/contexts/EnabledFieldsContext.tsx`)
- Photo gallery → Survey data context: reads records (evidence: `src/components/PhotoGallery.tsx`)
- Photo gallery → Page state: sets page details (evidence: `src/components/PhotoGallery.tsx`)
- Interment table → Window dimensions: sizes rows (evidence: `src/components/IntermentList.tsx`)
- Page layout → Page state: reads page state (evidence: `src/components/AppLayout.tsx`)
- About page → Page state: sets page title (evidence: `src/components/AboutPage.tsx`)
