Skip to content

P0080 | Upgrade angular from 14 to 21#481

Open
dvCodeWorld wants to merge 17 commits intodevelopmentfrom
P0080-development
Open

P0080 | Upgrade angular from 14 to 21#481
dvCodeWorld wants to merge 17 commits intodevelopmentfrom
P0080-development

Conversation

@dvCodeWorld
Copy link
Collaborator

No description provided.

amanWalkover and others added 14 commits March 13, 2026 17:54
P0079::Proxy-auth script bugs and improvements
- Replace all lodash imports with lodash-es for tree-shaking
- Remove duplicate MatMenuModule (logs.module.ts), FormsModule (register.module.ts)
- Fix duplicate createCustomElement in element.module.ts, remove dead commented code
- Remove console.log in layout.component.ts and otp.effects.ts
- Remove empty tap/finalize in http-wrapper and error-interceptor
- Fix typo swtichClientSuccess → switchClientSuccess (reducer/selector/component)
- Fix bug: getAllProjectsError not dispatched + all 4 effects hasError pattern
- Fix wrong property name projects → allProjects in getAllProjectsError reducer
- Remove enableIvy flags from tsconfigs (removed in v15)
- Remove ngcc postinstall script (removed in v15)
- Update @angular-builders/custom-webpack 14 → 15
- Update ngx-build-plus 14 → 15
- Add node types to tsconfig.app.json for process.env compilation
- Add local build configuration to proxy project.json
- Update proxy-auth production budget to 3mb
- Run nx migrations, workspace.json split to project.json files
- Both proxy and proxy-auth apps build successfully on Angular 15.2.9
- Upgrade Angular core/CDK/Material: 14.2.x → 17.3.9
- Upgrade @ngrx/*: 14.x → 17.2.0
- Upgrade @angular/fire: 7.5.0 → 17.1.0 (firebase: 9.16.0 → 10.12.0)
- Upgrade Nx/nrwl: 15.9.7 → 17.3.2
- Upgrade TypeScript: 4.9.5 → 5.2.2
- Upgrade zone.js: 0.12.0 → 0.14.8
- Upgrade @angular-devkit/build-angular: 15.2.9 → 17.3.9
- Upgrade @angular-eslint/*: 15.0.0 → 17.5.2

Material MDC Migration (zero MatLegacy* remaining):
- Replace all MatLegacy* imports with MDC equivalents across all apps and libs
- Migrate SCSS theme: legacy-core/all-legacy-component-themes → MDC core/all-component-themes
- Use all-component-colors() for dark theme to avoid duplicate style emissions
- Update MAT_LEGACY_*_DEFAULT_OPTIONS tokens to MDC equivalents in app.module.ts

Nx/tooling fixes:
- Remove @nrwl/cli (deprecated at v16+), update all build scripts to ./node_modules/.bin/nx
- Switch nx.json runner from @nrwl/nx-cloud to nx/tasks-runners/default
- Run Nx guard migration: remove deprecated CanActivate/Resolve interface implements clauses

Zone.js fix:
- Fix deep import zone.js/dist/webapis-shadydom.js → zone.js/bundles/webapis-shadydom.umd.js

Docs:
- Add docs/angular-v14-to-v17-migration-report.md with full compliance checklist
Deleted unused UI components:
- angular-mentions (kept - used), removed: browser-recording, calendly-dialog,
  cmd-enter-preference, color-picker, color-functions, code-snippet-dialog,
  compose-wrapper, days-autocomplete-chip-list, drag-resizable, editor,
  file-upload, ivr-dialer, mat-autocomplete-wrapper, multi-select, no-network,
  no-permission, object-viewer, phone-number-material, phone-recording, qr-code,
  reject-reason, route-loader, sorting-bottom-sheet, template-preview, time-picker,
  tts-recording, variable-input

Deleted unused pipes:
- currency-formatter, custom-date-pipe, duration-pipe, filename-pipe,
  filter-control-pipe, get-hash-code-pipe, get-short-name-pipe, greeting-pipe,
  linkify-pipe, mobile-number-pipe, number-format-pipe, sanitize-html-pipe,
  seconds-to-hms, time-conversion-pipe, tooltip-list-pipe, user-setting-pipe,
  utc-to-local-date-pipe, country-currency-symbol, floor, flow, join,
  relative-time-pipe, repeater-condition, show-days-format, split,
  string-masking, timer

Deleted unused directives:
- auto-focus-directive, custom-tooltip-directive, highlight-directive,
  open-datepicker-on-focus-directive, timeago-directive

Deleted unused services/other:
- services/admin, services/shared, shared/, chart-ui/

Updated tsconfig.base.json: removed all 63 deleted path aliases (95 → 50 paths)

Both proxy and proxy-auth apps verified building successfully after cleanup.
- Upgraded Angular core/material/cdk to v19.2.x
- Upgraded NgRx to v19.2.1 (added @ngrx/operators for tapResponse)
- Upgraded Nx to v19.8.14, replaced @nrwl/* with @nx/* across workspace
- TypeScript upgraded to 5.5.4
- Material v18: updated all M2 SCSS APIs to mat.m2-* prefix
- Angular v19: added standalone: false to 46 non-standalone components/directives/pipes
- Fixed @angular-devkit/build-webpack version for v18/v19
- Updated zone.js to 0.14.10
- Both proxy and proxy-auth apps build successfully
…emove disableOptionCentering, remove custom-webpack
…2, NgRx 21.0.1, @angular/fire 21.0.0-rc.0, Nx 21.6.10, TS 5.9.3)
@windsurf-bot
Copy link

windsurf-bot bot commented Mar 17, 2026

PR review rate limit exceeded

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