Files
landing-api/app/Filament/Resources/RepositoryIssuesResource/Schemas/RepositoryIssueForm.php
Josep Piguillem 3897113313 Initial commit: Pireon Admin — headless admin panel and public API
Laravel 13 + Filament 5 admin panel and REST API for a non-profit developer
collective, backed by the Pireon OAuth identity server. The public site is a
separate, server-rendered application consuming /api/public/v1.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-19 17:55:27 +02:00

89 lines
3.3 KiB
PHP

<?php
declare(strict_types=1);
namespace App\Filament\Resources\RepositoryIssuesResource\Schemas;
use Filament\Forms\Components\DateTimePicker;
use Filament\Forms\Components\Placeholder;
use Filament\Forms\Components\Section;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Toggle;
use Filament\Schemas\Schema;
class RepositoryIssueForm
{
public static function configure(Schema $schema): Schema
{
return $schema->components([
Section::make(__('panel.issues.sections.details'))
->schema([
Placeholder::make('number')
->label(__('panel.issues.fields.number'))
->content(fn ($record) => $record?->number ? "#{$record->number}" : '—'),
TextInput::make('title')
->label(__('panel.issues.fields.title'))
->disabled()
->columnSpanFull(),
Select::make('repository_id')
->label(__('panel.issues.fields.repository'))
->relationship('repository', 'full_name')
->disabled()
->searchable(),
TextInput::make('author')
->label(__('panel.issues.fields.author'))
->disabled(),
TextInput::make('assignee')
->label(__('panel.issues.fields.assignee'))
->helperText(__('panel.issues.fields.assignee_hint')),
TextInput::make('html_url')
->label(__('panel.issues.fields.url'))
->disabled()
->url()
->columnSpanFull(),
]),
Section::make(__('panel.issues.sections.classification'))
->schema([
Toggle::make('is_good_first_issue')
->label(__('panel.issues.fields.is_good_first_issue'))
->helperText(__('panel.issues.fields.is_good_first_issue_hint')),
Toggle::make('is_help_wanted')
->label(__('panel.issues.fields.is_help_wanted'))
->helperText(__('panel.issues.fields.is_help_wanted_hint')),
]),
Section::make(__('panel.issues.sections.metadata'))
->collapsed()
->schema([
TextInput::make('comments')
->label(__('panel.issues.fields.comments'))
->disabled()
->numeric(),
DateTimePicker::make('issue_created_at')
->label(__('panel.issues.fields.issue_created_at'))
->disabled(),
DateTimePicker::make('issue_updated_at')
->label(__('panel.issues.fields.issue_updated_at'))
->disabled(),
Textarea::make('labels')
->label(__('panel.issues.fields.labels'))
->disabled()
->rows(3)
->columnSpanFull(),
]),
]);
}
}