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
Replace notifications upsale pages
Oliver Günther98313d1a210c
diff --git a/frontend/src/assets/videos/notification-center/date-alert-notifications.mp4 b/app/assets/videos/enterprise/date-alert-notifications.mp4similarity index 100%rename from frontend/src/assets/videos/notification-center/date-alert-notifications.mp4rename to app/assets/videos/enterprise/date-alert-notifications.mp4diff --git a/frontend/src/assets/videos/sharing/share-work-package.mp4 b/app/assets/videos/enterprise/share-work-package.mp4similarity index 100%rename from frontend/src/assets/videos/sharing/share-work-package.mp4rename to app/assets/videos/enterprise/share-work-package.mp4diff --git a/app/views/notifications/date_alerts.html.erb b/app/views/notifications/date_alerts.html.erbindex 7bd17ca6e45..a9c14fed3bd 100644--- a/app/views/notifications/date_alerts.html.erb+++ b/app/views/notifications/date_alerts.html.erb@@ -1,5 +1,11 @@<% html_title t("js.notifications.title") %><% content_for :content_body do %>- <%= angular_component_tag "opce-ian-date-alerts-upsale" %>+ <%= render template: "common/upsale",+ locals: {+ feature_title: t("enterprise_features.date_alerts"),+ feature_description: t("ee.upsale.date_alerts.description"),+ feature_reference: "enterprise-date-alerts",+ feature_video: "enterprise/date-alert-notifications.mp4"+ } %><% end %>diff --git a/app/views/notifications/share_upsale.html.erb b/app/views/notifications/share_upsale.html.erbindex 6b72a636ae6..151e3b1d4ad 100644--- a/app/views/notifications/share_upsale.html.erb+++ b/app/views/notifications/share_upsale.html.erb@@ -1,5 +1,11 @@<% html_title t("js.notifications.title") %><% content_for :content_body do %>- <%= angular_component_tag "opce-share-upsale" %>+ <%= render template: "common/upsale",+ locals: {+ feature_title: t("enterprise_features.work_package_sharing"),+ feature_description: t("ee.upsale.work_package_sharing.description"),+ feature_reference: "enterprise-work-package-sharing",+ feature_video: "enterprise/share-work-package.mp4"+ } %><% end %>diff --git a/config/locales/en.yml b/config/locales/en.ymlindex 1cde08cab2e..8a9ae21477d 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -2058,6 +2058,12 @@ en:description: "Mark work packages as read-only for specific statuses."custom_field_hierarchies:description: "Hierarchy custom fields allow organizing hierarchical structures in work packages by making use of multi-level select lists."+ date_alerts:+ description: "With date alerts, you will be notified of upcoming start or finish dates so that you never miss or forget an important deadline."+ work_package_sharing:+ description: "Share work packages with users who are not members of the project."++enumeration_activities: "Time tracking activities"enumeration_work_package_priorities: "Work package priorities"@@ -4671,26 +4677,26 @@ en:legacy_enterprise: "Enterprise Plan"enterprise_features:- baseline_comparison: Baseline Comparison- board_view: Board View+ baseline_comparison: Baseline Comparisons+ board_view: Advanced Boardsconditional_highlighting: Conditional Highlightingcustom_actions: Custom Actions- custom_field_hierarchies: Custom Field Hierarchies+ custom_field_hierarchies: Custom fields of type hierarchycustomize_life_cycle: Customize Life Cycledate_alerts: Date Alerts- define_custom_style: Define Custom Style+ define_custom_style: Custom theme and logoedit_attribute_groups: Edit Attribute Groupsgantt_pdf_export: Gantt PDF Exportgrid_widget_wp_graph: Grid Widget Work Package Graph- ldap_groups: LDAP Groups+ ldap_groups: LDAP users and group syncone_drive_sharepoint_file_storage: OneDrive/SharePoint File Storageplaceholder_users: Placeholder Usersproject_list_sharing: Project List Sharingreadonly_work_packages: Readonly Work Packages- sso_auth_providers: SSO Auth Providers+ sso_auth_providers: Single sign-onteam_planner_view: Team Planner View- two_factor_authentication: Two-Factor Authentication- virus_scanning: Attachment Virus Scanning+ two_factor_authentication: 2FA Authentication+ virus_scanning: Antivirus scanningwork_package_query_relation_columns: Work Package Query Relation Columns- work_package_sharing: Work Package Sharing+ work_package_sharing: Share work packages with external userswork_package_subject_generation: Work Package Subject Generationdiff --git a/config/locales/js-en.yml b/config/locales/js-en.ymlindex a388e002b9c..a94ad708f9c 100644--- a/config/locales/js-en.yml+++ b/config/locales/js-en.yml@@ -685,9 +685,6 @@ en:property_is: "is in %{difference_in_days}."property_was: "was %{difference_in_days} ago."property_is_deleted: "is deleted."- upsale:- title: "Date alerts"- description: "With date alerts, you will be notified of upcoming start or finish dates so that you never miss or forget an important deadline."center:label_actor_and: "and"and_more_users:@@ -1127,8 +1124,6 @@ en:sharing:title: "Share work package"show_all_users: "Show all users with whom the work package has been shared with"- 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/app.module.ts b/frontend/src/app/app.module.tsindex edb81718b0f..78386494d49 100644--- a/frontend/src/app/app.module.ts+++ b/frontend/src/app/app.module.ts@@ -160,10 +160,6 @@ import {import {WorkPackageSplitViewEntryComponent,} from 'core-app/features/work-packages/routing/wp-split-view/wp-split-view-entry.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';import {StorageLoginButtonComponent,} from 'core-app/shared/components/storages/storage-login-button/storage-login-button.component';@@ -443,8 +439,6 @@ export class OpenProjectModule implements DoBootstrap {registerCustomElement('opce-notification-settings', NotificationsSettingsPageComponent, { injector });registerCustomElement('opce-reminder-settings', ReminderSettingsPageComponent, { injector });registerCustomElement('opce-notification-center', InAppNotificationCenterComponent, { injector });- registerCustomElement('opce-ian-date-alerts-upsale', InAppNotificationsDateAlertsUpsaleComponent, { injector });- registerCustomElement('opce-share-upsale', ShareUpsaleComponent, { injector });registerCustomElement('opce-wp-split-view', WorkPackageSplitViewEntryComponent, { injector });registerCustomElement('opce-timer-account-menu', TimerAccountMenuComponent, { injector });registerCustomElement('opce-remote-field-updater', RemoteFieldUpdaterComponent, { injector });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.htmldeleted file mode 100644index 34043d6e6f1..00000000000--- a/frontend/src/app/features/enterprise/share-upsale/share-upsale.component.html+++ /dev/null@@ -1,6 +0,0 @@-<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.tsdeleted file mode 100644index f850e6bbc13..00000000000--- a/frontend/src/app/features/enterprise/share-upsale/share-upsale.component.ts+++ /dev/null@@ -1,21 +0,0 @@-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/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.htmldeleted file mode 100644index 34043d6e6f1..00000000000--- a/frontend/src/app/features/in-app-notifications/date-alerts-upsale/ian-date-alerts-upsale.component.html+++ /dev/null@@ -1,6 +0,0 @@-<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/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.tsdeleted file mode 100644index 0275a1c03c5..00000000000--- a/frontend/src/app/features/in-app-notifications/date-alerts-upsale/ian-date-alerts-upsale.component.ts+++ /dev/null@@ -1,21 +0,0 @@-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-ian-date-alerts-upsale',- templateUrl: './ian-date-alerts-upsale.component.html',- changeDetection: ChangeDetectionStrategy.OnPush,-})-export class InAppNotificationsDateAlertsUpsaleComponent {- video = videoPath('notification-center/date-alert-notifications.mp4');-- text = {- title: this.I18n.t('js.notifications.date_alerts.upsale.title'),- description: this.I18n.t('js.notifications.date_alerts.upsale.description'),- };-- constructor(- readonly I18n:I18nService,- ) { }-}diff --git a/frontend/src/app/features/in-app-notifications/in-app-notifications.module.ts b/frontend/src/app/features/in-app-notifications/in-app-notifications.module.tsindex d921e8f48c7..a37afc37245 100644--- a/frontend/src/app/features/in-app-notifications/in-app-notifications.module.ts+++ b/frontend/src/app/features/in-app-notifications/in-app-notifications.module.ts@@ -9,9 +9,6 @@ import {InAppNotificationCenterComponent,} from 'core-app/features/in-app-notifications/center/in-app-notification-center.component';import { IanCenterService } from 'core-app/features/in-app-notifications/center/state/ian-center.service';-import {- InAppNotificationsDateAlertsUpsaleComponent,-} from 'core-app/features/in-app-notifications/date-alerts-upsale/ian-date-alerts-upsale.component';import {InAppNotificationEntryComponent,} from 'core-app/features/in-app-notifications/entry/in-app-notification-entry.component';@@ -37,7 +34,6 @@ import { InAppNotificationStatusComponent } from './entry/status/in-app-notificaInAppNotificationStatusComponent,InAppNotificationActorsLineComponent,InAppNotificationDateAlertComponent,- InAppNotificationsDateAlertsUpsaleComponent,InAppNotificationRelativeTimeComponent,InAppNotificationReminderAlertComponent,],diff --git a/frontend/src/app/features/work-packages/routing/work-packages-routes.ts b/frontend/src/app/features/work-packages/routing/work-packages-routes.tsindex 1d32cd86c83..0b94fc7f0b5 100644--- a/frontend/src/app/features/work-packages/routing/work-packages-routes.ts+++ b/frontend/src/app/features/work-packages/routing/work-packages-routes.ts@@ -37,7 +37,6 @@ import { WorkPackageViewPageComponent } from 'core-app/features/work-packages/roimport { makeSplitViewRoutes } from 'core-app/features/work-packages/routing/split-view-routes.template';import { WorkPackageCopyFullViewComponent } from 'core-app/features/work-packages/components/wp-copy/wp-copy-full-view.component';import { KeepTabService } from 'core-app/features/work-packages/components/wp-single-view-tabs/keep-tab/keep-tab.service';-import { ShareUpsaleComponent } from 'core-app/features/enterprise/share-upsale/share-upsale.component';export const menuItemClass = 'work-packages-menu-item';export const sidemenuId = 'work_packages_sidemenu';@@ -162,11 +161,6 @@ export const WORK_PACKAGES_ROUTES:Ng2StateDeclaration[] = [menuItemClass,WorkPackageSplitViewComponent,),- {- url: '/share_upsale',- name: 'work-packages.share_upsale',- component: ShareUpsaleComponent,- },// Avoid lazy-loading the routes for now// {// name: 'work-packages.calendar.**',diff --git a/frontend/src/app/shared/shared.module.ts b/frontend/src/app/shared/shared.module.tsindex 07cbb80f2cc..08e6ec760ae 100644--- a/frontend/src/app/shared/shared.module.ts+++ b/frontend/src/app/shared/shared.module.ts@@ -88,7 +88,6 @@ import {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@@ -232,8 +231,6 @@ export function bootstrapModule(injector:Injector):void {OpLoadingProjectListComponent,OpNonWorkingDaysListComponent,-- ShareUpsaleComponent,],})export class OpSharedModule {diff --git a/frontend/src/global_styles/content/_enterprise.sass b/frontend/src/global_styles/content/_enterprise.sassindex 04e10759e46..fb456195d23 100644--- a/frontend/src/global_styles/content/_enterprise.sass+++ b/frontend/src/global_styles/content/_enterprise.sass@@ -55,6 +55,10 @@.upsale-coloredcolor: $spot-color-feedback-warning-dark+.upsale-colored-background+ background: $spot-color-feedback-warning-dark !important+ color: white !important+.upsale-border-coloredborder-color: $spot-color-feedback-warning-dark