Skip to content

Comments 0.1.1: Readable record names and editable comments

Comments 0.1.1 shows meaningful names for commented records in the moderation list, instead of cut-off uuids, and lets people edit their own comments in place.

In the comments settings, each resource type can have a display title template built from the comment’s metadata, next to its link pattern. Both can be edited inline, and clicking a metadata badge inserts its placeholder at the cursor.

Link patterns must now start with / or :prefix and cannot contain ://, which blocks javascript: links and redirects to other sites. Patterns are no longer prefixed automatically: add :prefix to get the site’s URL prefix.

Also fixed: edits now check the maximum length like new comments do, editing and replying no longer clash, and metadata placeholders are no longer corrupted.

Upgrading

Add :prefix to any link pattern that pointed inside PhoenixKit and relied on the automatic prefix.

 

 


Comments 0.1.1. Install or update: {:phoenix_kit_comments, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.