Move the remaining panel explanations into tooltips

A node setting's description comes off the backend JSON schema, so every
node type's panel still printed a paragraph under each field. It moves to
the field label, which is the change that makes the node panel read as a
list rather than a page.

Alerts, Modules and Remote access follow the same shape. A page keeps a
one-line description under its h1 — a page is arrived at rather than
scanned — and the rest goes behind the heading's tooltip.

Verified on the running stack: the tooltip opens on tap in the phone sheet
and on hover on the desktop panel.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015YrQnKV3bnQd4K342y8tKj
This commit is contained in:
2026-08-31 10:38:16 +02:00
co-authored by Claude Opus 5
parent 954d90fbf7
commit 2422a9b22b
4 changed files with 66 additions and 39 deletions
+17 -12
View File
@@ -4,6 +4,7 @@ import { Bell, BellOff, Plus, Send, Trash2 } from "lucide-react"
import { useState } from "react"
import { type AlertsConfig, AlertsService, type Channel } from "@/client"
import { InfoTip } from "@/components/Flow/SidePanel"
import { Button } from "@/components/ui/button"
import { Checkbox } from "@/components/ui/checkbox"
import { Input } from "@/components/ui/input"
@@ -161,9 +162,7 @@ function Alerts() {
<div className="grid gap-1">
<h1 className="text-2xl">Alerts</h1>
<p className="text-sm text-muted-foreground">
Where the engine goes when something breaks. A channel is somewhere to
send to; a rule says which failures go to which channels. The same
fault repeating is held back until its cooldown passes.
Where the engine goes when something breaks.
</p>
</div>
{data ? <AlertsForm initial={data} /> : null}
@@ -229,7 +228,14 @@ function AlertsForm({ initial }: { initial: AlertsConfig }) {
<section className="grid gap-3">
<div className="flex items-center justify-between">
<h2 className={SECTION}>Channels</h2>
<div className="flex items-center gap-1">
<h2 className={SECTION}>Channels</h2>
<InfoTip label="Channels">
Somewhere to send to. A setting can hold{" "}
<code className="font-mono">{`{"$secret": "name"}`}</code> instead
of the value itself, and the stored secret is used.
</InfoTip>
</div>
<Button
variant="ghost"
size="sm"
@@ -359,18 +365,17 @@ function AlertsForm({ initial }: { initial: AlertsConfig }) {
</div>
))
)}
{channels.length > 0 ? (
<p className="text-xs text-muted-foreground">
A setting can hold{" "}
<code className="font-mono">{`{"$secret": "name"}`}</code> instead
of the value itself, and the stored secret is used.
</p>
) : null}
</section>
<section className="grid gap-3">
<div className="flex items-center justify-between">
<h2 className={SECTION}>Rules</h2>
<div className="flex items-center gap-1">
<h2 className={SECTION}>Rules</h2>
<InfoTip label="Rules">
Which failures go to which channels. The same fault repeating is
held back until its cooldown passes.
</InfoTip>
</div>
<Button
variant="ghost"
size="sm"