Feed grouped — Activity block
Freeactivity-feed-grouped · for record, app pages
Feed grouped
A workspace-wide feed with many events: rows under day headings, avatar beside the sentence
Documentation
Installation
One command copies the block into your project with the shadcn CLI (the registry is set once: Installation).
pnpm dlx shadcn-vue@latest add @trame/activity-feed-groupedUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import ActivityFeedGrouped from '@/components/trame/blocks/activity/activity-feed-grouped.vue'
const props = {
title: "Activity",
intro: "Everything that has happened on this project.",
events: [
{
id: 1,
at: "2:32 p.m.",
exact: "October 9, 2026, 2:32 p.m.",
day: "Today",
actor: "Ingrid Halden",
verb: "changed the status of",
object: "Hillside House",
detail: "From “Design development” to “Planning submitted”",
type: "status"
},
{
id: 2,
at: "11:05 a.m.",
exact: "October 9, 2026, 11:05 a.m.",
day: "Today",
actor: "Tomas Roe",
verb: "commented on",
object: "Hillside House",
detail: "The clients would like the west window lowered by a foot.",
body: "The clients would like the west window lowered by a foot, so they can see the valley from the sofa. I’ve asked the engineer whether the lintel still works.",
type: "comment"
}
],
filters: [
{
value: "comment",
label: "Comments"
},
{
value: "status",
label: "Statuses"
}
],
options: {
footnote: "History is kept for the period set in the workspace settings."
}
}
</script>
<template>
<ActivityFeedGrouped v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe feed’s heading ("Activity") |
| intro | string | Wordsone line under the title |
| events* | Event[] | Datathe events, newest first (steps: in order) |
| filters | Filter[] | the event types to filter by |
| more | string | Actionloads the next events; a link, never an infinite scroll |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Event events[] · 15 props
| Prop | Type | Description |
|---|---|---|
| id* | string | number | the event’s id |
| at* | string | Wordswhen, as the app writes it ("14:32", "3 Oct."): never computed here |
| exact | string | Wordsthe full date, shown as the time’s title |
| day | string | Wordsthe day heading it belongs to ("Today", "Yesterday"), for the grouped layout |
| actor* | string | Wordswho did it |
| avatar | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| verb* | string | Wordswhat they did, as a phrase ("changed", "added a file to") |
| object* | string | Wordswhat it was done to |
| detail | string | Wordsa secondary line: a path, a size, a quote |
| body | string | Wordsthe text of a comment or a note, shown in its own box |
| attachment | string | Wordsthe name of an attached file |
| internal | boolean | an internal note, tinted |
| type | 'comment' | 'note' | 'create' | 'update' | 'upload' | 'delete' | 'status' | 'payment' | 'invite' | 'other' | what kind of event it is; it picks the icon |
| state | 'done' | 'running' | 'upcoming' | for steps: where the stage stands |
| stateLabel | string | Wordsthe stage’s state written out ("In progress") |
Filter filters[] · 2 props
| Prop | Type | Description |
|---|---|---|
| value* | string | Designan event type |
| label* | string | Wordsthe value in words, as shown |
Options options · 5 props
| Prop | Type | Description |
|---|---|---|
| groupByDay | boolean | true: the events are grouped under each day |
| footnote | string | Wordsa line under the list (retention, timezone), as configured |
| empty | string | Wordswhat an empty feed says |
| pageSize | number | events shown before "See more" |
| mood | 'inverse' | 'brand' | 'warm' | 'tint' | string | a band of the page that redefines the theme surfaces inside it |
What it asks your app for
The block never knows your app: it asks it, through one context provided once, where its links lead, what its actions do, how a price reads and which words to say (The host context).
| Member | What it is for |
|---|---|
| href | the address an action leads to, or null to hide what leads there |
| act | runs a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error } |
| can | whether the page has this action |
| asset | a picture’s address as your app serves it |
| Link | your router’s link component |
| cartCount | the cart badge’s number |
| cartDrawer | whether your app has a cart drawer |
| cartOpen | whether the cart drawer is open |
| label | your word for an interface key, or undefined to keep the block’s own |
The words it says itself, in English and French; label(key) replaces any of them:
| Key | English | French |
|---|---|---|
| newsletter.already | You are already subscribed. | Vous êtes déjà inscrit. |
| newsletter.done | Done: you are subscribed. | C’est noté : vous êtes inscrit. |
| newsletter.invalid | Check the email address. | Vérifiez l’adresse e-mail. |
| newsletter.tooMany | Too many attempts, try again in a moment. | Trop de tentatives, réessayez dans un moment. |
Features
- Every word in the server HTML
- Same markup in Vue and React
- Theme tokens only: every theme, light and dark
- Shows what you give it, invents nothing
- No motion; still under reduced motion
- Real buttons and links, a visible focus
- Asks your app through actions:
more - Reads
eventsfrom your app
A activity section, for record, app pages; it uses @lucide/vue, @vueuse/core, class-variance-authority, clsx, reka-ui, tailwind-merge.
More activity blocks
- Document notes side by side: a document excerpt and numbered anchors beside its discussion: comments pinned to passages of the merchant’s own text.
- Event briefing sidebar: A category-by-category briefing with a summary rail, using only the app’s own recorded events.
- Notification center panel: the popover-sized list beside the bell: grouped Today / Earlier, unread marked, everything marked read.
- Notification digest grouped: a quiet morning: the notifications grouped by the record they concern, each group with its count.
- Notification feed tabbed: the full notifications page: tabs All / Unread / Mentions, extra filter chips, room for long sentences.
- Read archive split: Unread work beside the read archive, for scanning attention and context together without hiding either.
- Record comments boxed: a discussion on a record: events with a body (comment, note) in an inset box, internal notes tinted.