# sleeppyx/e-cmis-a7-demo architecture

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

- Interactive diagram: https://gitdiagram.com/sleeppyx/e-cmis-a7-demo
- Repository: https://github.com/sleeppyx/e-cmis-a7-demo

## Overview

E-CMIS Activity 7 is a front-end prototype for reviewing cases and preparing committee decisions, with mock data available when Supabase is unavailable. The documented user journey runs through a role-specific work inbox, case review and screening, then relevant chair or board actions and meeting materials. Shared workflow rules, permissions, and shell behavior live in `assets/ecmis-app.js`. The README documents these capabilities and fallback behavior; the supplied source excerpts do not expose the individual page implementations, so those connections are documented rather than inferred from code.

Main entry points: [`res`](https://github.com/sleeppyx/e-cmis-a7-demo/tree/main/res) (Work inbox), [`assets/ecmis-app.js`](https://github.com/sleeppyx/e-cmis-a7-demo/blob/main/assets/ecmis-app.js) (Roles and workflow), [`memory/03-diagrams/Activity 7/e-cmis-a7-demo/server.py`](https://github.com/sleeppyx/e-cmis-a7-demo/blob/main/memory/03-diagrams/Activity%207/e-cmis-a7-demo/server.py) (Static file server), [`assets/ecmis-model.js`](https://github.com/sleeppyx/e-cmis-a7-demo/blob/main/assets/ecmis-model.js) (Case model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Case workflow"]
  node_inbox["Work inbox"]
  node_review["Case review"]
  node_screening["Case screening"]
end

subgraph group_decisions["Committee decisions"]
  node_chair["Chair order and sign"]
  node_resolution["Board resolution"]
  node_meeting["Meeting documents"]
  node_article24["Article 24 orders"]
  node_ruling["Ruling reports"]
  node_dashboards["Dashboards"]
end

subgraph group_shared["Shared application"]
  node_workflow_core["Roles and workflow<br/>[ecmis-app.js]"]
  node_case_model["Case model<br/>[ecmis-model.js]"]
  node_case_data[("Case data<br/>[cases.js]")]
  node_static_server["Static file server<br/>[server.py]"]
end

node_staff(("E-CMIS staff"))
node_supabase[("Supabase")]

node_staff -->|"opens work"| node_inbox
node_inbox -->|"selects case"| node_review
node_review -->|"reviews and screens"| node_screening
node_screening -->|"chair action"| node_chair
node_screening -->|"board action"| node_resolution
node_staff -->|"accesses"| node_meeting
node_staff -->|"accesses"| node_article24
node_staff -->|"accesses"| node_ruling
node_staff -->|"views"| node_dashboards
node_inbox -->|"renders shell"| node_workflow_core
node_review -->|"uses workflow"| node_workflow_core
node_screening -->|"uses workflow"| node_workflow_core
node_chair -->|"uses workflow"| node_workflow_core
node_resolution -->|"uses workflow"| node_workflow_core
node_review -.->|"uses model"| node_case_model
node_inbox -->|"falls back to"| node_case_data
node_inbox -->|"fetches cases"| node_supabase
node_static_server -.->|"serves pages"| node_inbox

click node_inbox "https://github.com/sleeppyx/e-cmis-a7-demo/tree/main/res"
click node_review "https://github.com/sleeppyx/e-cmis-a7-demo/tree/main/res"
click node_screening "https://github.com/sleeppyx/e-cmis-a7-demo/tree/main/res"
click node_chair "https://github.com/sleeppyx/e-cmis-a7-demo/tree/main/res"
click node_resolution "https://github.com/sleeppyx/e-cmis-a7-demo/tree/main/res"
click node_meeting "https://github.com/sleeppyx/e-cmis-a7-demo/tree/main/res"
click node_article24 "https://github.com/sleeppyx/e-cmis-a7-demo/tree/main/res"
click node_ruling "https://github.com/sleeppyx/e-cmis-a7-demo/tree/main/res"
click node_dashboards "https://github.com/sleeppyx/e-cmis-a7-demo/tree/main/res"
click node_workflow_core "https://github.com/sleeppyx/e-cmis-a7-demo/blob/main/assets/ecmis-app.js"
click node_case_model "https://github.com/sleeppyx/e-cmis-a7-demo/blob/main/assets/ecmis-model.js"
click node_case_data "https://github.com/sleeppyx/e-cmis-a7-demo/blob/main/memory/03-diagrams/Activity%207/ecmis/cases.js"
click node_static_server "https://github.com/sleeppyx/e-cmis-a7-demo/blob/main/memory/03-diagrams/Activity%207/e-cmis-a7-demo/server.py"

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_inbox,node_review,node_screening toneBlue
class node_chair,node_resolution,node_meeting,node_article24,node_ruling,node_dashboards,node_supabase toneAmber
class node_workflow_core,node_case_model,node_case_data,node_static_server toneMint
class node_staff toneIndigo
```

## Components

### Case workflow

- [Work inbox](https://github.com/sleeppyx/e-cmis-a7-demo/tree/main/res): `res`
- [Case review](https://github.com/sleeppyx/e-cmis-a7-demo/tree/main/res): `res`
- [Case screening](https://github.com/sleeppyx/e-cmis-a7-demo/tree/main/res): `res`

### Committee decisions

- [Chair order and sign](https://github.com/sleeppyx/e-cmis-a7-demo/tree/main/res): `res`
- [Board resolution](https://github.com/sleeppyx/e-cmis-a7-demo/tree/main/res): `res`
- [Meeting documents](https://github.com/sleeppyx/e-cmis-a7-demo/tree/main/res): `res`
- [Article 24 orders](https://github.com/sleeppyx/e-cmis-a7-demo/tree/main/res): `res`
- [Ruling reports](https://github.com/sleeppyx/e-cmis-a7-demo/tree/main/res): `res`
- [Dashboards](https://github.com/sleeppyx/e-cmis-a7-demo/tree/main/res): `res`

### Shared application

- [Roles and workflow](https://github.com/sleeppyx/e-cmis-a7-demo/blob/main/assets/ecmis-app.js): `assets/ecmis-app.js`
- [Case model](https://github.com/sleeppyx/e-cmis-a7-demo/blob/main/assets/ecmis-model.js): `assets/ecmis-model.js`
- [Case data](https://github.com/sleeppyx/e-cmis-a7-demo/blob/main/memory/03-diagrams/Activity%207/ecmis/cases.js): `memory/03-diagrams/Activity 7/ecmis/cases.js`
- [Static file server](https://github.com/sleeppyx/e-cmis-a7-demo/blob/main/memory/03-diagrams/Activity%207/e-cmis-a7-demo/server.py): `memory/03-diagrams/Activity 7/e-cmis-a7-demo/server.py`

### Other components

- **E-CMIS staff**
- **Supabase**

## Connections

- E-CMIS staff → Work inbox: opens work (evidence: `README.md`)
- Work inbox → Case review: selects case (evidence: `README.md`)
- Case review → Case screening: reviews and screens (evidence: `README.md`)
- Case screening → Chair order and sign: chair action (evidence: `README.md`)
- Case screening → Board resolution: board action (evidence: `README.md`)
- E-CMIS staff → Meeting documents: accesses (evidence: `README.md`)
- E-CMIS staff → Article 24 orders: accesses (evidence: `README.md`)
- E-CMIS staff → Ruling reports: accesses (evidence: `README.md`)
- E-CMIS staff → Dashboards: views (evidence: `README.md`)
- Work inbox → Roles and workflow: renders shell (evidence: `README.md`)
- Case review → Roles and workflow: uses workflow (evidence: `README.md`)
- Case screening → Roles and workflow: uses workflow (evidence: `README.md`)
- Chair order and sign → Roles and workflow: uses workflow (evidence: `README.md`)
- Board resolution → Roles and workflow: uses workflow (evidence: `README.md`)
- Case review → Case model: uses model
- Work inbox → Case data: falls back to (evidence: `README.md`)
- Work inbox → Supabase: fetches cases (evidence: `README.md`)
- Static file server → Work inbox: serves pages
