diff --git a/frontend/src/pages/Home.tsx b/frontend/src/pages/Home.tsx
index e017520..2699063 100644
--- a/frontend/src/pages/Home.tsx
+++ b/frontend/src/pages/Home.tsx
@@ -1,4 +1,4 @@
-import { useQueryClient } from '@tanstack/react-query'
+import { useQueryClient } from '@tanstack/react-query'
import {
Alert,
Button,
@@ -24,10 +24,10 @@ import { useTags } from '../api/tags'
import { useDashboardMonitorSSE } from '../hooks/useDashboardMonitorSSE'
function formatAge(seconds: number | null | undefined): string {
- if (seconds == null) return ''
- if (seconds < 60) return `${seconds}`
- if (seconds < 3600) return `${Math.floor(seconds / 60)}`
- return `${Math.floor(seconds / 3600)} ${Math.floor((seconds % 3600) / 60)}`
+ if (seconds == null) return '—'
+ if (seconds < 60) return `${seconds}с`
+ if (seconds < 3600) return `${Math.floor(seconds / 60)}м`
+ return `${Math.floor(seconds / 3600)}ч ${Math.floor((seconds % 3600) / 60)}м`
}
function scopeToSearch(scope: DashboardScope): string {
@@ -91,9 +91,9 @@ export function HomePage() {
const handleRunNow = async () => {
try {
await runNow.mutateAsync({ ...scope, force: true })
- message.success(' ')
+ message.success('Мониторинг запущен')
} catch {
- message.error(' ')
+ message.error('Не удалось запустить мониторинг')
}
}
@@ -203,13 +203,13 @@ export function HomePage() {
NOC Dashboard
- SLA, ,
+ SLA, покрытие мониторингом, инциденты и очередь действий
-
+
@@ -219,7 +219,7 @@ export function HomePage() {