ValueSource kind includes panel; Panels dialog no longer suggests the screen port openpanel does not serve
This commit is contained in:
@@ -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"],
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user