The GitHub Actions job "Backport Approval Check" on 
texera.git/fix/form-udf-parameters-overrides has succeeded.
Run started by GitHub user yangzhang75 (triggered by yangzhang75).

Head commit for run:
b6a6c4660a0ecf450dfb6c7b128745cca6ca2ba8 / Yang Zhang <[email protected]>
fix(workflow-form): host a column's label controls in the table's header, once

While authoring, the form's label wrapper decorates every row's sub-fields:
the first row with the name box and the eye, every later row with a static
name. The ui-udf-parameters renderer draws those sub-fields in its cells
under a header of its own, which this PR already makes read the author's
name -- so the name was drawn three times over: the header, the first row's
box, each later row's static label (and the static one said "Attribute
Type" where the header said "Type").

The wrapper gains one prop, labelHosted: a host that draws the label itself
sets it on the field, and the wrapper then renders no box, eye or static
label, only the control's accessible name and the dimmed state. The
renderer hosts the one name box and eye per column in its header, bound
to the first row's props and callbacks -- the row the form gave the
controls to -- and, for each column it hosts, sets the prop on every cell
of that column, with the column's own label as the accessible name so a
screen reader hears what the heading says. The write-through those controls 
make (the props first, then
the form) and the box's and eye's styles now have one definition each, on
the wrapper (rename / setHidden, _editable-label.scss), which the header
uses rather than copies.

Nothing in the form's walk changes; a renderer that draws no header of its
own (the generic array widget) sets nothing and is untouched; the operator
property panel is untouched too (no operator mark, no hosting). How a
later row's own name keeps up with a rename is the form's followersByPath,
as before this commit.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

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

With regards,
GitHub Actions via GitBox

Reply via email to