Skip to content

chore: upgrade ng-zorro-antd to 21.3.1 - #5895

Merged
aglinxinyuan merged 6 commits into
apache:mainfrom
PG1204:upgrade/ng-zorro-21.3.1
Jun 23, 2026
Merged

aglinxinyuan merged 6 commits into
apache:mainfrom
PG1204:upgrade/ng-zorro-21.3.1

Conversation

@PG1204

@PG1204 PG1204 commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Upgrades the ng-zorro-antd dependency in the frontend from 21.2.2 to 21.3.1 (frontend/package.json + frontend/yarn.lock).

Motivation: 21.2.2 has a bug in nz-input-number where the mouse-wheel handler (onWheel) guards on the raw nzDisabled() input instead of the computed finalDisabled() state. When a form control is disabled via the form group, as the operator property panel does while a workflow is running, the field greys out and blocks typing, but scrolling the mouse wheel over it still changes the value, bypassing the disabled state.

This was fixed upstream in NG-ZORRO/ng-zorro-antd#9785, which guards on finalDisabled() || nzReadOnly(). The fix first shipped in 21.3.0; 21.3.1 is the latest stable. This is a minor-version bump within the same major (21.x) with no breaking changes in the 21.3.0/21.3.1 changelogs.

The greyed out number input fields are now not affected by the mouse-wheel scroll during a workflow's execution as shown in the below video:

Screen.Recording.2026-06-22.at.4.33.39.PM.mov

Any related issues, documentation, discussions?

Closes #5879.
Closes #5848.
Related bug: #5848.
Upstream fix: NG-ZORRO/ng-zorro-antd#9785.

How was this PR tested?

Tested with existing test cases. Additionally verified manually:

  • yarn install succeeds; confirmed the installed nz-input-number onWheel handler now guards on finalDisabled() || nzReadOnly().
  • Ran the app, started a workflow, and confirmed that greyed-out number fields in the operator property panel (e.g. Python UDF "Worker count") no longer change value on mouse-wheel scroll during execution.

No new automated tests were added, as this is a dependency version bump with no source-code changes; the fix lives in the upstream library.

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

This PR was co-authored by Claude Opus 4.7, in compliance with ASF.

@github-actions github-actions Bot added dependencies Pull requests that update a dependency file frontend Changes related to the frontend GUI labels Jun 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • No candidates found from git blame history.

@codecov-commenter

codecov-commenter commented Jun 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.04%. Comparing base (439ea72) to head (8adc635).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #5895      +/-   ##
============================================
- Coverage     54.09%   54.04%   -0.05%     
+ Complexity     2817     2813       -4     
============================================
  Files          1103     1101       -2     
  Lines         42650    43111     +461     
  Branches       4588     4691     +103     
============================================
+ Hits          23070    23298     +228     
- Misses        18236    18457     +221     
- Partials       1344     1356      +12     
Flag Coverage Δ *Carryforward flag
access-control-service 70.44% <ø> (ø) Carriedforward from 18e4e67
agent-service 34.36% <ø> (ø) Carriedforward from 18e4e67
amber 55.53% <ø> (-0.09%) ⬇️ Carriedforward from 18e4e67
computing-unit-managing-service 1.65% <ø> (ø) Carriedforward from 18e4e67
config-service 57.35% <ø> (ø) Carriedforward from 18e4e67
file-service 58.59% <ø> (ø) Carriedforward from 18e4e67
frontend 48.20% <ø> (+0.10%) ⬆️
pyamber 90.20% <ø> (ø) Carriedforward from 18e4e67
python 90.76% <ø> (ø) Carriedforward from 18e4e67
workflow-compiling-service 58.69% <ø> (ø) Carriedforward from 18e4e67

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@PG1204

PG1204 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor Author

/request-review @xuang7

@github-actions
github-actions Bot requested a review from xuang7 June 22, 2026 22:30

@xuang7 xuang7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Since this is a UI fix, could you attach a screenshot showing the fixed behavior?

If it gets approved, we should backport this as well. Could you help take a look at this PR? Thanks. @aglinxinyuan

@xuang7
xuang7 requested a review from aglinxinyuan June 22, 2026 23:22
@PG1204

PG1204 commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks for the PR. Since this is a UI fix, could you attach a screenshot showing the fixed behavior?

If it gets approved, we should backport this as well. Could you help take a look at this PR? Thanks. @aglinxinyuan

@xuang7 I have attached a video in the PR description.

just wanted to bring up one thing for the backport: since this fix is a bump to ng-zorro-antd@21.3.1, it will only apply cleanly if the target release branch is already on the 21.x major. Worth confirming that before backporting, if that branch pins an older Angular/ng-zorro major, the 21.3.1 bump won't be compatible and we'd need a different approach (e.g. a targeted patch instead of the version bump).

@aglinxinyuan aglinxinyuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! release 1.2 is on Angular 21.

@xuang7 xuang7 added the release/v1.2 back porting to release/v1.2 label Jun 23, 2026
@aglinxinyuan
aglinxinyuan added this pull request to the merge queue Jun 23, 2026
Merged via the queue into apache:main with commit 5a3ddcc Jun 23, 2026
45 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Backport to release/v1.2 succeeded as c39e99b. Run

Yicong-Huang pushed a commit that referenced this pull request Jun 23, 2026
### What changes were proposed in this PR?
Upgrades the ng-zorro-antd dependency in the frontend from 21.2.2 to
21.3.1 (frontend/package.json + frontend/yarn.lock).

Motivation: 21.2.2 has a bug in nz-input-number where the mouse-wheel
handler (onWheel) guards on the raw nzDisabled() input instead of the
computed finalDisabled() state. When a form control is disabled via the
form group, as the operator property panel does while a workflow is
running, the field greys out and blocks typing, but scrolling the mouse
wheel over it still changes the value, bypassing the disabled state.

This was fixed upstream in
[NG-ZORRO/ng-zorro-antd#9785](NG-ZORRO/ng-zorro-antd#9785),
which guards on finalDisabled() || nzReadOnly(). The fix first shipped
in 21.3.0; 21.3.1 is the latest stable. This is a minor-version bump
within the same major (21.x) with no breaking changes in the
[21.3.0/21.3.1
changelogs](https://github.com/NG-ZORRO/ng-zorro-antd/releases).

The greyed out number input fields are now not affected by the
mouse-wheel scroll during a workflow's execution as shown in the below
video:

https://github.com/user-attachments/assets/15bb5c1d-8ae2-4fc6-b5c9-934f58509fa9

### Any related issues, documentation, discussions?
Closes #5879.
Closes #5848.
Related bug: #5848.
Upstream fix: NG-ZORRO/ng-zorro-antd#9785.

### How was this PR tested?
Tested with existing test cases. Additionally verified manually:

- yarn install succeeds; confirmed the installed nz-input-number onWheel
handler now guards on finalDisabled() || nzReadOnly().
- Ran the app, started a workflow, and confirmed that greyed-out number
fields in the operator property panel (e.g. Python UDF "Worker count")
no longer change value on mouse-wheel scroll during execution.

No new automated tests were added, as this is a dependency version bump
with no source-code changes; the fix lives in the upstream library.

### Was this PR authored or co-authored using generative AI tooling?
This PR was co-authored by Claude Opus 4.7, in compliance with ASF.

(backported from commit 5a3ddcc)
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 24, 2026
### What changes were proposed in this PR?
Upgrades the ng-zorro-antd dependency in the frontend from 21.2.2 to
21.3.1 (frontend/package.json + frontend/yarn.lock).

Motivation: 21.2.2 has a bug in nz-input-number where the mouse-wheel
handler (onWheel) guards on the raw nzDisabled() input instead of the
computed finalDisabled() state. When a form control is disabled via the
form group, as the operator property panel does while a workflow is
running, the field greys out and blocks typing, but scrolling the mouse
wheel over it still changes the value, bypassing the disabled state.

This was fixed upstream in
[NG-ZORRO/ng-zorro-antd#9785](NG-ZORRO/ng-zorro-antd#9785),
which guards on finalDisabled() || nzReadOnly(). The fix first shipped
in 21.3.0; 21.3.1 is the latest stable. This is a minor-version bump
within the same major (21.x) with no breaking changes in the
[21.3.0/21.3.1
changelogs](https://github.com/NG-ZORRO/ng-zorro-antd/releases).

The greyed out number input fields are now not affected by the
mouse-wheel scroll during a workflow's execution as shown in the below
video:


https://github.com/user-attachments/assets/15bb5c1d-8ae2-4fc6-b5c9-934f58509fa9

### Any related issues, documentation, discussions?
Closes apache#5879.
Closes apache#5848.
Related bug: apache#5848.
Upstream fix: NG-ZORRO/ng-zorro-antd#9785.

### How was this PR tested?
Tested with existing test cases. Additionally verified manually:

- yarn install succeeds; confirmed the installed nz-input-number onWheel
handler now guards on finalDisabled() || nzReadOnly().
- Ran the app, started a workflow, and confirmed that greyed-out number
fields in the operator property panel (e.g. Python UDF "Worker count")
no longer change value on mouse-wheel scroll during execution.

No new automated tests were added, as this is a dependency version bump
with no source-code changes; the fix lives in the upstream library.

### Was this PR authored or co-authored using generative AI tooling?
This PR was co-authored by Claude Opus 4.7, in compliance with ASF.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file frontend Changes related to the frontend GUI release/v1.2 back porting to release/v1.2

Projects

None yet

4 participants