Skip to content

Commit 46eb8cf

Browse files
committed
fix(notification-center): add infinite scroll, delete events and loading states (#DS-5164) (#1627)
Co-authored-by: lskramarov <9027254+lskramarov@users.noreply.github.com>
1 parent 17317fb commit 46eb8cf

31 files changed

Lines changed: 1266 additions & 80 deletions

packages/components-dev/notification-center/module.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ import { NotificationCenterExamplesModule } from '../../docs-examples/components
2323
<notification-center-error-example />
2424
<br />
2525
<br />
26+
<notification-center-infinite-scroll-example />
27+
<br />
28+
<br />
2629
<notification-center-popover-example />
2730
`,
2831
changeDetection: ChangeDetectionStrategy.OnPush

packages/components/core/locales/en-US.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ export const enUSLocaleData = {
218218
showPopUpNotifications: 'Show pop-up notifications',
219219
noNotifications: 'No notifications',
220220
failedToLoadNotifications: 'Failed to load notifications',
221-
repeat: 'Repeat'
221+
repeat: 'Repeat',
222+
loadingMore: 'Loading more notifications'
222223
}
223224
};

packages/components/core/locales/es-LA.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ export const esLALocaleData = {
217217
showPopUpNotifications: 'Mostrar notificaciones emergentes',
218218
noNotifications: 'Sin notificaciones',
219219
failedToLoadNotifications: 'Error al cargar las notificaciones',
220-
repeat: 'Repetir'
220+
repeat: 'Repetir',
221+
loadingMore: 'Cargando más notificaciones'
221222
}
222223
};

packages/components/core/locales/pt-BR.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ export const ptBRLocaleData = {
217217
showPopUpNotifications: 'Mostrar notificações pop-up',
218218
noNotifications: 'Sem notificações',
219219
failedToLoadNotifications: 'Falha ao carregar notificações',
220-
repeat: 'Repetir'
220+
repeat: 'Repetir',
221+
loadingMore: 'Carregando mais notificações'
221222
}
222223
};

packages/components/core/locales/ru-RU.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ export const ruRULocaleData = {
232232
showPopUpNotifications: 'Показывать всплывающие уведомления',
233233
noNotifications: 'Нет уведомлений',
234234
failedToLoadNotifications: 'Не удалось загрузить уведомления',
235-
repeat: 'Повторить'
235+
repeat: 'Повторить',
236+
loadingMore: 'Загрузка уведомлений'
236237
}
237238
};

packages/components/core/locales/tk-TM.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ export const tkTMLocaleData = {
218218
showPopUpNotifications: 'Açylýan bildirişleri görkeziň',
219219
noNotifications: 'Duýduryş ýok',
220220
failedToLoadNotifications: 'Duýduryşlary ýükläp bilmedi',
221-
repeat: 'Gaýtalama'
221+
repeat: 'Gaýtalama',
222+
loadingMore: 'Duýduryşlar ýüklenýär'
222223
}
223224
};

packages/components/navbar/navbar-item.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@
2020
min-height: var(--kbq-size-l);
2121
}
2222

23+
// Filled fade-contrast only: its background is a semi-transparent tint, so the
24+
// navbar icon shows through. Composite the tint over an opaque bg-tertiary substrate.
25+
// The outline variant is intentionally left untouched — it stays a clean transparent outline.
26+
& .kbq-badge-filled.kbq-badge_fade-contrast {
27+
background:
28+
linear-gradient(var(--kbq-background-contrast-fade), var(--kbq-background-contrast-fade)),
29+
var(--kbq-background-bg-tertiary);
30+
}
31+
2332
& .kbq-button-icon {
2433
position: absolute;
2534
padding-left: var(--kbq-size-xs);
1.87 KB
Loading
2.01 KB
Loading

packages/components/notification-center/_notification-center-theme.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
}
1212
}
1313

14-
.kbq-notification-center-error-container {
14+
.kbq-notification-center-error-container,
15+
.kbq-notification-center-load-more-error {
1516
color: var(--kbq-foreground-error);
1617
}
1718
}

0 commit comments

Comments
 (0)