Skip to content

fix(notification-center): add infinite scroll, delete events and loading states (#DS-5164)#1627

Merged
lskramarov merged 17 commits into
19.xfrom
fix/DS-5164
Jun 9, 2026
Merged

fix(notification-center): add infinite scroll, delete events and loading states (#DS-5164)#1627
lskramarov merged 17 commits into
19.xfrom
fix/DS-5164

Conversation

@lskramarov

Copy link
Copy Markdown
Contributor

No description provided.

@lskramarov lskramarov self-assigned this Jun 8, 2026
@lskramarov lskramarov added bug Something isn't working enhancement New feature or request labels Jun 8, 2026
@lskramarov lskramarov changed the base branch from main to 19.x June 8, 2026 16:31
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

🚨 E2E tests failed

Review the report for details.


💡 Comment /approve-snapshots to approve snapshot changes.

@lskramarov

Copy link
Copy Markdown
Contributor Author

/approve-snapshots

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

🔄 Updating snapshots.

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

✅ Snapshots updated!

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

🚨 E2E tests failed

Review the report for details.


💡 Comment /approve-snapshots to approve snapshot changes.

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

🚨 E2E tests failed

Review the report for details.


💡 Comment /approve-snapshots to approve snapshot changes.

@lskramarov

Copy link
Copy Markdown
Contributor Author

/approve-snapshots

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

🔄 Updating snapshots.

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

✅ Snapshots updated!

@lskramarov lskramarov marked this pull request as ready for review June 9, 2026 13:02
@lskramarov lskramarov requested a review from artembelik June 9, 2026 13:08
@artembelik artembelik requested a review from Copilot June 9, 2026 13:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds infinite-scroll pagination and deletion signaling to the Notification Center component/service, with corresponding UI states, localization, docs, and examples.

Changes:

  • Introduces infinite scroll via KbqNotificationCenterService.onNextPage, plus loadingMore, loadMoreErrorMode, hasMore, and a configurable scrolledToBottomOffset.
  • Adds deletion event reporting (onDelete with KbqNotificationDeleteEvent) and toast tracking (toastId + hideToast()).
  • Updates Notification Center UI (bottom loader/error rows, test ids), locales/public API guard, docs, examples, and expands unit test coverage.

Reviewed changes

Copilot reviewed 27 out of 29 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tools/public_api_guard/components/notification-center.api.md Updates public API surface for new service fields/events and new types.
tools/public_api_guard/components/core.api.md Extends locale typings to include the new loadingMore string.
packages/docs-examples/components/notification-center/notification-center-push/notification-center-push-example.html Updates badge coloring behavior in the example.
packages/docs-examples/components/notification-center/notification-center-popover/notification-center-popover-example.html Updates badge coloring behavior in the example.
packages/docs-examples/components/notification-center/notification-center-overview/notification-center-overview-example.html Updates badge coloring behavior in the example.
packages/docs-examples/components/notification-center/notification-center-infinite-scroll/notification-center-infinite-scroll-example.ts Adds a new infinite-scroll example showcasing paging + load-more error/retry.
packages/docs-examples/components/notification-center/notification-center-infinite-scroll/notification-center-infinite-scroll-example.html Adds the trigger template for the new infinite-scroll example.
packages/docs-examples/components/notification-center/notification-center-error/notification-center-error-example.html Updates badge coloring behavior in the example.
packages/docs-examples/components/notification-center/notification-center-empty/notification-center-empty-example.html Updates badge coloring behavior in the example.
packages/docs-examples/components/notification-center/index.ts Registers/exports the new infinite-scroll docs example.
packages/components/notification-center/notification-item.ts Adds test id and prevents duplicate onRead emissions once already read.
packages/components/notification-center/notification-item.html Adds a test id to the remove button.
packages/components/notification-center/notification-center.ts Implements scroll-to-bottom detection + offset input wiring; adds spinner module; minor subscription safety tweak.
packages/components/notification-center/notification-center.spec.ts Adds unit tests for infinite scroll, deletion events, toast hiding, ordering, and read-once behavior.
packages/components/notification-center/notification-center.service.ts Adds paging state subjects, deletion event emitter/type, toast id tracking + hideToast, and deterministic grouping order.
packages/components/notification-center/notification-center.scss Adjusts layout padding and adds styles for load-more spinner/error rows.
packages/components/notification-center/notification-center.ru.md Documents infinite scroll and deletion behavior (RU).
packages/components/notification-center/notification-center.html Adds load-more UI states, binds scroll handler, and adds test ids for key UI elements.
packages/components/notification-center/notification-center.en.md Documents infinite scroll and deletion behavior (EN).
packages/components/notification-center/_notification-center-theme.scss Ensures error styling applies to the new load-more error row.
packages/components/navbar/navbar-item.scss Adjusts badge filled fade-contrast background behavior in navbar context.
packages/components/core/locales/tk-TM.ts Adds loadingMore locale string.
packages/components/core/locales/ru-RU.ts Adds loadingMore locale string.
packages/components/core/locales/pt-BR.ts Adds loadingMore locale string.
packages/components/core/locales/es-LA.ts Adds loadingMore locale string.
packages/components/core/locales/en-US.ts Adds loadingMore locale string.
packages/components-dev/notification-center/module.ts Displays the new infinite-scroll example in the dev module.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/components/notification-center/notification-center.ts
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

🚨 E2E tests failed

Review the report for details.


💡 Comment /approve-snapshots to approve snapshot changes.

@lskramarov

Copy link
Copy Markdown
Contributor Author

/approve-snapshots

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

🔄 Updating snapshots.

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

✅ Snapshots updated!

@lskramarov lskramarov merged commit b76c433 into 19.x Jun 9, 2026
6 checks passed
@lskramarov lskramarov deleted the fix/DS-5164 branch June 9, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants