PhoenixKitCalendar.Paths (PhoenixKitCalendar v0.1.0)

Copy Markdown View Source

Centralized path helpers for the Calendar module.

All paths go through PhoenixKit.Utils.Routes.path/1 for prefix/locale handling — never hardcode "/admin/calendar" in LiveViews.

Summary

Functions

The calendar page (own calendar).

The calendar page with a layer selection. people is the compact URL form built by the LiveView: nil (own calendar — no param), "all" (every calendar), or a comma-joined uuid list. Only meaningful for viewers holding calendar.view_others — the LiveView sanitizes the param against permissions on every mount/patch.

Functions

index()

@spec index() :: String.t()

The calendar page (own calendar).

people(param)

@spec people(String.t() | nil) :: String.t()

The calendar page with a layer selection. people is the compact URL form built by the LiveView: nil (own calendar — no param), "all" (every calendar), or a comma-joined uuid list. Only meaningful for viewers holding calendar.view_others — the LiveView sanitizes the param against permissions on every mount/patch.