The GitHub Actions job "Direct Backport Push" on texera.git/main has failed.
Run started by GitHub user github-merge-queue[bot] (triggered by 
github-merge-queue[bot]).

Head commit for run:
4f73e952555aa7ae4d146c7a08ef0381e873d18b / Kunwoo (Chris) 
<[email protected]>
fix: clear red change-line brackets when restoring a workflow version (#5285)

### What changes were proposed in this PR?

When restoring a previous workflow version that displays a **red change
line** (the bracket highlight drawn around the neighbors of deleted
operators), the red line stayed visible after the version was restored.
Versions whose diff only contained green/orange operator highlights
cleared correctly.

Why it's a bug: `highlightOpVersionDiff()` applies three kinds of
highlight when previewing a version:
- orange boundary **fill** on modified operators
- green boundary **fill** on added operators
- **red bracket strokes** (`path.left-boundary/stroke` /
`path.right-boundary/stroke`) on the neighbors of *deleted* operators

`unhighlightOpVersionDiff()` only reset the boundary fills — it never
reset the bracket strokes. `closeParticularVersionDisplay()` masked the
issue because it calls `reloadWorkflow()`, which rebuilds the JointJS
paper elements and incidentally wipes the leftover brackets.
`revertToVersion()` does **not** reload the paper, so the orphaned red
brackets persisted after restore.

This PR makes `unhighlightOpVersionDiff()` symmetric with
`highlightOpVersionDiff()`: it now also resets the deleted-operators'
neighbor brackets back to the default transparent `rgba(0,0,0,0)`, so
the red change line is cleared on restore.

### Any related issues, documentation, discussions?

Fixes #3043
Fixes #3828

### How was this PR tested?

- Manually verified in the UI that the red change line clears after
restoring a version.


https://github.com/user-attachments/assets/6417c52c-4f6e-47eb-82d4-0ac95f55ac5f


### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 4.7)

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

With regards,
GitHub Actions via GitBox

Reply via email to