Skip to content

Add asset library for centralized image and file management - #7

Merged
sagnik11 merged 1 commit into
mainfrom
feat/build-asset-library-for-image-and-file-management
May 4, 2026
Merged

Add asset library for centralized image and file management#7
sagnik11 merged 1 commit into
mainfrom
feat/build-asset-library-for-image-and-file-management

Conversation

@sagnik11

@sagnik11 sagnik11 commented May 4, 2026

Copy link
Copy Markdown
Member

TL;DR

Implements a centralized asset library that allows users to upload images and files once, then browse and reuse them across campaigns. Users can now select assets from the library directly in the email editor via a "Choose from library" picker, eliminating the need for per-campaign image uploads.

What changed?

  • Database schema: Added assets table to store metadata for uploaded images and files (fileId, name, mimeType, size, s3Key, dimensions, timestamps)
  • Image upload endpoint: Modified /api/internal/images to persist asset metadata to the database after file upload
  • Asset picker component: Created AssetPicker component for browsing and selecting assets from the library
  • Image block editor: Added "Choose from library" button to the ImageBlock editor that opens the asset picker and sets the selected asset URL
  • Navigation: Added "Assets" menu item to the main sidebar for accessing the asset library
  • Documentation: Updated CHANGELOG.md and README.md to document the asset library feature, and marked the feature as complete in ROADMAP.md

Generated-By: PostHog Code
Task-Id: 0ae49eb3-92b8-40fd-b10f-5d8d2883eb34
@sagnik11
sagnik11 marked this pull request as ready for review May 4, 2026 05:31
@sagnik11
sagnik11 merged commit b6e5dc7 into main May 4, 2026
1 of 2 checks passed
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