Fix tenant dashboard 500 (missing BaselineCompareRun) #125
@ -142,13 +142,17 @@ public static function form(Schema $schema): Schema
|
|||||||
->schema([
|
->schema([
|
||||||
TextInput::make('name')
|
TextInput::make('name')
|
||||||
->required()
|
->required()
|
||||||
->maxLength(255),
|
->maxLength(255)
|
||||||
|
->helperText('A descriptive name for this baseline profile.'),
|
||||||
Textarea::make('description')
|
Textarea::make('description')
|
||||||
->rows(3)
|
->rows(3)
|
||||||
->maxLength(1000),
|
->maxLength(1000)
|
||||||
|
->helperText('Explain the purpose and scope of this baseline.'),
|
||||||
TextInput::make('version_label')
|
TextInput::make('version_label')
|
||||||
->label('Version label')
|
->label('Version label')
|
||||||
->maxLength(50),
|
->maxLength(50)
|
||||||
|
->placeholder('e.g. v2.1 — February rollout')
|
||||||
|
->helperText('Optional label to identify this version.'),
|
||||||
Select::make('status')
|
Select::make('status')
|
||||||
->required()
|
->required()
|
||||||
->options([
|
->options([
|
||||||
@ -157,7 +161,8 @@ public static function form(Schema $schema): Schema
|
|||||||
BaselineProfile::STATUS_ARCHIVED => 'Archived',
|
BaselineProfile::STATUS_ARCHIVED => 'Archived',
|
||||||
])
|
])
|
||||||
->default(BaselineProfile::STATUS_DRAFT)
|
->default(BaselineProfile::STATUS_DRAFT)
|
||||||
->native(false),
|
->native(false)
|
||||||
|
->helperText('Only active baselines are enforced during compliance checks.'),
|
||||||
Select::make('scope_jsonb.policy_types')
|
Select::make('scope_jsonb.policy_types')
|
||||||
->label('Policy type scope')
|
->label('Policy type scope')
|
||||||
->multiple()
|
->multiple()
|
||||||
|
|||||||
@ -52,13 +52,17 @@ public function panel(Panel $panel): Panel
|
|||||||
->id('admin')
|
->id('admin')
|
||||||
->path('admin')
|
->path('admin')
|
||||||
->login(Login::class)
|
->login(Login::class)
|
||||||
|
->brandName('TenantPilot')
|
||||||
|
->brandLogo(fn () => view('filament.admin.logo'))
|
||||||
|
->brandLogoHeight('2rem')
|
||||||
|
->favicon(asset('favicon.ico'))
|
||||||
->authenticatedRoutes(function (Panel $panel): void {
|
->authenticatedRoutes(function (Panel $panel): void {
|
||||||
ChooseWorkspace::registerRoutes($panel);
|
ChooseWorkspace::registerRoutes($panel);
|
||||||
ChooseTenant::registerRoutes($panel);
|
ChooseTenant::registerRoutes($panel);
|
||||||
NoAccess::registerRoutes($panel);
|
NoAccess::registerRoutes($panel);
|
||||||
})
|
})
|
||||||
->colors([
|
->colors([
|
||||||
'primary' => Color::Amber,
|
'primary' => Color::Indigo,
|
||||||
])
|
])
|
||||||
->navigationItems([
|
->navigationItems([
|
||||||
NavigationItem::make('Integrations')
|
NavigationItem::make('Integrations')
|
||||||
|
|||||||
@ -33,12 +33,16 @@ public function panel(Panel $panel): Panel
|
|||||||
->id('tenant')
|
->id('tenant')
|
||||||
->path('admin/t')
|
->path('admin/t')
|
||||||
->login(Login::class)
|
->login(Login::class)
|
||||||
|
->brandName('TenantPilot')
|
||||||
|
->brandLogo(fn () => view('filament.admin.logo'))
|
||||||
|
->brandLogoHeight('2rem')
|
||||||
|
->favicon(asset('favicon.ico'))
|
||||||
->tenant(Tenant::class, slugAttribute: 'external_id')
|
->tenant(Tenant::class, slugAttribute: 'external_id')
|
||||||
->tenantRoutePrefix(null)
|
->tenantRoutePrefix(null)
|
||||||
->tenantMenu(fn (): bool => filled(Filament::getTenant()))
|
->tenantMenu(fn (): bool => filled(Filament::getTenant()))
|
||||||
->searchableTenantMenu()
|
->searchableTenantMenu()
|
||||||
->colors([
|
->colors([
|
||||||
'primary' => Color::Amber,
|
'primary' => Color::Indigo,
|
||||||
])
|
])
|
||||||
->navigationItems([
|
->navigationItems([
|
||||||
NavigationItem::make('Runs')
|
NavigationItem::make('Runs')
|
||||||
|
|||||||
17
resources/views/filament/admin/logo.blade.php
Normal file
17
resources/views/filament/admin/logo.blade.php
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<div class="flex items-center gap-2">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" class="h-7 w-7 shrink-0" fill="none">
|
||||||
|
{{-- Shield body --}}
|
||||||
|
<path
|
||||||
|
d="M16 2L4 7v8c0 8.5 5.1 16.4 12 18 6.9-1.6 12-9.5 12-18V7L16 2z"
|
||||||
|
class="fill-primary-600 dark:fill-primary-500"
|
||||||
|
/>
|
||||||
|
{{-- Checkmark --}}
|
||||||
|
<path
|
||||||
|
d="M13 17.5l-3-3 1.4-1.4L13 14.7l5.6-5.6L20 10.5l-7 7z"
|
||||||
|
class="fill-white"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
<span class="text-lg font-bold tracking-tight text-gray-950 dark:text-white">
|
||||||
|
TenantPilot
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
Loading…
Reference in New Issue
Block a user