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
Change layout of inAppNotification entry
Henriette Dargef09e36a22e12
diff --git a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.html b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.htmlindex 828486f04bf..ed8952e1cea 100644--- a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.html+++ b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.html@@ -2,7 +2,7 @@<div class="op-ian-center--content"><ng-container *ngIf="(hasNotifications$ | async) as notifications; else noResults"><cdk-virtual-scroll-viewport- itemSize="50"+ itemSize="80"class="op-ian-center--viewport"><op-in-app-notification-entrydiff --git a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.htmlindex df1bf9912e7..1a52d46f35b 100644--- a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html+++ b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html@@ -19,7 +19,9 @@[textContent]="project.title"(click)="projectClicked($event)"target="_blank"- ></a></div>+ ></a>+ </div>+<ng-container *ngIf="workPackage$ && (workPackage$ | async) as workPackage; else workPackageLoading"><spanclass="op-ian-item--title"@@ -42,41 +44,63 @@></span></span>++ <ng-container *ngIf="!workPackage$">+ <span+ class="op-ian-item--title"+ [textContent]="notification.subject"+ ></span>+ </ng-container>++ <div+ class="op-ian-item--actor"+ *ngIf="actor"+ >+ <op-principal+ [hide-name]="true"+ [principal]="actor"+ [link]="false"+ size="mini"+ ></op-principal>+ </div>++ <div+ class="op-ian-item--status"+ >+ <wp-status-button+ [workPackage]="workPackage">+ </wp-status-button>+ </div>++ <div+ class="op-ian-item--reason"+ [textContent]="translatedReason || notification.reason"+ ></div>++ <div+ class="op-ian-item--date"+ [title]="fixedTime"+ [textContent]="relativeTime$ | async"+ ></div>++ <div+ class="op-ian-item--buttons"+ >+ <button+ class="op-ian-item--button button -tiny"+ >+ <i class="button--icon icon-yes"></i>+ </button>+ </div></ng-container>+<ng-template #workPackageLoading>- <span+ <span*ngIf="workPackage$"class="op-ian-item--title"[textContent]="text.loading"- ></span>+ ></span></ng-template>- <ng-container *ngIf="!workPackage$">- <span- class="op-ian-item--title"- [textContent]="notification.subject"- ></span>- </ng-container>- <div- class="op-ian-item--actor"- *ngIf="actor"- >- <op-principal- [hide-name]="false"- [principal]="actor"- [link]="false"- size="medium"- class="op-principal_hide-name-on-mobile"- ></op-principal>- </div>- <div- class="op-ian-item--reason"- [textContent]="translatedReason || notification.reason"- ></div>- <div- class="op-ian-item--date"- [title]="fixedTime"- [textContent]="relativeTime$ | async"- ></div></button><div*ngIf="notification.expanded"diff --git a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sassindex 557ade82113..47098abd0ed 100644--- a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass+++ b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass@@ -2,6 +2,7 @@$ian-bg-color: #F9F9F9$ian-bg-hover-color: #F1F8FF+$subject-font-size: 14px.op-ian-itembackground: $ian-bg-color@@ -12,7 +13,7 @@ $ian-bg-hover-color: #F1F8FFborder-radius: 2px// This needs to be set in the itemSize of// the virtual scroller- height: 50px+ height: 80px&_expandedheight: auto@@ -27,9 +28,9 @@ $ian-bg-hover-color: #F1F8FF@include unset-button-styleswidth: 100%display: grid- grid-template-columns: 1fr 20% 15% 15%- grid-template-rows: 1fr 1fr- grid-template-areas: "project actor reason date" "title actor reason date"+ grid-template-columns: 50px 1fr 200px 15% 15%+ grid-template-rows: auto $subject-font-size 1fr+ grid-template-areas: "project project project project project" "title title status date buttons" "actor reason reason reason reason"grid-gap: 0.5remalign-items: center@@ -75,6 +76,7 @@ $ian-bg-hover-color: #F1F8FF&--titlegrid-area: title+ font-size: $subject-font-size@include text-shortener&--reason@@ -86,8 +88,6 @@ $ian-bg-hover-color: #F1F8FF&--dategrid-area: date- justify-self: end- text-align: end@include text-shortener(false)white-space: nowrapmax-width: 100%@@ -95,3 +95,14 @@ $ian-bg-hover-color: #F1F8FF&--actorgrid-area: actor@include text-shortener++ &--status+ grid-area: status++ &--buttons+ grid-area: buttons+ text-align: right+ align-items: end++ &--button+ margin: 0diff --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 863999a6c97..127098fcfc9 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@@ -415,6 +415,7 @@ import { FilterBooleanValueComponent } from 'core-app/features/work-packages/com// Needed so that e.g. IFC can access it.WorkPackageCreateButtonComponent,+ WorkPackageStatusButtonComponent,WorkPackageTypeStatusComponent,WorkPackageEditActionsBarComponent,WorkPackageSingleViewComponent,