Comments 0.2.10: A reworked moderation page with record chips and full previews
Comments 0.2.10 reworks the comments moderation page. Each comment shows a clickable chip for the record it belongs to, long comments open in full in a modal, and row actions move into a menu that offers only what fits the comment’s status.
The title moves into the top bar, a tile with a Settings shortcut joins the stats, and the toolbar shows the filtered count and a clear button on the search field. A reply can jump to the comment it answers. Previews are one line with a Read more cue; a deleted comment offers only Restore. In embedded threads, long comments fold behind Read more and Show less.
Comment text now renders with MDEx, the engine the Leaf editor uses, so a comment looks as it did while typed. Output still passes core’s HTML sanitizer.
Fixed: a reply to a comment with only a GIF or attachment crashed the moderation page (it now shows “[no text]”); such comments now show a “GIF” or “Attachment” placeholder; a comment with a GIF or attachment can be edited down to no text; and pagination links no longer carry empty filters.
Comments 0.2.10. Install or update: {:phoenix_kit_comments, "~> 0.2"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.