refactor: Remove navigationSort property from various Filament resource classes for cleaner code

This commit is contained in:
Yoga Pangestu 2026-01-08 08:40:18 +07:00
parent cb8dac63fe
commit 926d25d6cf
22 changed files with 0 additions and 43 deletions

View File

@ -12,7 +12,6 @@ ## 1. Class Properties
protected static ?string $navigationGroup = 'Master';
protected static string|BackedEnum|null $navigationIcon = Heroicon::UserGroup;
protected static ?string $navigationLabel = 'Pengguna';
protected static ?int $navigationSort = 7;
protected static ?string $recordTitleAttribute = 'name';
protected static ?string $slug = 'master/users';
```

View File

@ -33,8 +33,6 @@ class AdminVerification extends Page implements HasActions, HasForms
protected static string|UnitEnum|null $navigationGroup = 'Kelola';
protected static ?int $navigationSort = 10;
protected static ?string $slug = 'manage/admin-verification';
protected string $view = 'filament.pages.admin-verification';

View File

@ -35,8 +35,6 @@ class CustomCompany extends Page
protected static ?string $recordTitleAttribute = 'name';
protected static ?int $navigationSort = 9;
public ?Company $company = null;
public array $data = [];

View File

@ -41,8 +41,6 @@ class CustomMedia extends Page
protected static ?string $recordTitleAttribute = 'name';
protected static ?int $navigationSort = 10;
public ?Company $company = null;
public ?PartnerMedia $media = null;

View File

@ -35,8 +35,6 @@ class CustomVerification extends Page implements HasActions, HasForms
protected static ?string $slug = 'manage/verification';
protected static ?int $navigationSort = 12;
protected string $view = 'filament.pages.verification';
public ?Company $company = null;

View File

@ -37,8 +37,6 @@ class CooperationResource extends Resource
protected static ?string $navigationLabel = 'Kerja Sama';
protected static ?int $navigationSort = 20;
protected static ?string $recordTitleAttribute = 'title';
protected static ?string $slug = 'manage/cooperations';

View File

@ -43,8 +43,6 @@ class JournalistResource extends Resource
protected static ?string $navigationLabel = 'Jurnalis';
protected static ?int $navigationSort = 11;
protected static ?string $recordTitleAttribute = 'name';
protected static ?string $slug = 'manage/journalists';

View File

@ -35,8 +35,6 @@ class PartnerResource extends Resource
protected static ?string $navigationLabel = 'Rekanan';
protected static ?int $navigationSort = 8;
protected static ?string $recordTitleAttribute = 'name';
protected static ?string $slug = 'manage/partners';

View File

@ -36,8 +36,6 @@ class CategoryResource extends Resource
protected static ?string $navigationLabel = 'Kategori Berita';
protected static ?int $navigationSort = 7;
protected static ?string $recordTitleAttribute = 'name';
protected static ?string $slug = 'master/categories';

View File

@ -36,8 +36,6 @@ class ClassificationResource extends Resource
protected static ?string $navigationLabel = 'Klasifikasi';
protected static ?int $navigationSort = 1;
protected static ?string $recordTitleAttribute = 'name';
protected static ?string $slug = 'master/classifications';

View File

@ -36,8 +36,6 @@ class DepartmentResource extends Resource
protected static ?string $navigationLabel = 'OPD';
protected static ?int $navigationSort = 5;
protected static ?string $recordTitleAttribute = 'name';
protected static ?string $slug = 'master/departments';

View File

@ -36,8 +36,6 @@ class LocationResource extends Resource
protected static ?string $navigationLabel = 'Lokasi';
protected static ?int $navigationSort = 3;
protected static ?string $recordTitleAttribute = 'name';
protected static ?string $slug = 'master/locations';

View File

@ -38,8 +38,6 @@ class SubClassificationResource extends Resource
protected static ?string $navigationLabel = 'Sub Klasifikasi';
protected static ?int $navigationSort = 2;
protected static ?string $recordTitleAttribute = 'name';
protected static ?string $slug = 'master/sub-classifications';

View File

@ -38,8 +38,6 @@ class SubLocationResource extends Resource
protected static ?string $navigationLabel = 'Sub Lokasi';
protected static ?int $navigationSort = 4;
protected static ?string $recordTitleAttribute = 'name';
protected static ?string $slug = 'master/sub-locations';

View File

@ -36,8 +36,6 @@ class ThemeResource extends Resource
protected static ?string $navigationLabel = 'Tema';
protected static ?int $navigationSort = 6;
protected static ?string $recordTitleAttribute = 'name';
protected static ?string $slug = 'master/themes';

View File

@ -40,8 +40,6 @@ class UserResource extends Resource
protected static ?string $navigationLabel = 'Pengguna';
protected static ?int $navigationSort = 7;
protected static ?string $recordTitleAttribute = 'name';
protected static ?string $slug = 'master/users';

View File

@ -27,8 +27,6 @@ class ContentRecapResource extends Resource
protected static ?string $navigationLabel = 'Rekap Konten';
protected static ?int $navigationSort = 13;
protected static ?string $recordTitleAttribute = 'title';
protected static ?string $slug = 'monitoring/content-recaps';

View File

@ -27,8 +27,6 @@ class IssueManagementResource extends Resource
protected static ?string $navigationLabel = 'Manajemen Isu';
protected static ?int $navigationSort = 13;
protected static ?string $recordTitleAttribute = 'mediaMonitoring.title';
protected static ?string $slug = 'monitoring/issue-managements';

View File

@ -27,8 +27,6 @@ class MediaMonitoringResource extends Resource
protected static ?string $navigationLabel = 'Monitoring Media';
protected static ?int $navigationSort = 12;
protected static ?string $recordTitleAttribute = 'code';
protected static ?string $slug = 'monitoring/media-monitorings';

View File

@ -43,8 +43,6 @@ class AnnouncementResource extends Resource
protected static ?string $recordTitleAttribute = 'title';
protected static ?int $navigationSort = 2;
public static function form(Schema $schema): Schema
{
return $schema

View File

@ -31,8 +31,6 @@ class NewsResource extends Resource
protected static ?string $recordTitleAttribute = 'title';
protected static ?int $navigationSort = 1;
public static function form(Schema $schema): Schema
{
return NewsForm::configure($schema);

View File

@ -24,8 +24,6 @@ class VisitorResource extends Resource
protected static ?string $navigationLabel = 'Pengunjung';
protected static ?int $navigationSort = 7;
protected static ?string $slug = 'monitoring/visitors';
public static function table(Table $table): Table