ValueSource kind includes panel; Panels dialog no longer suggests the screen port openpanel does not serve

This commit is contained in:
2026-10-14 23:32:32 +02:00
parent d423c47ca6
commit 2ac997ce37
3 changed files with 3 additions and 10 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ class ValueSource(BaseModel):
flow, an agent — be shown at all, since none of those is a node here.
"""
#: node, dashboard, flow, agent, chat or api.
#: node, dashboard, flow, agent, chat, api or panel.
kind: str = "node"
#: Node id, dashboard name, or whatever identifies the caller.
id: str = ""
@@ -49,14 +49,7 @@ const slugify = (value: string) =>
/** Port names the panel firmware knows; `gpio.` takes a pin number. */
// ponytail: free-text ports, no device capability report; add PUT /panels/{id}/device when a second device kind exists
const PORT_SUGGESTIONS = [
"gpio.",
"backlight",
"screen",
"touch",
"mic",
"speaker",
]
const PORT_SUGGESTIONS = ["gpio.", "backlight", "touch", "mic", "speaker"]
const DIRECTIONS = [
["in", "In"],
+1 -1
View File
@@ -13,7 +13,7 @@ import { request } from "@/client/core/request"
/** Who caused a value. The canvas needs it to pulse the right edge. */
export type ValueSource = {
kind: "node" | "dashboard" | "flow" | "agent" | "chat" | "api"
kind: "node" | "dashboard" | "flow" | "agent" | "chat" | "api" | "panel"
id: string
label: string
detail?: string