[#184] Support inline image upload in plot editor#186
Merged
Conversation
Add POST /api/publish/upload-plot-image endpoint mirroring the cover
upload pattern: accepts WebP/JPEG up to 500KB, signs with OWS wallet,
forwards to plotlink.xyz, returns { cid, url }.
In PreviewPanel, plot files now show a "Add illustrations in the plot"
checkbox. When checked, a drag-and-drop upload area appears. After each
upload, copyable markdown is displayed for pasting into the plot text.
Multiple uploads are supported.
Updated both repo CLAUDE.md and generated ~/.plotlink-ows/CLAUDE.md
with the new endpoint.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Revert version to 1.0.30 (patch bump, not minor). Refactor illustration upload to accept File directly so drag-and-drop calls uploadIllustration() without going through native DOM events. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
project7-interns
approved these changes
May 14, 2026
Collaborator
project7-interns
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Summary
The PR adds the authenticated local POST /api/publish/upload-plot-image proxy, signs and forwards uploads with the message format expected by PlotLink, and adds the plot-editor illustration upload UI with copyable markdown. The generated and repo CLAUDE.md API docs include the new endpoint.
Findings
- No blocking findings.
Decision
Approved. The updated drag-and-drop handler uploads the dropped File directly, CI lint-and-typecheck is passing, and the implementation satisfies issue #184 acceptance criteria.
8 tasks
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
POST /api/publish/upload-plot-imageendpoint: accepts WebP/JPEG up to 500KB, signs with OWS wallet, forwards to plotlink.xyz, returns{ cid, url }~/.plotlink-ows/CLAUDE.mdwith new endpointFixes #184
Test plan
🤖 Generated with Claude Code