Posts 0.1.5: The post editor uses PhoenixKit's shared media gallery
Posts 0.1.5 replaces the post editor’s own image grid with PhoenixKit’s shared media gallery, so choosing, reordering and previewing a post’s pictures works as it does elsewhere in the admin.
The gallery brings the file picker, drag-and-drop ordering, the badge on the featured image and a full-size preview. The first image is still the featured one, and the limit from the Max Media Per Post setting still applies. The content editor now opens in hybrid mode instead of visual mode.
The module is now described as social and community posts: user posts, threaded comments, boards, likes and mentions. Long articles belong in PhoenixKit’s Publishing module. The description in the admin’s module list changes to “Social posts, boards, likes, and comments”.
No migration and no configuration.
Full release notes: Posts 0.1.5
0.1.5 · 8 June 2026
Changed
- Post editor now uses the shared
PhoenixKitWeb.Components.MediaGalleryfor post images instead of a hand-rolled grid — the picker, drag-reorder, featured badge and lightbox all come from one canonical component (PR #9). The post-content Leaf editor also defaults to hybrid mode (was pinned to visual). - Reframe Posts as the social/community posts module (user posts, threaded comments, boards, likes, mentions) rather than a blog/CMS — long-form publishing is handled by PhoenixKit’s built-in Publishing module. Updated README, hex description, AGENTS.md and the admin-panel module description (PR #9).
- Upgrade dependencies: phoenix_kit 1.7.133, req 0.6.1.
Fixed
- Removing an image from an existing post now actually detaches it — the
MediaGallery{:changed, …}handler was callingdetach_media_by_uuid/1(a PostMedia primary-key lookup) with a file uuid, so removals silently no-opped. - Removing the featured (position 1) image no longer drops the post’s featured image — media positions are renumbered to a contiguous
1..non every selection change, soget_featured_image/1(which matchesposition == 1) keeps resolving. - Restore the
posts_max_mediacap in the post editor (wired throughMediaGallery’smax_count).
Posts 0.1.5. Install or update: {:phoenix_kit_posts, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.