Activity events feed for the Hello World module.
Shows a filterable, infinite-scroll list of activity entries scoped to
module: "hello_world". This is a generic pattern — every PhoenixKit
module that logs activities can drop in a near-identical LiveView by
changing the module filter and the path.
Pattern walkthrough
- Uses
stream/4with a customdom_id:becausePhoenixKit.Activity.Entryuses:uuidas the primary key (not:id). - Reloads on filter change via
stream(..., reset: true). - Infinite scroll via core's
<.load_more infinite>footer, which renders theInfiniteScrollhook plus a manual "Load more" fallback button. The hook ships in PhoenixKit's own JS bundle, so it is registered on every page load — unlike a per-page inline<script>, which never executes when the page is reached throughnavigate/2. - All PhoenixKit.Activity calls are guarded with
Code.ensure_loaded?/1so the module works even on hosts without activity logging.