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
Merge remote-tracking branch 'origin/dev' into fix/38648-improve-loading-indocator
Henriette Darge4fff60ef8491
diff --cc frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.tsindex fb90ed3e70a,46c2ead8215..7901889aa02--- a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.ts+++ b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.ts@@@ -7,23 -7,15 +7,19 @@@ import} from '@angular/core';import { I18nService } from 'core-app/core/i18n/i18n.service';import {- distinctUntilChanged,filter,map,- pluck,- share,} from 'rxjs/operators';+import { StateService } from '@uirouter/angular';+import { UIRouterGlobals } from '@uirouter/core';import { IanCenterService } from 'core-app/features/in-app-notifications/center/state/ian-center.service';import {InAppNotification,NOTIFICATIONS_MAX_SIZE,} from 'core-app/core/state/in-app-notifications/in-app-notification.model';- import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';-import { UIRouterGlobals } from '@uirouter/core';+import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';+import { IanBellService } from 'core-app/features/in-app-notifications/bell/state/ian-bell.service';@Component({selector: 'op-in-app-notification-center',@@@ -96,13 -76,8 +84,12 @@@ export class InAppNotificationCenterComreadonly elementRef:ElementRef,readonly I18n:I18nService,readonly storeService:IanCenterService,+ readonly bellService:IanBellService,readonly uiRouterGlobals:UIRouterGlobals,+ readonly state:StateService,+ readonly apiV3:APIV3Service,+ readonly pathService:PathHelperService,) {- super();}ngOnInit():void {diff --cc frontend/src/app/features/in-app-notifications/center/state/ian-center.query.tsindex 33f6df8f511,b0cd25ed315..cde83dc10ee--- a/frontend/src/app/features/in-app-notifications/center/state/ian-center.query.ts+++ b/frontend/src/app/features/in-app-notifications/center/state/ian-center.query.ts@@@ -1,9 -1,6 +1,9 @@@import { Query } from '@datorama/akita';-import { map } from 'rxjs/operators';+import {+ distinctUntilChanged,+ map,- switchMap,+} from 'rxjs/operators';+ import { combineLatest } from 'rxjs';import {IAN_FACET_FILTERS,IanCenterState,diff --cc spec/features/notifications/notification_center/notification_center_sidemenu_spec.rbindex 6a51511acab,6a51511acab..69f384efa72--- a/spec/features/notifications/notification_center/notification_center_sidemenu_spec.rb+++ b/spec/features/notifications/notification_center/notification_center_sidemenu_spec.rb@@@ -68,7 -68,7 +68,7 @@@ describe "Notification center sidemenu"it 'still shows the sidebar and a placeholder' doside_menu.expect_open-- expect(page).to have_text 'No unread notifications'++ expect(page).to have_text 'New notifications will appear here when there is activity that concerns you'center.expect_no_notification@@@ -110,7 -110,7 +110,14 @@@side_menu.expect_item_with_count project2.name, 1side_menu.expect_item_with_count "... #{project3.name}", 2++ # Empty filter sets have a separate message++ side_menu.click_item 'Watching'++ side_menu.finished_loading++ expect(page).to have_text 'There are no notifications in this view at the moment'++# Marking all as read++ side_menu.click_item 'Inbox'++ side_menu.finished_loadingcenter.mark_all_readside_menu.expect_item_with_no_count 'Inbox'side_menu.expect_item_with_no_count 'Assigned'diff --cc spec/support/pages/notifications/center.rbindex a5e7c9ed793,a5e7c9ed793..18d214a7374--- a/spec/support/pages/notifications/center.rb+++ b/spec/support/pages/notifications/center.rb@@@ -111,7 -111,7 +111,7 @@@ module Pageenddef expect_empty-- expect(page).to have_text 'No unread notifications'++ expect(page).to have_text 'New notifications will appear here when there is activity that concerns you'enddef expect_number_of_notifications(count)