Skip to content

Angular 21: standalone components, Vitest and angular19 CI - #1449

Merged
renemadsen merged 4 commits into
angular19from
ng21/migrate
Oct 18, 2026
Merged

renemadsen merged 4 commits into
angular19from
ng21/migrate

Conversation

@renemadsen

Copy link
Copy Markdown
Member

Part of the Angular 21 upgrade. The frontend's angular19 branch is now on Angular 21 with standalone components and Vitest (microting/eform-angular-frontend#8155).

  • CI: PR CI checks out the frontend (and any sibling plugins) at the branch the PR targets. Corepack is enabled before every yarn install, because the frontend's angular19 pins Yarn 4. The Dockerfile builds the frontend with yarn. Dead WDIO copy steps are removed.
  • Standalone: every component now imports exactly what its template uses. NgModule declarations are removed.
  • Tests: the add-site modal spec is migrated to Vitest, and a new angular-unit-test CI job runs it with ng test. The unused SettingsRemoveSiteModalComponent is removed: it was referenced only in comments, and its legacy mdbModal template can't compile as standalone.

Verified locally with ng build against frontend angular19, together with the other migrated plugins. Code reviewed. Not yet clicked through in a browser.

🤖 Generated with Claude Code

renemadsen and others added 3 commits October 18, 2026 08:00
PR CI checks out the frontend (and sibling plugins) at the branch the PR
targets instead of always stable. Corepack is enabled before every yarn
install, since the frontend's angular19 branch pins yarn@4; the Docker
build uses yarn for the frontend build as well. Dead WDIO config copies
are dropped (the frontend no longer has WDIO).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Also removes the dead SettingsRemoveSiteModalComponent (legacy mdbModal,
not declared or referenced anywhere), which cannot compile standalone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 18, 2026 06:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The unresolved dialog dependency-injection issue and cross-repository CI integration require correction and runtime validation before human approval.

1 open issue
What changed in this PR

Updates the workflow plugin for the frontend’s Angular 21 migration.

Changes:

  • Converts components to standalone imports and simplifies the feature module.
  • Migrates add-site tests to Vitest and removes the unused remove-site modal.
  • Adds Angular unit-test CI jobs and updates frontend checkout and Yarn setup.
File Description
eform-client/​src/​app/​plugins/​modules/​workflow-pn/​workflow-pn.module.ts Removes declarations and shared template imports.
eform-client/​src/​app/​plugins/​modules/​workflow-pn/​layouts/​workflow-pn-layout.component.ts Imports standalone router outlet.
eform-client/​src/​app/​plugins/​modules/​workflow-pn/​components/​workflow-cases/​workflow-cases-page/​workflow-cases-page.component.ts Adds standalone template dependencies.
eform-client/​src/​app/​plugins/​modules/​workflow-pn/​components/​workflow-cases/​workflow-case-edit/​workflow-case-edit.component.ts Adds standalone editor dependencies.
eform-client/​src/​app/​plugins/​modules/​workflow-pn/​components/​workflow-cases/​workflow-case-delete/​workflow-case-delete.component.ts Adds standalone dialog dependencies.
eform-client/​src/​app/​plugins/​modules/​workflow-pn/​components/​settings/​workflow-settings/​workflow-settings.component.ts Adds standalone settings dependencies.
eform-client/​src/​app/​plugins/​modules/​workflow-pn/​components/​settings/​workflow-folders-modal/​workflow-folders-modal.component.ts Adds standalone folder-picker dependencies.
eform-client/​src/​app/​plugins/​modules/​workflow-pn/​components/​settings/​settings-remove-site-modal/​settings-remove-site-modal.component.ts Deletes unused component.
eform-client/​src/​app/​plugins/​modules/​workflow-pn/​components/​settings/​settings-remove-site-modal/​settings-remove-site-modal.component.spec.ts Deletes obsolete test.
eform-client/​src/​app/​plugins/​modules/​workflow-pn/​components/​settings/​settings-remove-site-modal/​settings-remove-site-modal.component.scss Removes unused stylesheet.
eform-client/​src/​app/​plugins/​modules/​workflow-pn/​components/​settings/​settings-remove-site-modal/​settings-remove-site-modal.component.html Deletes legacy modal template.
eform-client/​src/​app/​plugins/​modules/​workflow-pn/​components/​settings/​settings-add-site-modal/​settings-add-site-modal.component.ts Adds standalone add-site dependencies.
eform-client/​src/​app/​plugins/​modules/​workflow-pn/​components/​settings/​settings-add-site-modal/​settings-add-site-modal.component.spec.ts Migrates to Vitest and checks site filtering.
eform-client/​src/​app/​plugins/​modules/​workflow-pn/​components/​index.ts Removes commented-out export.
Dockerfile Enables Corepack and builds with Yarn.
.github/​workflows/​dotnet-core-pr.yml Adds unit tests, target-branch checkout, and Corepack.
.github/​workflows/​dotnet-core-master.yml Adds unit tests and Corepack; removes obsolete copies.

Review effort: Balanced

…ervices

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 18, 2026 06:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Cross-repository CI compatibility and browser behavior remain unverified and need human validation.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@renemadsen
renemadsen merged commit ff6d6e0 into angular19 Oct 18, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants