Repository navigation
Filament v4 and v5 support, a redesigned timeline, and Spatie Activitylog v4 and v5 support.
composer require jaocero/activity-timeline:^2.0See Upgrading from v1.x in the README.
Added
- Filament v4 and v5 support (Laravel 11.28+, PHP 8.2+, Tailwind CSS v4)
- Redesigned timeline: colored icon nodes on a continuous rail, Filament sections and badges, dark mode and
fi-timeline-*CSS hook classes ActivityBadge,ActivityCauser(avatar or initials) andActivityChanges(before → after list) entriesgroupByDate(),compact(),reverse(),contained()andloadMore()onActivitySectionActivityDate::relative()with the full date in a tooltipActivityLogSection, a ready-made Spatie Activitylog timeline for any infolistActivityTimelineAction, a slide-over showing a record's activitiesconfigureActivitySection(),modifyActivitiesQuery()andgetActivitiesPerPage()onActivityTimelinePage- Spatie Activitylog v5 support (
attribute_changes), alongside v4 - Translations
Fixed
ActivityDate::date()now formats the date- Reading Spatie Activitylog v4+ properties no longer fails (they are already cast to a collection)
- Activity subjects are matched with
whereMorphedTo(), so morph maps work - Causer names, subjects and descriptions are escaped in the default titles
Changed
- The timeline renders in a single view per section instead of one view per entry, and no longer uses random keys
- The activity page loads activities 20 at a time instead of all at once
- HTML from
html()/allowHtml()is sanitized
Deprecated
modifyState()andallowHtml(). UseformatStateUsing()andhtml()ActivityTimelinePage::configuration(). UseconfigureActivitySection()andmodifyActivitiesQuery()
Removed
- Filament v3 support and the Tailwind CSS v3 build