-
Couldn't load subscription status.
- Fork 2
Ionic & Angular upgrade and new features #2451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
chore: show devtool page
…r-handling-prerelease' into 2.4.y/CORE7701/rating-dups-trunk
…-trunk [CORE-7701] 2.4.y/rating dups trunk
…egration-trunk 2.4.y.z/core 7684/uppy integration trunk
…egration-trunk [CORE-7684] use input url as 1st choice
…egration-trunk [CORE-7684] max size var
…egration-trunk [CORE-7684] var type error
…egration-trunk [CORE-7684] integer
…egration-trunk [CORE-7684] local env
…egration-trunk [core-7684] remove withCredentials
…fail-trunk [CORE-7899] 2.4.y/auto save fail trunk
…fail-trunk [CORE-7874] checking for unavailable activity
…fail-trunk [CORE-7899] 2.4.y/auto save fail trunk
…ubmit-without-file [CORE-7907] prevent dismiss
…ubmit-without-file [CORE-7906] overlapping alert
…le-not-uploaded [CORE-7892] set only after uploaded
…mission-with-file [CORE-7903] 2.4.y/review submission with file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR upgrades the project to Angular 17 and Ionic 7, standardizes linting, enhances CI workflows with new environment variables, and adds docs for localization and API headers.
- Upgrade Angular/Ionic versions and update core dependencies
- Integrate new ESLint rules and adjust project tsconfigs
- Enhance GitHub workflows with
CUSTOM_UPLOAD_*andCUSTOM_STACK_NAMEvars - Add localization guides and API custom-header docs
Reviewed Changes
Copilot reviewed 195 out of 195 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| projects/v3/src/app/app.module.ts | Enable innerHTMLTemplatesEnabled in IonicModule.forRoot |
| projects/v3/src/app/app.component.ts | Add string type for logo and refactor URL‐prefix logic |
| projects/v3/karma.conf.js | Remove legacy Istanbul reporter and other flags |
| projects/request/tsconfig.lib.json | Include src/lib/**/*.ts in library build |
| projects/request/src/lib/request.service.ts | Switch to lodash-es and use strict equality operator |
| projects/request/src/lib/request.service.spec.ts | Update import paths for V3 test utilities |
| projects/request/package.json | Replace lodash with lodash-es |
| package.json | Revise scripts; bump Angular/Ionic and related dependency versions |
| angular.json | Remove default project; update locales, CommonJS allowances, assets |
| README.md | Add localization workflow and API custom headers sections |
| .github/workflows/*.yml | Add CUSTOM_UPLOAD_TUS_ENDPOINT, CUSTOM_UPLOAD_MAX_FILE_SIZE, and CUSTOM_STACK_NAME env variables |
| .eslintrc.json & .eslintignore | Add rxjs plugin and new lint rules; ignore specs & environments |
| .editorconfig | Configure .xlf files to preserve trailing whitespace |
Comments suppressed due to low confidence (3)
projects/request/src/lib/request.service.spec.ts:15
- [nitpick] The alias
@testingv3/utilsmay be confusing; consider a clearer path or ensure it aligns with your project’s module naming conventions.
import { TestUtils } from '@testingv3/utils';
package.json:16
- [nitpick] The
prev3script duplicatesprebuildv3. Consider removing or renaming it to avoid confusion.
"prev3": "npm run prebuildv3",
projects/v3/src/app/app.module.ts:23
- Enabling
innerHTMLTemplatesEnabledmay introduce XSS risks if templates are not sanitized. Please confirm that all dynamic HTML content is sanitized appropriately.
IonicModule.forRoot({
grammar correction Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR upgrades the Ionic & Angular setup to v3/v17, enhances linting rules, expands CI workflow environment variables, and bolsters documentation for localization and API headers.
- Upgraded dependencies and project configuration (Angular 17, Ionic 7)
- Strengthened ESLint rules and parser settings; switched to lodash-es
- Expanded GitHub workflow env vars and added i18n & API header docs
Reviewed Changes
Copilot reviewed 195 out of 195 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| projects/v3/src/app/app.module.ts | Enabled innerHTMLTemplatesEnabled in IonicModule |
| projects/v3/src/app/app.component.ts | Added logo type and updated URL‐prefix logic |
| projects/v3/karma.conf.js | Removed Istanbul reporter and port/log settings |
| projects/request/tsconfig.lib.json | Included library source files in build |
| projects/request/src/lib/request.service.ts | Switched import to lodash-es and tightened === |
| projects/request/src/lib/request.service.spec.ts | Updated test imports to v3 paths |
| projects/request/package.json | Replaced lodash with lodash-es |
| package.json | Refactored scripts and bumped core dependencies |
| angular.json | Pruned legacy projects, added v3 build/serve settings |
| README.md | Added localization & custom header guidelines |
| .github/workflows/pull-req.yml | Cleaned up stray cache section |
| .github/workflows/p2-usa-appv3.yml | Added upload vars and CUSTOM_STACK_NAME |
| .github/workflows/p2-stage-appv3.yml | Changed BUILD_CONFIG, added flags and env vars |
| .github/workflows/p2-prerelease-appv3.yml | Added upload vars and CUSTOM_STACK_NAME |
| .github/workflows/p2-euk-appv3.yml | Added upload vars and CUSTOM_STACK_NAME |
| .github/workflows/p2-aus-appv3.yml | Added upload vars and CUSTOM_STACK_NAME |
| .eslintrc.json | Introduced RxJS plugin, updated parser & rules |
| .eslintignore | Ignored spec and environment files |
| .editorconfig | Configured XLF formatting rules |
Comments suppressed due to low confidence (3)
angular.json:3
- Removing
defaultProjectmay break CLI commands that rely on a default. Consider restoring"defaultProject": "v3"song buildandng servetarget v3 by default.
"defaultProject": "v3",
projects/v3/karma.conf.js:28
- Coverage thresholds from the removed
coverageIstanbulReporterblock are no longer enforced. To maintain coverage standards, configurecoverageReporter.thresholdsor reintroduce equivalent settings.
coverageReporter: {
package.json:14
- [nitpick] The script name
prev3is unclear and easily confused withprebuildv3. Consider renaming it to something more descriptive, such aspre-v3orprepare-v3.
"prev3": "npm run prebuildv3",
This pull request introduces several updates across configuration files, workflows, and documentation. Key changes include updates to ESLint configuration and rules, enhancements to GitHub workflow environment variables, and adjustments to Angular project settings. Additionally, new documentation sections have been added for localization and API custom headers.
Configuration Updates
ESLint Configuration:
rxjsplugin and updatedparserOptionsto include specifictsconfigfiles (.eslintrc.json).rxjs/no-ignored-observable,prefer-const, and restrictions onconsoleusage (.eslintrc.json)..spec.tsandenvironment.*.tsfiles in.eslintignore.Angular Project Configuration:
appandapp-e2e, inangular.json(default now is v3 project).allowedCommonJsDependenciesto include libraries likepusher-js,moment, andquillinangular.json.ms) locale configuration from the localization settings inangular.json.Workflow Enhancements
CUSTOM_UPLOAD_TUS_ENDPOINTandCUSTOM_UPLOAD_MAX_FILE_SIZEto workflows (p2-aus-appv3.yml,p2-euk-appv3.yml,p2-prerelease-appv3.yml,p2-stage-appv3.yml,p2-usa-appv3.yml). [1] [2] [3] [4] [5]CUSTOM_STACK_NAMEto workflows for consistency. [1] [2] [3] [4] [5]BUILD_CONFIGtostageinp2-stage-appv3.yml.Documentation Updates
Localization Guidelines:
poedit.orgin theREADME.md.API Custom Headers:
These updates collectively improve the maintainability, standardization, and clarity of the project.