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

Take care that the selection is updated when clicking on a team planner item

Henriette Darge3bb31623e37e
diff --git a/frontend/src/app/features/calendar/op-calendar.service.ts b/frontend/src/app/features/calendar/op-calendar.service.ts
index e5043ececaf..8a7b9a8237e 100644
--- a/frontend/src/app/features/calendar/op-calendar.service.ts
+++ b/frontend/src/app/features/calendar/op-calendar.service.ts
@@ -44,6 +44,7 @@ import {
import { HalResourceEditingService } from 'core-app/shared/components/fields/edit/services/hal-resource-editing.service';
import { ResourceChangeset } from 'core-app/shared/components/fields/changeset/resource-changeset';
import * as moment from 'moment';
+import { WorkPackageViewSelectionService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service';
export interface CalendarViewEvent {
el:HTMLElement;
@@ -85,6 +86,7 @@ export class OpCalendarService extends UntilDestroyedMixin {
readonly uiRouterGlobals:UIRouterGlobals,
readonly timezoneService:TimezoneService,
readonly halEditing:HalResourceEditingService,
+ readonly wpTableSelection:WorkPackageViewSelectionService,
) {
super();
}
@@ -272,6 +274,8 @@ export class OpCalendarService extends UntilDestroyedMixin {
private openSplitView(event:EventClickArg) {
const workPackage = event.event.extendedProps.workPackage as WorkPackageResource;
+ this.wpTableSelection.setSelection(workPackage.id!, -1);
+
void this.$state.go(
`${splitViewRoute(this.$state)}.tabs`,
{ workPackageId: workPackage.id, tabIdentifier: 'overview' },
diff --git a/frontend/src/app/features/team-planner/team-planner/add-work-packages/add-existing-pane.component.html b/frontend/src/app/features/team-planner/team-planner/add-work-packages/add-existing-pane.component.html
index 684e90cc186..a903abcbacd 100644
--- a/frontend/src/app/features/team-planner/team-planner/add-work-packages/add-existing-pane.component.html
+++ b/frontend/src/app/features/team-planner/team-planner/add-work-packages/add-existing-pane.component.html
@@ -43,7 +43,8 @@
[attr.data-qa-selector]="'op-add-existing-pane--wp-' + wp.id"
(stateLinkClicked)="openStateLink($event)"
></wp-single-card>
- </ng-container></div>
+ </ng-container>
+ </div>
</ng-container>
<ng-template #emptyTemplate>
diff --git a/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.sass b/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.sass
index 6bc95db92d8..7c8a8083ebd 100644
--- a/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.sass
+++ b/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.sass
@@ -31,7 +31,7 @@
&_disabled
opacity: 0.6
- &_closed
+ &_closed:not(&_checked)
background-color: #F3F3F3
&_horizontal
@@ -118,12 +118,12 @@
&-inline-date
font-size: 12px
color: var(--gray-dark)
- margin: 0 12px
+ margin: 0 8px
white-space: nowrap
&--highlighting
width: 100%
- height: 4px
+ height: 2px
position: absolute
top: 0
left: 0
diff --git a/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.ts b/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.ts
index 7e8dc345bd8..c7640730ae4 100644
--- a/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.ts
@@ -182,10 +182,6 @@ export class WorkPackageSingleCardComponent extends UntilDestroyedMixin implemen
return Highlighting.overdueDate(diff);
}
- public fullWorkPackageLink(wp:WorkPackageResource):string {
- return this.$state.href('work-packages.show', { workPackageId: wp.id });
- }
-
public cardHighlightingClass(wp:WorkPackageResource):string {
return this.cardHighlighting(wp);
}
diff --git a/frontend/src/global_styles/vendor/_full_calendar.sass b/frontend/src/global_styles/vendor/_full_calendar.sass
index fdf2df8cb48..4ce43da7805 100644
--- a/frontend/src/global_styles/vendor/_full_calendar.sass
+++ b/frontend/src/global_styles/vendor/_full_calendar.sass
@@ -63,13 +63,13 @@
position: absolute
top: 40px
z-index: 8
- left: 8px
+ left: 2px
&:after
position: absolute
top: 40px
z-index: 8
- right: 8px
+ right: 2px
.fc-event-title-container
margin: 0 16px