diff --git a/app/Filament/Resources/System/MedalResource.php b/app/Filament/Resources/System/MedalResource.php index 21ccba13..fe83e588 100644 --- a/app/Filament/Resources/System/MedalResource.php +++ b/app/Filament/Resources/System/MedalResource.php @@ -61,7 +61,7 @@ class MedalResource extends Resource return $table ->columns([ Tables\Columns\TextColumn::make('id')->sortable(), - Tables\Columns\TextColumn::make('name')->label(__('label.name')), + Tables\Columns\TextColumn::make('name')->label(__('label.name'))->searchable(), Tables\Columns\ImageColumn::make('image_large')->height(120)->label(__('label.medal.image_large')), Tables\Columns\ImageColumn::make('image_small')->height(120)->label(__('label.medal.image_small')), Tables\Columns\TextColumn::make('getTypeText')->label('Get type')->label(__('label.medal.get_type')), diff --git a/app/Filament/Resources/Torrent/TagResource.php b/app/Filament/Resources/Torrent/TagResource.php index bb6a8909..43f66759 100644 --- a/app/Filament/Resources/Torrent/TagResource.php +++ b/app/Filament/Resources/Torrent/TagResource.php @@ -53,7 +53,7 @@ class TagResource extends Resource return $table ->columns([ Tables\Columns\TextColumn::make('id'), - Tables\Columns\TextColumn::make('name')->label(__('label.name')), + Tables\Columns\TextColumn::make('name')->label(__('label.name'))->searchable(), Tables\Columns\TextColumn::make('color')->label(__('label.tag.color')), Tables\Columns\TextColumn::make('font_color')->label(__('label.tag.font_color')), Tables\Columns\TextColumn::make('font_size')->label(__('label.tag.font_size')), diff --git a/app/Filament/Resources/Torrent/TorrentResource.php b/app/Filament/Resources/Torrent/TorrentResource.php index 3ac6ff86..6eb2fb36 100644 --- a/app/Filament/Resources/Torrent/TorrentResource.php +++ b/app/Filament/Resources/Torrent/TorrentResource.php @@ -69,7 +69,7 @@ class TorrentResource extends Resource $tags = sprintf(' 
%s
', $record->tagsFormatted); return new HtmlString('
' . $name . $tags . '
'); - })->label(__('label.name')), + })->label(__('label.name'))->searchable(), Tables\Columns\TextColumn::make('posStateText')->label(__('label.torrent.pos_state')), Tables\Columns\TextColumn::make('spStateText')->label(__('label.torrent.sp_state')), Tables\Columns\TextColumn::make('size')->label(__('label.torrent.size'))->formatStateUsing(fn ($state) => mksize($state)), @@ -139,6 +139,7 @@ class TorrentResource extends Resource Forms\Components\Select::make('pos_state') ->label(__('label.torrent.pos_state')) ->options(Torrent::listPosStates(true)) + ->required() ]) ->icon('heroicon-o-arrow-circle-up') ->action(function (Collection $records, array $data) { @@ -163,7 +164,8 @@ class TorrentResource extends Resource Forms\Components\CheckboxList::make('tags') ->label(__('label.tag.label')) ->columns(4) - ->options(TagRepository::createBasicQuery()->pluck('name', 'id')->toArray()), + ->options(TagRepository::createBasicQuery()->pluck('name', 'id')->toArray()) + ->required(), ]) ->icon('heroicon-o-tag') ->action(function (Collection $records, array $data) { diff --git a/app/Filament/Resources/User/HitAndRunResource.php b/app/Filament/Resources/User/HitAndRunResource.php index fb2c30b5..e5029c8e 100644 --- a/app/Filament/Resources/User/HitAndRunResource.php +++ b/app/Filament/Resources/User/HitAndRunResource.php @@ -55,7 +55,7 @@ class HitAndRunResource extends Resource ->columns([ Tables\Columns\TextColumn::make('id')->sortable(), Tables\Columns\TextColumn::make('user.username')->searchable()->label(__('label.username')), - Tables\Columns\TextColumn::make('torrent.name')->limit(40)->label(__('label.torrent.label')), + Tables\Columns\TextColumn::make('torrent.name')->limit(30)->label(__('label.torrent.label')), Tables\Columns\TextColumn::make('snatch.uploadText')->label(__('label.uploaded')), Tables\Columns\TextColumn::make('snatch.downloadText')->label(__('label.downloaded')), Tables\Columns\TextColumn::make('snatch.shareRatio')->label(__('label.ratio')),