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

Merge branch 'dev' into skeleton-view-in-team-planner-with-eventsources

Behrokh Satarnejadaba5aec0cc2f
diff --cc frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts
index 9ffe14fd021,fd23e5cff37..878ec3d4d26
--- a/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts
+++ b/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts
@@@ -69,8 -77,10 +77,11 @@@ import
teamPlannerEventRemoved,
} from 'core-app/features/team-planner/team-planner/planner/team-planner.actions';
import { imagePath } from 'core-app/shared/helpers/images/path-helper';
+import { skeletonEvents, skeletonResources } from './loading-skeleton-data';
+ import { CapabilitiesResourceService } from 'core-app/core/state/capabilities/capabilities.service';
+ import { ICapability } from 'core-app/core/state/capabilities/capability.model';
import { ToastService } from 'core-app/shared/components/toaster/toast.service';
+ import { LoadingIndicatorService } from 'core-app/core/loading-indicator/loading-indicator.service';
@Component({
selector: 'op-team-planner',
@@@ -334,10 -421,19 +402,21 @@@ export class TeamPlannerComponent exten
},
},
eventSources: [
- {
+ (_, successCallback) => successCallback(skeletonEvents),
- this.calendarEventsFunction.bind(this) as unknown,
++ {
+ id: 'work_packages',
+ events: this.calendarEventsFunction.bind(this) as unknown,
+ },
+ {
+ events: [],
+ id: 'background',
+ color: 'red',
+ textColor: 'white',
+ display: 'background',
+ editable: false,
+ },
],
+ resources: skeletonResources,
resourceAreaWidth: '180px',
select: this.handleDateClicked.bind(this) as unknown,
resourceLabelContent: (data:ResourceLabelContentArg) => this.renderTemplate(this.resourceContent, data.resource.id, data),
diff --cc frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.sass
index e5dd7a1a637,a7fe09c6098..2877a22a718
--- 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
@@@ -153,10 -152,8 +153,11 @@@
&--inline-buttons
opacity: 0
padding-left: 40px
+ padding-right: 4px
+ .op-icon--wrapper:not(&_selected)
+ background: $spot-color-basic-white
+
&.-show
opacity: 1