PhoenixKitWeb.Components.Core.ActivityList (phoenix_kit v2.52.2)

Copy Markdown View Source

A list of activity entries — when, who, what, and what moved — for any screen that shows a slice of the Activity log (Settings → Media → History is the first; the full feed at /admin/activity keeps its own richer table and shares this module's summarize_details/1).

<.activity_list entries={@entries} empty={gettext("Nothing yet.")} />

Entries need their :actor preloaded (Activity.list/1 does by default). Each row links to the entry's page (/admin/activity/:uuid), which shows it in full. Pass detail_links: false when the viewer cannot access the Activity page.

Summary

Functions

The one-line summary of what an entry moved: its changes first ("Name Old → New · +2"), else its identity and operational keys. nil when there is nothing to say.

Functions

activity_list(assigns)

Attributes

  • entries (:list) (required)
  • empty (:string) - Defaults to nil.
  • id (:string) - Defaults to nil.
  • detail_links (:boolean) - Defaults to true.

summarize_details(metadata)

@spec summarize_details(map() | nil) :: String.t() | nil

The one-line summary of what an entry moved: its changes first ("Name Old → New · +2"), else its identity and operational keys. nil when there is nothing to say.