From 01cfa31ee154100fd1c6e7732d18608d430693bd Mon Sep 17 00:00:00 2001 From: Boy132 Date: Thu, 19 Feb 2026 14:57:48 +0100 Subject: [PATCH] Limit activity logs on profile page (#2253) --- app/Filament/Pages/Auth/EditProfile.php | 6 +++--- lang/en/profile.php | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Filament/Pages/Auth/EditProfile.php b/app/Filament/Pages/Auth/EditProfile.php index 3a09dce19..1a261e045 100644 --- a/app/Filament/Pages/Auth/EditProfile.php +++ b/app/Filament/Pages/Auth/EditProfile.php @@ -426,13 +426,13 @@ class EditProfile extends BaseEditProfile ->label(trans('profile.tabs.activity')) ->icon(TablerIcon::History) ->schema([ - Repeater::make('activity') - ->hiddenLabel() + Repeater::make('activity') // TODO: move to a table + ->label(trans('profile.activity_info')) ->inlineLabel(false) ->deletable(false) ->addable(false) ->relationship(null, function (Builder $query) { - $query->orderBy('timestamp', 'desc'); + $query->orderBy('timestamp', 'desc')->limit(50); }) ->schema([ TextEntry::make('log') diff --git a/lang/en/profile.php b/lang/en/profile.php index db8df82d6..b6fd1d182 100644 --- a/lang/en/profile.php +++ b/lang/en/profile.php @@ -69,4 +69,5 @@ return [ 'no_oauth' => 'No Accounts Linked', 'no_api_keys' => 'No API Keys', 'no_ssh_keys' => 'No SSH Keys', + 'activity_info' => 'Showing last 50 activity logs', ];