Computed flow layout, and mobile written into the design
The canvas lays itself out: a layered graph, left to right on a desktop and top to bottom on a phone, with room reserved for the value each edge carries. Nodes cannot be dragged and `NodeDef.position` is gone from the document — a graph nobody can arrange is one worth keeping small, which is what keeps flows atomic. Endpoints join the same layout, so their lanes and the localStorage that remembered where they were dragged go too. Mobile, per the new Responsive section of DESIGN-GUIDELINES.md: the dock caps its width and wraps instead of running off the screen, the dashboard stacks into one column rather than shrinking a wall panel to a fifth of its size, and Home stops widening its grid track past the viewport. A Playwright project at a phone's width fails the build when a screen no longer fits. Along the way: publish is the checkmark that was already there rather than a button that appears and disappears, with discard beside it on both the flow and the dashboard; the brain reveals a neuron's name on the first tap; and the port sparklines get room to breathe. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VDSXaRhvqHYNevgDGmNAto
This commit is contained in:
@@ -42,6 +42,22 @@ export default defineConfig({
|
||||
...devices['Desktop Chrome'],
|
||||
storageState: 'playwright/.auth/user.json',
|
||||
},
|
||||
/* The mobile suite is the same app at a phone's width; running it here
|
||||
too would only re-assert the desktop layout. */
|
||||
testIgnore: /mobile\.spec\.ts/,
|
||||
dependencies: ['setup'],
|
||||
},
|
||||
|
||||
/* Every screen at 393px, checking the one thing that is easy to break and
|
||||
hard to notice: a page that scrolls sideways. See the Responsive section
|
||||
of the root DESIGN-GUIDELINES.md. */
|
||||
{
|
||||
name: 'mobile',
|
||||
use: {
|
||||
...devices['Pixel 5'],
|
||||
storageState: 'playwright/.auth/user.json',
|
||||
},
|
||||
testMatch: /mobile\.spec\.ts/,
|
||||
dependencies: ['setup'],
|
||||
},
|
||||
|
||||
@@ -63,11 +79,6 @@ export default defineConfig({
|
||||
// dependencies: ['setup'],
|
||||
// },
|
||||
|
||||
/* Test against mobile viewports. */
|
||||
// {
|
||||
// name: 'Mobile Chrome',
|
||||
// use: { ...devices['Pixel 5'] },
|
||||
// },
|
||||
// {
|
||||
// name: 'Mobile Safari',
|
||||
// use: { ...devices['iPhone 12'] },
|
||||
|
||||
Reference in New Issue
Block a user