yangzhang75 opened a new pull request, #9407:
URL: https://github.com/apache/texera/pull/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**
<!-- before video -->
**After**
<!-- 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)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]