42 lines
1.5 KiB
PHP
42 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\BazaarReleases\Tables;
|
|
|
|
use Filament\Actions\ViewAction;
|
|
use Filament\Tables\Columns\IconColumn;
|
|
use Filament\Tables\Columns\TextColumn;
|
|
use Filament\Tables\Filters\SelectFilter;
|
|
use Filament\Tables\Table;
|
|
|
|
class BazaarReleasesTable
|
|
{
|
|
public static function configure(Table $table): Table
|
|
{
|
|
return $table
|
|
->columns([
|
|
TextColumn::make('bazaar_release_id')->label('Bazaar ID')->sortable(),
|
|
TextColumn::make('status')->badge()->sortable(),
|
|
TextColumn::make('artifact_type')->badge(),
|
|
TextColumn::make('staged_rollout_percentage')->suffix('%')->sortable(),
|
|
IconColumn::make('auto_publish')->boolean(),
|
|
TextColumn::make('committed_at')->dateTime()->sortable(),
|
|
TextColumn::make('published_at')->dateTime()->sortable(),
|
|
])
|
|
->filters([
|
|
SelectFilter::make('status')->options([
|
|
'draft' => 'Draft',
|
|
'awaiting_bin' => 'Awaiting BIN',
|
|
'processing_bundle' => 'Processing bundle',
|
|
'artifact_uploaded' => 'Artifact uploaded',
|
|
'committed' => 'Committed',
|
|
'published' => 'Published',
|
|
'deleted' => 'Deleted',
|
|
]),
|
|
])
|
|
->recordActions([
|
|
ViewAction::make(),
|
|
])
|
|
->defaultSort('created_at', 'desc');
|
|
}
|
|
}
|