PhoenixKitStaff.Web.PersonEventsComponent (PhoenixKitStaff v0.6.0)

Copy Markdown View Source

The Events tab of a staff person's profile — a read-only, paginated feed of the activity logged for this person (PhoenixKit.Activity entries scoped to resource_type: "staff_person" + the person's uuid). Staff already logs ~all person mutations (create/update/trash/restore, employment, skills, file/ image add+remove), so this is the person's audit timeline.

Read-only by design: no live PubSub prepend (a fresh load on tab open / page change is enough for an audit log, and avoids the page-vs-prepend hazard). Labels/icons come from PhoenixKitStaff.ActivityLabels; badge colour reuses core PhoenixKit.Activity.action_badge_color/1.