This is an automated email from the ASF dual-hosted git repository. github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/main/pr-9407-03a5bb842447527910a782c342ef67d2f992ab7b in repository https://gitbox.apache.org/repos/asf/texera.git
commit 04ea8618e43dbb85d520f27593abdbff87c1971e Author: yangzhang75 <[email protected]> AuthorDate: Wed Nov 11 22:10:19 2026 +0000 fix(workflow-form): let the read-only step panel scroll (#9407) ### What changes were proposed in this PR? Closes #9399. On the Form View, the step panel that opens over the preview is read-only unless the form is being edited: the property editor inside it is mounted `inert`, which is what stops a reader from editing the graph through it. An inert subtree is also left out of hit testing, so a wheel over the panel reaches the panel's own box, not the editor's scroller (`#content`), and that box had nothing to scroll: the form's stylesheet pins the embedded editor to the panel's height (`::ng-deep #right-container { height: 100% !important }`), so the editor clipped its content instead of growing. A step taller than the panel (a Python UDF with its code button, environment, columns and parameters) was cut off at the bottom with no way to reach the rest. In edit mode, with `inert` off, the editor scrolls itself as it does on the canvas. Read-only, the editor now grows to its content and the panel is the scroller, which the wheel does reach and which the keyboard scrolls through the tab stop the panel already carries for this purpose. Live, nothing changes: the editor keeps its own scroller, exactly as on the canvas. - `workflow-form.component.html`: the panel carries a `read-only` class while it is not live (`[class.read-only]="!panelLive"`), so the stylesheet can tell the two mounts apart. Nothing else reads it. - `workflow-form.component.scss`: under `.panel.read-only`, `#right-container` and its `#content` become `height: auto` / `overflow: visible`, so the panel (`overflow: auto`) scrolls. The live panel keeps every rule it had. The operator canvas's own docked property panel is untouched: these rules are scoped under the form's `.panel`, which only the Form View renders. #### Video **Before** https://github.com/user-attachments/assets/86722deb-c9d8-4d6e-a1b2-ced8a4492506 **After** https://github.com/user-attachments/assets/07c52b64-f856-47bc-82d5-ad0d03af2a37 <!-- after video --> ### Any related issues, documentation, discussions? Closes #9399. Part of the Form View (#8011). ### How was this PR tested? - `workflow-form.rendered.spec.ts`: the three tests that pin the panel's two mounts (read-only, live, and read-only while a run is in flight) now also assert the `read-only` class the stylesheet keys on, so the scoping cannot silently drift. - The full frontend suite, eslint, prettier and the production (AOT) build pass. - By hand on a local deployment, on a one-step workflow whose Python UDF declares eight UI parameters (panel 357px tall, content 1158px): before the change, wheeling over the read-only panel left both scroll positions at 0 and the 801px below the fold could not be reached by wheel, keyboard or scrollbar; after the change the panel scrolls from 0 to 801, PageDown does the same with the panel focused, and in edit mode the editor still scrolls itself with the page staying put. Measured with a Playwright probe against `main` (`cfca8e1e5`) and this branch served side by side on the same backend and the same workflow. ### Was this PR authored or co-authored using generative AI tooling? Yes. Generated-by: Claude Code (Claude Fable 5.1, Anthropic). Co-authored with Claude, reviewed line by line by the author before submission. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Fable 5.1 <[email protected]> --- .../component/workflow-form/workflow-form.component.scss | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/frontend/src/app/workspace/component/workflow-form/workflow-form.component.scss b/frontend/src/app/workspace/component/workflow-form/workflow-form.component.scss index 747012fdf4..6f4b8647e9 100644 --- a/frontend/src/app/workspace/component/workflow-form/workflow-form.component.scss +++ b/frontend/src/app/workspace/component/workflow-form/workflow-form.component.scss @@ -691,6 +691,18 @@ $shell: #fafafa; cursor: default !important; } + /* Read-only, the editor is inert, and an inert subtree is left out of hit-testing: a wheel over + it reaches this panel, never the editor's own scroller (#content), which could then not be + scrolled at all -- a long step was cut off at the panel's bottom. Keyed on the attribute that + is the cause: while the editor is inert it grows to its content and this panel, which the + wheel does reach (and the keyboard, through the tab stop the panel carries for exactly this), + is the scroller. Live, the editor keeps its own scroller, as on the operator canvas. The + !important has to beat the base rule's own !important above; #content needs nothing, its + height: 100% follows an auto-height parent. */ + ::ng-deep texera-property-editor[inert] #right-container { + height: auto !important; + } + ::ng-deep nz-resize-handles, ::ng-deep .nz-resizable-handle { display: none !important;
