From 4005a23367e69cf0f22ed7163dbe29105ad0027e Mon Sep 17 00:00:00 2001 From: Lucca Pinto Date: Wed, 28 Oct 2026 21:10:51 -0300 Subject: [PATCH] docs(readme): render the Power BI loop as a Mermaid flowchart --- README.md | 51 ++++++++++++++++++++++++++++++++------------------- 1 file changed, 32 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index dc2b559..22472d5 100644 --- a/README.md +++ b/README.md @@ -56,27 +56,40 @@ authored once in `.agent/` and compiled into each assistant's native format. You keep Power BI Desktop open on the `.pbip`. The assistant changes the model live and the report on disk, then reloads Desktop and looks at the result. -```text -Model / measures Report visuals -──────────────── ────────────── -Modeling MCP ──► change goes LIVE edit PBIR files -in Desktop │ - │ ▼ -you save in Desktop validate_pbir.py -(TMDL lands in the PBIP) │ - │ ▼ - ▼ Desktop has no unsaved changes? -run_bpa.py (BPA) │ - ▼ - powerbi-report-author preview --reload - │ - ▼ - --screenshot --all-pages - │ - ▼ - pbi-visual-reviewer (fresh context) ─► PASS / FAIL per page & visual +```mermaid +flowchart TB + subgraph MODEL["Model & measures"] + direction LR + M1["Modeling MCP
live change"] --> M2["Save in
Desktop"] --> M3["run_bpa.py"] + end + + subgraph REPORT["Report visuals"] + direction TB + R1["Edit PBIR files"] --> R2["validate_pbir.py"] + R2 --> R3["Check status
save if unsaved"] + R3 --> R4["Reload"] + R4 --> R5["Screenshot
all pages"] + R5 --> R6{"Visual
review"} + R6 -- "FAIL" --> R1 + R6 -- "PASS" --> R7(["Done"]) + end + + MODEL ~~~ REPORT + + classDef step fill:#FFFFFF,stroke:#6B7280,color:#111827 + classDef live fill:#F2C811,stroke:#B38F00,color:#111827 + classDef gate fill:#DBEAFE,stroke:#2563EB,color:#111827 + classDef review fill:#EDE9FE,stroke:#7C3AED,color:#111827 + classDef done fill:#DCFCE7,stroke:#16A34A,color:#111827 + class R1,M2 step + class M1,R4,R5 live + class M3,R2,R3 gate + class R6 review + class R7 done ``` +Yellow: acts on the open Desktop (Modeling MCP, `powerbi-report-author preview`) · Blue: validation gate · Purple: independent review by `pbi-visual-reviewer` (read-only, fresh context). + Visual loop in order: **edit PBIR → `validate_pbir.py` → confirm Desktop has no unsaved changes (`powerbi-report-author preview --host desktop --status`, `details.hasUnsavedChanges` must be `false`) → `--reload` → `--screenshot --all-pages` → `pbi-visual-reviewer`.**