Comments 0.2.15: Editors open in the site's default mode, and a select-all for moderation
Comments 0.2.15 opens the comment box and the inline edit form in the editor mode the site sets as its default, instead of always in the Leaf editor’s own default.
The site-wide mode comes from core’s content editor setting. On a core that does not have that setting yet, the editors fall back to Leaf’s hybrid mode. Any unknown value is turned into one of the four modes Leaf accepts, so a stray setting cannot crash a thread.
On the moderation page, ticking comments now happens in the browser, using core’s bulk-select components, and a header checkbox selects every comment on the page. Approve, hide and delete still run the same permission check and the delete confirmation.
The module’s tables also work on installs that keep PhoenixKit in a named database schema (--prefix): queries go to that schema directly.
Upgrading
Comments 0.2.15 needs phoenix_kit 1.7.189 or later. Update the dependency.
Comments 0.2.15. Install or update: {:phoenix_kit_comments, "~> 0.2"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.