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

Add styles for activity tab notifications

Benjamin Bädorff58da1a952dd
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.html
index 5c9905511a7..d5813e659b8 100644
--- 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.html
@@ -5,8 +5,8 @@
<div class="comments-number">
<span
*ngIf="hasUnreadNotification"
- class=""
- >U</span>
+ class="op-bubble"
+ ></span>
<activity-link
[workPackage]="workPackage"
[activityNo]="activityNo"
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.html
index d9978198de2..f6a50f57983 100644
--- 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.html
@@ -23,8 +23,8 @@
<div class="comments-number">
<span
*ngIf="hasUnreadNotification"
- class=""
- >U</span>
+ class="op-bubble"
+ ></span>
<activity-link
[workPackage]="workPackage"
[activityNo]="activityNo"
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.ts
index 82a347cf3d1..04672243624 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
@@ -93,7 +93,7 @@ export class ActivityPanelBaseController extends UntilDestroyedMixin implements
pageSize: NOTIFICATIONS_MAX_SIZE,
filters: [
[ 'resourceId', '=', [ this.workPackageId ] ],
- [ 'resourceType', '=', [ 'work_package' ] ],
+ [ 'resourceType', '=', [ 'WorkPackage' ] ],
],
},
),
diff --git a/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-notifications-count.function.ts b/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-notifications-count.function.ts
index ff25bb23ca2..7f38e0276e5 100644
--- a/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-notifications-count.function.ts
+++ b/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-notifications-count.function.ts
@@ -20,7 +20,7 @@ export function workPackageNotificationsCount(
pageSize: NOTIFICATIONS_MAX_SIZE,
filters: [
[ 'resourceId', '=', [ wpId ] ],
- [ 'resourceType', '=', [ 'work_package' ] ],
+ [ 'resourceType', '=', [ 'WorkPackage' ] ],
],
},
)
diff --git a/frontend/src/app/shared/components/tabs/tab-badges/tab-count.component.sass b/frontend/src/app/shared/components/tabs/tab-badges/tab-count.component.sass
index e0a6fd4e291..a0a9e4d7299 100644
--- a/frontend/src/app/shared/components/tabs/tab-badges/tab-count.component.sass
+++ b/frontend/src/app/shared/components/tabs/tab-badges/tab-count.component.sass
@@ -8,5 +8,6 @@
min-height: 1rem
vertical-align: 0.1rem
padding: 0 0.15rem 0 0.15rem
- background: var(--light-gray)
+ background: darkred
+ color: white
font-weight: bold
\ No newline at end of file
diff --git a/frontend/src/global_styles/common/bubble/bubble.sass b/frontend/src/global_styles/common/bubble/bubble.sass
new file mode 100644
index 00000000000..bedb146032d
--- /dev/null
+++ b/frontend/src/global_styles/common/bubble/bubble.sass
@@ -0,0 +1,4 @@
+.op-bubble
+ @include indicator-bubble
+ background: darkred
+
diff --git a/frontend/src/global_styles/common/openproject-common.module.sass b/frontend/src/global_styles/common/openproject-common.module.sass
index ec6e307b0f3..b334c68eb6b 100644
--- a/frontend/src/global_styles/common/openproject-common.module.sass
+++ b/frontend/src/global_styles/common/openproject-common.module.sass
@@ -2,6 +2,7 @@
@import 'menu/menu'
@import 'input/input'
@import 'link/link'
+@import 'bubble/bubble'
@import '../../app/shared/components/forms'
@import '../../app/shared/components/option-list/option-list'
@import 'export-options/export-options'
diff --git a/frontend/src/global_styles/content/work_packages/tabs/_activities.sass b/frontend/src/global_styles/content/work_packages/tabs/_activities.sass
index c1f74d3dcb2..6eada1288ae 100644
--- a/frontend/src/global_styles/content/work_packages/tabs/_activities.sass
+++ b/frontend/src/global_styles/content/work_packages/tabs/_activities.sass
@@ -55,6 +55,11 @@
line-height: 16px
text-align: right
+ // These are dirty, hacky styles until we've a better understanding of what thsi should look like
+ .op-bubble
+ margin-right: 0.2rem
+ transform: scale(0.8)
+
.comments-icons
padding: 0
text-align: right