Build & Deploy / build (push) Successful in 18s
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
36 lines
1.1 KiB
PHP
36 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Integrations\Schemas;
|
|
|
|
use Filament\Forms\Components\DateTimePicker;
|
|
use Filament\Forms\Components\Select;
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Schemas\Schema;
|
|
use Technical\Integrations\Enums\IntegrationStatus;
|
|
|
|
class IntegrationForm
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
Select::make('user_id')
|
|
->relationship('user', 'name')
|
|
->required(),
|
|
TextInput::make('provider')
|
|
->required(),
|
|
TextInput::make('external_user_id'),
|
|
DateTimePicker::make('token_expires_at'),
|
|
TextInput::make('scopes'),
|
|
Select::make('status')
|
|
->options(IntegrationStatus::class)
|
|
->default('connected')
|
|
->required(),
|
|
DateTimePicker::make('connected_at')
|
|
->required(),
|
|
DateTimePicker::make('last_synced_at'),
|
|
TextInput::make('meta'),
|
|
]);
|
|
}
|
|
}
|