Development #9848
Updated by Chong Yit Ren 5 days ago
Content Management originally saved Currently, the content management code only one supports saving a single image per content. It now supports row. To support multi-image content (e.g., advertisement galleries, multiple images per content, compresses them banners), we need to WebP on save, update the content management codebase, backend ingestion, and shows Kafka event publishing so that multiple images can be associated with a compressed preview first. The images reach POS+ through single entity and successfully synchronized down to the general image sync (ticket 2). POS system. **Acceptance Criteria** * [x] A content can hold multiple images, saved in order with a display duration per image. * [x] Images are compressed Update the outbound Kafka event payload schema to WebP on save, with include an array of image URLs/objects rather than a compressed preview before saving. single image field. * [x] Adding, removing, reordering and updating [ ] Verify that updating, adding, or removing images saves correctly triggers the full, Kafka event with the complete, updated list as a new version. of images. * [x] Images display in the admin portal through signed links. * [ ] Content records (current version and assigned stores) sync to Ensure the Store Backend POS consumer service correctly parses the multi-image Kafka payload and POS+. updates its local state/database accordingly. * [ ] Content images sync to the Store Backend and POS+ through the Handle edge cases (e.g., payload size limits in Kafka, ordering of images, missing or broken image sync, in the saved order. URLs).