Skip to content

Customer Support 0.1.2: Translated menu labels and assignments in the history

Customer Support 0.1.2 translates the module’s menu entries and records every ticket assignment in the ticket’s history.

The admin and dashboard menu labels, Customer Support, Tickets and My Tickets, now follow the visitor’s language, with translations for English, Russian and Estonian.

Assigning a ticket now always adds a line to its Status History, even when the status stays the same. The note names the assignee by email (“Assigned to …”). Before, an assignment was logged only when it also changed the status, and without saying who got the ticket.

Full release notes: Customer Support 0.1.2

0.1.2 · 9 May 2026

Added

  • Per-module Gettext backend (#3) — PhoenixKitCustomerSupport.Gettext owns the translation catalogues for the four admin/user sidebar tab labels registered by this module. Locale is set per-request by the parent app; this module handles msgid lookup against the active locale.
  • Translations for all sidebar tab msgids in en / ru / et (priv/gettext/<locale>/LC_MESSAGES/default.po).
  • lib/phoenix_kit_customer_support.ex — gettext_backend: PhoenixKitCustomerSupport.Gettext on every Tab.new! call (admin_tabs/0, settings_tabs/0, user_dashboard_tabs/0).
  • test/phoenix_kit_customer_support/i18n_test.exs — smoke test for backend wiring across all three tab callbacks and locale resolution; conditionally excluded via :requires_phoenix_kit_i18n_api when the resolved phoenix_kit predates Tab.localized_label/1.

Changed

  • Ticket assignment status history — assign_ticket/3 now always records a status-history row on assignment, even when the ticket status doesn’t change (encoded as from == to); note text now includes the assignee’s email via describe_user/1.
  • mix.exs — :gettext added to extra_applications and deps; priv/gettext added to package files: so catalogues ship to Hex consumers.

Fixed

  • mix.exs — package files: narrowed from priv to priv/gettext so future priv/ content doesn’t ship to Hex unintentionally.
  • describe_user/1 — dropped catch-all rescue that masked real DB faults inside repo().transaction/1 (Repo.get/2 already returns nil for missing rows).
  • test_helper.exs — psql invocation wrapped in try/rescue so the helper degrades gracefully when psql isn’t on PATH.

Customer Support 0.1.2. Install or update: {:phoenix_kit_customer_support, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.