Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AIDAPP-314]: Feature Flag cleanup: KnowledgeBaseCategorySlug #289

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Resources\Pages\CreateRecord;
use App\Features\KnowledgeBaseCategorySlug;
use App\Filament\Forms\Components\IconSelect;
use AidingApp\KnowledgeBase\Filament\Resources\KnowledgeBaseCategoryResource;

Expand All @@ -62,8 +61,7 @@ public function form(Form $form): Form
->unique()
->maxLength(255)
->required()
->dehydrateStateUsing(fn (string $state): string => strtolower($state))
->visible(KnowledgeBaseCategorySlug::active()),
->dehydrateStateUsing(fn (string $state): string => strtolower($state)),
Textarea::make('description')
->label('Description')
->nullable()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Resources\Pages\EditRecord;
use App\Features\KnowledgeBaseCategorySlug;
use App\Filament\Forms\Components\IconSelect;
use AidingApp\KnowledgeBase\Filament\Resources\KnowledgeBaseCategoryResource;

Expand All @@ -64,8 +63,7 @@ public function form(Form $form): Form
->unique(ignoreRecord: true)
->maxLength(255)
->required()
->dehydrateStateUsing(fn (string $state): string => strtolower($state))
->visible(KnowledgeBaseCategorySlug::active()),
->dehydrateStateUsing(fn (string $state): string => strtolower($state)),
Textarea::make('description')
->label('Description')
->nullable()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
use Filament\Infolists\Infolist;
use Filament\Resources\Pages\ViewRecord;
use Filament\Infolists\Components\Section;
use App\Features\KnowledgeBaseCategorySlug;
use Filament\Infolists\Components\TextEntry;
use AidingApp\KnowledgeBase\Models\KnowledgeBaseCategory;
use AidingApp\KnowledgeBase\Filament\Resources\KnowledgeBaseCategoryResource;
Expand All @@ -65,8 +64,7 @@ public function infolist(Infolist $infolist): Infolist
->label('Description')
->columnSpanFull(),
TextEntry::make('slug')
->hidden(fn (KnowledgeBaseCategory $record): bool => blank($record->slug))
->visible(KnowledgeBaseCategorySlug::active()),
->hidden(fn (KnowledgeBaseCategory $record): bool => blank($record->slug)),
])
->columns(),
]);
Expand Down
47 changes: 0 additions & 47 deletions app/Features/KnowledgeBaseCategorySlug.php

This file was deleted.

This file was deleted.