# ahmedbham/rayfin-labs architecture

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

- Interactive diagram: https://gitdiagram.com/ahmedbham/rayfin-labs
- Repository: https://github.com/ahmedbham/rayfin-labs

## Overview

This repository is a Jekyll-published workshop for building Microsoft Fabric apps with Rayfin CLI and Copilot. Its user journey branches across three labs: a guided Todo app, a requirements-driven field technician app, and an interactive dashboard using a Power BI semantic model. The Lab 2 model can also be packaged and deployed to Fabric by a Python script. The graph reflects documented capabilities and the deployment excerpt; the lab materials themselves were not sampled, so their internal steps and connections are not inferred.

Main entry points: [`lab-assets/lab-2/scripts/deploy_semantic_model.py`](https://github.com/ahmedbham/rayfin-labs/blob/main/lab-assets/lab-2/scripts/deploy_semantic_model.py) (Fabric deployment), [`labs/lab-2-dashboard.md`](https://github.com/ahmedbham/rayfin-labs/blob/main/labs/lab-2-dashboard.md) (Dashboard lab), [`labs/lab-3-field-technician.md`](https://github.com/ahmedbham/rayfin-labs/blob/main/labs/lab-3-field-technician.md) (Technician app lab), [`lab-assets/lab-2/Contoso-DT-Dashboard.SemanticModel`](https://github.com/ahmedbham/rayfin-labs/tree/main/lab-assets/lab-2/Contoso-DT-Dashboard.SemanticModel) (TMDL semantic model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workshop["Workshop content"]
  node_workshop_home["Workshop entry<br/>[index.md]"]
  node_prerequisites["Prerequisites<br/>[prerequisites.md]"]
  node_lab_catalog["Lab catalog<br/>[index.md]"]
  node_todo_lab["Todo app lab<br/>[lab-1-todo.md]"]
  node_dashboard_lab["Dashboard lab<br/>[lab-2-dashboard.md]"]
  node_technician_lab["Technician app lab"]
  node_lab3_prompt["Technician prompt<br/>[LAB_3_PROMPT.md]"]
  node_lab3_requirements["Functional requirements"]
end

subgraph group_lab2["Dashboard assets"]
  node_lab2_prompt["Copilot workflow"]
  node_semantic_model[("TMDL semantic model")]
end

subgraph group_deployment["Model deployment"]
  node_packager["Model packager"]
  node_deployer["Fabric deployment"]
end

node_learner(("Learner"))
node_rayfin_auth["Rayfin authentication"]
node_fabric[("Fabric workspace")]
node_powerbi_dashboard["Interactive dashboard"]

node_learner -->|"opens"| node_workshop_home
node_workshop_home -->|"presents labs"| node_lab_catalog
node_learner -.->|"reviews"| node_prerequisites
node_learner -->|"follows"| node_todo_lab
node_learner -->|"follows"| node_dashboard_lab
node_learner -->|"follows"| node_technician_lab
node_dashboard_lab -->|"uses workflow"| node_lab2_prompt
node_dashboard_lab -->|"uses model"| node_semantic_model
node_technician_lab -->|"uses prompt"| node_lab3_prompt
node_technician_lab -->|"uses requirements"| node_lab3_requirements
node_packager -->|"packages parts"| node_semantic_model
node_deployer -->|"builds parts"| node_packager
node_deployer -->|"gets token"| node_rayfin_auth
node_deployer -->|"deploys definition"| node_fabric
node_semantic_model -->|"provides model"| node_powerbi_dashboard

click node_workshop_home "https://github.com/ahmedbham/rayfin-labs/blob/main/index.md"
click node_prerequisites "https://github.com/ahmedbham/rayfin-labs/blob/main/prerequisites.md"
click node_lab_catalog "https://github.com/ahmedbham/rayfin-labs/blob/main/labs/index.md"
click node_todo_lab "https://github.com/ahmedbham/rayfin-labs/blob/main/labs/lab-1-todo.md"
click node_dashboard_lab "https://github.com/ahmedbham/rayfin-labs/blob/main/labs/lab-2-dashboard.md"
click node_technician_lab "https://github.com/ahmedbham/rayfin-labs/blob/main/labs/lab-3-field-technician.md"
click node_semantic_model "https://github.com/ahmedbham/rayfin-labs/tree/main/lab-assets/lab-2/Contoso-DT-Dashboard.SemanticModel"
click node_lab3_prompt "https://github.com/ahmedbham/rayfin-labs/blob/main/lab-assets/lab-3/LAB_3_PROMPT.md"
click node_lab3_requirements "https://github.com/ahmedbham/rayfin-labs/blob/main/lab-assets/lab-3/LAB_3_FUNCTIONAL_REQUIREMENTS.md"
click node_packager "https://github.com/ahmedbham/rayfin-labs/blob/main/lab-assets/lab-2/scripts/deploy_semantic_model.py"
click node_deployer "https://github.com/ahmedbham/rayfin-labs/blob/main/lab-assets/lab-2/scripts/deploy_semantic_model.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_workshop_home,node_prerequisites,node_lab_catalog,node_todo_lab,node_dashboard_lab,node_technician_lab,node_lab3_prompt,node_lab3_requirements toneBlue
class node_lab2_prompt,node_semantic_model,node_fabric toneAmber
class node_packager,node_deployer toneMint
class node_learner,node_rayfin_auth,node_powerbi_dashboard toneIndigo
```

## Components

### Workshop content

- [Workshop entry](https://github.com/ahmedbham/rayfin-labs/blob/main/index.md): `index.md`
- [Prerequisites](https://github.com/ahmedbham/rayfin-labs/blob/main/prerequisites.md): `prerequisites.md`
- [Lab catalog](https://github.com/ahmedbham/rayfin-labs/blob/main/labs/index.md): `labs/index.md`
- [Todo app lab](https://github.com/ahmedbham/rayfin-labs/blob/main/labs/lab-1-todo.md): `labs/lab-1-todo.md`
- [Dashboard lab](https://github.com/ahmedbham/rayfin-labs/blob/main/labs/lab-2-dashboard.md): `labs/lab-2-dashboard.md`
- [Technician app lab](https://github.com/ahmedbham/rayfin-labs/blob/main/labs/lab-3-field-technician.md): `labs/lab-3-field-technician.md`
- [Technician prompt](https://github.com/ahmedbham/rayfin-labs/blob/main/lab-assets/lab-3/LAB_3_PROMPT.md): `lab-assets/lab-3/LAB_3_PROMPT.md`
- [Functional requirements](https://github.com/ahmedbham/rayfin-labs/blob/main/lab-assets/lab-3/LAB_3_FUNCTIONAL_REQUIREMENTS.md): `lab-assets/lab-3/LAB_3_FUNCTIONAL_REQUIREMENTS.md`

### Dashboard assets

- **Copilot workflow**
- [TMDL semantic model](https://github.com/ahmedbham/rayfin-labs/tree/main/lab-assets/lab-2/Contoso-DT-Dashboard.SemanticModel): `lab-assets/lab-2/Contoso-DT-Dashboard.SemanticModel`

### Model deployment

- [Model packager](https://github.com/ahmedbham/rayfin-labs/blob/main/lab-assets/lab-2/scripts/deploy_semantic_model.py): `lab-assets/lab-2/scripts/deploy_semantic_model.py`
- [Fabric deployment](https://github.com/ahmedbham/rayfin-labs/blob/main/lab-assets/lab-2/scripts/deploy_semantic_model.py): `lab-assets/lab-2/scripts/deploy_semantic_model.py`

### Other components

- **Learner**
- **Rayfin authentication**
- **Fabric workspace**
- **Interactive dashboard**

## Connections

- Learner → Workshop entry: opens (evidence: `README.md`)
- Workshop entry → Lab catalog: presents labs (evidence: `README.md`)
- Learner → Prerequisites: reviews
- Learner → Todo app lab: follows (evidence: `README.md`)
- Learner → Dashboard lab: follows (evidence: `README.md`)
- Learner → Technician app lab: follows (evidence: `README.md`)
- Dashboard lab → Copilot workflow: uses workflow (evidence: `README.md`)
- Dashboard lab → TMDL semantic model: uses model (evidence: `README.md`)
- Technician app lab → Technician prompt: uses prompt (evidence: `README.md`)
- Technician app lab → Functional requirements: uses requirements (evidence: `README.md`)
- Model packager → TMDL semantic model: packages parts (evidence: `lab-assets/lab-2/scripts/deploy_semantic_model.py`)
- Fabric deployment → Model packager: builds parts (evidence: `lab-assets/lab-2/scripts/deploy_semantic_model.py`)
- Fabric deployment → Rayfin authentication: gets token (evidence: `lab-assets/lab-2/scripts/deploy_semantic_model.py`)
- Fabric deployment → Fabric workspace: deploys definition (evidence: `README.md`)
- TMDL semantic model → Interactive dashboard: provides model (evidence: `README.md`)
