Disk fill forecasts, skeleton loaders, and a Silence button on alerts
A disk that is on course to be full within 14 days (setting: 0 turns it off) is flagged on the Alerts page and dashboard, from the server's own history: needs three days of steady growth, skips erratic disks and ones the ordinary disk alert covers. Skeleton placeholders replace "Fetching status…" and "Loading…". Alerts that a maintenance window can silence get a Silence button (1, 4 or 24 hours) that starts one, and the alert list is refreshed at once when a window starts or ends. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
82974b98d0
commit
f7f5e1cd41
24 files changed
+566
-25
No files matched your search
@@ -15,6 +15,7 @@ import {
|
||||
import { formatAgo } from "../utils/duration";
|
||||
import StatusStrip from "../components/StatusStrip";
|
||||
import { ErrorNotice } from "../components/Notice";
|
||||
import { WidgetSkeleton } from "../components/Skeleton";
|
||||
|
||||
const DNS_TYPE_COLORS: Record<string, string> = {
|
||||
A: "#60a5fa",
|
||||
@@ -579,7 +580,7 @@ export default function Dashboard({ user }: { user: CurrentUser }) {
|
||||
>
|
||||
<ErrorNotice error={dnsError} className="mb-2" />
|
||||
{!dnsStats ? (
|
||||
<div className="text-secondary">Fetching status…</div>
|
||||
<WidgetSkeleton />
|
||||
) : dnsStats.totalProviders === 0 ? (
|
||||
<div className="text-secondary">
|
||||
Configure a DNS provider from the <Link to="/dns">DNS</Link> page.
|
||||
@@ -628,7 +629,7 @@ export default function Dashboard({ user }: { user: CurrentUser }) {
|
||||
}
|
||||
>
|
||||
{!secrets ? (
|
||||
<div className="text-secondary">Fetching status…</div>
|
||||
<WidgetSkeleton />
|
||||
) : totalSecrets === 0 ? (
|
||||
<div className="text-secondary">
|
||||
Configure a secret from the <Link to="/secrets">Secrets</Link> page.
|
||||
@@ -672,7 +673,7 @@ export default function Dashboard({ user }: { user: CurrentUser }) {
|
||||
>
|
||||
<ErrorNotice error={serverError} className="mb-2" />
|
||||
{!serverSummary ? (
|
||||
!serverError && <div className="text-secondary">Fetching status…</div>
|
||||
!serverError && <WidgetSkeleton />
|
||||
) : serverSummary.total === 0 ? (
|
||||
<div className="text-secondary">
|
||||
Add a server from the <Link to="/servers">Servers</Link> page.
|
||||
@@ -765,7 +766,7 @@ export default function Dashboard({ user }: { user: CurrentUser }) {
|
||||
>
|
||||
<ErrorNotice error={domainError} className="mb-2" />
|
||||
{!domainList ? (
|
||||
!domainError && <div className="text-secondary">Fetching status…</div>
|
||||
!domainError && <WidgetSkeleton />
|
||||
) : domains.length === 0 ? (
|
||||
<div className="text-secondary">
|
||||
Domains for your DNS zones appear on the <Link to="/domains">Domains</Link> page after the next daily check, or add one there.
|
||||
@@ -1081,7 +1082,7 @@ export default function Dashboard({ user }: { user: CurrentUser }) {
|
||||
) : (
|
||||
<div className="text-secondary mt-2">
|
||||
{integration ? (
|
||||
"Fetching status…"
|
||||
<WidgetSkeleton />
|
||||
) : (
|
||||
<>
|
||||
Configure this integration from the <Link to="/integrations">Integrations</Link> page.
|
||||
|
||||
Reference in new issue
Block a user