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"
+11 -5
View File
@@ -4,6 +4,7 @@ import { Package } from "lucide-react"
import { useState } from "react"
import { type ApiError, ModulesService } from "@/client"
import { InfoTip } from "@/components/Flow/SidePanel"
import { Button } from "@/components/ui/button"
import useCustomToast from "@/hooks/useCustomToast"
import { handleError } from "@/utils"
@@ -70,11 +71,16 @@ function Modules() {
return (
<div className="grid gap-6">
<div className="grid gap-1">
<h1 className="text-2xl">Modules</h1>
<div className="flex items-center gap-1">
<h1 className="text-2xl">Modules</h1>
<InfoTip label="Modules">
{adopted
? "Fluksio was installed into an environment you already had, so that is the one your nodes run on. Change it with pip or uv rather than from here."
: "Packages install into an environment of their own, separate from the engine's, so a version pinned here is the one your code gets. The list is kept with your flows, so a rebuilt deployment installs the same set again."}
</InfoTip>
</div>
<p className="text-sm text-muted-foreground">
{adopted
? "The Python packages your function nodes can import. Fluksio was installed into an environment you already had, so that is the one your nodes run on — and it is yours to change, with pip or uv rather than from here."
: "The Python packages your function nodes can import. They are installed into an environment of their own, separate from the engine's, so a version you pin here is the one your code gets. The list is kept with your flows, so a rebuilt deployment installs the same set again."}
The Python packages your function nodes can import.
</p>
</div>
@@ -139,7 +145,7 @@ function Modules() {
) : null}
{packages.length === 0 ? (
<p className="text-sm text-muted-foreground">
Nothing installed yet — node code has the standard library.
Nothing installed yet. Node code has the standard library.
</p>
) : (
<div className="grid gap-2">