chore: align UI labels and fix housekeeping
- Rename Policies bulk action to 'Ignore Policies' - Align archived filter labels across resources - Fix Housekeeping tests by setting current tenant
This commit is contained in:
parent
e603a1245e
commit
99f2a6309d
@ -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()
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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([
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user