Add bokshorn-it/filament-activity-timeline package for enhanced audit logging functionality. Update README to reflect new key package and improve localization for audit-related terms. Remove deprecated ActivityLogResource and related pages, integrating activity timeline features into existing resources. Update models to implement ProvidesActivityTitle for better activity tracking.

This commit is contained in:
Mekan1206
2026-08-02 22:37:59 +05:00
parent 0237c2b9ef
commit 3504e39646
46 changed files with 472 additions and 314 deletions

View File

@@ -17,6 +17,14 @@ it('allows authenticated super admin users to access the admin panel', function
->assertSuccessful();
});
it('allows authenticated super admin users to access the audit log page', function (): void {
$admin = createAdminUser();
$this->actingAs($admin)
->get('/admin/activity-logs')
->assertSuccessful();
});
it('redirects authenticated non-admin users without panel access', function (): void {
seedRoles();

View File

@@ -5,7 +5,7 @@ declare(strict_types=1);
use App\Enums\EmploymentStatus;
use App\Enums\Gender;
use App\Enums\NavigationGroup;
use App\Filament\Resources\ActivityLogs\ActivityLogResource;
use App\Filament\ActivityTimeline\AuditLogResource;
use App\Filament\Resources\Departments\DepartmentResource;
use App\Models\User;
use BezhanSalleh\LanguageSwitch\Events\LocaleChanged;
@@ -68,11 +68,11 @@ it('returns translated filament navigation group labels at request time', functi
it('returns translated filament resource navigation labels', function (): void {
App::setLocale('tk');
expect(ActivityLogResource::getNavigationLabel())->toBe('Audit žurnaly');
expect(AuditLogResource::getNavigationLabel())->toBe('Audit žurnaly');
App::setLocale('ru');
expect(ActivityLogResource::getNavigationLabel())->toBe('Журнал аудита');
expect(AuditLogResource::getNavigationLabel())->toBe('Журнал аудита');
});
it('returns translated filament resource model labels', function (): void {