From e57fc3a0285870ffe79e9e4f605db20028e43150 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Nov 2026 06:34:39 +0000 Subject: [PATCH 1/2] test(cli): give the --strict conversions pair's http node a timeout The conversions-only minimal pair in validate-json-strict-exit.e2e.test.ts authored its callout node as `config: { url }` only. Since the `flow-http-timeout-missing` warning landed, that node raises a warning which `--strict` promotes, so the canonical control exited 1 and the converting member's `warnings` was no longer empty. Set `config.timeoutMs: 10000` so the pair again differs only in the node type and is decided by the conversion alone. Claude-Session: https://claude.ai/code/session_01L6bhgT6csi5sffeSrPvQzL Co-authored-by: Claude --- .../src/commands/validate-json-strict-exit.e2e.test.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/commands/validate-json-strict-exit.e2e.test.ts b/packages/cli/src/commands/validate-json-strict-exit.e2e.test.ts index 22107682c74..ac70ddd63f7 100644 --- a/packages/cli/src/commands/validate-json-strict-exit.e2e.test.ts +++ b/packages/cli/src/commands/validate-json-strict-exit.e2e.test.ts @@ -192,7 +192,13 @@ export default defineStack({ * * Nothing else here raises an advisory: the lints run on the POST-conversion * `normalized`, so what they see is the canonical `http` either way, and both - * members are pinned to `warnings: []` below rather than assumed to be. + * members are pinned to `warnings: []` below rather than assumed to be. That is + * why the callout node sets `config.timeoutMs`: an `http` node with no positive + * timeout raises the `flow-http-timeout-missing` warning, which `--strict` + * promotes like any other, so without it the canonical member exits 1 and the + * converting member's `warnings` is no longer empty — the pair would stop + * discriminating on the conversion. The probe rewrites only `type`, so the + * `config` reaches the lint unchanged in both members. */ const calloutFlowSource = (calloutNodeType: typeof PROBE_FROM | 'http'): string => ` import { defineStack } from '@objectstack/spec'; @@ -212,7 +218,7 @@ export default defineStack({ type: 'autolaunched', nodes: [ { id: 'start', type: 'start', label: 'Start' }, - { id: 'call', type: '${calloutNodeType}', label: 'Call', config: { url: 'https://example.com/hook' } }, + { id: 'call', type: '${calloutNodeType}', label: 'Call', config: { url: 'https://example.com/hook', timeoutMs: 10000 } }, { id: 'end', type: 'end', label: 'End' }, ], edges: [{ id: 'e1', source: 'start', target: 'call' }, { id: 'e2', source: 'call', target: 'end' }], From 6406f211521bd3aba0ab50c96860de5a76a602d7 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Nov 2026 06:51:29 +0000 Subject: [PATCH 2/2] test(showcase): the related-heavy detail case docks the sidebar to keep the stack tier A collapsed console sidebar hides fully from 768 px up (ruling 6973617688, landed in 756aba29), so the 780 px window now gives the record view the whole window and draws two columns. Re-derived on the harness: the case docks the sidebar through the app bar trigger and "Keep sidebar open" at a 900 px window (644 px of view), inside the docked stack range of 768 to 1015 px. No assertion changed. Claude-Session: https://claude.ai/code/session_01L6bhgT6csi5sffeSrPvQzL Co-authored-by: Claude --- .../app-showcase/e2e/detail-shapes.spec.ts | 38 ++++++++++++------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/examples/app-showcase/e2e/detail-shapes.spec.ts b/examples/app-showcase/e2e/detail-shapes.spec.ts index 2ee2c691848..6c0c1ee9e8f 100644 --- a/examples/app-showcase/e2e/detail-shapes.spec.ts +++ b/examples/app-showcase/e2e/detail-shapes.spec.ts @@ -168,20 +168,32 @@ test('ungrouped + related-heavy: flat details and the related panels on Contoso' // other page of this smoke draws at the Desktop Chrome viewport, and the // stack is also what the split pane (720 px) and a phone draw. // - // The window is derived, not picked. Measured on this harness (a fresh - // browser context, so no stored sidebar cookie): from a 768 px window - // (`MOBILE_BREAKPOINT`, the desktop shell) to 1000 px the console sidebar - // came up as its 48 px icon rail, and the record view was the window minus - // that rail — two columns at 808 px (760 of view), one at 800 px (752). - // So the desktop stack tier is a window of 768 to 807 px, and an expanded - // sidebar (256 px) only narrows the view further. 780 sits inside it with - // headroom on both sides: 732 px of view against the 760 floor, 12 px above - // the mobile breakpoint. ⛔ Not 1200 px: since objectstack#27473 moved the - // floor to a 760 px view, 1200 draws two columns. ⛔ Not below 768 px: that - // is the mobile shell, where the off-canvas sidebar gives the view the - // whole window (760 px measured as two columns). - await page.setViewportSize({ width: 780, height: 800 }); + // The window and the sidebar are derived, not picked. A collapsed console + // sidebar draws no icon rail from 768 px up — ruling 6973617688 on + // objectstack#35062: "Both collapsed states hide the sidebar completely: + // the manual collapse (`UnifiedSidebar` `collapsible="icon"`) and the + // automatic fold between 768 px and the record-drawer threshold (#27593, + // `consoleSidebarRail.ts`, below 1416 px). No icon column remains." So in a + // fresh browser context no desktop window stacks: measured on this harness, + // from a 768 px window (`MOBILE_BREAKPOINT`, the desktop shell) to 1415 px + // the sidebar folds hidden and the record view is the whole window (two + // columns at 768), and from 1416 px it is expanded and the view is at least + // 1160. The case therefore docks the sidebar the way a reader does — the + // app bar's trigger floats the menu and its "Keep sidebar open" keeps the + // 256 px sidebar beside the page — and the view is the window minus it: + // one column at 1015 px (759 of view), two at 1016 px (760), the same after + // a reload. So the docked stack tier is a window of 768 to 1015 px. 900 + // sits inside it with headroom on both sides: 644 px of view against the + // 760 floor, 132 px above the mobile breakpoint. ⛔ Not 780 px with the + // sidebar left as it comes up: that window now draws two columns (780 px of + // view). ⛔ Not below 768 px: that is the mobile shell, where the off-canvas + // sidebar gives the view the whole window (stack below 760), but where the + // details draw no Invoices body table (measured at 720 and 740 px). + await page.setViewportSize({ width: 900, height: 800 }); const errors = await openRecord(page, recordUrl('showcase_account', contosoId)); + await page.locator('[data-sidebar="trigger"]').click(); + await page.getByTestId('sidebar-keep-open').click(); + await expect(page.getByTestId('sidebar-keep-open')).toHaveAttribute('aria-pressed', 'true'); // Heuristic stepper (account.status is a select named "status"). // record:path renders a desktop + a mobile variant — assert the visible one.