Voile.Dashboard.Feed (Voile v0.1.48)

Copy Markdown View Source

Context for the dashboard "Attention Required" feed.

Aggregates the operational items staff need to act on first — overdue loans, reservations awaiting pickup, expiring memberships, and expired memberships — into the uniform %{icon, tone, title, subtitle, meta, href} shape consumed by the v2 voile_activity_feed component.

All queries honor node scoping: when the given user has a node_id, results are restricted to that node; super admins (with node_id == nil) see everything.

Summary

Functions

Builds the attention feed for the given user.

Functions

attention_items(user)

Builds the attention feed for the given user.

Returns a list of maps shaped for voile_activity_feed, ordered so the most urgent items (overdue loans) appear first. Each category is capped so the feed never grows unbounded.