The project uses Angular 20.0.x with standalone components, ChangeDetectionStrategy.OnPush, and the standard Zone.js zone (without zoneless mode), TypeScript 5.8.x, RxJS 7.8.x, and Reactive Forms. Below is a PR diff for a small quick tag add panel in a material card. After the changes, problems appeared that are noticeable during normal use.
Component functional requirements:
label field accepts a tag string and must not submit a value consisting only of spaces.POST /api/tags in JSON format { "id": number, "label": string }, and the new tag must appear in the list exactly once.Assumptions and reproduction:
ReactiveFormsModule.TagApi.createTag(label: string) returns Observable<Tag> and makes one HTTP POST per call.Angular, then:
A review of the diff is needed to find defects in the changes.
Node.js 22.x, Angular CLI 20.0.x, Angular 20.0.x standalone, TypeScript 5.8.x, RxJS 7.8.x, ChangeDetectionStrategy.OnPush, Zone.js enabled. No additional libraries besides the standard Angular packages are required.
Use line comments to explain the problem, its impact, the fix and how to test it.