Publishing 0.4.0: Featured posts, per-group display settings and translated group names
Publishing 0.4.0 lets you shape each group’s public pages from the admin: feature posts at the top of the listing, choose what a post page shows, and give the group a name in every language.
Featured posts
The post editor has a new Feature this post checkbox. With Highlight featured posts on in the group settings, featured posts are shown ahead of the regular posts. Featured layout chooses between a hero band, a large banner above the list, and a highlighted card, a larger card within the grid.
Display settings per group
The group edit page now has a Listing page section and a Post page section, plus an Appearance section that applies to every public page of the group. The listing settings are:
- Post order: newest or oldest first, by publish date.
- Show the post count under the listing title.
- Show a date-timeline rail: a clickable date rail down the side to jump through the archive, with Timeline markers by year, month or day, or automatic.
On the post page you can set the Content width (narrow, normal or wide) and the Post date position (below or above the title, or hidden), and turn on:
- Show the breadcrumb trail
- Show the featured image
- Show the reading time
- Show the post’s tags
- Show a reading-progress bar
- Show a heading navigation rail, which is hidden on short posts.
Under Appearance, Scrollbar style picks the browser’s default scrollbar, a branded one recoloured to match the theme, or a thin branded one. The timeline months and the rails’ labels follow the page’s language.
Group names per language
The Group Name field now takes a name for each language; leave one blank to use the primary-language name. The translated name is used in the listing title and breadcrumb, og:title, the post page breadcrumb and its back link, and the groups overview.
Translations
57 admin and public strings that had never been extracted are now translated in all five languages: English, Estonian, French, Italian and Russian.
Upgrading
Update the dependency. There is no migration; the settings are stored with each group. Most new options are off by default, including the post count, which the listing used to show. Turn on what you want per group after the upgrade. Featured posts are highlighted by default once you feature one.
Full release notes: Publishing 0.4.0
0.4.0 · 17 July 2026
PR #32 — public-side publishing: featured posts, timeline/headings scroll
rails, per-group display settings, and a translatable group name. Written
without access to the quality-sweep playbook or a runnable test environment;
this release also folds in a full post-merge multi-AI quorum review (Codex,
Kimi, Grok, ZAI, Vibe) plus a 4-agent playbook triage pass, with every
confirmed finding fixed before publishing. See
dev_docs/pull_requests/2026/32-public-side-display-settings/ for the full
review and fix log.
Added
- Featured posts — an editor checkbox flags a post as featured; the
public listing renders a hero + secondary featured band ahead of the
regular grid, each card carrying
data-post-date(mirrorsListing.listing_sort_key/1) so the timeline rail stays in sync. - Per-group display settings (
GroupSettings) — post count visibility (off by default), timeline/headings scroll rails, scrollbar styling, breadcrumbs, sort order, reading time, card width, date position, and a reading-progress bar, all configurable per group with governed string-keyed persistence. - Translatable group name (
name_i18n) — an override per language, capped at the primary-name length limit, resolved viatranslated_group_name/2everywhere the name surfaces: listing h1/title/breadcrumb,og:title, the post-page breadcrumb and “Back to …” footer, and the all-groups overview cards. - 33 new tests covering every setting’s public-render toggle, settings/
name_i18npersistence (including crash-guard, truncation, invalid-enum, atom-key round-trip), and the edit/editor LiveView save paths.
Fixed (post-merge quorum review)
GroupSettings.validate_params/1normalized atom-keyed settings but kept the atom key, soupdate_group/3(string-keyed) silently persisted nothing on the documented AI/script path — settings now normalize to their canonical string key.merge_name_i18n/2calledto_string/1on override values — a nested map (crafted params or a programmatic caller) raisedProtocol.UndefinedErrorand crashed the edit LiveView; non-binary overrides are now dropped instead of raising.- Grid cards preferred
metadata.published_atover the effective post date used for sorting, so the timeline rail could disagree with the visible order — both now read a sharedeffective_post_date/1helper. - The editor’s hidden
featured=falseinput stayed enabled while its checkbox was disabled, so a still-enabled sibling control could clobber the flag — now disabled in lockstep (defense-in-depth; pinned by test). name_i18noverrides bypassed the 255-char primary-name limit.reading_time_label/1usedgettextwith%{count}, which isn’t pluralizable — switched tongettext.- Timeline-rail month labels and both rails’ aria-labels were hardcoded
English inside static JS on otherwise fully-localized public pages — now
localized via
data-months/data-labelon the config elements. assign_scroll_config/2(renamedassign_group_display_config/2) re-fetched the group a second time per request and redeclared setting defaults as literals instead of readingConstants.- Spec-parity and
default_config/0tests compared against a hardcoded key list instead of the real write path (Groups.config_setting_keys/0), which had gone drift-blind and was missingshow_post_count. - Featured vs. grid card markup was near-duplicated in
html.ex— unified into onelisting_post_card/1component. Groups.update_group/3and the edit LiveView both broadcast{:group_updated, …}on save — the LiveView’s duplicate removed.translated_group_name/2was missing a@spec.- 57 admin/public strings per locale were never extracted (written on a server without a gettext-capable environment) — all five catalogs re-extracted, merged, and translated (en identity, et/fr/it/ru filled).
Publishing 0.4.0. Install or update: {:phoenix_kit_publishing, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.