27 lines
1.0 KiB
PHP
27 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\BazaarReleases\Schemas;
|
|
|
|
use Filament\Infolists\Components\IconEntry;
|
|
use Filament\Infolists\Components\TextEntry;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class BazaarReleaseInfolist
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
TextEntry::make('bazaar_release_id')->label('Bazaar release ID'),
|
|
TextEntry::make('status')->badge(),
|
|
TextEntry::make('artifact_type')->badge(),
|
|
TextEntry::make('staged_rollout_percentage')->suffix('%'),
|
|
IconEntry::make('auto_publish')->boolean(),
|
|
TextEntry::make('changelog_fa')->columnSpanFull(),
|
|
TextEntry::make('changelog_en')->columnSpanFull(),
|
|
TextEntry::make('developer_note')->columnSpanFull(),
|
|
TextEntry::make('bazaar_response')->formatStateUsing(fn (?array $state): string => json_encode($state, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE))->columnSpanFull(),
|
|
]);
|
|
}
|
|
}
|