The GitHub Actions job "Contributor welcome and template check" on 
texera.git/fix/panel-shows-selection has succeeded.
Run started by GitHub user yangzhang75 (triggered by yangzhang75).

Head commit for run:
9ce3daa585ec48e18dca4a1196f08ba73e29330b / Yang Zhang <[email protected]>
fix(workspace, workflow-form): show the step the shared selection already holds

A workflow's two views share one selection: it lives in the root-provided
JointGraphWrapper, which the switch between the canvas and the Form View
hands over rather than rebuilds. Nothing is lost in the switch, but all
three things that show the selection followed only the highlight streams
and never read it when they mounted, so the view arriving at a selection
waited for an event that had already happened: the property panel showed
nothing and the step was drawn as not selected. Clicking that step did not
help, since the wrapper treats an already-highlighted element as a no-op;
it took clicking a different step to bring the panel back.

Each now reads the selection it mounts into, then follows the changes:

- PropertyEditorComponent (the canvas's panel and every host of it): the
  stream body becomes showHighlighted(), called before subscribing and
  only when something is highlighted, since the no-frame branch is for a
  selection being dropped (it clears the editing marker and resizes the
  docked panel) and a fresh mount must not run it. Called after the
  toolbar's choosing toggle has replayed, so the frame is built once with
  that state rather than rebuilt by the replay in the first change
  detection pass. The syncTexeraGraph guard moves from the stream's filter
  into the method, so both paths apply it once.
- WorkflowEditorComponent: the paper is new on every switch and the ring
  was applied only from the stream, so it now rings what the wrapper
  already holds before following the streams.
- WorkflowFormComponent: one call to its own syncSelectionFromHighlight()
  in ngOnInit, after it subscribes.

With nothing selected nothing is read, so the canvas alone behaves as
before. The wrapper's already-highlighted no-op stays: it keeps a
shift-selection stable, and the arriving view now already shows the step.

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

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

With regards,
GitHub Actions via GitBox

Reply via email to