fix: show mockup wireframes in the Wiki view - #84
Merged
Merged
Conversation
The Wiki element page only renders metamodel properties, and `wireframe` is deliberately not a PropertyDef, so generated wireframes never appeared there. Extract the properties-panel Wireframe section into a shared MockupWireframe component and render it at the top of a mockup's Wiki page (preview, Generate / Regenerate, Remove, Open design). Overview cards for mockups also get a thumbnail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
AI-generated mockup wireframes from #83 did not show up in the Wiki view. The Wiki element page renders only metamodel properties, and
wireframeis intentionally not aPropertyDef, so the page had nothing to render it from.MockupWireframecomponent (components/MockupWireframe.tsx). The section contains the preview and the Generate / Regenerate, Remove and Open design buttons.props-mockup-*tomockup-wf-*, because the section is no longer used only in the properties panel.The wireframe is still rendered only through an
<img>data URI. Nothing changes in how the SVG is stored or sanitized.Type of change
Checklist
npm testpasses (388/388)npm run typecheckpasses with no errorsTest plan
Manual check with
npm run dev:weband headless Chromium. Created a mockup with a wireframe and anillustrateslink to a requirement. The wireframe appears:No console errors.
Generate / Regenerate from the Wiki page with a real AI provider is not tested. AI was disabled in the test browser, so the button was hidden, as expected.
🤖 Generated with Claude Code