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(), Tables\Columns\TextColumn::make('created_at')->dateTime()->since(),
]) ])
->filters([ ->filters([
Tables\Filters\TrashedFilter::make(), Tables\Filters\TrashedFilter::make()
->label('Archived')
->placeholder('Active')
->trueLabel('All')
->falseLabel('Archived'),
]) ])
->actions([ ->actions([
Actions\ViewAction::make() Actions\ViewAction::make()

View File

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

View File

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

View File

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