Skip to content

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

Show sharing upsale page when clicking on share filter in notification center

Henriette Darge646d145f3fcc
diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml
index 34aa8149c91..1641216e879 100644
--- a/config/locales/js-en.yml
+++ b/config/locales/js-en.yml
@@ -1112,6 +1112,8 @@ en:
selected_count: "%{count} selected"
selection:
mixed: "Mixed"
+ upsale:
+ description: "Share work packages with users who are not members of the project."
table:
configure_button: 'Configure work package table'
summary: "Table with rows of work package and columns of work package attributes."
diff --git a/frontend/src/app/features/enterprise/share-upsale/share-upsale.component.html b/frontend/src/app/features/enterprise/share-upsale/share-upsale.component.html
new file mode 100644
index 00000000000..34043d6e6f1
--- /dev/null
+++ b/frontend/src/app/features/enterprise/share-upsale/share-upsale.component.html
@@ -0,0 +1,6 @@
+<op-enterprise-page
+ [feature_video]="video"
+ [feature_title]="text.title"
+ [feature_description]="text.description"
+ [hide_breadcrumb]="true"
+></op-enterprise-page>
diff --git a/frontend/src/app/features/enterprise/share-upsale/share-upsale.component.ts b/frontend/src/app/features/enterprise/share-upsale/share-upsale.component.ts
new file mode 100644
index 00000000000..f850e6bbc13
--- /dev/null
+++ b/frontend/src/app/features/enterprise/share-upsale/share-upsale.component.ts
@@ -0,0 +1,21 @@
+import { Component, ChangeDetectionStrategy } from '@angular/core';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { videoPath } from 'core-app/shared/helpers/videos/path-helper';
+
+@Component({
+ selector: 'op-share-upsale',
+ templateUrl: './share-upsale.component.html',
+ changeDetection: ChangeDetectionStrategy.OnPush,
+})
+export class ShareUpsaleComponent {
+ video = videoPath('sharing/share-work-package.mp4');
+
+ text = {
+ title: this.I18n.t('js.work_packages.sharing.title'),
+ description: this.I18n.t('js.work_packages.sharing.upsale.description'),
+ };
+
+ constructor(
+ readonly I18n:I18nService,
+ ) { }
+}
diff --git a/frontend/src/app/features/in-app-notifications/center/menu/menu.component.ts b/frontend/src/app/features/in-app-notifications/center/menu/menu.component.ts
index a96b40c4ec4..ed4c14a663d 100644
--- a/frontend/src/app/features/in-app-notifications/center/menu/menu.component.ts
+++ b/frontend/src/app/features/in-app-notifications/center/menu/menu.component.ts
@@ -106,7 +106,7 @@ export class IanMenuComponent implements OnInit {
title: this.I18n.t('js.notifications.menu.shared'),
isEnterprise: true,
icon: 'share',
- ...getUiLinkForFilters({ filter: 'reason', name: 'shared' }),
+ ...this.eeGuardedShareRoute,
},
];
@@ -184,4 +184,12 @@ export class IanMenuComponent implements OnInit {
return getUiLinkForFilters({ filter: 'reason', name: 'dateAlert' });
}
+
+ private get eeGuardedShareRoute() {
+ if (this.bannersService.eeShowBanners) {
+ return { uiSref: 'notifications.share_upsale', uiParams: null, uiOptions: { inherit: false } };
+ }
+
+ return getUiLinkForFilters({ filter: 'reason', name: 'shared' });
+ }
}
diff --git a/frontend/src/app/features/in-app-notifications/in-app-notifications.routes.ts b/frontend/src/app/features/in-app-notifications/in-app-notifications.routes.ts
index 3dfa352b027..3c8a4303f2c 100644
--- a/frontend/src/app/features/in-app-notifications/in-app-notifications.routes.ts
+++ b/frontend/src/app/features/in-app-notifications/in-app-notifications.routes.ts
@@ -33,6 +33,7 @@ import { InAppNotificationCenterComponent } from 'core-app/features/in-app-notif
import { InAppNotificationCenterPageComponent } from 'core-app/features/in-app-notifications/center/in-app-notification-center-page.component';
import { WorkPackagesBaseComponent } from 'core-app/features/work-packages/routing/wp-base/wp--base.component';
import { InAppNotificationsDateAlertsUpsaleComponent } from 'core-app/features/in-app-notifications/date-alerts-upsale/ian-date-alerts-upsale.component';
+import { ShareUpsaleComponent } from 'core-app/features/enterprise/share-upsale/share-upsale.component';
export interface INotificationPageQueryParameters {
filter?:string;
@@ -57,6 +58,11 @@ export const IAN_ROUTES:Ng2StateDeclaration[] = [
name: 'notifications.date_alerts_upsale',
component: InAppNotificationsDateAlertsUpsaleComponent,
},
+ {
+ url: '/share',
+ name: 'notifications.share_upsale',
+ component: ShareUpsaleComponent,
+ },
{
name: 'notifications.center',
component: InAppNotificationCenterPageComponent,
diff --git a/frontend/src/app/shared/shared.module.ts b/frontend/src/app/shared/shared.module.ts
index 59529dee45e..c16f1726f3e 100644
--- a/frontend/src/app/shared/shared.module.ts
+++ b/frontend/src/app/shared/shared.module.ts
@@ -95,6 +95,7 @@ import { OpenprojectContentLoaderModule } from 'core-app/shared/components/op-co
import { OpenprojectModalModule } from 'core-app/shared/components/modal/modal.module';
import { FullCalendarModule } from '@fullcalendar/angular';
import { OpDatePickerModule } from 'core-app/shared/components/datepicker/datepicker.module';
+import { ShareUpsaleComponent } from 'core-app/features/enterprise/share-upsale/share-upsale.component';
export function bootstrapModule(injector:Injector):void {
// Ensure error reporter is run
@@ -271,6 +272,8 @@ export function bootstrapModule(injector:Injector):void {
// Old datepickers
OpMultiDatePickerComponent,
+
+ ShareUpsaleComponent,
],
})
export class OpSharedModule {
diff --git a/frontend/src/assets/videos/sharing/share-work-package.mp4 b/frontend/src/assets/videos/sharing/share-work-package.mp4
new file mode 100644
index 00000000000..8d20a0f32de
Binary files /dev/null and b/frontend/src/assets/videos/sharing/share-work-package.mp4 differ