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', ];