# luofeixiang1228/xindun-xinqiao architecture

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

- Interactive diagram: https://gitdiagram.com/luofeixiang1228/xindun-xinqiao
- Repository: https://github.com/luofeixiang1228/xindun-xinqiao

## Overview

This is an offline, browser-based concept prototype for checking evaluation inputs and demonstrating coordinated care workflows. The user opens the demo, tries the Shield review exercises or advances a fictional Bridge task, and can generate a feedback draft; nothing is submitted or persisted. The map preserves the README’s major capabilities, but implementation excerpts were not provided, so relationships among JavaScript modules are not asserted. All shown relationships are documented in the README.

Main entry points: [`demo/journey.js`](https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/journey.js) (Task progress), [`demo/index.html`](https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/index.html) (Offline demo), [`demo/logic.js`](https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/logic.js) (Four checks), [`demo/app.js`](https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/app.js) (Review practice)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Demo entry"]
  node_demo["Offline demo<br/>[index.html]"]
end

subgraph group_shield["Shield review"]
  node_checks["Four checks<br/>[logic.js]"]
  node_check_results["Check prompts<br/>[app.js]"]
  node_review_practice["Review practice<br/>[app.js]"]
  node_case_details["Fictional case<br/>[logic.js]"]
end

subgraph group_bridge["Bridge coordination"]
  node_role_switch["Role switching<br/>[journey.js]"]
  node_task_progress["Task progress<br/>[journey.js]"]
  node_five_steps["Five-step flow<br/>[index.html]"]
  node_referral["Referral paths<br/>[journey.js]"]
  node_handoff["Referral receipt<br/>[journey.js]"]
  node_followup["Follow-up<br/>[journey.js]"]
  node_operation_log["Simulated actions<br/>[journey.js]"]
end

subgraph group_feedback["Feedback"]
  node_feedback_draft["Feedback draft<br/>[app.js]"]
end

node_user(("Demo user"))

node_user -->|"opens"| node_demo
node_user -->|"tries"| node_checks
node_user -->|"practices"| node_review_practice
node_user -->|"reviews"| node_case_details
node_user -->|"switches"| node_role_switch
node_user -->|"advances"| node_task_progress
node_task_progress -->|"shows progress"| node_five_steps
node_user -->|"chooses path"| node_referral
node_user -->|"simulates receipt"| node_handoff
node_user -->|"completes"| node_followup
node_task_progress -->|"records actions"| node_operation_log
node_user -->|"generates"| node_feedback_draft

click node_demo "https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/index.html"
click node_checks "https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/logic.js"
click node_check_results "https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/app.js"
click node_review_practice "https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/app.js"
click node_case_details "https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/logic.js"
click node_role_switch "https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/journey.js"
click node_task_progress "https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/journey.js"
click node_five_steps "https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/index.html"
click node_referral "https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/journey.js"
click node_handoff "https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/journey.js"
click node_followup "https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/journey.js"
click node_operation_log "https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/journey.js"
click node_feedback_draft "https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/app.js"

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_demo,node_user toneBlue
class node_checks,node_check_results,node_review_practice,node_case_details toneAmber
class node_role_switch,node_task_progress,node_five_steps,node_referral,node_handoff,node_followup,node_operation_log toneMint
class node_feedback_draft toneRose
```

## Components

### Demo entry

- [Offline demo](https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/index.html): `demo/index.html`

### Shield review

- [Four checks](https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/logic.js): `demo/logic.js`
- [Check prompts](https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/app.js): `demo/app.js`
- [Review practice](https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/app.js): `demo/app.js`
- [Fictional case](https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/logic.js): `demo/logic.js`

### Bridge coordination

- [Role switching](https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/journey.js): `demo/journey.js`
- [Task progress](https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/journey.js): `demo/journey.js`
- [Five-step flow](https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/index.html): `demo/index.html`
- [Referral paths](https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/journey.js): `demo/journey.js`
- [Referral receipt](https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/journey.js): `demo/journey.js`
- [Follow-up](https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/journey.js): `demo/journey.js`
- [Simulated actions](https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/journey.js): `demo/journey.js`

### Feedback

- [Feedback draft](https://github.com/luofeixiang1228/xindun-xinqiao/blob/main/demo/app.js): `demo/app.js`

### Other components

- **Demo user**

## Connections

- Demo user → Offline demo: opens (evidence: `README.md`)
- Demo user → Four checks: tries (evidence: `README.md`)
- Demo user → Review practice: practices (evidence: `README.md`)
- Demo user → Fictional case: reviews (evidence: `README.md`)
- Demo user → Role switching: switches (evidence: `README.md`)
- Demo user → Task progress: advances (evidence: `README.md`)
- Task progress → Five-step flow: shows progress (evidence: `README.md`)
- Demo user → Referral paths: chooses path (evidence: `README.md`)
- Demo user → Referral receipt: simulates receipt (evidence: `README.md`)
- Demo user → Follow-up: completes (evidence: `README.md`)
- Task progress → Simulated actions: records actions (evidence: `README.md`)
- Demo user → Feedback draft: generates (evidence: `README.md`)
