Let the canvas endpoints be moved, and lift them on hover

Three things they were missing: they could not be dragged out of the lane
they were placed in, they stayed the same weight whether or not you were
reaching for one, and the label sat right against its connector dot.

Where one has been dragged to is a view preference, not part of the flow —
writing a position for a dashboard widget into flow.json would be a lie
about what the document holds — so it lives in the browser, keyed by flow.

Also folds the dashboard shot into `make verify` and drops the one-off
scripts that had accumulated beside it; the durable coverage is the
Playwright specs, which all pass.
This commit is contained in:
2026-08-16 16:07:07 +02:00
parent a96f6dd015
commit 6f4030203a
9 changed files with 129 additions and 318 deletions
@@ -26,7 +26,11 @@ function EndpointNodeComponent({ data, selected }: NodeProps) {
return (
<div
className={cn(
"flex max-w-48 items-center gap-2 px-1 py-0.5 text-muted-foreground",
// Padding keeps the text off the connector dot, which sits on the edge.
"flex max-w-48 cursor-grab items-center gap-2 px-3 py-1",
// Quiet at rest so the logic reads first; legible when reached for.
"text-muted-foreground transition-colors",
"hover:text-foreground active:cursor-grabbing",
selected && "text-foreground",
)}
title={messages.join("\n")}