feat/005-bulk-operations #5

Merged
ahmido merged 25 commits from feat/005-bulk-operations into dev 2025-12-25 13:32:37 +00:00
4 changed files with 14 additions and 6 deletions
Showing only changes of commit 99f2a6309d - Show all commits

View File

@ -51,7 +51,11 @@ public static function table(Table $table): Table
Tables\Columns\TextColumn::make('created_at')->dateTime()->since(),
])
->filters([
Tables\Filters\TrashedFilter::make(),
Tables\Filters\TrashedFilter::make()
->label('Archived')
->placeholder('Active')
->trueLabel('All')
->falseLabel('Archived'),
])
->actions([
Actions\ViewAction::make()

View File

@ -331,7 +331,7 @@ public static function table(Table $table): Table
->bulkActions([
BulkActionGroup::make([
BulkAction::make('bulk_delete')
->label('Delete Policies')
->label('Ignore Policies')
->icon('heroicon-o-trash')
->color('danger')
->requiresConfirmation()

View File

@ -97,10 +97,10 @@ public static function table(Table $table): Table
])
->filters([
Tables\Filters\TrashedFilter::make()
->label('Archive filter')
->placeholder('Active only')
->trueLabel('Active + archived')
->falseLabel('Archived only')
->label('Archived')
->placeholder('Active')
->trueLabel('All')
->falseLabel('Archived')
->default(true),
Tables\Filters\SelectFilter::make('app_status')
->options([

View File

@ -166,6 +166,8 @@
'name' => 'Tenant 3',
]);
$tenant->makeCurrent();
$policy = Policy::create([
'tenant_id' => $tenant->id,
'external_id' => 'pol-1',
@ -201,6 +203,8 @@
'name' => 'Tenant 3b',
]);
$tenant->makeCurrent();
$policy = Policy::create([
'tenant_id' => $tenant->id,
'external_id' => 'pol-1b',