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
WIP frontend code removal
Jonas Jabari43ce7910d804
diff --git a/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment-field-handler.ts b/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment-field-handler.tsdeleted file mode 100644index c5ec779f654..00000000000--- a/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment-field-handler.ts+++ /dev/null@@ -1,97 +0,0 @@-import { EditFieldHandler } from 'core-app/shared/components/fields/edit/editing-portal/edit-field-handler';-import { Directive, ElementRef, Injector, OnInit } from '@angular/core';-import { IFieldSchema } from 'core-app/shared/components/fields/field.base';-import { Subject } from 'rxjs';-import { WorkPackageChangeset } from 'core-app/features/work-packages/components/wp-edit/work-package-changeset';-import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';--@Directive()-export abstract class WorkPackageCommentFieldHandler extends EditFieldHandler implements OnInit {- public fieldName = 'comment';-- public handler = this;-- public active = false;-- public inEditMode = false;-- public inFlight = false;-- public change:WorkPackageChangeset;-- // Destroy events- public onDestroy = new Subject<void>();-- constructor(protected elementRef:ElementRef,- protected injector:Injector) {- super();- }-- public ngOnInit() {- this.change = new WorkPackageChangeset(this.workPackage);- }-- /**- * Handle saving the comment- */- public abstract handleUserSubmit():Promise<any>;-- public abstract get workPackage():WorkPackageResource;-- public reset(withText = '') {- if (withText.length > 0) {- withText += '\n';- }-- this.change.setValue('comment', { raw: withText });- }-- public get schema():IFieldSchema {- return {- name: I18n.t('js.label_comment'),- writable: true,- required: false,- type: '_comment',- hasDefault: false,- };- }-- public get rawComment() {- return _.get(this.commentValue, 'raw', '');- }-- public get commentValue() {- return this.change.value<{ raw:string }>('comment');- }-- public handleUserCancel() {- this.deactivate(true);- }-- public activate(withText?:string) {- this.active = true;- this.reset(withText);- }-- deactivate(focus:boolean):void {- this.active = false;- this.onDestroy.next();- this.onDestroy.complete();- }-- focus():void {- const trigger = this.elementRef.nativeElement.querySelector('.inplace-editing--trigger-container');- trigger && trigger.focus();- }-- handleUserKeydown(event:JQuery.TriggeredEvent, onlyCancel?:boolean):void {- }-- isChanged():boolean {- return false;- }-- stopPropagation(evt:JQuery.TriggeredEvent):boolean {- return false;- }-}diff --git a/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment.component.html b/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment.component.htmldeleted file mode 100644index 4b5a5faa808..00000000000--- a/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment.component.html+++ /dev/null@@ -1,13 +0,0 @@-<div id="work-package-activites-container">- <turbo-frame [src]="turboFrameSrc" id="work-package-activities-tab-content" loading="lazy">- <op-content-loader viewBox="0 0 100 100">- <svg:rect x="0" y="0" width="70" height="5" rx="1" />-- <svg:rect x="75" y="0" width="25" height="5" rx="1" />-- <svg:rect x="0" y="10" width="100" height="8" rx="1" />-- <svg:rect x="0" y="25" width="100" height="12" rx="1" />- </op-content-loader>- </turbo-frame>-</div>diff --git a/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment.component.ts b/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment.component.tsdeleted file mode 100644index 61d3cc5e682..00000000000--- a/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment.component.ts+++ /dev/null@@ -1,215 +0,0 @@-//-- copyright-// OpenProject is an open source project management software.-// Copyright (C) the OpenProject GmbH-//-// This program is free software; you can redistribute it and/or-// modify it under the terms of the GNU General Public License version 3.-//-// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-// Copyright (C) 2006-2013 Jean-Philippe Lang-// Copyright (C) 2010-2013 the ChiliProject Team-//-// This program is free software; you can redistribute it and/or-// modify it under the terms of the GNU General Public License-// as published by the Free Software Foundation; either version 2-// of the License, or (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU General Public License for more details.-//-// You should have received a copy of the GNU General Public License-// along with this program; if not, write to the Free Software-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-//-// See COPYRIGHT and LICENSE files for more details.-//++--import { LoadingIndicatorService } from 'core-app/core/loading-indicator/loading-indicator.service';-import {- ChangeDetectionStrategy,- ChangeDetectorRef,- Component,- ContentChild,- ElementRef,- Injector,- Input,- OnDestroy,- OnInit,- TemplateRef,- ViewChild,-} from '@angular/core';-import { ConfigurationService } from 'core-app/core/config/configuration.service';-import { ToastService } from 'core-app/shared/components/toaster/toast.service';-import { I18nService } from 'core-app/core/i18n/i18n.service';-import { WorkPackageNotificationService } from 'core-app/features/work-packages/services/notifications/work-package-notification.service';-import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';-import { WorkPackageCommentFieldHandler } from 'core-app/features/work-packages/components/work-package-comment/work-package-comment-field-handler';-import { CommentService } from 'core-app/features/work-packages/components/wp-activity/comment-service';-import { WorkPackagesActivityService } from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/wp-activity.service';-import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';-import { ErrorResource } from 'core-app/features/hal/resources/error-resource';-import { HalError } from 'core-app/features/hal/services/hal-error';-import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';-import {- filter,- take,-} from 'rxjs/operators';--@Component({- selector: 'work-package-comment',- changeDetection: ChangeDetectionStrategy.OnPush,- templateUrl: './work-package-comment.component.html',-})-export class WorkPackageCommentComponent extends WorkPackageCommentFieldHandler implements OnInit, OnDestroy {- @Input() public workPackage:WorkPackageResource;-- @ContentChild(TemplateRef) template:TemplateRef<any>;-- @ViewChild('commentContainer') public commentContainer:ElementRef;-- public text = {- editTitle: this.I18n.t('js.label_add_comment_title'),- addComment: this.I18n.t('js.label_add_comment'),- cancelTitle: this.I18n.t('js.label_cancel_comment'),- placeholder: this.I18n.t('js.label_add_comment_title'),- };-- public fieldLabel:string = this.text.editTitle;-- public inFlight = false;-- public canAddComment:boolean;-- public showAbove:boolean;-- public turboFrameSrc:string;-- public htmlId = 'wp-comment-field';-- constructor(- protected elementRef:ElementRef,- protected injector:Injector,- protected commentService:CommentService,- protected wpLinkedActivities:WorkPackagesActivityService,- protected configurationService:ConfigurationService,- protected loadingIndicator:LoadingIndicatorService,- protected apiV3Service:ApiV3Service,- protected workPackageNotificationService:WorkPackageNotificationService,- protected toastService:ToastService,- protected cdRef:ChangeDetectorRef,- protected I18n:I18nService,- readonly PathHelper:PathHelperService,- ) {- super(elementRef, injector);- }-- public ngOnInit():void {- super.ngOnInit();-- this.canAddComment = !!this.workPackage.addComment;- this.showAbove = this.configurationService.commentsSortedInDescendingOrder();- this.turboFrameSrc = `${this.PathHelper.staticBase}/work_packages/${this.workPackage.id}/activities`;-- this.commentService.draft$- .pipe(- this.untilDestroyed(),- take(1),- filter((val) => !!val),- )- .subscribe((draft:string) => {- this.activate(draft);- });-- this.commentService.quoteEvents$- .pipe(- this.untilDestroyed(),- )- .subscribe((quote:string) => {- this.activate(quote);- this.commentContainer.nativeElement.scrollIntoView();- });- }-- public ngOnDestroy():void {- super.ngOnDestroy();- this.commentService.draft$.next(this.active ? this.rawComment : null);- }-- // Open the field when its closed and relay drag & drop events to it.- public startDragOverActivation(event:JQuery.TriggeredEvent):boolean {- if (this.active) {- return true;- }-- this.activate();-- event.preventDefault();- return false;- }-- public activate(withText?:string):void {- super.activate(withText);-- if (!this.showAbove) {- this.scrollToBottom();- }-- this.cdRef.detectChanges();- }-- public deactivate(focus:boolean):void {- focus && this.focus();- this.active = false;- this.cdRef.detectChanges();- }-- public async handleUserSubmit():Promise<unknown> {- if (this.inFlight || !this.rawComment) {- return Promise.resolve();- }-- this.inFlight = true;- await this.onSubmit();- const indicator = this.loadingIndicator.wpDetails;- indicator.promise = this.commentService.createComment(this.workPackage, this.commentValue)- .then(() => {- this.active = false;- this.toastService.addSuccess(this.I18n.t('js.work_packages.comment_added'));-- void this.wpLinkedActivities.require(this.workPackage, true);- void this- .apiV3Service- .work_packages- .id(this.workPackage.id!)- .refresh();-- this.inFlight = false;- this.deactivate(true);- })- .catch((error:any) => {- this.inFlight = false;- if (error instanceof HalError) {- this.workPackageNotificationService.showError(error.resource, this.workPackage);- } else {- this.toastService.addError(this.I18n.t('js.work_packages.comment_send_failed'));- }- });-- return indicator.promise;- }-- scrollToBottom():void {- const scrollableContainer = jQuery(this.elementRef.nativeElement).scrollParent()[0];- if (scrollableContainer) {- setTimeout(() => {- scrollableContainer.scrollTop = scrollableContainer.scrollHeight;- }, 400);- }- }-- setErrors(newErrors:string[]):void {- // interface- }-}diff --git a/frontend/src/app/features/work-packages/components/work-package-comment/wp-comment-field.component.ts b/frontend/src/app/features/work-packages/components/work-package-comment/wp-comment-field.component.tsdeleted file mode 100644index 92cc99d2ea7..00000000000--- a/frontend/src/app/features/work-packages/components/work-package-comment/wp-comment-field.component.ts+++ /dev/null@@ -1,53 +0,0 @@-//-- copyright-// OpenProject is an open source project management software.-// Copyright (C) the OpenProject GmbH-//-// This program is free software; you can redistribute it and/or-// modify it under the terms of the GNU General Public License version 3.-//-// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-// Copyright (C) 2006-2013 Jean-Philippe Lang-// Copyright (C) 2010-2013 the ChiliProject Team-//-// This program is free software; you can redistribute it and/or-// modify it under the terms of the GNU General Public License-// as published by the Free Software Foundation; either version 2-// of the License, or (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU General Public License for more details.-//-// You should have received a copy of the GNU General Public License-// along with this program; if not, write to the Free Software-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-//-// See COPYRIGHT and LICENSE files for more details.-//++--import { ConfigurationService } from 'core-app/core/config/configuration.service';-import { Component, OnInit } from '@angular/core';-import {- FormattableEditFieldComponent,-} from 'core-app/shared/components/fields/edit/field-types/formattable-edit-field/formattable-edit-field.component';-import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';--@Component({- templateUrl: '../../../../shared/components/fields/edit/field-types/formattable-edit-field/formattable-edit-field.component.html',-})-export class WorkPackageCommentFieldComponent extends FormattableEditFieldComponent implements OnInit {- public isBusy = false;-- public name = 'comment';-- @InjectField() public ConfigurationService:ConfigurationService;-- public get required() {- return true;- }-- ngOnInit() {- super.ngOnInit();- }-}diff --git a/frontend/src/app/features/work-packages/components/wp-activity/activity-entry.component.html b/frontend/src/app/features/work-packages/components/wp-activity/activity-entry.component.htmldeleted file mode 100644index 922168bd33c..00000000000--- a/frontend/src/app/features/work-packages/components/wp-activity/activity-entry.component.html+++ /dev/null@@ -1,21 +0,0 @@-<div- id="activity-{{ activityNo }}"- [attr.data-qa-activity-number]="activityNo"- [ngSwitch]="activityType"->- <revision-activity- *ngSwitchCase="'Revision'"- [workPackage]="workPackage"- [activity]="activity"- [activityNo]="activityNo"- [hasUnreadNotification]="hasUnreadNotification"- ></revision-activity>- <user-activity- *ngSwitchDefault- [workPackage]="workPackage"- [activity]="activity"- [activityNo]="activityNo"- [isInitial]="isInitial"- [hasUnreadNotification]="hasUnreadNotification"- ></user-activity>-</div>diff --git a/frontend/src/app/features/work-packages/components/wp-activity/activity-entry.component.ts b/frontend/src/app/features/work-packages/components/wp-activity/activity-entry.component.tsdeleted file mode 100644index 211d2554c54..00000000000--- a/frontend/src/app/features/work-packages/components/wp-activity/activity-entry.component.ts+++ /dev/null@@ -1,64 +0,0 @@-//-- copyright-// OpenProject is an open source project management software.-// Copyright (C) the OpenProject GmbH-//-// This program is free software; you can redistribute it and/or-// modify it under the terms of the GNU General Public License version 3.-//-// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-// Copyright (C) 2006-2013 Jean-Philippe Lang-// Copyright (C) 2010-2013 the ChiliProject Team-//-// This program is free software; you can redistribute it and/or-// modify it under the terms of the GNU General Public License-// as published by the Free Software Foundation; either version 2-// of the License, or (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU General Public License for more details.-//-// You should have received a copy of the GNU General Public License-// along with this program; if not, write to the Free Software-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-//-// See COPYRIGHT and LICENSE files for more details.-//++--import { Component, Input, OnInit } from '@angular/core';-import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';-import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';-import { I18nService } from 'core-app/core/i18n/i18n.service';-import idFromLink from 'core-app/features/hal/helpers/id-from-link';--@Component({- selector: 'activity-entry',- templateUrl: './activity-entry.component.html',-})-export class ActivityEntryComponent implements OnInit {- @Input() public workPackage:WorkPackageResource;-- @Input() public activity:any;-- @Input() public activityNo:number;-- @Input() public isInitial:boolean;-- @Input() public hasUnreadNotification:boolean;-- public projectId:string;-- public activityType:string;-- constructor(- readonly PathHelper:PathHelperService,- readonly I18n:I18nService,- ) { }-- ngOnInit() {- this.projectId = idFromLink(this.workPackage.project.href);-- this.activityType = this.activity._type;- }-}diff --git a/frontend/src/app/features/work-packages/components/wp-activity/activity-link.component.ts b/frontend/src/app/features/work-packages/components/wp-activity/activity-link.component.tsdeleted file mode 100644index f03302840f2..00000000000--- a/frontend/src/app/features/work-packages/components/wp-activity/activity-link.component.ts+++ /dev/null@@ -1,41 +0,0 @@-import { Component, Input, OnInit } from '@angular/core';-import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';--@Component({- selector: 'activity-link',- template: `- <a id ="{{ activityHtmlId }}-link"- [textContent]="activityLabel"- uiSref="work-packages.show"- [uiParams]="{workPackageId: workPackage.id!, '#': activityHtmlId }">- </a>- `,-})-export class ActivityLinkComponent implements OnInit {- @Input() public workPackage:WorkPackageResource;-- @Input() public activityNo:number;-- public activityHtmlId:string;-- public activityLabel:string;-- ngOnInit() {- this.activityHtmlId = `activity-${this.activityNo}`;- this.activityLabel = `#${this.activityNo}`;- }-}--function activityLink() {- return {- restrict: 'E',- template: `- `,- scope: {- },- link(scope:any) {- scope.workPackageId = scope.workPackage.id!;- scope.activityHtmlId = `activity-${scope.activityNo}`;- },- };-}diff --git a/frontend/src/app/features/work-packages/components/wp-activity/comment-service.ts b/frontend/src/app/features/work-packages/components/wp-activity/comment-service.tsdeleted file mode 100644index b589c438879..00000000000--- a/frontend/src/app/features/work-packages/components/wp-activity/comment-service.ts+++ /dev/null@@ -1,88 +0,0 @@-//-- copyright-// OpenProject is an open source project management software.-// Copyright (C) the OpenProject GmbH-//-// This program is free software; you can redistribute it and/or-// modify it under the terms of the GNU General Public License version 3.-//-// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-// Copyright (C) 2006-2013 Jean-Philippe Lang-// Copyright (C) 2010-2013 the ChiliProject Team-//-// This program is free software; you can redistribute it and/or-// modify it under the terms of the GNU General Public License-// as published by the Free Software Foundation; either version 2-// of the License, or (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU General Public License for more details.-//-// You should have received a copy of the GNU General Public License-// along with this program; if not, write to the Free Software-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-//-// See COPYRIGHT and LICENSE files for more details.-//++--import { Injectable } from '@angular/core';-import { I18nService } from 'core-app/core/i18n/i18n.service';-import { ToastService } from 'core-app/shared/components/toaster/toast.service';-import {- BehaviorSubject,- Subject,-} from 'rxjs';-import { WorkPackageNotificationService } from 'core-app/features/work-packages/services/notifications/work-package-notification.service';-import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';-import { HalResource } from 'core-app/features/hal/resources/hal-resource';--@Injectable()-export class CommentService {- public quoteEvents$ = new Subject<string>();-- public draft$ = new BehaviorSubject<string|null>(null);-- constructor(- readonly I18n:I18nService,- private workPackageNotificationService:WorkPackageNotificationService,- private toastService:ToastService,- ) {- }-- public createComment(workPackage:WorkPackageResource, comment:{ raw:string }) {- return workPackage.addComment(- { comment },- { 'Content-Type': 'application/json; charset=UTF-8' },- )- .catch((error:any) => this.errorAndReject(error, workPackage));- }-- public updateComment(activity:HalResource, comment:string) {- const options = {- ajax: {- method: 'PATCH',- data: JSON.stringify({ comment }),- contentType: 'application/json; charset=utf-8',- },- };-- return activity.update(- { comment },- { 'Content-Type': 'application/json; charset=UTF-8' },- ).then((activity:HalResource) => {- this.toastService.addSuccess(- this.I18n.t('js.work_packages.comment_updated'),- );-- return activity;- }).catch((error:any) => this.errorAndReject(error));- }-- private errorAndReject(error:HalResource, workPackage?:WorkPackageResource) {- this.workPackageNotificationService.handleRawError(error, workPackage);-- // returning a reject will enable to correctly work with subsequent then/catch handlers.- return Promise.reject(error);- }-}diff --git a/frontend/src/app/features/work-packages/components/wp-activity/revision/revision-activity.component.html b/frontend/src/app/features/work-packages/components/wp-activity/revision/revision-activity.component.htmldeleted file mode 100644index d8c370c1afc..00000000000--- a/frontend/src/app/features/work-packages/components/wp-activity/revision/revision-activity.component.html+++ /dev/null@@ -1,43 +0,0 @@-<div- class="work-package-details-activities-activity-contents"- *ngIf="workPackage"- [attr.data-notification-selector]="hasUnreadNotification ? 'notification-activity' : null"->- <div class="comments-number">- <span- *ngIf="hasUnreadNotification"- class="comments-number--bubble op-bubble op-bubble_mini"- data-test-selector="revision-activity-bubble"- ></span>- <activity-link- class="comments-number--link"- [workPackage]="workPackage"- [activityNo]="activityNo"- ></activity-link>- </div>-- <op-principal- *ngIf="activity.author"- [principal]="activity.author"- [hideName]="true"- ></op-principal>-- <op-principal- *ngIf="!activity.author && userName"- [principal]="{ name: userName }"- [hideName]="true"- ></op-principal>-- <span class="user" *ngIf="userActive">- <a- [attr.href]="userPath"- [attr.aria-label]="userLabel"- [textContent]="userName"- ></a>- </span>- <span class="user" *ngIf="!userActive" [textContent]="userName"></span> - <span class="revision-activity--revision-link date" [innerHtml]="revisionLink"></span>- <span class="user-comment wiki">- <span class="message" [innerHtml]="message"></span>- </span>-</div>diff --git a/frontend/src/app/features/work-packages/components/wp-activity/revision/revision-activity.component.ts b/frontend/src/app/features/work-packages/components/wp-activity/revision/revision-activity.component.tsdeleted file mode 100644index d7021d5bc6e..00000000000--- a/frontend/src/app/features/work-packages/components/wp-activity/revision/revision-activity.component.ts+++ /dev/null@@ -1,124 +0,0 @@-//-- copyright-// OpenProject is an open source project management software.-// Copyright (C) the OpenProject GmbH-//-// This program is free software; you can redistribute it and/or-// modify it under the terms of the GNU General Public License version 3.-//-// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-// Copyright (C) 2006-2013 Jean-Philippe Lang-// Copyright (C) 2010-2013 the ChiliProject Team-//-// This program is free software; you can redistribute it and/or-// modify it under the terms of the GNU General Public License-// as published by the Free Software Foundation; either version 2-// of the License, or (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU General Public License for more details.-//-// You should have received a copy of the GNU General Public License-// along with this program; if not, write to the Free Software-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-//-// See COPYRIGHT and LICENSE files for more details.-//++-import {- ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnInit,-} from '@angular/core';-import { I18nService } from 'core-app/core/i18n/i18n.service';-import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';-import { TimezoneService } from 'core-app/core/datetime/timezone.service';-import { UserResource } from 'core-app/features/hal/resources/user-resource';-import { ProjectResource } from 'core-app/features/hal/resources/project-resource';-import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';-import idFromLink from 'core-app/features/hal/helpers/id-from-link';--@Component({- selector: 'revision-activity',- changeDetection: ChangeDetectionStrategy.OnPush,- templateUrl: './revision-activity.component.html',-})-export class RevisionActivityComponent implements OnInit {- @Input() public workPackage:WorkPackageResource;-- @Input() public activity:any;-- @Input() public activityNo:number;-- @Input() public hasUnreadNotification:boolean;-- public userId:string | number;-- public userName:string;-- public userActive:boolean;-- public userPath:string | null;-- public userLabel:string;-- public userAvatar:string;-- public project:ProjectResource;-- public revision:string;-- public message:string;-- public revisionLink:string;-- constructor(readonly I18n:I18nService,- readonly timezoneService:TimezoneService,- readonly cdRef:ChangeDetectorRef,- readonly apiV3Service:ApiV3Service) {- }-- ngOnInit() {- this.loadAuthor();-- this.project = this.workPackage.project;- this.revision = this.activity.identifier;- this.message = this.activity.message.html;-- const revisionPath = this.activity.showRevision.$link.href;- const formattedRevision = this.activity.formattedIdentifier;-- const link = document.createElement('a');- link.href = revisionPath;- link.title = this.revision;- link.textContent = this.I18n.t(- 'js.label_committed_link',- { revision_identifier: formattedRevision },- );-- this.revisionLink = this.I18n.t('js.label_committed_at',- {- committed_revision_link: link.outerHTML,- date: this.timezoneService.formattedDatetime(this.activity.createdAt),- });- }-- private loadAuthor() {- if (this.activity.author === undefined) {- this.userName = this.activity.authorName;- } else {- this- .apiV3Service- .users- .id(idFromLink(this.activity.author.href))- .get()- .subscribe((user:UserResource) => {- this.userId = user.id!;- this.userName = user.name;- this.userActive = user.isActive;- this.userAvatar = user.avatar;- this.userPath = user.showUser.href;- this.userLabel = this.I18n.t('js.label_author', { user: this.userName });- this.cdRef.detectChanges();- });- }- }-}diff --git a/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.html b/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.htmldeleted file mode 100644index c1d56fb1f91..00000000000--- a/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.html+++ /dev/null@@ -1,84 +0,0 @@-<div- class="op-user-activity work-package-details-activities-activity-contents"- *ngIf="workPackage"- [attr.data-notification-selector]="hasUnreadNotification ? 'notification-activity' : null"- (mouseenter)="focus()"- (mouseleave)="blur()"->- <div class="op-user-activity--user-line">- <op-principal- *ngIf="userName"- [principal]="user"- [hideName]="true"- class="op-user-activity--avatar"- ></op-principal>-- <div>- <op-user-link class="op-user-activity--user-name" [user]="user"></op-user-link>- <span class="op-user-activity--date">- {{ isInitial ? text.label_created_on : text.label_updated_on }}- <op-date-time [dateTimeValue]="activity.createdAt"></op-date-time>- </span>- </div>- </div>- <div class="comments-number">- <span- *ngIf="hasUnreadNotification"- class="comments-number--bubble op-bubble op-bubble_mini"- data-test-selector="user-activity-bubble"- ></span>- <activity-link- class="comments-number--link"- [workPackage]="workPackage"- [activityNo]="activityNo"- ></activity-link>- <div- class="comments-icons"- [hidden]="shouldHideIcons()"- >- <button- type="button"- *ngIf="userCanQuote"- class="spot-link"- [title]="text.quote_comment"- (click)="quoteComment()"- >- <op-icon icon-classes="action-icon icon-quote"></op-icon>- </button>- <button- *ngIf="userCanEdit"- type="button"- class="spot-link"- [ngClass]="'edit-activity--' + activityNo"- [title]="text.edit_comment"- (click)="activate()"- >- <op-icon icon-classes="action-icon icon-edit"></op-icon>- </button>- </div>- </div>- <img- *ngIf="bcfSnapshotUrl"- [src]="bcfSnapshotUrl"- class="activity-thumbnail"- />- <div class="user-comment" >- <div *ngIf="active" class="inplace-edit">- <div class="user-comment--form inplace-edit--write-value">- <edit-form-portal- [changeInput]="change"- [schemaInput]="schema"- [editFieldHandler]="handler"- ></edit-form-portal>- </div>- </div>- <div class="message" *ngIf="!active && (isComment || isBcfComment)">- <div class="op-uc-container" [innerHtml]="postedComment"></div>- </div>- <ul class="work-package-details-activities-messages" *ngIf="!isInitial">- <li *ngFor="let detail of details">- <span class="message" [innerHtml]="detail"></span>- </li>- </ul>- </div>-</div>diff --git a/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.sass b/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.sassdeleted file mode 100644index ce36c8c35ab..00000000000--- a/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.sass+++ /dev/null@@ -1,23 +0,0 @@-@import "helpers"--.op-user-activity- &--user-line- display: flex- align-items: center- margin-right: 50px- @include text-shortener(false)-- &--user-name- display: block- font-weight: var(--base-text-weight-bold)- line-height: 16px- margin-bottom: 3px-- &--date- display: block- font-size: 0.8rem- color: var(--fgColor-muted)-- &--avatar- flex-shrink: 0- margin-right: 0.5remdiff --git a/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.ts b/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.tsdeleted file mode 100644index 228b3d6518d..00000000000--- a/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.ts+++ /dev/null@@ -1,271 +0,0 @@-//-- copyright-// OpenProject is an open source project management software.-// Copyright (C) the OpenProject GmbH-//-// This program is free software; you can redistribute it and/or-// modify it under the terms of the GNU General Public License version 3.-//-// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-// Copyright (C) 2006-2013 Jean-Philippe Lang-// Copyright (C) 2010-2013 the ChiliProject Team-//-// This program is free software; you can redistribute it and/or-// modify it under the terms of the GNU General Public License-// as published by the Free Software Foundation; either version 2-// of the License, or (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU General Public License for more details.-//-// You should have received a copy of the GNU General Public License-// along with this program; if not, write to the Free Software-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-//-// See COPYRIGHT and LICENSE files for more details.-//++--import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';-import { ConfigurationService } from 'core-app/core/config/configuration.service';-import {- ApplicationRef,- ChangeDetectionStrategy,- ChangeDetectorRef,- Component,- ElementRef,- Injector,- Input,- NgZone,- OnInit,-} from '@angular/core';-import { I18nService } from 'core-app/core/i18n/i18n.service';-import { DomSanitizer, SafeHtml } from '@angular/platform-browser';-import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';-import {- WorkPackageCommentFieldHandler,-} from 'core-app/features/work-packages/components/work-package-comment/work-package-comment-field-handler';-import {- WorkPackagesActivityService,-} from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/wp-activity.service';-import { CommentService } from 'core-app/features/work-packages/components/wp-activity/comment-service';-import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';-import { UserResource } from 'core-app/features/hal/resources/user-resource';-import { HalResource } from 'core-app/features/hal/resources/hal-resource';-import idFromLink from 'core-app/features/hal/helpers/id-from-link';-import { DeviceService } from 'core-app/core/browser/device.service';--@Component({- // eslint-disable-next-line @angular-eslint/component-selector- selector: 'user-activity',- changeDetection: ChangeDetectionStrategy.OnPush,- templateUrl: './user-activity.component.html',- styleUrls: ['./user-activity.component.sass'],-})-export class UserActivityComponent extends WorkPackageCommentFieldHandler implements OnInit {- @Input() public workPackage:WorkPackageResource;-- @Input() public activity:HalResource;-- @Input() public activityNo:number;-- @Input() public isInitial:boolean;-- @Input() public hasUnreadNotification:boolean;-- private additionalScrollMargin = 200;-- public userCanEdit = false;-- public userCanQuote = false;-- public userId:string|number;-- public user:UserResource;-- public userName:string;-- public userAvatar:string;-- public details:any[] = [];-- public isComment:boolean;-- public isBcfComment:boolean;-- public postedComment:SafeHtml;-- public focused = false;-- public text = {- label_created_on: this.I18n.t('js.label_created_on'),- label_updated_on: this.I18n.t('js.label_updated_on'),- quote_comment: this.I18n.t('js.label_quote_comment'),- edit_comment: this.I18n.t('js.label_edit_comment'),- };-- private $element:JQuery;-- constructor(- readonly elementRef:ElementRef,- readonly injector:Injector,- readonly sanitization:DomSanitizer,- readonly PathHelper:PathHelperService,- readonly wpLinkedActivities:WorkPackagesActivityService,- readonly commentService:CommentService,- readonly configurationService:ConfigurationService,- readonly apiV3Service:ApiV3Service,- readonly cdRef:ChangeDetectorRef,- readonly I18n:I18nService,- readonly ngZone:NgZone,- readonly deviceService:DeviceService,- protected appRef:ApplicationRef,- ) {- super(elementRef, injector);- }-- public ngOnInit() {- super.ngOnInit();-- this.htmlId = `user_activity_edit_field_${this.activityNo}`;- this.updateCommentText();- this.isComment = this.activity._type === 'Activity::Comment';- this.isBcfComment = this.activity._type === 'Activity::BcfComment';-- this.$element = jQuery(this.elementRef.nativeElement);- this.reset();- this.userCanEdit = !!this.activity.update;- this.userCanQuote = !!this.workPackage.addComment;-- this.$element.bind('focusin', this.focus.bind(this));- this.$element.bind('focusout', this.blur.bind(this));-- _.each(this.activity.details, (detail:{ html:string }) => {- this.details.push(this.sanitization.bypassSecurityTrustHtml(detail.html));- });-- this- .apiV3Service- .users- .id(idFromLink(this.activity.user.href))- .get()- .subscribe((user:UserResource) => {- this.user = user;- this.userId = user.id!;- this.userName = user.name;- this.userAvatar = user.avatar;- this.cdRef.detectChanges();- });-- if (window.location.hash === `#activity-${this.activityNo}`) {- this.ngZone.runOutsideAngular(() => {- setTimeout(() => {- if (this.deviceService.isMobile) {- (this.elementRef.nativeElement as HTMLElement).scrollIntoView(true);- return;- }- const activityElement = document.querySelectorAll(`[data-qa-activity-number='${this.activityNo}']`)[0] as HTMLElement;- const scrollContainer = document.querySelectorAll('[data-notification-selector=\'notification-scroll-container\']')[0];- const scrollOffset = activityElement.offsetTop - (scrollContainer as HTMLElement).offsetTop - this.additionalScrollMargin;- scrollContainer.scrollTop = scrollOffset;- });- });- }- }-- public shouldHideIcons():boolean {- return !((this.isComment || this.isBcfComment) && this.focussing());- }-- public activate() {- super.activate(this.activity.comment.raw);- this.cdRef.detectChanges();- }-- public handleUserSubmit() {- if (this.inFlight || !this.rawComment) {- return Promise.resolve();- }- return this.updateComment();- }-- public quoteComment() {- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access- this.commentService.quoteEvents$.next(this.quotedText(this.activity.comment.raw));- }-- public get bcfSnapshotUrl() {- if (_.get(this.activity, 'bcfViewpoints[0]')) {- return `${_.get(this.activity, 'bcfViewpoints[0]').href}/snapshot`;- }- return null;- }-- public async updateComment():Promise<unknown> {- this.inFlight = true;-- await this.onSubmit();- // eslint-disable-next-line @typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-return- return this.commentService.updateComment(this.activity, this.rawComment || '')- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access- .then((newActivity:HalResource) => {- this.activity = newActivity;- this.updateCommentText();- this.wpLinkedActivities.require(this.workPackage, true);- this- .apiV3Service- .work_packages- .cache- .updateWorkPackage(this.workPackage);- })- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access- .finally(() => {- this.deactivate(true);- this.inFlight = false;- });- }-- public focusEditIcon() {- // Find the according edit icon and focus it- jQuery(`.edit-activity--${this.activityNo} a`).focus();- }-- public focus() {- this.focused = true;- this.cdRef.detectChanges();- }-- public blur() {- this.focused = false;- this.cdRef.detectChanges();- }-- public focussing() {- return this.focused;- }-- setErrors(_newErrors:string[]):void {- // interface- }-- public quotedText(rawComment:string) {- const quoted = rawComment.split('\n')- .map((line:string) => `\n> ${line}`)- .join('');- const userWrote = this.I18n.instance_locale_translate('js.text_user_wrote', { value: this.userName });- return `${userWrote}\n${quoted}`;- }-- deactivate(focus:boolean):void {- super.deactivate(focus);-- if (focus) {- this.focusEditIcon();- }- }-- private updateCommentText() {- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-member-access- this.postedComment = this.sanitization.bypassSecurityTrustHtml(this.activity.comment.html);- }-}diff --git a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-base.controller.ts b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-base.controller.tsindex bbc9236fcf7..6f77ddbc86f 100644--- a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-base.controller.ts+++ b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-base.controller.ts@@ -45,6 +45,7 @@ import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { WpSingleViewService } from 'core-app/features/work-packages/routing/wp-view-base/state/wp-single-view.service';import { BrowserDetector } from 'core-app/core/browser/browser-detector.service';import { DeviceService } from 'core-app/core/browser/device.service';+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';@Directive()export class ActivityPanelBaseController extends UntilDestroyedMixin implements OnInit {@@ -71,6 +72,8 @@ export class ActivityPanelBaseController extends UntilDestroyedMixin implementsshowAll: this.I18n.t('js.label_activity_show_all'),};+ public turboFrameSrc:string;+private additionalScrollMargin = 200;private initialized = false;@@ -87,6 +90,7 @@ export class ActivityPanelBaseController extends UntilDestroyedMixin implementsreadonly browserDetector:BrowserDetector,private wpSingleViewService:WpSingleViewService,readonly deviceService:DeviceService,+ readonly pathHelper:PathHelperService,) {super();@@ -121,6 +125,8 @@ export class ActivityPanelBaseController extends UntilDestroyedMixin implements.subscribe(() => {this.reloadActivities();});++ this.turboFrameSrc = `${this.pathHelper.staticBase}/work_packages/${this.workPackage.id}/activities`;}private scrollIfNotificationPresent() {diff --git a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-on-overview.component.ts b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-on-overview.component.tsdeleted file mode 100644index 71465b5b376..00000000000--- a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-on-overview.component.ts+++ /dev/null@@ -1,74 +0,0 @@-//-- copyright-// OpenProject is an open source project management software.-// Copyright (C) the OpenProject GmbH-//-// This program is free software; you can redistribute it and/or-// modify it under the terms of the GNU General Public License version 3.-//-// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-// Copyright (C) 2006-2013 Jean-Philippe Lang-// Copyright (C) 2010-2013 the ChiliProject Team-//-// This program is free software; you can redistribute it and/or-// modify it under the terms of the GNU General Public License-// as published by the Free Software Foundation; either version 2-// of the License, or (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU General Public License for more details.-//-// You should have received a copy of the GNU General Public License-// along with this program; if not, write to the Free Software-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-//-// See COPYRIGHT and LICENSE files for more details.-//++--import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';-import { ActivityPanelBaseController } from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-base.controller';-import { ChangeDetectionStrategy, Component, Input } from '@angular/core';-import { HalResource } from 'core-app/features/hal/resources/hal-resource';-import { ActivityEntryInfo } from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-entry-info';-import { trackByProperty } from 'core-app/shared/helpers/angular/tracking-functions';--@Component({- selector: 'newest-activity-on-overview',- templateUrl: './activity-on-overview.html',- changeDetection: ChangeDetectionStrategy.OnPush,-})-export class NewestActivityOnOverviewComponent extends ActivityPanelBaseController {- @Input('workPackage') public workPackage:WorkPackageResource;-- public latestActivityInfo:ActivityEntryInfo[] = [];-- public trackByIdentifier = trackByProperty('identifier');-- ngOnInit() {- this.workPackageId = this.workPackage.id!;- super.ngOnInit();- }-- protected shouldShowToggler() {- return false;- }-- protected updateActivities(activities:any) {- super.updateActivities(activities);- this.latestActivityInfo = this.latestActivities();- }-- private latestActivities(visible = 3) {- if (this.reverse) {- // In reverse, we already get reversed entries from API.- // So simply take the first three- const segment = this.unfilteredActivities.slice(0, visible);- return segment.map((el:HalResource, i:number) => this.info(el, i));- }- // In ascending sort, take the last three items- const segment = this.unfilteredActivities.slice(-visible);- const startIndex = this.unfilteredActivities.length - segment.length;- return segment.map((el:HalResource, i:number) => this.info(el, startIndex + i));- }-}diff --git a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-on-overview.html b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-on-overview.htmldeleted file mode 100644index 260a835c526..00000000000--- a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-on-overview.html+++ /dev/null@@ -1,15 +0,0 @@-<work-package-comment [workPackage]="workPackage">- <ng-template>- <div class='work-package-details-activities-list'>- <div *ngFor="let inf of latestActivityInfo; trackBy:trackByIdentifier"- class="work-package-details-activities-activity">- <activity-entry [workPackage]="workPackage"- [activity]="inf.activity"- [activityNo]="inf.number(inf.isReversed)"- [hasUnreadNotification]="hasUnreadNotification(inf.href) | async"- [isInitial]="inf.isInitial()">- </activity-entry>- </div>- </div>- </ng-template>-</work-package-comment>diff --git a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-tab.html b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-tab.htmlindex d3e9cc37c26..4b5a5faa808 100644--- a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-tab.html+++ b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-tab.html@@ -1,38 +1,13 @@-<work-package-comment *ngIf="workPackage" [workPackage]="workPackage">- <ng-template>- <div class="detail-activity">- <div class="work-package-details-activities-list">- <div- *ngFor="let inf of visibleActivities; trackBy:trackByIdentifier; let first = first"- class="work-package-details-activities-activity"- >- <h4- class="activity-date"- [ngClass]="{'-with-toggler': first && showToggler}"- *ngIf="first || inf.isNextDate"- >- <span- class="activity-date--label"- [textContent]="inf.date"- ></span>- <button- *ngIf="first && showToggler"- type="button"- class="activity-comments--toggler button -small -transparent -with-icon icon-filter icon-small hide-when-print"- [textContent]="togglerText"- (click)="toggleComments()"- ></button>- </h4>-- <activity-entry- [workPackage]="workPackage"- [activity]="inf.activity"- [activityNo]="inf.number(inf.isReversed)"- [hasUnreadNotification]="hasUnreadNotification(inf.href) | async"- [isInitial]="inf.isInitial()"- ></activity-entry>- </div>- </div>- </div>- </ng-template>-</work-package-comment>+<div id="work-package-activites-container">+ <turbo-frame [src]="turboFrameSrc" id="work-package-activities-tab-content" loading="lazy">+ <op-content-loader viewBox="0 0 100 100">+ <svg:rect x="0" y="0" width="70" height="5" rx="1" />++ <svg:rect x="75" y="0" width="25" height="5" rx="1" />++ <svg:rect x="0" y="10" width="100" height="8" rx="1" />++ <svg:rect x="0" y="25" width="100" height="12" rx="1" />+ </op-content-loader>+ </turbo-frame>+</div>diff --git a/frontend/src/app/features/work-packages/openproject-work-packages.module.ts b/frontend/src/app/features/work-packages/openproject-work-packages.module.tsindex 77144ba3947..a735b390523 100644--- a/frontend/src/app/features/work-packages/openproject-work-packages.module.ts+++ b/frontend/src/app/features/work-packages/openproject-work-packages.module.ts@@ -88,9 +88,6 @@ import {import {WorkPackageReplacementLabelComponent,} from 'core-app/features/work-packages/components/wp-edit/wp-edit-field/wp-replacement-label.component';-import {- NewestActivityOnOverviewComponent,-} from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-on-overview.component';import {WorkPackageActivityTabComponent,} from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-tab.component';@@ -293,23 +290,14 @@ import {WorkPackageBreadcrumbComponent,} from 'core-app/features/work-packages/components/wp-breadcrumb/wp-breadcrumb.component';import { UserLinkComponent } from 'core-app/shared/components/user-link/user-link.component';-import {- WorkPackageCommentComponent,-} from 'core-app/features/work-packages/components/work-package-comment/work-package-comment.component';import {WorkPackageWatcherButtonComponent,} from 'core-app/features/work-packages/components/wp-watcher-button/wp-watcher-button.component';-import {- WorkPackageCommentFieldComponent,-} from 'core-app/features/work-packages/components/work-package-comment/wp-comment-field.component';import { WpResizerDirective } from 'core-app/shared/components/resizer/resizer/wp-resizer.component';import {GroupDescriptor,WorkPackageSingleViewComponent,} from 'core-app/features/work-packages/components/wp-single-view/wp-single-view.component';-import {- RevisionActivityComponent,-} from 'core-app/features/work-packages/components/wp-activity/revision/revision-activity.component';import {WorkPackageCopySplitViewComponent,} from 'core-app/features/work-packages/components/wp-copy/wp-copy-split-view.component';@@ -317,13 +305,6 @@ import {WorkPackageFormAttributeGroupComponent,} from 'core-app/features/work-packages/components/wp-form-group/wp-attribute-group.component';import { WorkPackagesGridComponent } from 'core-app/features/work-packages/components/wp-grid/wp-grid.component';-import {- ActivityEntryComponent,-} from 'core-app/features/work-packages/components/wp-activity/activity-entry.component';-import { ActivityLinkComponent } from 'core-app/features/work-packages/components/wp-activity/activity-link.component';-import {- UserActivityComponent,-} from 'core-app/features/work-packages/components/wp-activity/user/user-activity.component';import {WorkPackageSplitViewToolbarComponent,} from 'core-app/features/work-packages/components/wp-details/wp-details-toolbar.component';@@ -585,13 +566,6 @@ import {WorkPackageTimerButtonComponent,// Activity Tab- NewestActivityOnOverviewComponent,- WorkPackageCommentComponent,- WorkPackageCommentFieldComponent,- ActivityEntryComponent,- UserActivityComponent,- RevisionActivityComponent,- ActivityLinkComponent,WorkPackageActivityTabComponent,// Watchers wp-tab-wrapperdiff --git a/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.component.ts b/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.component.tsindex f97c4bdc164..0e9d4bdede1 100644--- a/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.component.ts+++ b/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.component.ts@@ -40,7 +40,6 @@ import { RecentItemsService } from 'core-app/core/recent-items.service';import { ProjectResource } from 'core-app/features/hal/resources/project-resource';import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';import { HalResourceNotificationService } from 'core-app/features/hal/services/hal-resource-notification.service';-import { CommentService } from 'core-app/features/work-packages/components/wp-activity/comment-service';import { WpSingleViewService } from 'core-app/features/work-packages/routing/wp-view-base/state/wp-single-view.service';import { WorkPackageViewSelectionService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service';import { WorkPackageSingleViewBase } from 'core-app/features/work-packages/routing/wp-view-base/work-package-single-view.base';@@ -54,7 +53,6 @@ import { Observable, of } from 'rxjs';host: { class: 'work-packages-page--ui-view' },providers: [WpSingleViewService,- CommentService,{ provide: HalResourceNotificationService, useExisting: WorkPackageNotificationService },],changeDetection: ChangeDetectionStrategy.OnPush,diff --git a/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.component.ts b/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.component.tsindex 9bb6d9ad11c..3d6fc80bfa6 100644--- a/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.component.ts+++ b/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.component.ts@@ -48,7 +48,6 @@ import {} from 'core-app/features/work-packages/services/notifications/work-package-notification.service';import { BackRoutingService } from 'core-app/features/work-packages/components/back-routing/back-routing.service';import { WpSingleViewService } from 'core-app/features/work-packages/routing/wp-view-base/state/wp-single-view.service';-import { CommentService } from 'core-app/features/work-packages/components/wp-activity/comment-service';import { RecentItemsService } from 'core-app/core/recent-items.service';import { UrlParamsService } from 'core-app/core/navigation/url-params.service';import {@@ -62,7 +61,6 @@ import { TabComponent } from 'core-app/features/work-packages/components/wp-tabsselector: 'op-wp-split-view',providers: [WpSingleViewService,- CommentService,{ provide: HalResourceNotificationService, useClass: WorkPackageNotificationService },],})diff --git a/frontend/src/app/shared/components/fields/edit/edit-field.initializer.ts b/frontend/src/app/shared/components/fields/edit/edit-field.initializer.tsindex 8132f9789e8..ee82ecebce5 100644--- a/frontend/src/app/shared/components/fields/edit/edit-field.initializer.ts+++ b/frontend/src/app/shared/components/fields/edit/edit-field.initializer.ts@@ -70,9 +70,6 @@ import {import {WorkPackageAutocompleterComponent,} from 'core-app/shared/components/autocompleter/work-package-autocompleter/wp-autocompleter.component';-import {- WorkPackageCommentFieldComponent,-} from 'core-app/features/work-packages/components/work-package-comment/wp-comment-field.component';import { ProjectEditFieldComponent } from './field-types/project-edit-field.component';import {HoursDurationEditFieldComponent,@@ -114,8 +111,7 @@ export function initializeCoreEditFields(editFieldService:EditFieldService, sele.addFieldType(WorkPackageEditFieldComponent, 'workPackage', ['WorkPackage']).addFieldType(BooleanEditFieldComponent, 'boolean', ['Boolean']).addFieldType(DateEditFieldComponent, 'date', ['Date'])- .addFieldType(FormattableEditFieldComponent, 'wiki-textarea', ['Formattable'])- .addFieldType(WorkPackageCommentFieldComponent, '_comment', ['comment']);+ .addFieldType(FormattableEditFieldComponent, 'wiki-textarea', ['Formattable']);editFieldService.addSpecificFieldType(