Fold long page introductions to two lines with Show more
One component, PageIntro, for the text under a page's title: shown as it is when it fits in two lines, otherwise folded with a Show more, remembered per page in this browser, opened by tabbing to a link in it, unfolded in print. Used on 41 pages. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a2b43bcd5d
commit
9937ab2202
46 files changed
+307
-82
No files matched your search
@@ -6,6 +6,7 @@ import TimeAgo from "../components/TimeAgo";
|
||||
import { BlockSkeleton } from "../components/Skeleton";
|
||||
import { ErrorNotice } from "../components/Notice";
|
||||
import { readableError } from "../utils/errors";
|
||||
import PageIntro from "../components/PageIntro";
|
||||
|
||||
/** Alerts every pipeline carries to prove it works: they are always firing, so they are not shown as firing. */
|
||||
const BY_DESIGN = /^(watchdog|deadmansswitch|deadmanssnitch|infoinhibitor)$/i;
|
||||
@@ -136,10 +137,10 @@ export default function Prometheus() {
|
||||
return (
|
||||
<>
|
||||
<h2 className="page-title">Prometheus</h2>
|
||||
<p className="text-secondary">
|
||||
<PageIntro>
|
||||
What Prometheus already measures, in the same list as everything else. It is read every couple of minutes (see <Link to="/integrations">Integrations</Link>). A <strong>target that has not answered for five minutes</strong> and an <strong>alert that Prometheus’s rules are firing</strong> are
|
||||
alerts — see <Link to="/alerts">Alerts</Link>. Alerts that Grafana manages itself are not seen.
|
||||
</p>
|
||||
</PageIntro>
|
||||
<ErrorNotice error={error} />
|
||||
{!data && !error && <BlockSkeleton lines={4} />}
|
||||
{data && data.length === 0 && (
|
||||
|
||||
Reference in new issue
Block a user