Block 251 of 297
Activity Feed
Recent gifts, sign-ups, updates, alerts and milestones on a vertical timeline with a view-all link.
- Puck key
- ActivityFeedBlock
- Export
- activityFeedBlock
- React component
- <ActivityFeed />
- Path
- components/puck/activity-feed-block.tsx
- Dependencies
- None
- License
- MIT
About this block
When to use it, how to write for it, and what to change in the code.
What it's for
Recent events on a vertical timeline: each entry has a type icon, a bold "who" followed by what happened, an optional detail line and a timestamp. Types cover donations, sign-ups, updates, alerts and milestones. Bind the list with {{ source.items }} or type it in. In a narrow card the time drops below the sentence.
- Live giving and volunteer activity during a campaign or giving day
- A program team's recent updates on an internal dashboard
- A member portal showing account or community activity
Writing the content
- Write Who and What happened so they read as one sentence, like "Maria L." + "gave $250 to the Winter Coat Drive".
- Fill Timestamp (ISO) alongside When, for example from {{ item.created_at }}, to get a machine-readable time element.
- Events accept up to 20 entries; use View all link text to point to the full history.
Accessibility
- Each event starts with hidden text naming its type, such as "Donation:", so the meaning of the icon reaches screen reader users. The icons themselves are aria-hidden.
- Events are an ordered list, and times use a time element with a datetime value when an ISO timestamp is supplied.
- Linked events and the View all link show a visible focus outline; the View all link has a 44px minimum height.
Customizing the code
- Icons, labels and colors for each event type live in the TYPES map; add an entry there for a new type.
- The time moves beside the sentence at the @sm container width, so it follows the card size, not the screen.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Titletext
- Heading levelselect
- Subtitletext
- Eventsarray
- View all link texttext
- View all linktext
- Footnotetext