Project activity
A filterable project history with typed markers, timestamps, inline review actions, and loading and empty states.
bunx --bun @getweini/cli@latest add activity-timeline button card empty-state toggle-groupCustomize
- Pass your events in `entries` with a `kind` (`review`, `comment`, `release`, or `issue`), a title, an optional description, a display `timestamp`, and a machine-readable `datetime`. The block maps each kind to an icon and a tone, and filters locally with the toggle group.
- Set `loading` while history loads to show skeleton rows, and let the empty state offer a way back to every event when a filter matches nothing. The `more` event fires from the “Show earlier activity” button so you can page on the server.
- Review items add action buttons through the timeline’s `actions` slot and emit `action` with the entry id and `review` or `approve`. Add a kind by extending `tones` and `icons`.
- Each row is a list item inside an ordered list, with the time in a real `time` element. The card is a polite live region so a filter change is announced.
- All visible text, including the filter labels, lives in the `copy` prop.