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
Open date alerts in overview tab
Oliver Günther38ce141dc91d
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 74838230272..4db86c7324f 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@@ -266,11 +266,11 @@ export class IanCenterService extends UntilDestroyedMixin {});}- openSplitScreen(wpId:string|null):void {+ openSplitScreen(wpId:string|null, tabIdentifier:string = 'activity'):void {void this.state.go(// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/restrict-template-expressions`${this.state.current.data.baseRoute}.details.tabs`,- { workPackageId: wpId, tabIdentifier: 'activity' },+ { workPackageId: wpId, tabIdentifier },);}diff --git a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.tsindex a5eb6807541..b9d2e859b6f 100644--- a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts+++ b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts@@ -15,6 +15,7 @@ import { TimezoneService } from 'core-app/core/datetime/timezone.service';import {map,shareReplay,+ withLatestFrom,} from 'rxjs/operators';import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';import { take } from 'rxjs/internal/operators/take';@@ -106,9 +107,11 @@ export class InAppNotificationEntryComponent implements OnInit {.workPackage$.pipe(take(1),+ withLatestFrom(this.showDateAlert$),)- .subscribe((wp) => {- this.storeService.openSplitScreen(wp.id);+ .subscribe(([wp, openDetailsTab]) => {+ const tab = openDetailsTab ? 'overview' : 'activity';+ this.storeService.openSplitScreen(wp.id, tab);});}diff --git a/spec/features/notifications/notification_center/notification_center_date_alerts_spec.rb b/spec/features/notifications/notification_center/notification_center_date_alerts_spec.rbindex e2c9122d5f1..77f85d2283c 100644--- a/spec/features/notifications/notification_center/notification_center_date_alerts_spec.rb+++ b/spec/features/notifications/notification_center/notification_center_date_alerts_spec.rb@@ -208,6 +208,17 @@ describe "Notification center date alerts", js: true,center.expect_item(double_alert_start, 'Finish date is in 1 day')center.expect_no_item(double_alert_due)++ # Opening a date alert opens in overview+ center.click_item notification_wp_start_past+ split_screen = ::Pages::SplitWorkPackage.new wp_start_past+ split_screen.expect_tab :overview++ # The same is true for the mention item that is opened in date alerts filter+ center.click_item notification_wp_double_date_alert+ split_screen = ::Pages::SplitWorkPackage.new wp_double_notification+ split_screen.expect_tab :overview+# When a work package is updated to a different datewp_double_notification.update_column(:due_date, 5.days.from_now)page.driver.refresh