# makchay/afm-house-of-glory-member-form architecture

> Architecture diagram of the GitHub repository makchay/afm-house-of-glory-member-form, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/makchay/afm-house-of-glory-member-form
- Repository: https://github.com/makchay/afm-house-of-glory-member-form

## Overview

AFM House of Glory’s member system supports public registration and an administrator portal, with a home-cell directory and management workflow. Members submit validated details and select a home cell; administrators authenticate, review/search submissions, and edit or delete records, while separately managing home cells. Firebase Authentication and Firestore provide the documented backend. The sampled source shows the registration writes and reads, dashboard reads/updates, and home-cell reads/writes. Deletion and some admin behaviors are README-supported but not visible in the excerpts.

Main entry points: [`app/admin/dashboard/page.tsx`](https://github.com/makchay/afm-house-of-glory-member-form/blob/main/app/admin/dashboard/page.tsx) (Member Dashboard), [`app/submission-form.tsx`](https://github.com/makchay/afm-house-of-glory-member-form/blob/main/app/submission-form.tsx) (Member Registration), [`app/home-cells/page.tsx`](https://github.com/makchay/afm-house-of-glory-member-form/blob/main/app/home-cells/page.tsx) (Home Cell Directory), [`app/admin/home-cells/page.tsx`](https://github.com/makchay/afm-house-of-glory-member-form/blob/main/app/admin/home-cells/page.tsx) (Home Cell Management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public Experience"]
  node_home["Church Home<br/>[page.tsx]"]
  node_registration["Member Registration"]
  node_formroute["Form Route<br/>[page.tsx]"]
  node_directory["Home Cell Directory<br/>[page.tsx]"]
  node_footer["Church Footer<br/>[footer.tsx]"]
end

subgraph group_admin["Administration"]
  node_login["Admin Login<br/>[page.tsx]"]
  node_dashboard["Member Dashboard<br/>[page.tsx]"]
  node_celladmin["Home Cell Management<br/>[page.tsx]"]
end

subgraph group_backend["Firebase Services"]
  node_firebase["Firebase Setup<br/>[firebase.ts]"]
  node_auth["Firebase Authentication"]
  node_firestore[("Cloud Firestore")]
end

subgraph group_shared["Shared Domain"]
  node_submissiondata["Member Submission Types<br/>[types.ts]"]
  node_seedcells["Default Cell Seed Data<br/>[seed-homecells.ts]"]
end

node_visitor(("Member / Visitor"))
node_adminactor(("Administrator"))

node_visitor -->|"visits"| node_home
node_visitor -->|"opens form"| node_formroute
node_visitor -->|"browses cells"| node_directory
node_formroute -->|"renders"| node_registration
node_home -->|"renders"| node_footer
node_formroute -->|"renders"| node_footer
node_directory -->|"renders"| node_footer
node_registration -->|"uses database"| node_firebase
node_registration -->|"reads cells"| node_firestore
node_registration -->|"writes submissions"| node_firestore
node_registration -->|"uses types"| node_submissiondata
node_directory -->|"uses database"| node_firebase
node_directory -->|"reads cells"| node_firestore
node_directory -->|"reads submissions"| node_firestore
node_adminactor -->|"signs in"| node_login
node_login -->|"uses auth"| node_firebase
node_login -->|"authenticates"| node_auth
node_login -->|"routes on success"| node_dashboard
node_adminactor -->|"manages members"| node_dashboard
node_dashboard -->|"uses database"| node_firebase
node_dashboard -->|"reads submissions"| node_firestore
node_dashboard -->|"updates submissions"| node_firestore
node_dashboard -.->|"deletes submissions"| node_firestore
node_adminactor -->|"manages cells"| node_celladmin
node_celladmin -->|"uses auth and database"| node_firebase
node_celladmin -->|"reads cells"| node_firestore
node_celladmin -->|"writes cells"| node_firestore
node_celladmin -->|"seeds defaults"| node_seedcells

click node_home "https://github.com/makchay/afm-house-of-glory-member-form/blob/main/app/page.tsx"
click node_registration "https://github.com/makchay/afm-house-of-glory-member-form/blob/main/app/submission-form.tsx"
click node_formroute "https://github.com/makchay/afm-house-of-glory-member-form/blob/main/app/form/page.tsx"
click node_directory "https://github.com/makchay/afm-house-of-glory-member-form/blob/main/app/home-cells/page.tsx"
click node_footer "https://github.com/makchay/afm-house-of-glory-member-form/blob/main/components/footer.tsx"
click node_login "https://github.com/makchay/afm-house-of-glory-member-form/blob/main/app/admin/login/page.tsx"
click node_dashboard "https://github.com/makchay/afm-house-of-glory-member-form/blob/main/app/admin/dashboard/page.tsx"
click node_celladmin "https://github.com/makchay/afm-house-of-glory-member-form/blob/main/app/admin/home-cells/page.tsx"
click node_firebase "https://github.com/makchay/afm-house-of-glory-member-form/blob/main/lib/firebase.ts"
click node_submissiondata "https://github.com/makchay/afm-house-of-glory-member-form/blob/main/lib/types.ts"
click node_seedcells "https://github.com/makchay/afm-house-of-glory-member-form/blob/main/lib/seed-homecells.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_home,node_registration,node_formroute,node_directory,node_footer toneBlue
class node_login,node_dashboard,node_celladmin toneAmber
class node_firebase,node_auth,node_firestore toneMint
class node_submissiondata,node_seedcells toneRose
class node_visitor,node_adminactor toneIndigo
```

## Components

### Public Experience

- [Church Home](https://github.com/makchay/afm-house-of-glory-member-form/blob/main/app/page.tsx): `app/page.tsx`
- [Member Registration](https://github.com/makchay/afm-house-of-glory-member-form/blob/main/app/submission-form.tsx): `app/submission-form.tsx`
- [Form Route](https://github.com/makchay/afm-house-of-glory-member-form/blob/main/app/form/page.tsx): `app/form/page.tsx`
- [Home Cell Directory](https://github.com/makchay/afm-house-of-glory-member-form/blob/main/app/home-cells/page.tsx): `app/home-cells/page.tsx`
- [Church Footer](https://github.com/makchay/afm-house-of-glory-member-form/blob/main/components/footer.tsx): `components/footer.tsx`

### Administration

- [Admin Login](https://github.com/makchay/afm-house-of-glory-member-form/blob/main/app/admin/login/page.tsx): `app/admin/login/page.tsx`
- [Member Dashboard](https://github.com/makchay/afm-house-of-glory-member-form/blob/main/app/admin/dashboard/page.tsx): `app/admin/dashboard/page.tsx`
- [Home Cell Management](https://github.com/makchay/afm-house-of-glory-member-form/blob/main/app/admin/home-cells/page.tsx): `app/admin/home-cells/page.tsx`

### Firebase Services

- [Firebase Setup](https://github.com/makchay/afm-house-of-glory-member-form/blob/main/lib/firebase.ts): `lib/firebase.ts`
- **Firebase Authentication**
- **Cloud Firestore**

### Shared Domain

- [Member Submission Types](https://github.com/makchay/afm-house-of-glory-member-form/blob/main/lib/types.ts): `lib/types.ts`
- [Default Cell Seed Data](https://github.com/makchay/afm-house-of-glory-member-form/blob/main/lib/seed-homecells.ts): `lib/seed-homecells.ts`

### Other components

- **Member / Visitor**
- **Administrator**

## Connections

- Member / Visitor → Church Home: visits (evidence: `app/page.tsx`)
- Member / Visitor → Form Route: opens form
- Member / Visitor → Home Cell Directory: browses cells (evidence: `app/home-cells/page.tsx`)
- Form Route → Member Registration: renders (evidence: `app/form/page.tsx`)
- Church Home → Church Footer: renders (evidence: `app/page.tsx`)
- Form Route → Church Footer: renders (evidence: `app/form/page.tsx`)
- Home Cell Directory → Church Footer: renders (evidence: `app/home-cells/page.tsx`)
- Member Registration → Firebase Setup: uses database (evidence: `app/submission-form.tsx`)
- Member Registration → Cloud Firestore: reads cells (evidence: `app/submission-form.tsx`)
- Member Registration → Cloud Firestore: writes submissions (evidence: `app/submission-form.tsx`)
- Member Registration → Member Submission Types: uses types (evidence: `app/submission-form.tsx`)
- Home Cell Directory → Firebase Setup: uses database (evidence: `app/home-cells/page.tsx`)
- Home Cell Directory → Cloud Firestore: reads cells (evidence: `app/home-cells/page.tsx`)
- Home Cell Directory → Cloud Firestore: reads submissions (evidence: `app/home-cells/page.tsx`)
- Administrator → Admin Login: signs in (evidence: `app/admin/login/page.tsx`)
- Admin Login → Firebase Setup: uses auth (evidence: `app/admin/login/page.tsx`)
- Admin Login → Firebase Authentication: authenticates (evidence: `app/admin/login/page.tsx`)
- Admin Login → Member Dashboard: routes on success (evidence: `app/admin/login/page.tsx`)
- Administrator → Member Dashboard: manages members (evidence: `README.md`)
- Member Dashboard → Firebase Setup: uses database (evidence: `app/admin/dashboard/page.tsx`)
- Member Dashboard → Cloud Firestore: reads submissions (evidence: `app/admin/dashboard/page.tsx`)
- Member Dashboard → Cloud Firestore: updates submissions (evidence: `app/admin/dashboard/page.tsx`)
- Member Dashboard → Cloud Firestore: deletes submissions (evidence: `README.md`)
- Administrator → Home Cell Management: manages cells (evidence: `app/admin/home-cells/page.tsx`)
- Home Cell Management → Firebase Setup: uses auth and database (evidence: `app/admin/home-cells/page.tsx`)
- Home Cell Management → Cloud Firestore: reads cells (evidence: `app/admin/home-cells/page.tsx`)
- Home Cell Management → Cloud Firestore: writes cells (evidence: `app/admin/home-cells/page.tsx`)
- Home Cell Management → Default Cell Seed Data: seeds defaults (evidence: `app/admin/home-cells/page.tsx`)
