Skip to content

feat: file browser previews and attach-button tooltip#33

Open
Elompenta wants to merge 1 commit into
deflating:mainfrom
Baebeca-Solutions:feat/file-browser-preview
Open

feat: file browser previews and attach-button tooltip#33
Elompenta wants to merge 1 commit into
deflating:mainfrom
Baebeca-Solutions:feat/file-browser-preview

Conversation

@Elompenta
Copy link
Copy Markdown

Summary

Adds visual preview thumbnails when inserting files from the sidebar file browser, and improves the attach-button with a descriptive tooltip.

Changes

  • File browser: clicking or drag-and-dropping a file now shows a preview below the input — image files display a thumbnail (via new /api/file/preview server endpoint), other file types show a file icon with the filename. Clicking x on a preview also removes the path from the textarea.
  • File browser: file icons in previews use the same icon map as the sidebar (shared getFileIcon export), ensuring consistency.
  • Attach button: tooltip now explains that only image files are supported and that local files can be referenced via the sidebar instead.
  • Server: new GET /api/file/preview?path=... endpoint serves image bytes for thumbnail display.
  • CLAUDE.md: added missing npm install step to local dev setup.

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