OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Reminders generate two or more lines for a work package in notification center, clicking one selects all
Kabiru Mwenjae8b0648ee782
diff --git a/frontend/src/app/features/in-app-notifications/center/state/ian-center.service.ts b/frontend/src/app/features/in-app-notifications/center/state/ian-center.service.tsindex 9c41f1a4658..0979826f650 100644--- a/frontend/src/app/features/in-app-notifications/center/state/ian-center.service.ts+++ b/frontend/src/app/features/in-app-notifications/center/state/ian-center.service.ts@@ -111,28 +111,7 @@ export class IanCenterService extends UntilDestroyedMixin {notifications$ = this.aggregatedCenterNotifications$.pipe(- map((items) => {- return Object.values(items).reduce((acc, workPackageNotificationGroup) => {- const { reminders, others } = workPackageNotificationGroup.reduce((result, notification) => {- if (notification.reason === 'reminder') {- result.reminders.push(notification);- } else {- result.others.push(notification);- }- return result;- }, { reminders: [] as INotification[], others: [] as INotification[] });-- // Extract reminders into standalone groups so they can be displayed individually- if (reminders.length > 0) {- reminders.forEach((reminder) => acc.push([reminder]));- }- if (others.length > 0) {- acc.push(others);- }-- return acc;- }, [] as INotification[][]);- }),+ map((items) => Object.values(items)),distinctUntilChanged(),);diff --git a/spec/features/notifications/notification_center/notification_center_reminder_spec.rb b/spec/features/notifications/notification_center/notification_center_reminder_spec.rbindex 015aa20a36f..af66d590716 100644--- a/spec/features/notifications/notification_center/notification_center_reminder_spec.rb+++ b/spec/features/notifications/notification_center/notification_center_reminder_spec.rb@@ -47,18 +47,10 @@ RSpec.describe "Notification center reminder, mention and date alert",wait_for_reloadend- it "shows the reminder alert in own entry" do+ it "shows the reminder alert within aggregation with reminder note" docenter.within_item(notification_reminder) do- expect(page).to have_text("##{work_package.id}\n- #{project.name} -\nReminder")- expect(page).to have_no_text("Actor user")+ expect(page).to have_text("Date alert, Mentioned, Reminder")expect(page).to have_text("a few seconds ago.\nNote: “This is an important reminder”")endend-- it "shows other notification reasons aggregated" do- center.within_item(notification_date_alert) do- expect(page).to have_text("##{work_package.id}\n- #{project.name} -\nDate alert, Mentioned")- expect(page).to have_no_text("Actor user")- end- endend