Skip to content

Comments

feat: add 'Upload Figure' button to paper pages#643

Open
saimuren wants to merge 2 commits intoResearchHub:mainfrom
saimuren:feat/add-figure-upload
Open

feat: add 'Upload Figure' button to paper pages#643
saimuren wants to merge 2 commits intoResearchHub:mainfrom
saimuren:feat/add-figure-upload

Conversation

@saimuren
Copy link

Summary

Adds an "Upload Figure" button to the paper page, allowing users to upload figures directly from the document view.

Changes

  • WorkLineItems.tsx: Added "Add Figure" menu item using ImageIcon from lucide-react
  • Integrates with existing ImageUploadModal component for consistent UX
  • Includes API call to POST /api/paper/{id}/figure for backend integration

Screenshots

The button appears in the paper actions dropdown menu alongside existing options (Share, Flag, Edit).

Closes #466

Adds a menu item to upload figures to papers, implementing ResearchHub#466.
Uses existing ImageUploadModal component.
@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@vercel
Copy link
Contributor

vercel bot commented Feb 17, 2026

@saimuren is attempting to deploy a commit to the ResearchHub Team on Vercel.

A member of the Team first needs to authorize it.

Adds a menu item to upload figures to papers, implementing ResearchHub#466.
Uses existing ImageUploadModal component.
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant