Skip to content

Customer Support 0.1.0: Support tickets as a standalone module

Customer Support 0.1.0 is the first release of PhoenixKit’s support ticket system as its own package. Users open tickets from their dashboard, staff answer them in the admin, and every status change is kept in a history.

Tickets and their statuses

A ticket has a title, a description and a status: open, in progress, resolved or closed. Staff move it between them from the ticket page in the admin, under Support Tickets, which also counts tickets per status and lets you search and filter them. A resolved or closed ticket can be reopened. The ticket page shows a Status History with who made each change and when.

Staff can assign a ticket to a member of the support team, and can create a ticket on behalf of a user.

Replies and internal notes

Staff and the ticket’s owner reply in a comment thread. Staff can also write internal notes, marked Staff Only, which the customer never sees.

What users see

Users get a My Tickets page in their dashboard, under /dashboard/customer-support/tickets. They can open a new ticket, follow its status and add comments.

Settings

Customer Support Settings shows ticket counts and has switches for Internal Notes, Attachments and Allow Reopening Tickets, plus Tickets Per Page for the ticket lists. All three switches are on by default.

Upgrading

The module needs PhoenixKit 1.7.104 or later. Add phoenix_kit_customer_support to your dependencies and run mix phoenix_kit.update. On a site that used the module from core, core’s V109 migration renames the old customer_service_* settings and the customer_service permission to customer_support, and the pages move from /customer-service/ to /customer-support/. Update any links to the old addresses.

Full release notes: Customer Support 0.1.0

0.1.0 · 4 May 2026

Initial release of PhoenixKit Customer Support as a standalone Hex package, extracted from PhoenixKit core (>= 1.7.104).

Features

  • Ticket lifecycle — open → in_progress → resolved → closed with full status-history audit trail (PhoenixKitCustomerSupport.TicketStatusHistory).
  • Comments and internal notes — public comments visible to ticket owners, plus agent-only internal notes gated by the customer_support_internal_notes_enabled setting.
  • Attachments — file uploads on tickets and comments via PhoenixKit.Modules.Storage, configurable through customer_support_attachments_enabled.
  • Assignment — assign tickets to support staff; assignment changes are recorded.
  • Reopen flow — closed tickets can be reopened by users or agents when customer_support_allow_reopen is true.
  • Admin LiveViews — list / new / edit / details / settings under /admin/customer-support and /admin/settings/customer-support.
  • User-dashboard LiveViews — list / new / details for the ticket owner under /dashboard/customer-support/tickets (routes wired by PhoenixKitWeb.Integration in core via Code.ensure_loaded? guards).
  • PubSub events — PhoenixKitCustomerSupport.Events exposes per-user, per-ticket, and global topics for real-time updates.
  • Module auto-discovery — implements PhoenixKit.Module; registered with PhoenixKit’s module system at compile time, no manual router wiring required.

Settings keys

Key Default Description
customer_support_enabled false Enables the module globally.
customer_support_per_page 20 Tickets per page in admin and user list views.
customer_support_comments_enabled true Allow comments on tickets.
customer_support_internal_notes_enabled true Allow agent-only internal notes.
customer_support_attachments_enabled true Allow file attachments on tickets and comments.
customer_support_allow_reopen true Allow reopening of closed tickets.

Migration notes (from PhoenixKit core)

PhoenixKit core’s V109 migration renames the legacy keys so existing installs migrate cleanly:

  • Settings keys: customer_service_* → customer_support_*
  • Permission key (phoenix_kit_role_permissions.module_key): customer_service → customer_support
  • Routes: /customer-service/* → /customer-support/*
  • Module: PhoenixKitCustomerService → PhoenixKitCustomerSupport
  • Hex package: phoenix_kit_customer_support

Run mix phoenix_kit.update after upgrading core to apply V109.


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