Skip to content

Add visible empty state to activity-log timeline#28

Merged
AsmitNepali merged 1 commit into
1.xfrom
activity-log-empty-state
Jun 14, 2026
Merged

Add visible empty state to activity-log timeline#28
AsmitNepali merged 1 commit into
1.xfrom
activity-log-empty-state

Conversation

@AsmitNepali

Copy link
Copy Markdown
Collaborator

What

Replaces the minimal, easy-to-miss empty-state paragraph in the activity-log timeline with a proper centered empty state (muted history icon + message), and exposes a way to configure the message from the relation manager.

Changes

  • resources/views/timeline.blade.php — empty state is now a centered block with a ri-history-line icon and the message, instead of a small left-aligned gray <p>. Renders clearly instead of looking like a blank panel.
  • src/Filament/RelationManagers/ActivityLogRelationManager.php — added a public static ?string $emptyState and now passes it (falling back to the activity-log::messages.empty_state translation) into the Livewire component. Previously the relation manager mounted the component without an empty-state value, so host apps had no way to set the message on this path.

Why

When a record had no activity, the timeline rendered an empty-looking white section. The message now displays prominently, and host apps can customize it via:

  • the published translation (empty_state),
  • ActivityLogRelationManager::$emptyState, or
  • a relation-manager subclass.

Testing

  • vendor/bin/pest — 46 passed

@AsmitNepali AsmitNepali self-assigned this Jun 13, 2026
@AsmitNepali AsmitNepali merged commit 4ef22e7 into 1.x Jun 14, 2026
1 check passed
@AsmitNepali AsmitNepali deleted the activity-log-empty-state branch June 14, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant