Kai Moritz [Sun, 12 Oct 2025 20:23:00 +0000 (22:23 +0200)]
feat: If not known, an existing user can be selected or a new one created
* Introduced the method `setUser(id: string)` in `UserService`.
* The method fetches the user from the backend and remembers it.
* Also updated the pact between the `UserService` and the
`ChatBackendController`.
* Remodeld the `user.component` accordingly.
Kai Moritz [Sun, 12 Oct 2025 07:20:07 +0000 (09:20 +0200)]
feat: Introduced method `createUser()` in `UserService`
* The method requests the creation of a new user and remembers the created
instance of `User`, if the requests ist successful.
* The remembered `User` can be retrieved via `UserService.getUser()`.
* Also added a pact between the `UserService` and the
`ChatBackendController`, that formulates the expectations of the
`UserService`, that are not implemented yet by the backend.
Kai Moritz [Fri, 10 Oct 2025 20:02:45 +0000 (22:02 +0200)]
refactor: migrated the tests to jest
* The https://thymikee.github.io/jest-preset-angular/docs[documentation from jest-preset-angular] was slightly outdated
* Therefore, the configuration was copied from the example https://github.com/thymikee/jest-preset-angular/tree/main/examples/example-app-v20[example-app-v20] of the sources (Version `v15.0.2`)
* The configuration of the example was simplified, using the setup `ems-isolated`
* A *Downgrad* was needed for Angular from `20.3.0` to `20.0.0`
Kai Moritz [Wed, 17 Sep 2025 20:34:00 +0000 (20:34 +0000)]
@angular/cli migration - use-application-builder
Migrate application projects to the new build system. Application projects that are using the '@angular-devkit/build-angular' package's 'browser' and/or 'browser-esbuild' builders will be migrated to use the new 'application' builder. You can read more about this, including known issues and limitations, here: https://angular.dev/tools/cli/build-system-migration
Kai Moritz [Wed, 17 Sep 2025 20:33:46 +0000 (20:33 +0000)]
@angular/cli migration - update-module-resolution
Update 'moduleResolution' to 'bundler' in TypeScript configurations. You can read more about this, here: https://www.typescriptlang.org/tsconfig/#moduleResolution
Kai Moritz [Wed, 17 Sep 2025 20:00:55 +0000 (20:00 +0000)]
@angular/cli migration - use-application-builder
Migrate application projects to the new build system. Application projects that are using the '@angular-devkit/build-angular' package's 'browser' and/or 'browser-esbuild' builders will be migrated to use the new 'application' builder. You can read more about this, including known issues and limitations, here: https://angular.dev/tools/cli/build-system-migration
Kai Moritz [Wed, 17 Sep 2025 19:04:37 +0000 (21:04 +0200)]
refactor: Migrated the project to standalone -- step 3
prong generate @angular/core:standalone
? Choose the type of migration: Bootstrap the application using standalone APIs
? Which path in your project should be migrated? ./
Kai Moritz [Fri, 19 Sep 2025 10:44:32 +0000 (12:44 +0200)]
refactor: Migrated the project to standalone -- step 1
ng generate @angular/core:standalone
? Choose the type of migration: Convert all components, directives and pipes to standalone
? Which path in your project should be migrated? ./
Kai Moritz [Sat, 14 Jan 2023 20:15:31 +0000 (21:15 +0100)]
feat: Replaced `EventSource` by @microsoft/fetch-event-source
- EventSource lacks the posibility to set a request-header.
- The library is a replacement for the browser-side, that uses the Fetch API.
- https://www.npmjs.com/package/@microsoft/fetch-event-source