Comments 0.4.1: A calmer comment card and backdated anchor comments
Comments 0.4.1 tidies the comment card: at rest it shows only the author, the text, the date and the reactions, and the actions appear when the pointer is over the card.
Edit and Delete move into a “…” menu at the top right, which stays open for keyboard users while it has focus and closes itself after a click. Reply moves to the action row at the bottom right, next to the like and dislike buttons, which stay visible. The settings and moderation pages also move to daisyUI 5’s fieldset form layout.
For developers, create_comment/4 accepts :inserted_at, so a thread’s anchor comment that server code creates later can carry the date of the thing it belongs to. Only a real DateTime from server code counts; form data cannot set it, and updated_at still records the real write time.
Full release notes: Comments 0.4.1
0.4.1 · 17 August 2026
Comment backdating for server-created anchor comments, and a comment-card UI rework (#36).
Added
create_comment/4accepts:inserted_at— a server-created anchor/topic comment (e.g. the thread a shape’s discussion hangs under) can now carry the timestamp of the thing it anchors instead of the moment the thread was lazily instantiated by the first reply. Deliberately not part of the changesetcast, so no client form payload can drive it: only a realDateTimestruct triggers the override, anything else (including a client-shaped JSON string) is silently ignored, andupdated_atstill records when the row was actually written. Added integration coverage — the PR that introduced this shipped with none.
Changed
- Comment card actions reworked. A card at rest now shows author / body /
date / reactions only. Edit and Delete move into a “…” dropdown at the top
right, revealed on hover (
focus-withinkeeps it visible for keyboard users). Reply moves to the bottom-right action row, hover-revealed ahead of the always-visible like/dislike buttons. The dropdown blurs itself on Edit/Delete click so a LiveView patch (which never moves focus) can’t leave the menu hanging open over an edited or deleted card.
Comments 0.4.1. Install or update: {:phoenix_kit_comments, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.