Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions app/Filament/Resources/ResultResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,19 @@ public static function table(Table $table): Table
TextColumn::make('id')
->label('ID'),
IconColumn::make('scheduled')
->boolean(),
->boolean()
->toggleable()
->toggledHiddenByDefault(),
ViewColumn::make('download')
->view('tables.columns.bits-column'),
ViewColumn::make('upload')
->view('tables.columns.bits-column'),
TextColumn::make('ping'),
TextColumn::make('ping')
->toggleable(),
ViewColumn::make('server_id')
->label('Server ID')
->view('tables.columns.server-column'),
->view('tables.columns.server-column')
->toggleable(),
TextColumn::make('created_at')
->dateTime($settings->time_format ?? 'M j, Y G:i:s')
->timezone($settings->timezone ?? 'UTC'),
Expand All @@ -47,12 +51,15 @@ public static function table(Table $table): Table
//
])
->actions([
// Tables\Actions\ViewAction::make(),
Action::make('view result')
->label('View on Speedtest.net')
->url(fn (Result $record): string => $record->url)
->openUrlInNewTab(),
Tables\Actions\DeleteAction::make(),
Tables\Actions\ActionGroup::make([
Action::make('view result')
->label('View on Speedtest.net')
->icon('heroicon-o-link')
->url(fn (Result $record): string => $record->url)
->openUrlInNewTab(),
// Tables\Actions\ViewAction::make(),
Tables\Actions\DeleteAction::make(),
]),
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
Expand Down