Refine ops health widget layout
This commit is contained in:
@@ -33,9 +33,6 @@ class UploadPipelineHealthWidget extends StatsOverviewWidget
|
||||
: __('admin.ops_health.snapshot_missing');
|
||||
|
||||
return [
|
||||
Stat::make(__('admin.ops_health.pipeline.total'), number_format($totals['total']))
|
||||
->description(__('admin.ops_health.pipeline.hot_hint', ['count' => number_format($totals['hot'])]))
|
||||
->color('primary'),
|
||||
Stat::make(__('admin.ops_health.pipeline.pending'), number_format($totals['pending']))
|
||||
->description($snapshotLabel)
|
||||
->descriptionIcon('heroicon-m-clock')
|
||||
@@ -43,6 +40,9 @@ class UploadPipelineHealthWidget extends StatsOverviewWidget
|
||||
Stat::make(__('admin.ops_health.pipeline.failed'), number_format($totals['failed']))
|
||||
->description(__('admin.ops_health.pipeline.archived_hint', ['count' => number_format($totals['archived'])]))
|
||||
->color($totals['failed'] > 0 ? 'danger' : 'success'),
|
||||
Stat::make(__('admin.ops_health.pipeline.total'), number_format($totals['total']))
|
||||
->description(__('admin.ops_health.pipeline.hot_hint', ['count' => number_format($totals['hot'])]))
|
||||
->color('primary'),
|
||||
Stat::make(__('admin.ops_health.pipeline.alerts'), number_format(count($alerts)))
|
||||
->color(count($alerts) > 0 ? 'danger' : 'success'),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user