Floorplans: one interactive map per app¶
Each JS/TS app has its own Floorplan export. The legacy combined map in
ehr-floorplan/ (web + Forge Studio + ehr-track in one page, from pinned
snapshots on other branches) is kept as-is for reference.
Exports¶
| App | Files | Code files | Links | Size (index.html) |
|---|---|---|---|---|
web (demo Vue app) |
floorplans/web/ |
56 | 61 import | 2,188,725 bytes |
forge-studio |
floorplans/forge-studio/ |
34 | 31 import | 2,185,538 bytes |
ehr-track (Oystehr/Ottehr) |
floorplans/ehr-track/ |
22 | 19 import, 5 http | 2,175,423 bytes |
Each floorplans/<app>/ holds index.html (self-contained map),
graph.json (structure, machine paths scrubbed), provenance.json (upstream
pin, source commit, build stats, SHA-256), build-receipt.txt,
architecture.json (areas for that app) and file-descriptions.json
(plain-English one-liners per file, derived from the code).
Upstream: haydenschmitty/floorplan at 5e3eaac9639705f52e5e31b620a0d20550acd9dd
(0.8.0, MIT), pinned in every provenance.json. Scope: JS/TS, Vue, HTML, CSS.
C# is mapped separately by the Roslyn Blueprint graph; the Floorplan page links
to it instead of rendering C#.
Sources are the working files on this branch at commit 6224954
(wt/WT-dc65/floorplans), kept under repo-relative paths.
How to regenerate¶
Requires PowerShell 7 (pwsh), Node, and git. From the repo root:
pwsh -NoProfile -File floorplans/regenerate.ps1
pwsh -NoProfile -File floorplans/regenerate.ps1 -Apps web # one app only
The script reuses the pinned upstream checkout at ehr-floorplan/.upstream
(cloning it if missing), snapshots each app's working files, runs Floorplan
scan/build/describe unattended, fills descriptions from each app's
file-descriptions.json, and writes index.html + graph.json +
provenance.json. It fails with NOT DONE if a new file lacks a
human-reviewed description, if routes appear, or if any code is unassigned or
undescribed. graph.json is scrubbed (meta.root set to .) so no machine
path leaks.
Forge Studio wiring¶
- Page:
forge-studio/src/pages/Floorplan.vue, switcher data inforge-studio/src/floorplanApps.ts. - Routes:
/floorplanredirects to/floorplan/web;/floorplan/web,/floorplan/forge-studio,/floorplan/ehr-trackembed their map; unknown app params redirect to/floorplan/web. TheC# solutionswitcher entry links to/blueprint(existing Roslyn graph). forge-studio/scripts/prepare-assets.mjscopies everyfloorplans/<app>/{index.html,graph.json,provenance.json}intopublic/floorplan-map/<app>/at build time (legacypublic/floorplan-map/index.htmlstill copied for back-compat).
Privacy¶
Every generated file passes the public-name rules: zero hits for Gaffney,
AndrewJonesDev, C:\Users, C:/Users, DESKTOP-, andrewjonesdev-tools,
fleet-secrets across all index.html, graph.json, provenance.json and
build-receipt.txt. Verified 2026-11-13. Exports embed structure and
descriptions only, never source text; repo-relative paths only.
Test results (2026-11-13, this branch)¶
cd forge-studio; npm ci --force— clean (0 vulnerabilities).npm run build— pass (prepare:assets+vue-tsc+ likec4 + vite; only the pre-existing >500 kB chunk-size warning).npm test(vitest) — 3 files, 23 tests, all pass (includes newtests/floorplanApps.test.ts: switcher entries, intros, deep-link resolution, C# entry shape).npx playwright testagainstvite preview— 8/8 pass (e2e/floorplan.e2e.ts):/floorplanredirect, four-entry switcher with/blueprintlink, and each/floorplan/<app>rendering its embedded map (svg#svgvisible) with zero console errors/pageerrors and no horizontal overflow at 390px and 1280px.