Calendar 0.3.0: Items from other modules on your own calendar
Calendar 0.3.0 lets other modules put their items on a person’s calendar. A meeting from another module, for example, can appear next to the person’s own events without being copied into the calendar.
External sources
A module can name a source by exporting phoenix_kit_calendar_sources/0, or your app can list one under config :phoenix_kit_calendar, source_providers:. On every load the calendar asks each source for the user’s items in the visible window. Nothing is copied, so a moved or cancelled item is right the next time the page loads. The source decides what the user may see.
Each source has a key, a label for its switch, and the module it belongs to; it is offered only while that module is on. An item carries a title, a start, an optional end (drawn as one hour when missing), a status, a kind for a badge, a location and a link. Items have no description, so nothing private shows on a screen others can see, and an item that looks like a hand-made event is never merged with it.
- Items appear only on the viewer’s own calendar, never on a colleague’s. They share one colour and are struck through when cancelled.
- The page header has a switch per source (tooltip Show or hide on your calendar). The choice is saved on the user, under the
calendar_hidden_sourcescustom field. - Clicking an item opens it read-only: when, where, which source, and an Open link to where it is managed. All-day items show dates, not midnight.
- A source that fails, times out or returns bad data adds nothing, and the person’s own events still show. At most 300 items are drawn per window.
External items do not appear on the dashboard widgets yet.
Upgrading
No migration and no configuration. The core requirement is unchanged (>= 2.38.0 and < 3.0.0). Nothing shows until an installed module or your app provides a source.
Full release notes: Calendar 0.3.0
0.3.0 · 24 October 2026
Added
- External sources: other modules’ items on a person’s calendar (PR #9).
A module may export
phoenix_kit_calendar_sources/0(or be listed underconfig :phoenix_kit_calendar, source_providers: [...]) naming a function that returns, for a user and a time window, the items that are theirs (a CRM meeting they are a party to, say). The calendar asks on every load and copies nothing, so a moved or cancelled item is right on the next look. The source decides what the user may see;PhoenixKitCalendar.ExternalSourcesdocuments the contract and the item shape.- Items appear on the viewer’s own calendar only, never a colleague’s, in one colour, struck through when cancelled.
- A switch per source in the page header shows or hides it; the choice is
stored on the user’s custom fields (
"calendar_hidden_sources",ExternalSources.hidden/1,set_hidden/3,4). - An item opens read-only in the event dialog: when, where, which source, and a link to where it is managed. All-day items show their dates, not a midnight clock time.
- A source that raises, times out or returns malformed items (including a wrongly typed optional field) contributes nothing; the person’s own events still show. At most 300 items are drawn per window.
- Not on the dashboard widgets yet.
Changed
- Dependencies refreshed to
phoenix_kit2.64.1 andphoenix_live_calendar0.5.1. Thephoenix_kitrequirement is unchanged (>= 2.38.0 and < 3.0.0).
Calendar 0.3.0. Install or update: {:phoenix_kit_calendar, "~> 0.3"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.