feat: Content Asset Media Library — shared image management for admin#108
Open
aaronsmulktis wants to merge 5 commits into
Open
feat: Content Asset Media Library — shared image management for admin#108aaronsmulktis wants to merge 5 commits into
aaronsmulktis wants to merge 5 commits into
Conversation
Docker, Homepage, Favs, Public Users w/Follows, Fix Cart, Editor, CORs, Streams, Swagger
Bumps [lodash-es](https://github.com/lodash/lodash) from 4.17.11 to 4.17.23. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](lodash/lodash@4.17.11...4.17.23) --- updated-dependencies: - dependency-name: lodash-es dependency-version: 4.17.23 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Fix Homepage Section Order, Tweak Nav, Remove Dead Files
…swagger-ui/lodash-es-4.17.23 Bump lodash-es from 4.17.11 to 4.17.23 in /public/swagger-ui
Adds a shared media library so content images (homepage sections, CMS pages) can be uploaded, browsed, and selected from within the admin UI. - ContentAsset model (Spree::Base + ActiveStorage/S3, 7 responsive variants) - Admin CRUD with grid index, upload, edit, delete - Reusable picker modal (JS grid, search, tag filter, inline upload) - REST API at /api/v1/content_assets (public read, admin writes) - Sidebar navigation tab - Homepage section form integration with picker buttons - Migration rake task (content_assets:migrate_existing) 29 tests, 62 assertions, 0 failures. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
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
Adds a shared media library so content images (homepage sections, CMS pages) can be uploaded, browsed, and selected from within the admin UI — eliminating dependency on external CDN URLs and missing local image paths.
Spree::Basewith ActiveStorage (S3), 7 responsive variants, file type/size validations, tag filtering, search/api/v1/content_assetswith public read, admin-only writes, standard response envelopecontent_assets:migrate_existingdownloads images from external URLs, creates ContentAsset records, updates JSON settings/bodyKey design decisions
rails_storage_proxy_path)Spree::BaseTest plan
GET /api/v1/content_assetsreturns JSON with proxy URLsGET /api/v1/content_assets/:idreturns all variant URLsrake content_assets:migrate_existingto import existing image URLsFiles changed (25 files, +1,136 lines)
app/models/content_asset.rb, migration, factory_picker_modal.html.erb,content_assets.js,content_assets.csslib/tasks/content_assets_migrate.rake🤖 Generated with Claude Code
via Happy