mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-17 06:24:32 +00:00
add help banners to alerts
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import SettingsSectionTitle from "@app/components/SettingsSectionTitle";
|
||||
import AlertingRulesTable from "@app/components/AlertingRulesTable";
|
||||
import HealthChecksTable from "@app/components/HealthChecksTable";
|
||||
import DismissableBanner from "@app/components/DismissableBanner";
|
||||
import { HorizontalTabs, TabItem } from "@app/components/HorizontalTabs";
|
||||
import { BellRing, HeartPulse } from "lucide-react";
|
||||
import { getTranslations } from "next-intl/server";
|
||||
|
||||
type AlertingPageProps = {
|
||||
@@ -26,8 +28,30 @@ export default async function AlertingPage(props: AlertingPageProps) {
|
||||
description={t("alertingDescription")}
|
||||
/>
|
||||
<HorizontalTabs items={tabs} clientSide>
|
||||
<AlertingRulesTable orgId={params.orgId} />
|
||||
<HealthChecksTable orgId={params.orgId} />
|
||||
<div className="space-y-6">
|
||||
<DismissableBanner
|
||||
storageKey="alerting-rules-banner-dismissed"
|
||||
version={1}
|
||||
title={t("alertingRulesBannerTitle")}
|
||||
titleIcon={
|
||||
<BellRing className="w-5 h-5 text-primary shrink-0" />
|
||||
}
|
||||
description={t("alertingRulesBannerDescription")}
|
||||
/>
|
||||
<AlertingRulesTable orgId={params.orgId} />
|
||||
</div>
|
||||
<div className="space-y-6">
|
||||
<DismissableBanner
|
||||
storageKey="alerting-health-checks-banner-dismissed"
|
||||
version={1}
|
||||
title={t("alertingHealthChecksBannerTitle")}
|
||||
titleIcon={
|
||||
<HeartPulse className="w-5 h-5 text-primary shrink-0" />
|
||||
}
|
||||
description={t("alertingHealthChecksBannerDescription")}
|
||||
/>
|
||||
<HealthChecksTable orgId={params.orgId} />
|
||||
</div>
|
||||
</HorizontalTabs>
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user