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.
|
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"
|
kind: str = "node"
|
||||||
#: Node id, dashboard name, or whatever identifies the caller.
|
#: Node id, dashboard name, or whatever identifies the caller.
|
||||||
id: str = ""
|
id: str = ""
|
||||||
|
|||||||
@@ -49,14 +49,7 @@ const slugify = (value: string) =>
|
|||||||
|
|
||||||
/** Port names the panel firmware knows; `gpio.` takes a pin number. */
|
/** 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
|
// ponytail: free-text ports, no device capability report; add PUT /panels/{id}/device when a second device kind exists
|
||||||
const PORT_SUGGESTIONS = [
|
const PORT_SUGGESTIONS = ["gpio.", "backlight", "touch", "mic", "speaker"]
|
||||||
"gpio.",
|
|
||||||
"backlight",
|
|
||||||
"screen",
|
|
||||||
"touch",
|
|
||||||
"mic",
|
|
||||||
"speaker",
|
|
||||||
]
|
|
||||||
|
|
||||||
const DIRECTIONS = [
|
const DIRECTIONS = [
|
||||||
["in", "In"],
|
["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. */
|
/** Who caused a value. The canvas needs it to pulse the right edge. */
|
||||||
export type ValueSource = {
|
export type ValueSource = {
|
||||||
kind: "node" | "dashboard" | "flow" | "agent" | "chat" | "api"
|
kind: "node" | "dashboard" | "flow" | "agent" | "chat" | "api" | "panel"
|
||||||
id: string
|
id: string
|
||||||
label: string
|
label: string
|
||||||
detail?: string
|
detail?: string
|
||||||
|
|||||||
Reference in New Issue
Block a user