Skip to content

Render image files in the code viewer#93

Merged
BunsDev merged 1 commit into
mainfrom
okcode/view-all-file-images
Mar 29, 2026
Merged

Render image files in the code viewer#93
BunsDev merged 1 commit into
mainfrom
okcode/view-all-file-images

Conversation

@BunsDev
Copy link
Copy Markdown
Member

@BunsDev BunsDev commented Mar 29, 2026

Summary

  • Added server-side handling for image files so project/readFile can return a base64 data URL for supported image extensions.
  • Increased the read size limit for image files while keeping the existing 1 MB limit for text files.
  • Updated the web code viewer to render image content directly instead of showing a binary-file error or empty state.
  • Extended the shared project contract with an optional imageDataUrl field.

Testing

  • Not run (not requested).
  • Verified the change set by reviewing the server, contract, and web UI paths affected by image file rendering.

- Return image data URLs for binary image files
- Render images in the web file viewer
- Allow larger read limits for image previews
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
okcode-marketing Ready Ready Preview Mar 29, 2026 6:05am

@github-actions github-actions Bot added size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Mar 29, 2026
@BunsDev BunsDev merged commit 0d9aef2 into main Mar 29, 2026
8 of 9 checks passed
@BunsDev BunsDev deleted the okcode/view-all-file-images branch March 31, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant