nandi/oripublic Fork 0
5d476ff5f3dc3b7db3afaccaedc7d9661981449e
Commits
Clone
git clone https://git.rickub.com/nandi/ori.git
git clone ssh://git@rickub.com/nandi/ori.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

forked from bots-garden/ori

0009-preview-drawio.yaml · 27 lines · 1.2 KBYAML Blame HistoryRaw
✨ Workspace panel, selectors, previews, desktop app, sandbox template, resizable file tree, light/dark theme 76d62ac k33g yesterday1# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2id: 9
3title: Preview drawio
4state: closed
5author:
6 name: k33g
7 email: ph.charriere@gmail.com
8createdAt: 2026-09-17T21:05:28.282Z
9updatedAt: 2026-09-17T22:56:38.766Z
10labels: []
11body: |
12 Preview draw.io diagrams in the workspace Preview tab.
13
14 Implemented (2026-09-17):
15 - `.drawio` / `.dio` (XML): rendered with the diagrams.net embed viewer
16 (`embed.diagrams.net`, iframe, read-only lightbox) fed the XML locally over its
17 postMessage protocol (`init` → `load`); the diagram is not uploaded. Rendered/Source
18 toggle shows the XML. If the viewer does not answer within 8 s (isolated sandbox,
19 no network), a notice appears and the Source view remains.
20 - `.drawio.svg` / `.drawio.png`: plain images, shown by the image preview
21 (`GET /api/raw`).
22 - Trade-off recorded in docs/*/explanation/architecture.md: no offline renderer
23 could be bundled (draw.io's viewer is not on npm, `mxgraph` is archived and lacks
24 draw.io's shapes, `@markdown-viewer/drawio2svg` is GPL-3.0-only). Vendoring
25 `viewer-static.min.js` (Apache-2.0, ~3 MB) is the future offline path.
26tasks: []
27comments: []