mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-20 02:42:11 +00:00
132e298d5b
Route Settings Infrastructure destination labels and source-strategy copy through the shared infrastructure settings presentation helper so dashboard, infrastructure, discovery, PMG, storage disk-health, and alert-thresholds guidance do not revive removed nested settings paths.
26 lines
804 B
TypeScript
26 lines
804 B
TypeScript
import { getInfrastructureSourceStrategyDescription } from '@/utils/infrastructureSettingsPresentation';
|
||
|
||
export function getInfrastructureEmptyState() {
|
||
return {
|
||
title: 'No infrastructure sources yet',
|
||
description: getInfrastructureSourceStrategyDescription(),
|
||
actionLabel: 'Add infrastructure source',
|
||
} as const;
|
||
}
|
||
|
||
export function getInfrastructureFilterEmptyState() {
|
||
return {
|
||
title: 'No resources match filters',
|
||
description: 'Try adjusting the search, source, or status filters.',
|
||
actionLabel: 'Clear filters',
|
||
} as const;
|
||
}
|
||
|
||
export function getInfrastructureLoadFailureState() {
|
||
return {
|
||
title: 'Unable to load infrastructure',
|
||
description: 'We couldn’t fetch unified resources. Check connectivity or retry.',
|
||
actionLabel: 'Retry',
|
||
} as const;
|
||
}
|