Skip to content

chore(deps): upgrade frontend to Angular 21 - #4534

Merged
aglinxinyuan merged 45 commits into
mainfrom
xinyuan-angular-21
Apr 27, 2026
Merged

aglinxinyuan merged 45 commits into
mainfrom
xinyuan-angular-21

Conversation

@aglinxinyuan

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Upgrade the frontend from Angular 20 to Angular 21 and make the compatibility fixes needed for the current Texera workspace, dashboard, and test setup.

  • Upgraded Angular packages to Angular 21
    • @angular/*
    • @angular/cli
    • @angular-devkit/*
    • @angular/cdk
  • Updated related tooling and ecosystem packages
    • @angular-eslint/*
    • @angular-builders/custom-webpack
    • @nx/angular
    • nx
    • ng-zorro-antd
    • ngx-markdown
    • marked
  • Updated frontend build/test scripts for the current Nx package layout
  • Applied Angular 21 compatibility fixes across module imports and templates
    • renamed tooltip module imports to NzTooltipModule
    • updated NzNoAnimationModule import path
    • migrated nz-tabset usages to nz-tabs
    • updated tab change handlers to match the current ng-zorro APIs
  • Fixed Angular 21 change-detection issues in the property editor
    • removed the ngAfterViewChecked() detectChanges() loop in OperatorPropertyEditFrameComponent
    • corrected AJV validation to run against jsonSchema instead of the outer operator schema wrapper
  • Updated affected specs to pass under Angular 21
    • simplified brittle template-heavy tests with targeted overrides / schemas
    • fixed several outdated spies and missing imports in frontend unit tests
  • Fixed workspace loading behavior after the upgrade
    • parallelized operator-metadata and workflow fetches for workflow loads
    • explicitly refreshed change detection when workflow loading completes so the loading spinner does not linger after the workflow is already visible

Any related issues, documentation, discussions?

Closes #4433

How was this PR tested?

  • yarn --cwd frontend format:ci
  • yarn --cwd frontend run test:ci
  • yarn --cwd frontend run build:ci

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

Generated-by: Codex

@aglinxinyuan aglinxinyuan self-assigned this Apr 27, 2026
@aglinxinyuan aglinxinyuan added the dependencies Pull requests that update a dependency file label Apr 27, 2026
@github-actions github-actions Bot added the frontend Changes related to the frontend GUI label Apr 27, 2026
Base automatically changed from xinyuan-angular-20 to main April 27, 2026 21:30

@Xiao-zhen-Liu Xiao-zhen-Liu 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.

@aglinxinyuan
aglinxinyuan merged commit 892c279 into main Apr 27, 2026
11 checks passed
@aglinxinyuan
aglinxinyuan deleted the xinyuan-angular-21 branch April 27, 2026 23:36
bobbai00 added a commit to bobbai00/texera that referenced this pull request Apr 29, 2026
frontend/package.json now requires node >=20.19.0 after the Angular 21
upgrade in apache#4534, but bin/texera-web-application.dockerfile was still
pinned to node:18.17, breaking docker builds with:

    The Angular CLI requires a minimum Node.js version of v20.19 or v22.12.

Bump to node:22-bookworm (LTS) to match.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
### What changes were proposed in this PR?
Upgrade the frontend from Angular 20 to Angular 21 and make the
compatibility fixes needed for the current Texera workspace, dashboard,
and test setup.
- Upgraded Angular packages to Angular 21
  - `@angular/*`
  - `@angular/cli`
  - `@angular-devkit/*`
  - `@angular/cdk`
- Updated related tooling and ecosystem packages
  - `@angular-eslint/*`
  - `@angular-builders/custom-webpack`
  - `@nx/angular`
  - `nx`
  - `ng-zorro-antd`
  - `ngx-markdown`
  - `marked`
- Updated frontend build/test scripts for the current Nx package layout
- Applied Angular 21 compatibility fixes across module imports and
templates
  - renamed tooltip module imports to `NzTooltipModule`
  - updated `NzNoAnimationModule` import path
  - migrated `nz-tabset` usages to `nz-tabs`
  - updated tab change handlers to match the current ng-zorro APIs
- Fixed Angular 21 change-detection issues in the property editor
- removed the `ngAfterViewChecked()` `detectChanges()` loop in
`OperatorPropertyEditFrameComponent`
- corrected AJV validation to run against `jsonSchema` instead of the
outer operator schema wrapper
- Updated affected specs to pass under Angular 21
- simplified brittle template-heavy tests with targeted overrides /
schemas
- fixed several outdated spies and missing imports in frontend unit
tests
- Fixed workspace loading behavior after the upgrade
- parallelized operator-metadata and workflow fetches for workflow loads
- explicitly refreshed change detection when workflow loading completes
so the loading spinner does not linger after the workflow is already
visible

### Any related issues, documentation, discussions?
Closes apache#4433

### How was this PR tested?
- `yarn --cwd frontend format:ci`
- `yarn --cwd frontend run test:ci`
- `yarn --cwd frontend run build:ci`

### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Codex

---------

Signed-off-by: Xinyuan Lin <[email protected]>
Co-authored-by: Chen Li <[email protected]>
Co-authored-by: Xiaozhen Liu <[email protected]>
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade to Angular 21

3 participants