A small panel shows a list of notes for the selected category and a short summary of the found items. After a recent change, the behavior became inconsistent: the list and the summary are not always in sync with each other, and some updates sometimes do not appear on the screen.
ChangeDetectionStrategy.OnPush.NotesApi and shown in the list.visibleCount summary must always match the current list on the screen.Pin to toggle the pinned flag for a specific note.work category.Pin on any row.personal category and back to work.Found: ... line with the actual number of items and check whether the button text for the pinned note changes immediately after clicking.Found: ... must match the number of rendered notes.Pin, the corresponding row must update on the screen immediately.20.0.0, standalone components5.87.8OnPushNotesApi.list(category) returns Observable<Note[]>NotesApi.togglePinned(id) returns Observable<{ id: number; pinned: boolean }>Use line comments to explain the problem, its impact, the fix and how to test it.