Page metadata struct for the dashboard.
Centralises page title, navigation path, and breadcrumb context into a single
struct. Each LiveView implements page_meta/2 (one clause per live_action) and
calls assign_page_meta/1 after all referenced assigns are set.
Breadcrumbs are built by walking the :parent chain — no separate config needed.
Summary
Callbacks
Returns the page metadata for a given live action.
Functions
Assigns :page_meta and :page_title to the socket by calling page_meta/2
on the view module.
Builds a breadcrumb trail from a PageMeta struct.
Callbacks
Functions
Assigns :page_meta and :page_title to the socket by calling page_meta/2
on the view module.
All assigns referenced in page_meta/2 must be set before calling this.
Builds a breadcrumb trail from a PageMeta struct.
Walks the parent chain from the current page to the root, returning a list of
{title, path} tuples in root-first order. The last item (current page) has
nil as path to signal it should not be rendered as a link.