Runware/ComfyUI fixes, dashboard links, import action, Leonardo plugin, widget, added status field and test connection button

This commit is contained in:
2025-12-03 14:48:45 +01:00
parent 3ec8e471bc
commit 090ec2c44b
16 changed files with 1019 additions and 142 deletions

View File

@@ -11,10 +11,12 @@ use Filament\Actions\BulkActionGroup;
use Filament\Actions\CreateAction;
use Filament\Actions\DeleteBulkAction;
use Filament\Actions\EditAction;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Toggle;
use Filament\Resources\Resource;
use Filament\Schemas\Components\Section;
use Filament\Schemas\Schema;
use Filament\Tables\Columns\IconColumn;
use Filament\Tables\Columns\TextColumn;
@@ -38,12 +40,23 @@ class AiModelResource extends Resource
{
return $schema
->components([
Section::make('Hinweise zu Model-Parametern')
->description('Parameter werden je nach Plugin unterschiedlich verwendet: Runware/ComfyUI als JSON für Workflow/Model-Settings, Leonardo v2 akzeptiert z. B. width/height/style_ids/prompt_enhance. Prüfe die Plugin-Doku; Felder, die nicht zum Plugin passen, werden ignoriert.')
->columns(1)
->collapsible()
->schema([]),
TextInput::make('name')
->required(),
TextInput::make('model_id')
->required(),
TextInput::make('model_type')
->nullable(),
Select::make('api_provider_id')
->label('API Provider')
->relationship('primaryApiProvider', 'name')
->searchable()
->preload()
->required(),
Toggle::make('enabled')
->default(true),
Textarea::make('parameters')