docs(req-105): consolidate the 3 HTML-export asset gaps + serve image-rewrite tests#337
Merged
Merged
Conversation
📐 Rivet artifact delta
Graphgraph LR
REQ_105["REQ-105"]:::modified
classDef added fill:#d4edda,stroke:#28a745,color:#155724
classDef removed fill:#f8d7da,stroke:#dc3545,color:#721c24
classDef modified fill:#fff3cd,stroke:#ffc107,color:#856404
classDef overflow fill:#e2e3e5,stroke:#6c757d,color:#495057,stroke-dasharray: 3 3
Modified
Posted by |
There was a problem hiding this comment.
⚠️ Performance Alert ⚠️
Possible performance regression was detected for benchmark 'Rivet Criterion Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.
| Benchmark suite | Current: f4aa3e9 | Previous: 1b085ca | Ratio |
|---|---|---|---|
store_insert/10000 |
18771857 ns/iter (± 1966175) |
12677291 ns/iter (± 729410) |
1.48 |
link_graph_build/10000 |
43165246 ns/iter (± 6851822) |
27077224 ns/iter (± 2059128) |
1.59 |
validate/10000 |
16093254 ns/iter (± 3586659) |
12826010 ns/iter (± 1011573) |
1.25 |
This comment was automatically generated by workflow using github-action-benchmark.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
4 tasks
The v0.13.1 export-format review + the follow-up mermaid/PNG-SVG investigation confirmed REQ-105 is not one bug but three, all the same root cause: `cmd_export_html` reuses the serve dashboard's HTML but ships none of serve's runtime assets. 1. Absolute server-route links (`/artifacts/X`, no `.html`) → broken static/sub-path navigation. 2. SVG-viewer toolbar JS (svgZoomFit/svgFullscreen/svgPopout) not bundled into `_assets/` → mermaid/graph zoom + fullscreen + popout buttons render but are dead in exported HTML (work in `rivet serve`, Playwright-tested there). 3. `/docs-asset/` images not copied + `src` not rewritten → a doc that references a relative PNG/SVG renders in serve (rewrite_image_paths → /docs-asset/ route) but 404s in the exported site. Expanded REQ-105 with all three gaps + a fix direction + acceptance covering each. Added unit tests for the serve-side image-path rewrite (`render::source::tests`) documenting the working serve behaviour that the export must match: - relative_image_src_rewritten_to_docs_asset - relative_png_src_rewritten - absolute_and_remote_src_pass_through No production behaviour change in this commit — REQ-105 implementation (the export-asset bundling refactor) is regression-risky and tracked for its own cycle. Refs: REQ-105, REQ-007 Verifies: REQ-007 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
e894f7e to
f4aa3e9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Consolidates REQ-105 from "one link bug" into the three confirmed HTML-export asset gaps surfaced across the export-format review + the mermaid/PNG-SVG investigation. All share one root cause:
cmd_export_htmlreuses the serve dashboard's HTML but ships none of serve's runtime assets./artifacts/X, no.html) → broken static / sub-path navigation.svgZoomFit/svgFullscreen/svgPopoutrender in exported HTML but are dead (handlers live in serve'sjs.rs; export_assets/ships onlymermaid.min.js+styles.css). This is the "where did the mermaid zoom buttons go?" report — they're dead in exported HTML only./docs-asset/images not copied — a doc referencing a relative PNG/SVG renders in serve (rewrite_image_paths→/docs-asset/route) but 404s in the exported site.Changes
render::source::tests) documenting the working serve behaviour the export must match.No production behaviour change — the REQ-105 implementation (export-asset bundling refactor) is regression-risky and tracked for its own cycle.
Test plan
render::source::tests(3 new) passrivet validate+docs checkPASSRefs: REQ-105, REQ-007
🤖 Generated with Claude Code