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(),
|
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()
|
||||||
|
|||||||
@ -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()
|
||||||
|
|||||||
@ -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([
|
||||||
|
|||||||
@ -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',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user