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

[#44898] Enterprise page on the Notification Centre - Animation

Dombi Attilaa05f12ac7ec5
diff --git a/app/assets/videos/enterprise/date-alert-notifications.mp4 b/app/assets/videos/enterprise/date-alert-notifications.mp4
new file mode 100644
index 00000000000..d960d97799a
Binary files /dev/null and b/app/assets/videos/enterprise/date-alert-notifications.mp4 differ
diff --git a/frontend/src/app/features/in-app-notifications/date-alerts-upsale/ian-date-alerts-upsale.component.html b/frontend/src/app/features/in-app-notifications/date-alerts-upsale/ian-date-alerts-upsale.component.html
index b5615ee5f0d..f192928aecf 100644
--- a/frontend/src/app/features/in-app-notifications/date-alerts-upsale/ian-date-alerts-upsale.component.html
+++ b/frontend/src/app/features/in-app-notifications/date-alerts-upsale/ian-date-alerts-upsale.component.html
@@ -1,5 +1,5 @@
<op-enterprise-page
- [feature_image]="image"
+ [feature_video]="video"
[feature_title]="text.title"
[feature_description]="text.description"
></op-enterprise-page>
diff --git a/frontend/src/app/features/in-app-notifications/date-alerts-upsale/ian-date-alerts-upsale.component.ts b/frontend/src/app/features/in-app-notifications/date-alerts-upsale/ian-date-alerts-upsale.component.ts
index 7b4915ea57e..906252aebbe 100644
--- a/frontend/src/app/features/in-app-notifications/date-alerts-upsale/ian-date-alerts-upsale.component.ts
+++ b/frontend/src/app/features/in-app-notifications/date-alerts-upsale/ian-date-alerts-upsale.component.ts
@@ -1,6 +1,6 @@
import { Component, ChangeDetectionStrategy } from '@angular/core';
import { I18nService } from 'core-app/core/i18n/i18n.service';
-import { imagePath } from 'core-app/shared/helpers/images/path-helper';
+import { videoPath } from 'core-app/shared/helpers/videos/path-helper';
@Component({
selector: 'op-ian-date-alerts-upsale',
@@ -8,7 +8,7 @@ import { imagePath } from 'core-app/shared/helpers/images/path-helper';
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class InAppNotificationsDateAlertsUpsaleComponent {
- image = imagePath('notification-center/date-alerts-ee.png');
+ video = videoPath('enterprise/date-alert-notifications.mp4');
text = {
title: this.I18n.t('js.notifications.date_alerts.upsale.title'),
diff --git a/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.html b/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.html
index 6381a22a4ad..82b0fa05c71 100644
--- a/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.html
+++ b/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.html
@@ -12,14 +12,15 @@
<p class="upsale--feature-reference"
[textContent]="more_info"></p>
- <video width="400" *ngIf="feature_video" controls class="widget-box--teaser-video">
- <source src="feature_video" type="video/mp4">
+ <video width="400" *ngIf="feature_video" autoplay="autoplay" loop="loop" muted="muted" class="widget-box--teaser-video" [src]="feature_video">
</video>
-
- <img [src]="feature_image" class="widget-box--teaser-image" *ngIf="feature_image">
- <img [src]="image.enterprise_edition" class="widget-box--teaser-image_default" *ngIf="!feature_image">
-
+ <img [src]="feature_image" class="widget-box--teaser-image" *ngIf="feature_image">
+ <img
+ [src]="image.enterprise_edition"
+ class="widget-box--teaser-image_default"
+ *ngIf="!feature_image && !feature_video"
+ >
<p [innerHTML]="text.enterprise_info_html(feature_title)"></p>
<p>{{text.upgrade_info}}</p>
diff --git a/frontend/src/app/shared/helpers/videos/path-helper.ts b/frontend/src/app/shared/helpers/videos/path-helper.ts
new file mode 100644
index 00000000000..e61d8bbe136
--- /dev/null
+++ b/frontend/src/app/shared/helpers/videos/path-helper.ts
@@ -0,0 +1,15 @@
+/**
+ * Returns an absolute asset path from the assets/videos/ folder
+ *
+ * e.g., to access:
+ * app/assets/videos/enterprise/date-alert-notification-settings.mp4
+ *
+ * use
+ * imagePath('enterprise/date-alert-notification-settings.mp4')
+ *
+ *
+ * @param video Path to the video starting from app/assets/videos
+ */
+export function videoPath(video:string):string {
+ return `/assets/${video}`;
+}