CRM 0.17.0: Planned interactions, calendars and your own party roles
CRM 0.17.0 lets you plan a meeting or call ahead and record later what happened, shows interactions on project and personal calendars, and replaces the four fixed party roles with a list administrators edit.
Plan an interaction, then log the outcome
An interaction now has a status: planned, happened or cancelled. Every interaction you already have becomes happened. A plan is the interaction itself, so there is nothing to copy over later. On a contact, a company or a project’s Client tab, a new Planned card lists what is coming and has a Plan ahead button. A start time still to come can also be saved as a plan from the usual composer. Each plan has Log what happened, Change the plan and It was cancelled. A plan whose time has passed waits with needs an outcome. The original start time is kept when the real one is logged.
A plan logs no time on the project. Time reaches the project’s ledger once the interaction is saved as happened or cancelled, and an interaction with logged time cannot be turned back into a plan. Plans no longer need a project event, and the small project-only planning form from 0.16 is gone.
The activity trail records when a plan is made, moved, cancelled or logged. The users behind a plan’s parties get a notification when they are added, when it moves, when it is cancelled and when it is put back.
End times and quicker parties
The composer gets an end time (Ended (optional), or Ends (optional) for a plan) with its own Set to now button. It also offers the people the page’s recent interactions involved as one-click chips. No column is added: the end is worked out from the start and the duration.
Interactions on calendars and projects
With the Projects module, a project’s Calendar tab shows its interactions, and a person’s own calendar shows the ones they wrote or take part in. The projects list gets a Client column. A project’s Client tab also lists, read-only, the interactions other projects logged with the same client, each with a badge naming its project.
Party roles you define
Supplier, manufacturer, customer and partner are no longer fixed. A new Party roles tab under the CRM settings lists the roles, and you can add, reorder, archive, restore and delete them, and edit their translated name, description, badge and icon. The four built-in roles can be renamed but not archived or deleted. A role that is or was held by a company or person can only be archived.
Projects API
The interactions endpoints gain status, location, planned_at, overdue and ended_at, status and updated_since filters, GET /ext/interactions/{id} and ?of=client for the client’s interactions from other projects (read-only, PATCH answers 403). The list now filters before its 200-row limit, so many future plans no longer push older history out.
Upgrading
Run mix phoenix_kit.update: migrations V09 and V10 add the plan fields and the party role table. If your app shows the contact Orders tab, add config :phoenix_kit_crm, orders_bridge: MyApp.CRMBridge before upgrading, pointing at a module with orders_for_contact/1; without it the tab is hidden. A bridge that fails now shows an empty tab instead of crashing the contact page.
Full release notes: CRM 0.17.0
0.17.0 · 24 October 2026
Upgrading: run mix phoenix_kit.update (migrations V09 and V10). A host
that shows the contact Orders tab must add config :phoenix_kit_crm, orders_bridge: MyApp.CRMBridge before upgrading, or the tab disappears (see
Changed).
Added
- Interactions can be plans (migration V09:
status,planned_atandlocationon interactions).statusisplanned,happenedorcancelled; every existing row becomeshappened. A plan is the interaction itself: “Log what happened” and “It was cancelled” change that row,planned_atkeeps the agreed start once the real one is known, and a plan past its time waits as “needs an outcome”. A plan logs no time on the project; its time reaches the ledger when it is saved as happened or cancelled, and a row with logged time cannot be made a plan again. One composer writes all three, and the contact and company pages now use the same feed, Planned card and drawer (Web.InteractionsDrawer), so planning works without a project. The small “Plan ahead” form and the project event behind it are gone.list_recent/1andcount_interactions/0leave plans out;list_planned/1is the overview’s new Planned list. - Notifications and history for plans. The activity trail records planned,
moved, cancelled and logged, and the users behind a plan’s parties are told
when they are added, when it moves, when it is cancelled and when it is
reinstated (
InteractionNotifier). - An end time on interactions (
Interaction.ended_at/1, read from start plus minutes, no new column). The composer has an Ended field and a “Set to now” button, and offers the people this page’s interactions involved lately as one-click chips. - Interactions on calendars. The projects hub’s Calendar tab shows a
project’s interactions, and a person’s own calendar shows the ones they
wrote or are a party to (
CalendarItems). Each calendar reads them on load, and both hooks are ignored when the projects or calendar module is absent. - The client as a column on the projects list (
project_columns). - A project sees the interactions other projects logged with its client. The Client tab lists them read-only, with a badge naming the project; the # search offers them.
- Admin-defined party roles (migration V10: the
phoenix_kit_crm_party_role_typestable, seeded with supplier, manufacturer, customer and partner). Theparty_roles.roleCHECK becomes aRESTRICTforeign key, so a role in use can only be archived, never deleted or re-keyed. A new Settings → CRM → Party roles tab lists, reorders, archives, restores and deletes roles, and edits translated names and descriptions, the badge and the icon. Built-ins can be renamed but not archived or deleted.PartyRoleTypesmanages types from code (includingensure/3for hosts);grant_role/4accepts any active key. - Projects API:
status,location,planned_at,overdueandended_at(accepted in place ofduration_minutes; sent together they must agree) on interactions;statusandupdated_sincefilters on the list;GET /ext/interactions/{id};?of=clientfor the client’s interactions from other projects, wherePATCHanswers 403other_project; and each row carriesproject_uuid. A row with logged time cannot be re-planned (422).
Changed
- The contact Orders tab reads its bridge from config:
config :phoenix_kit_crm, orders_bridge: MyApp.CRMBridge, a module exportingorders_for_contact/1that returns a list of maps with:number,:pathand:inserted_at. Without the key the tab is hidden. Malformed rows are skipped with a warning. A bridge that raises, exits (aGenServer.calltimeout, say) or returns something other than a list shows the empty state and no longer crashes the contact page. - The Gettext backend is split by locale and domain (
split_module_by). - Locked dependencies refreshed (
phoenix_kit2.64.1,bandit1.13.1 andthousand_island1.6.0 for thehex.auditadvisories).
Fixed
GET /ext/interactionsapplies its filters and ordering before the 200-row limit, so many future plans no longer hide completed history, and thenowpolling cursor is taken before the read, so a write racing the request is no longer missed by the nextupdated_sincepoll.
CRM 0.17.0. Install or update: {:phoenix_kit_crm, "~> 0.17"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.