# conor-20105865/conflictglobe architecture

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

- Interactive diagram: https://gitdiagram.com/conor-20105865/conflictglobe
- Repository: https://github.com/conor-20105865/conflictglobe
- Video tour (about a minute): https://gitdiagram.com/conor-20105865/conflictglobe/video

## Overview

ConflictGlobe is an Android app for maintaining conflict records. The main workflow is to browse, search, or filter records, open a record to view details, and add or edit records with validated fields; changes are persisted locally as JSON. The README documents these capabilities and the named Kotlin classes, but no application source was excerpted, so internal call ownership and screen wiring cannot be verified. Edges below reflect documented behavior, not inspected call sites.

Main entry points: [`app/src/main/java/com/example/conflictglobe/MainActivity.kt`](https://github.com/conor-20105865/conflictglobe/blob/main/app/src/main/java/com/example/conflictglobe/MainActivity.kt) (Browse and search), [`app/src/main/java/com/example/conflictglobe/AddEditConflictActivity.kt`](https://github.com/conor-20105865/conflictglobe/blob/main/app/src/main/java/com/example/conflictglobe/AddEditConflictActivity.kt) (Add and edit), [`app/src/main/java/com/example/conflictglobe/ConflictStore.kt`](https://github.com/conor-20105865/conflictglobe/blob/main/app/src/main/java/com/example/conflictglobe/ConflictStore.kt) (JSON store), [`app/src/main/java/com/example/conflictglobe/ConflictDetailActivity.kt`](https://github.com/conor-20105865/conflictglobe/blob/main/app/src/main/java/com/example/conflictglobe/ConflictDetailActivity.kt) (Conflict details)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_screens["User screens"]
  node_main["Browse and search<br/>[MainActivity.kt]"]
  node_adapter["Conflict list<br/>[ConflictAdapter.kt]"]
  node_edit["Add and edit"]
  node_detail["Conflict details"]
end

subgraph group_records["Conflict records"]
  node_conflict["Conflict model<br/>[Conflict.kt]"]
end

subgraph group_persistence["Local persistence"]
  node_store["JSON store<br/>[ConflictStore.kt]"]
  node_json[("Local JSON file")]
end

node_user(("User"))

node_user -->|"browses records"| node_main
node_main -->|"shows list"| node_adapter
node_main -->|"loads records"| node_store
node_main -->|"opens editing"| node_edit
node_main -->|"opens details"| node_detail
node_edit -->|"validates fields"| node_conflict
node_edit -->|"saves changes"| node_store
node_store -->|"reads and writes"| node_json
node_detail -->|"shows fields"| node_conflict

click node_main "https://github.com/conor-20105865/conflictglobe/blob/main/app/src/main/java/com/example/conflictglobe/MainActivity.kt"
click node_adapter "https://github.com/conor-20105865/conflictglobe/blob/main/app/src/main/java/com/example/conflictglobe/ConflictAdapter.kt"
click node_edit "https://github.com/conor-20105865/conflictglobe/blob/main/app/src/main/java/com/example/conflictglobe/AddEditConflictActivity.kt"
click node_detail "https://github.com/conor-20105865/conflictglobe/blob/main/app/src/main/java/com/example/conflictglobe/ConflictDetailActivity.kt"
click node_conflict "https://github.com/conor-20105865/conflictglobe/blob/main/app/src/main/java/com/example/conflictglobe/Conflict.kt"
click node_store "https://github.com/conor-20105865/conflictglobe/blob/main/app/src/main/java/com/example/conflictglobe/ConflictStore.kt"

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_main,node_adapter,node_edit,node_detail,node_user toneBlue
class node_conflict toneAmber
class node_store,node_json toneMint
```

## Components

### User screens

- [Browse and search](https://github.com/conor-20105865/conflictglobe/blob/main/app/src/main/java/com/example/conflictglobe/MainActivity.kt): `app/src/main/java/com/example/conflictglobe/MainActivity.kt`
- [Conflict list](https://github.com/conor-20105865/conflictglobe/blob/main/app/src/main/java/com/example/conflictglobe/ConflictAdapter.kt): `app/src/main/java/com/example/conflictglobe/ConflictAdapter.kt`
- [Add and edit](https://github.com/conor-20105865/conflictglobe/blob/main/app/src/main/java/com/example/conflictglobe/AddEditConflictActivity.kt): `app/src/main/java/com/example/conflictglobe/AddEditConflictActivity.kt`
- [Conflict details](https://github.com/conor-20105865/conflictglobe/blob/main/app/src/main/java/com/example/conflictglobe/ConflictDetailActivity.kt): `app/src/main/java/com/example/conflictglobe/ConflictDetailActivity.kt`

### Conflict records

- [Conflict model](https://github.com/conor-20105865/conflictglobe/blob/main/app/src/main/java/com/example/conflictglobe/Conflict.kt): `app/src/main/java/com/example/conflictglobe/Conflict.kt`

### Local persistence

- [JSON store](https://github.com/conor-20105865/conflictglobe/blob/main/app/src/main/java/com/example/conflictglobe/ConflictStore.kt): `app/src/main/java/com/example/conflictglobe/ConflictStore.kt`
- **Local JSON file**

### Other components

- **User**

## Connections

- User → Browse and search: browses records (evidence: `README.md`)
- Browse and search → Conflict list: shows list (evidence: `README.md`)
- Browse and search → JSON store: loads records (evidence: `README.md`)
- Browse and search → Add and edit: opens editing (evidence: `README.md`)
- Browse and search → Conflict details: opens details (evidence: `README.md`)
- Add and edit → Conflict model: validates fields (evidence: `README.md`)
- Add and edit → JSON store: saves changes (evidence: `README.md`)
- JSON store → Local JSON file: reads and writes (evidence: `README.md`)
- Conflict details → Conflict model: shows fields (evidence: `README.md`)
