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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user