Calm motion: animations on this site only fade, with no movement
Activity feed
What people did, in groups by day
Shows the recent events of a team or a project: who did what, and when. The newest event is at the top, and the events are in groups by day. For notices that a person must read, use the notification inbox. For steps in a fixed order, use the timeline.
Basic
Ana Putri published Episode 41
Budi Santoso uploaded the final mix of Episode 41
Citra Dewi commented on the cover art
Ana Putri added chapters to Episode 41
Dimas joined the team as an editor
Budi Santoso recorded Episode 42
eventsis a list of events. Each event has anid, anactor, anaction, and atime. The actor has anameand an optionalavatar. An optionaltargetnames the thing, and an optionalhrefmakes it a link.- The feed puts the events in order, newest first, and in groups by day: "Today", "Yesterday", then the date. Each event shows its time as a relative time, such as "2 hr. ago".
- The
eventslot replaces the text of an event. It gets{ event }. localesets the language of the day names and the times (default English).nowsets a fixed "now", for example in a test or an example.- The server does not know the day of the reader. So, until the page loads, the groups show plain dates in UTC. Then they change to "Today" and "Yesterday" in the zone of the reader.
- Each day is a section named by its date, with a list of events.
Usage
ts
import { BlessActivityFeed } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
events* | BlessActivity[] | — | |
locale | string | — | language of the day names and the times, for example `id`. Default: English. |
now | number | Date | — | a fixed "now" for the day groups and the times |
Slots
| Name | Scope | Description |
|---|---|---|
event | { event: BlessActivity; } |