Calendar 0.2.3: Steadier viewer detection and participant saves
Calendar 0.2.3 makes the calendar read the signed-in user the same way everywhere, and keeps the page from crashing after participants are added.
When the session carried the user as a plain map rather than a full user record, the calendar page and the dashboard widgets saw no viewer: no own calendar and empty widgets, while saving still worked. The activity log also recorded no actor. Every read of the current user now goes through core’s PhoenixKitWeb.Actor.
Adding participants could crash the page if looking up who to notify timed out after the save. Now the notification is skipped and the participants stay saved.
Upgrading
Calendar 0.2.3 needs PhoenixKit core 2.38.0 or later (below 3.0). Logged activity rows are unchanged.
Full release notes: Calendar 0.2.3
0.2.3 · 26 September 2026
Changed
- Requires
phoenix_kit >= 2.38.0 and < 3.0.0. Activity entries go through core’sPhoenixKit.Activity.log/3, which never raises, and the acting user is read withPhoenixKitWeb.Actor— both first shipped in core 2.38.0, so they are called directly rather than feature-detected. Logged rows are unchanged.
Fixed
- A scope carrying a plain-map user is read the same everywhere.
Scope.user_uuid/1only matches a%User{}struct, so such a scope logged no actor, and the calendar page and dashboard widgets saw no viewer — no own calendar, empty widgets — while the context still authorized the user. Every actor and viewer read now goes throughPhoenixKitWeb.Actor.uuid/1. - Adding participants no longer crashes the page when resolving who to notify times out on the database after the save has committed; the notification is skipped and the participants stay saved.
Calendar 0.2.3. Install or update: {:phoenix_kit_calendar, "~> 0.2"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.