|
|
||
|---|---|---|
| .. | ||
| README.md | ||
| workflow-method-greenfield.excalidraw | ||
| workflow-method-greenfield.svg | ||
README.md
Workflow Diagram Maintenance
Regenerating SVG from Excalidraw
When you edit workflow-method-greenfield.excalidraw, regenerate the SVG:
- Open https://excalidraw.com/
- Load the
.excalidrawfile - Click menu (☰) → Export image → SVG
- Set "Scale" to 1x (default is 2x)
- Click "Export"
- Save as
workflow-method-greenfield.svg - Validate the changes (see below)
- Commit both files together
Important:
- Always use 1x scale to maintain consistent dimensions
- Automated export tools (
excalidraw-to-svg) are broken - use manual export only
Visual Validation
After regenerating the SVG, validate that it renders correctly:
./tools/validate-svg-changes.sh path/to/workflow-method-greenfield.svg
This script:
- Checks for required dependencies (Playwright, ImageMagick)
- Installs Playwright locally if needed (no package.json pollution)
- Renders old vs new SVG using browser-accurate rendering
- Compares pixel-by-pixel and generates a diff image
- Outputs a prompt for AI visual analysis (paste into Gemini/Claude)
Threshold: <0.01% difference is acceptable (anti-aliasing variations)