The GitHub Actions job "Required Checks" on texera.git/main has succeeded.
Run started by GitHub user github-merge-queue[bot] (triggered by 
github-merge-queue[bot]).

Head commit for run:
cc1f201596936a12e79f6243cdc38bef3f73c767 / yangzhang75 <[email protected]>
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.

One rule, keyed on the attribute that is the cause: while the editor is
`inert`, it grows to its content and the panel (`overflow: auto`) 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.scss`: under `.panel`, `::ng-deep
texera-property-editor[inert] #right-container { height: auto !important
}`. The `!important` has to beat the base rule's own `!important`;
`#content` needs nothing, since its `height: 100%` follows an
auto-height parent. No template or test change: the editor's `inert` is
already bound from the same `panelLive` and already asserted by the
rendered spec for both mounts.

The operator canvas's own docked property panel is untouched: the rule
is nested under the form's `.panel`, which only the Form View renders,
and the Form View renders exactly one property editor, inside it.

#### 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` already pins the condition the rule
keys on: the editor carries `inert` on the read-only mount (and while a
run is in flight) and not on the live one.
- 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 its
end, 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]>

Report URL: https://github.com/apache/texera/actions/runs/43118375792

With regards,
GitHub Actions via GitBox

Reply via email to