Flow canvas: second value restarts the edge pulse, dock uses the phone's width, search arrives on an input's label popover

- LiveEdge: a value inside a running pulse restarts the animation by hand, since the class is already on and would show nothing.
- Dock, FlowDock: the bar is centred on left-1/2, where a shrink-wrapped box gets only the half of the screen to the right and wrapped into a 195px pill. w-max with the viewport cap keeps one row whenever the buttons fit. The dashboard editor's dock had the same squeeze.
- FlowEditor: arriving on an input drawn on the canvas centres its label and opens the label popover once the view is fit, as clicking it does. An input the canvas does not draw still opens the flow settings.
- Tests: the phone dock may not be confined to half the screen; the search spec reads the popover first and reaches the settings through its pencil.

Claude-Session: https://claude.ai/code/session_01SSi5AvZ7pFmySK8zy3NPMh
This commit is contained in:
2026-10-27 21:50:18 +01:00
parent ab87cd1c07
commit 7a654b9e3c
6 changed files with 76 additions and 30 deletions
+9
View File
@@ -372,6 +372,15 @@ test("the flow editor fits, and its dock is reachable", async ({ page }) => {
`${id} runs off the right edge`,
).toBeLessThanOrEqual(width)
}
// It is centred on `left-1/2`, where a shrink-wrapped box gets only the half
// of the screen to the right of that, and wraps into a pill as tall as it is
// wide. Whatever the buttons need, it is never confined to that half.
const dock = await page.getByTestId("add-node").locator("..").boundingBox()
expect(
dock!.width,
"the dock is squeezed into half the screen",
).toBeGreaterThan((page.viewportSize()?.width ?? 0) / 2)
})
test("a dashboard stacks instead of shrinking", async ({ page }) => {
+5 -1
View File
@@ -42,7 +42,7 @@ test("finds a node by name and opens its flow on it", async ({ page }) => {
await expect(page).toHaveURL(new RegExp(`/flows/${flowName}\\?node=findme$`))
})
test("finds a flow input and opens the settings declaring it", async ({
test("finds a flow input and reads it where its label sits", async ({
page,
}) => {
await page.goto("/")
@@ -54,6 +54,10 @@ test("finds a flow input and opens the settings declaring it", async ({
await expect(page).toHaveURL(
new RegExp(`/flows/${flowName}\\?node=input%3A${flowName}\\.findme_input$`),
)
// What clicking the label shows, and the settings one press on.
await expect(page.getByTestId("input-inspector")).toBeVisible()
await expect(page.getByTestId("flow-panel")).toBeHidden()
await page.getByTestId("edit-input").click()
await expect(page.getByTestId("flow-panel")).toBeVisible()
})