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:
@@ -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();
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user