# iamkr07/groundset-experience architecture

> Architecture diagram of the GitHub repository iamkr07/groundset-experience, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/iamkr07/groundset-experience
- Repository: https://github.com/iamkr07/groundset-experience

## Overview

#### Purpose and Entry Point

This is a Vite-powered React/TypeScript single-page interface for inspecting an auditable decision workflow. The app appears focused on presenting evidence extraction, rule evaluation, decisions, timelines, and developer/system inspection views rather than executing backend workflow logic.

Browser bootstrap occurs in `src/main.tsx`; the application composition root is `src/App.tsx`. Global visual styling is defined in `src/index.css`.

#### Application Shell and View Coordination

`src/App.tsx` is the central control boundary for the UI. It likely owns top-level state for the currently inspected decision and coordinates which panels or drawers are visible.

The shell assembles the primary narrative components:
- `src/components/Hero.tsx`
- `src/components/InspectDecision.tsx`
- `src/components/DecisionCard.tsx`

This makes `App.tsx` the primary place to modify screen-level layout, selected-decision state, and cross-component interactions.

#### Decision Inspection Surface

The decision-centric portion of the UI presents a decision and allows deeper examination of its underlying evidence and processing.

Key components:
- `src/components/DecisionCard.tsx` — summary/card representation of a decision.
- `src/components/InspectDecision.tsx` — detailed decision inspection experience.
- `src/components/EvidenceCard.tsx` — individual supporting evidence representation.
- `src/components/ExtractionPanel.tsx` — extracted fields or structured information associated with source evidence.

Primary flow is likely: decision selection → decision detail → evidence/extraction inspection. The components are presentation boundaries; no server, persistence, or API client layer is present in the repository tree.

#### Audit and Rule Explainability Timelines

The interface separates decision provenance into time-ordered views:
- `src/components/AuditTimeline.tsx`
- `src/components/RuleTimeline.tsx`

`AuditTimeline.tsx` represents the broader audit trail, while `RuleTimeline.tsx` focuses on rule evaluation or rule-related events. These are architecturally important because they expose the rationale/provenance layer independently of the decision summary.

#### Drawer-Based Deep Inspection

Secondary views are implemented as drawers, creating explicit detail boundaries without replacing the main decision screen:

- `src/components/InspectorDrawer.tsx` — general inspection side panel.
- `src/components/DeveloperViewDrawer.tsx` — developer-oriented diagnostics or implementation-facing detail.
- `src/components/SystemFlowDrawer.tsx` — system/process-flow visualization or explanation.

These drawers likely receive selected decision or workflow context from the app shell. Changes to drill-down behavior should preserve this parent-controlled coordination rather than duplicating state inside unrelated cards.

#### Runtime, Styling, and Infrastructure

The runtime is a client-side React application compiled and served by Vite:
- `package.json`
- `vite.config.ts`
- `src/main.tsx`

Styling is Tailwind/PostCSS-based:
- `tailwind.config.ts`
- `postcss.config.js`
- `src/index.css`

There are no visible backend services, API adapters, database schemas, authentication modules, or deployment infrastructure files. Therefore, current workflow/audit data is likely static, embedded in component state, or supplied through UI-local props rather than retrieved from an external service.

#### Main Architectural Boundaries

1. **Bootstrap/runtime:** `src/main.tsx` mounts the React tree.
2. **Application orchestration:** `src/App.tsx` composes views and should own shared interaction state.
3. **Decision presentation:** `src/components/DecisionCard.tsx`, `src/components/InspectDecision.tsx`.
4. **Evidence/extraction detail:** `src/components/EvidenceCard.tsx`, `src/components/ExtractionPanel.tsx`.
5. **Audit/rule provenance:** `src/components/AuditTimeline.tsx`, `src/components/RuleTimeline.tsx`.
6. **Advanced contextual views:** `src/components/InspectorDrawer.tsx`, `src/components/DeveloperViewDrawer.tsx`, `src/components/SystemFlowDrawer.tsx`.

Main entry points: [`src/App.tsx`](https://github.com/iamkr07/groundset-experience/blob/main/src/App.tsx) (Application shell), [`src/components/InspectDecision.tsx`](https://github.com/iamkr07/groundset-experience/blob/main/src/components/InspectDecision.tsx) (Decision inspector), [`src/main.tsx`](https://github.com/iamkr07/groundset-experience/blob/main/src/main.tsx) (React bootstrap), [`src/components/DecisionCard.tsx`](https://github.com/iamkr07/groundset-experience/blob/main/src/components/DecisionCard.tsx) (Decision card)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Client Runtime"]
  node_vite{{"Vite runtime<br/>build runtime<br/>[vite.config.ts]"}}
  node_main(("React bootstrap<br/>entry point<br/>[main.tsx]"))
  node_app["Application shell<br/>UI orchestrator<br/>[App.tsx]"]
  node_styles["Global styles<br/>Tailwind CSS<br/>[index.css]"]
end

subgraph group_decision["Decision Surface"]
  node_hero["Hero<br/>UI section<br/>[Hero.tsx]"]
  node_decision_card["Decision card<br/>decision summary<br/>[DecisionCard.tsx]"]
  node_inspect["Decision inspector<br/>detail view"]
  node_evidence["Evidence card<br/>evidence view<br/>[EvidenceCard.tsx]"]
  node_extraction["Extraction panel<br/>structured fields"]
end

subgraph group_provenance["Provenance"]
  node_audit["Audit timeline<br/>provenance timeline<br/>[AuditTimeline.tsx]"]
  node_rules["Rule timeline<br/>rule provenance<br/>[RuleTimeline.tsx]"]
end

subgraph group_drawers["Deep Inspection"]
  node_inspector_drawer["Inspector drawer<br/>context drawer"]
  node_developer_drawer["Developer view drawer<br/>diagnostic drawer"]
  node_system_flow_drawer["System flow drawer<br/>process drawer"]
end

node_vite -->|"serves"| node_main
node_main -->|"mounts"| node_app
node_main -->|"loads"| node_styles
node_app -->|"composes"| node_hero
node_app -->|"composes"| node_decision_card
node_app -->|"coordinates selected decision"| node_inspect
node_decision_card -->|"selects decision"| node_inspect
node_inspect -->|"shows supporting evidence"| node_evidence
node_evidence -->|"reveals extracted fields"| node_extraction
node_inspect -->|"exposes audit trail"| node_audit
node_inspect -->|"exposes rule evaluations"| node_rules
node_app -->|"controls context"| node_inspector_drawer
node_app -->|"controls context"| node_developer_drawer
node_app -->|"controls context"| node_system_flow_drawer
node_inspector_drawer -.->|"drills into"| node_inspect
node_developer_drawer -.->|"inspects decision context"| node_inspect
node_system_flow_drawer -.->|"explains process context"| node_audit

click node_vite "https://github.com/iamkr07/groundset-experience/blob/main/vite.config.ts"
click node_main "https://github.com/iamkr07/groundset-experience/blob/main/src/main.tsx"
click node_app "https://github.com/iamkr07/groundset-experience/blob/main/src/App.tsx"
click node_styles "https://github.com/iamkr07/groundset-experience/blob/main/src/index.css"
click node_hero "https://github.com/iamkr07/groundset-experience/blob/main/src/components/Hero.tsx"
click node_decision_card "https://github.com/iamkr07/groundset-experience/blob/main/src/components/DecisionCard.tsx"
click node_inspect "https://github.com/iamkr07/groundset-experience/blob/main/src/components/InspectDecision.tsx"
click node_evidence "https://github.com/iamkr07/groundset-experience/blob/main/src/components/EvidenceCard.tsx"
click node_extraction "https://github.com/iamkr07/groundset-experience/blob/main/src/components/ExtractionPanel.tsx"
click node_audit "https://github.com/iamkr07/groundset-experience/blob/main/src/components/AuditTimeline.tsx"
click node_rules "https://github.com/iamkr07/groundset-experience/blob/main/src/components/RuleTimeline.tsx"
click node_inspector_drawer "https://github.com/iamkr07/groundset-experience/blob/main/src/components/InspectorDrawer.tsx"
click node_developer_drawer "https://github.com/iamkr07/groundset-experience/blob/main/src/components/DeveloperViewDrawer.tsx"
click node_system_flow_drawer "https://github.com/iamkr07/groundset-experience/blob/main/src/components/SystemFlowDrawer.tsx"

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_vite,node_main,node_app,node_styles toneBlue
class node_hero,node_decision_card,node_inspect,node_evidence,node_extraction toneAmber
class node_audit,node_rules toneMint
class node_inspector_drawer,node_developer_drawer,node_system_flow_drawer toneRose
```

## Components

### Client Runtime

- [Vite runtime](https://github.com/iamkr07/groundset-experience/blob/main/vite.config.ts): build runtime · Compiles and serves the client application. · `vite.config.ts`
- [React bootstrap](https://github.com/iamkr07/groundset-experience/blob/main/src/main.tsx): entry point · `src/main.tsx`
- [Application shell](https://github.com/iamkr07/groundset-experience/blob/main/src/App.tsx): UI orchestrator · Owns shared selection and drawer coordination. · `src/App.tsx`
- [Global styles](https://github.com/iamkr07/groundset-experience/blob/main/src/index.css): Tailwind CSS · `src/index.css`

### Decision Surface

- [Hero](https://github.com/iamkr07/groundset-experience/blob/main/src/components/Hero.tsx): UI section · `src/components/Hero.tsx`
- [Decision card](https://github.com/iamkr07/groundset-experience/blob/main/src/components/DecisionCard.tsx): decision summary · `src/components/DecisionCard.tsx`
- [Decision inspector](https://github.com/iamkr07/groundset-experience/blob/main/src/components/InspectDecision.tsx): detail view · Presents the selected decision and its supporting detail. · `src/components/InspectDecision.tsx`
- [Evidence card](https://github.com/iamkr07/groundset-experience/blob/main/src/components/EvidenceCard.tsx): evidence view · `src/components/EvidenceCard.tsx`
- [Extraction panel](https://github.com/iamkr07/groundset-experience/blob/main/src/components/ExtractionPanel.tsx): structured fields · `src/components/ExtractionPanel.tsx`

### Provenance

- [Audit timeline](https://github.com/iamkr07/groundset-experience/blob/main/src/components/AuditTimeline.tsx): provenance timeline · Shows the broader time-ordered audit trail. · `src/components/AuditTimeline.tsx`
- [Rule timeline](https://github.com/iamkr07/groundset-experience/blob/main/src/components/RuleTimeline.tsx): rule provenance · Shows rule evaluation events. · `src/components/RuleTimeline.tsx`

### Deep Inspection

- [Inspector drawer](https://github.com/iamkr07/groundset-experience/blob/main/src/components/InspectorDrawer.tsx): context drawer · `src/components/InspectorDrawer.tsx`
- [Developer view drawer](https://github.com/iamkr07/groundset-experience/blob/main/src/components/DeveloperViewDrawer.tsx): diagnostic drawer · `src/components/DeveloperViewDrawer.tsx`
- [System flow drawer](https://github.com/iamkr07/groundset-experience/blob/main/src/components/SystemFlowDrawer.tsx): process drawer · `src/components/SystemFlowDrawer.tsx`

## Connections

- Vite runtime → React bootstrap: serves
- React bootstrap → Application shell: mounts
- React bootstrap → Global styles: loads
- Application shell → Hero: composes
- Application shell → Decision card: composes
- Application shell → Decision inspector: coordinates selected decision
- Decision card → Decision inspector: selects decision
- Decision inspector → Evidence card: shows supporting evidence
- Evidence card → Extraction panel: reveals extracted fields
- Decision inspector → Audit timeline: exposes audit trail
- Decision inspector → Rule timeline: exposes rule evaluations
- Application shell → Inspector drawer: controls context
- Application shell → Developer view drawer: controls context
- Application shell → System flow drawer: controls context
- Inspector drawer → Decision inspector: drills into
- Developer view drawer → Decision inspector: inspects decision context
- System flow drawer → Audit timeline: explains process context
