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
Make calendar a partitioned query space and give calendar its own routes (independent of workPackages)
Henriette Dargee48f1ab56a30
diff --git a/config/locales/js-en.yml b/config/locales/js-en.ymlindex 93591f5c2fc..d6aa73e0622 100644--- a/config/locales/js-en.yml+++ b/config/locales/js-en.yml@@ -106,10 +106,6 @@ en:button_export-atom: "Download Atom"button_create: "Create"- calendar:- title: 'Calendar'- too_many: 'There are %{count} work packages in total, but only %{max} can be shown.'-card:add_new: 'Add new card'highlighting:diff --git a/frontend/src/app/app.module.ts b/frontend/src/app/app.module.tsindex 9c7139509ee..6bc6835b2bc 100644--- a/frontend/src/app/app.module.ts+++ b/frontend/src/app/app.module.ts@@ -46,7 +46,7 @@ import { OpenprojectGridsModule } from 'core-app/shared/components/grids/openproimport { OpenprojectRouterModule } from 'core-app/core/routing/openproject-router.module';import { OpenprojectWorkPackageRoutesModule } from 'core-app/features/work-packages/openproject-work-package-routes.module';import { BrowserModule } from '@angular/platform-browser';-import { OpenprojectCalendarModule } from 'core-app/shared/components/calendar/openproject-calendar.module';+import { OpenprojectCalendarModule } from 'core-app/features/calendar/openproject-calendar.module';import { OpenprojectGlobalSearchModule } from 'core-app/core/global_search/openproject-global-search.module';import { OpenprojectDashboardsModule } from 'core-app/features/dashboards/openproject-dashboards.module';import { OpenprojectWorkPackageGraphsModule } from 'core-app/shared/components/work-package-graphs/openproject-work-package-graphs.module';diff --git a/frontend/src/app/core/routing/openproject.routes.ts b/frontend/src/app/core/routing/openproject.routes.tsindex 2906f6d699d..10cc37d8080 100644--- a/frontend/src/app/core/routing/openproject.routes.ts+++ b/frontend/src/app/core/routing/openproject.routes.ts@@ -57,6 +57,7 @@ import {redirectToMobileAlternative,} from 'core-app/shared/helpers/routing/mobile-guard.helper';import { TEAM_PLANNER_LAZY_ROUTES } from 'core-app/features/team-planner/team-planner/team-planner.lazy-routes';+import { CALENDAR_LAZY_ROUTES } from 'core-app/features/calendar/calendar.lazy-routes';export const OPENPROJECT_ROUTES:Ng2StateDeclaration[] = [{@@ -146,6 +147,7 @@ export const OPENPROJECT_ROUTES:Ng2StateDeclaration[] = [...MY_ACCOUNT_LAZY_ROUTES,...IAN_LAZY_ROUTES,...TEAM_PLANNER_LAZY_ROUTES,+ ...CALENDAR_LAZY_ROUTES,];/**diff --git a/frontend/src/app/shared/components/calendar/wp-calendar-entry/wp-calendar-entry.component.ts b/frontend/src/app/features/calendar/calendar.lazy-routes.tssimilarity index 58%rename from frontend/src/app/shared/components/calendar/wp-calendar-entry/wp-calendar-entry.component.tsrename to frontend/src/app/features/calendar/calendar.lazy-routes.tsindex 178ff372dc9..bff2416fb48 100644--- a/frontend/src/app/shared/components/calendar/wp-calendar-entry/wp-calendar-entry.component.ts+++ b/frontend/src/app/features/calendar/calendar.lazy-routes.ts@@ -26,22 +26,13 @@// See COPYRIGHT and LICENSE files for more details.//++-import { Component, ViewChild } from '@angular/core';-import { WorkPackagesViewBase } from 'core-app/features/work-packages/routing/wp-view-base/work-packages-view.base';-import { WorkPackagesCalendarController } from 'core-app/shared/components/calendar/wp-calendar/wp-calendar.component';+import { Ng2StateDeclaration } from '@uirouter/angular';-@Component({- templateUrl: './wp-calendar-entry.component.html',-})--export class WorkPackagesCalendarEntryComponent extends WorkPackagesViewBase {- @ViewChild(WorkPackagesCalendarController, { static: true }) calendarElement:WorkPackagesCalendarController;-- protected set loadingIndicator(promise:Promise<unknown>) {- this.loadingIndicatorService.indicator('calendar-entry').promise = promise;- }-- public refresh(visibly:boolean, firstPage:boolean):Promise<unknown> {- return this.loadingIndicator = this.wpListService.loadCurrentQueryFromParams(this.projectIdentifier);- }-}+export const CALENDAR_LAZY_ROUTES:Ng2StateDeclaration[] = [+ {+ name: 'calendar.**',+ parent: 'optional_project',+ url: '/calendar',+ loadChildren: () => import('./openproject-calendar.module').then((m) => m.OpenprojectCalendarModule),+ },+];diff --git a/frontend/src/app/features/calendar/calendar.routes.ts b/frontend/src/app/features/calendar/calendar.routes.tsnew file mode 100644index 00000000000..5ba021d2a43--- /dev/null+++ b/frontend/src/app/features/calendar/calendar.routes.ts@@ -0,0 +1,73 @@+// -- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2012-2021 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 { Ng2StateDeclaration } from '@uirouter/angular';+import { makeSplitViewRoutes } from 'core-app/features/work-packages/routing/split-view-routes.template';+import { WorkPackageSplitViewComponent } from 'core-app/features/work-packages/routing/wp-split-view/wp-split-view.component';+import { WorkPackagesBaseComponent } from 'core-app/features/work-packages/routing/wp-base/wp--base.component';+import { WorkPackagesCalendarComponent } from 'core-app/features/calendar/wp-calendar/wp-calendar.component';+import { WorkPackagesCalendarPageComponent } from 'core-app/features/calendar/wp-calendar-page/wp-calendar-page.component';++export const CALENDAR_ROUTES:Ng2StateDeclaration[] = [+ {+ name: 'calendar',+ parent: 'optional_project',+ url: '/calendar?query_id&query_props',+ redirectTo: 'calendar.page',+ views: {+ '!$default': { component: WorkPackagesBaseComponent },+ },+ params: {+ query_id: { type: 'query', dynamic: true },+ // Use custom encoder/decoder that ensures validity of URL string+ query_props: { type: 'opQueryString' },+ },+ },+ {+ name: 'calendar.page',+ component: WorkPackagesCalendarPageComponent,+ redirectTo: 'calendar.page.show',+ data: {+ bodyClasses: 'router--calendar',+ },+ },+ {+ name: 'calendar.page.show',+ data: {+ baseRoute: 'calendar.page.show',+ },+ views: {+ 'content-left': { component: WorkPackagesCalendarComponent },+ },+ },+ ...makeSplitViewRoutes(+ 'calendar.page.show',+ undefined,+ WorkPackageSplitViewComponent,+ ),+];diff --git a/frontend/src/app/shared/components/calendar/op-calendar.service.ts b/frontend/src/app/features/calendar/op-calendar.service.tssimilarity index 100%rename from frontend/src/app/shared/components/calendar/op-calendar.service.tsrename to frontend/src/app/features/calendar/op-calendar.service.tsdiff --git a/frontend/src/app/shared/components/calendar/openproject-calendar.module.ts b/frontend/src/app/features/calendar/openproject-calendar.module.tssimilarity index 70%rename from frontend/src/app/shared/components/calendar/openproject-calendar.module.tsrename to frontend/src/app/features/calendar/openproject-calendar.module.tsindex b50b7377d68..fbbc91bd39b 100644--- a/frontend/src/app/shared/components/calendar/openproject-calendar.module.ts+++ b/frontend/src/app/features/calendar/openproject-calendar.module.ts@@ -29,36 +29,21 @@import { OPSharedModule } from 'core-app/shared/shared.module';import { NgModule } from '@angular/core';import { FullCalendarModule } from '@fullcalendar/angular';-import { WorkPackagesCalendarEntryComponent } from 'core-app/shared/components/calendar/wp-calendar-entry/wp-calendar-entry.component';-import { WorkPackagesCalendarController } from 'core-app/shared/components/calendar/wp-calendar/wp-calendar.component';+import { WorkPackagesCalendarComponent } from 'core-app/features/calendar/wp-calendar/wp-calendar.component';import { OpenprojectWorkPackagesModule } from 'core-app/features/work-packages/openproject-work-packages.module';-import { Ng2StateDeclaration, UIRouterModule } from '@uirouter/angular';-import { TimeEntryCalendarComponent } from 'core-app/shared/components/calendar/te-calendar/te-calendar.component';+import { UIRouterModule } from '@uirouter/angular';+import { TimeEntryCalendarComponent } from 'core-app/features/calendar/te-calendar/te-calendar.component';import { OpenprojectFieldsModule } from 'core-app/shared/components/fields/openproject-fields.module';import { OpenprojectTimeEntriesModule } from 'core-app/shared/components/time_entries/openproject-time-entries.module';--const menuItemClass = 'calendar-menu-item';--export const CALENDAR_ROUTES:Ng2StateDeclaration[] = [- {- name: 'work-packages.calendar',- url: '/calendar',- component: WorkPackagesCalendarEntryComponent,- reloadOnSearch: false,- data: {- bodyClasses: 'router--work-packages-calendar',- menuItem: menuItemClass,- parent: 'work-packages',- },- },-];+import { WorkPackagesCalendarPageComponent } from 'core-app/features/calendar/wp-calendar-page/wp-calendar-page.component';+import { CALENDAR_ROUTES } from 'core-app/features/calendar/calendar.routes';@NgModule({imports: [// CommonsOPSharedModule,- // Routes for /work_packages/calendar+ // Routes for /calendarUIRouterModule.forChild({ states: CALENDAR_ROUTES }),// Work Package module@@ -75,12 +60,12 @@ export const CALENDAR_ROUTES:Ng2StateDeclaration[] = [],declarations: [// Work package calendars- WorkPackagesCalendarEntryComponent,- WorkPackagesCalendarController,+ WorkPackagesCalendarPageComponent,+ WorkPackagesCalendarComponent,TimeEntryCalendarComponent,],exports: [- WorkPackagesCalendarController,+ WorkPackagesCalendarComponent,TimeEntryCalendarComponent,],})diff --git a/frontend/src/app/shared/components/calendar/te-calendar/te-calendar.component.sass b/frontend/src/app/features/calendar/te-calendar/te-calendar.component.sasssimilarity index 100%rename from frontend/src/app/shared/components/calendar/te-calendar/te-calendar.component.sassrename to frontend/src/app/features/calendar/te-calendar/te-calendar.component.sassdiff --git a/frontend/src/app/shared/components/calendar/te-calendar/te-calendar.component.ts b/frontend/src/app/features/calendar/te-calendar/te-calendar.component.tssimilarity index 99%rename from frontend/src/app/shared/components/calendar/te-calendar/te-calendar.component.tsrename to frontend/src/app/features/calendar/te-calendar/te-calendar.component.tsindex cdc7268c58a..d90b702338c 100644--- a/frontend/src/app/shared/components/calendar/te-calendar/te-calendar.component.ts+++ b/frontend/src/app/features/calendar/te-calendar/te-calendar.component.ts@@ -39,7 +39,7 @@ import { FilterOperator } from 'core-app/shared/helpers/api-v3/api-v3-filter-buiimport { TimezoneService } from 'core-app/core/datetime/timezone.service';import { HalResourceNotificationService } from 'core-app/features/hal/services/hal-resource-notification.service';import idFromLink from 'core-app/features/hal/helpers/id-from-link';-import { OpCalendarService } from 'core-app/shared/components/calendar/op-calendar.service';+import { OpCalendarService } from 'core-app/features/calendar/op-calendar.service';interface CalendarViewEvent {el:HTMLElement;diff --git a/frontend/src/app/shared/components/calendar/te-calendar/te-calendar.template.html b/frontend/src/app/features/calendar/te-calendar/te-calendar.template.htmlsimilarity index 100%rename from frontend/src/app/shared/components/calendar/te-calendar/te-calendar.template.htmlrename to frontend/src/app/features/calendar/te-calendar/te-calendar.template.htmldiff --git a/frontend/src/app/features/calendar/wp-calendar-page/wp-calendar-page.component.ts b/frontend/src/app/features/calendar/wp-calendar-page/wp-calendar-page.component.tsnew file mode 100644index 00000000000..ff1d2d6154e--- /dev/null+++ b/frontend/src/app/features/calendar/wp-calendar-page/wp-calendar-page.component.ts@@ -0,0 +1,123 @@+// -- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2012-2021 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,+ Component,+ ViewChild,+} from '@angular/core';+import { WorkPackagesCalendarComponent } from 'core-app/features/calendar/wp-calendar/wp-calendar.component';+import {+ DynamicComponentDefinition,+ PartitionedQuerySpacePageComponent,+ ToolbarButtonComponentDefinition,+ ViewPartitionState,+} from 'core-app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component';+import { WorkPackageFilterContainerComponent } from 'core-app/features/work-packages/components/filters/filter-container/filter-container.directive';+import { WorkPackageFilterButtonComponent } from 'core-app/features/work-packages/components/wp-buttons/wp-filter-button/wp-filter-button.component';+import { ZenModeButtonComponent } from 'core-app/features/work-packages/components/wp-buttons/zen-mode-toggle-button/zen-mode-toggle-button.component';+import { WorkPackageSettingsButtonComponent } from 'core-app/features/work-packages/components/wp-buttons/wp-settings-button/wp-settings-button.component';+import { QueryResource } from 'core-app/features/hal/resources/query-resource';+import { QueryParamListenerService } from 'core-app/features/work-packages/components/wp-query/query-param-listener.service';++@Component({+ templateUrl: '../../work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.html',+ styleUrls: [+ '../../work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass',+ ],+ changeDetection: ChangeDetectionStrategy.OnPush,+ providers: [+ QueryParamListenerService,+ ],+})+export class WorkPackagesCalendarPageComponent extends PartitionedQuerySpacePageComponent {+ @ViewChild(WorkPackagesCalendarComponent, { static: true }) calendarElement:WorkPackagesCalendarComponent;++ text = {+ title: this.I18n.t('js.calendar.title'),+ unsaved_title: this.I18n.t('js.calendar.unsaved_title'),+ };++ /** Go back using back-button */+ backButtonCallback:() => void;++ /** Current query title to render */+ selectedTitle = this.text.unsaved_title;++ filterContainerDefinition:DynamicComponentDefinition = {+ component: WorkPackageFilterContainerComponent,+ };++ /** We need to pass the correct partition state to the view to manage the grid */+ currentPartition:ViewPartitionState = '-split';++ /** Show a toolbar */+ showToolbar = true;++ /** Toolbar is not editable */+ titleEditingEnabled = false;++ /** Savable */+ showToolbarSaveButton = true;++ /** Toolbar is always enabled */+ toolbarDisabled = false;++ /** Define the buttons shown in the toolbar */+ toolbarButtonComponents:ToolbarButtonComponentDefinition[] = [+ {+ component: WorkPackageFilterButtonComponent,+ },+ {+ component: ZenModeButtonComponent,+ },+ {+ component: WorkPackageSettingsButtonComponent,+ containerClasses: 'hidden-for-mobile',+ show: ():boolean => this.authorisationService.can('query', 'updateImmediately'),+ inputs: {+ hideTableOptions: true,+ },+ },+ ];++ /**+ * We need to set the current partition to the grid to ensure+ * either side gets expanded to full width if we're not in '-split' mode.+ *+ * @param state The current or entering state+ */+ setPartition(state:{ data:{ partition?:ViewPartitionState } }):void {+ this.currentPartition = state.data?.partition || '-split';+ }++ // eslint-disable-next-line @typescript-eslint/no-unused-vars+ protected staticQueryName(query:QueryResource):string {+ return this.text.unsaved_title;+ }+}diff --git a/frontend/src/app/shared/components/calendar/wp-calendar/wp-calendar.component.ts b/frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.tssimilarity index 96%rename from frontend/src/app/shared/components/calendar/wp-calendar/wp-calendar.component.tsrename to frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.tsindex 07d5aedf3e0..9c29e416237 100644--- a/frontend/src/app/shared/components/calendar/wp-calendar/wp-calendar.component.ts+++ b/frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.ts@@ -34,7 +34,7 @@ import { SchemaCacheService } from 'core-app/core/schemas/schema-cache.service';import {CalendarViewEvent,OpCalendarService,-} from 'core-app/shared/components/calendar/op-calendar.service';+} from 'core-app/features/calendar/op-calendar.service';@Component({templateUrl: './wp-calendar.template.html',@@ -44,7 +44,7 @@ import {OpCalendarService,],})-export class WorkPackagesCalendarController extends UntilDestroyedMixin implements OnInit {+export class WorkPackagesCalendarComponent extends UntilDestroyedMixin implements OnInit {@ViewChild(FullCalendarComponent) ucCalendar:FullCalendarComponent;@ViewChild('ucCalendar', { read: ElementRef })@@ -217,9 +217,9 @@ export class WorkPackagesCalendarController extends UntilDestroyedMixin implemen}if (calendarDate) {- this.ucCalendar.getApi().changeView(calendarUnit, calendarDate.toDate());+ this.ucCalendar.getApi().changeView(calendarUnit, calendarDate.toDate());} else {- this.ucCalendar.getApi().changeView(calendarUnit);+ this.ucCalendar.getApi().changeView(calendarUnit);}}diff --git a/frontend/src/app/shared/components/calendar/wp-calendar/wp-calendar.sass b/frontend/src/app/features/calendar/wp-calendar/wp-calendar.sasssimilarity index 100%rename from frontend/src/app/shared/components/calendar/wp-calendar/wp-calendar.sassrename to frontend/src/app/features/calendar/wp-calendar/wp-calendar.sassdiff --git a/frontend/src/app/shared/components/calendar/wp-calendar/wp-calendar.template.html b/frontend/src/app/features/calendar/wp-calendar/wp-calendar.template.htmlsimilarity index 100%rename from frontend/src/app/shared/components/calendar/wp-calendar/wp-calendar.template.htmlrename to frontend/src/app/features/calendar/wp-calendar/wp-calendar.template.htmldiff --git 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.tsindex e9a66c0a83f..2a0005111d3 100644--- 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@@ -43,7 +43,7 @@ import { WorkPackageResource } from 'core-app/features/hal/resources/work-packagimport { HalResource } from 'core-app/features/hal/resources/hal-resource';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';import { ResourceLabelContentArg } from '@fullcalendar/resource-common';-import { OpCalendarService } from 'core-app/shared/components/calendar/op-calendar.service';+import { OpCalendarService } from 'core-app/features/calendar/op-calendar.service';import { WorkPackageCollectionResource } from 'core-app/features/hal/resources/wp-collection-resource';@Component({diff --git a/frontend/src/app/shared/components/calendar/wp-calendar-entry/wp-calendar-entry.component.html b/frontend/src/app/shared/components/calendar/wp-calendar-entry/wp-calendar-entry.component.htmldeleted file mode 100644index b85441f80c3..00000000000--- a/frontend/src/app/shared/components/calendar/wp-calendar-entry/wp-calendar-entry.component.html+++ /dev/null@@ -1,27 +0,0 @@-<div class="work-packages-calendar-view--container loading-indicator--location"- data-indicator-name="calendar-entry">- <div class="toolbar-container -editable">- <div class="toolbar">- <div class="title-container">- <h2>- {{ I18n.t('js.calendar.title') }}- </h2>- </div>-- <ul class="toolbar-items hide-when-print">- <li class="toolbar-item hidden-for-mobile">- <wp-filter-button>- </wp-filter-button>- </li>- <li class="toolbar-item hidden-for-mobile">- <zen-mode-toggle-button>- </zen-mode-toggle-button>- </li>- </ul>- </div>- </div>-- <filter-container></filter-container>-- <wp-calendar [projectIdentifier]="projectIdentifier"></wp-calendar>-</div>diff --git a/frontend/src/app/shared/components/grids/openproject-grids.module.ts b/frontend/src/app/shared/components/grids/openproject-grids.module.tsindex 77b216b41dc..1c5fe6e7a27 100644--- a/frontend/src/app/shared/components/grids/openproject-grids.module.ts+++ b/frontend/src/app/shared/components/grids/openproject-grids.module.ts@@ -31,7 +31,7 @@ import { DynamicModule } from 'ng-dynamic-component';import { HookService } from 'core-app/features/plugins/hook-service';import { OPSharedModule } from 'core-app/shared/shared.module';import { OpenprojectModalModule } from 'core-app/shared/components/modal/modal.module';-import { OpenprojectCalendarModule } from 'core-app/shared/components/calendar/openproject-calendar.module';+import { OpenprojectCalendarModule } from 'core-app/features/calendar/openproject-calendar.module';import { BrowserModule } from '@angular/platform-browser';import { FormsModule } from '@angular/forms';import { DragDropModule } from '@angular/cdk/drag-drop';diff --git a/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/configuration-modal/services/configuration-modal/configuration-modal.service.ts b/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/configuration-modal/services/configuration-modal/configuration-modal.service.tsindex be596b6c7bd..80c40752222 100644--- a/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/configuration-modal/services/configuration-modal/configuration-modal.service.ts+++ b/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/configuration-modal/services/configuration-modal/configuration-modal.service.ts@@ -1,5 +1,5 @@import { Injectable } from '@angular/core';-import { DisplayedDays } from 'core-app/shared/components/calendar/te-calendar/te-calendar.component';+import { DisplayedDays } from 'core-app/features/calendar/te-calendar/te-calendar.component';@Injectable()export class TimeEntriesCurrentUserConfigurationModalService {diff --git a/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/time-entries-current-user.component.ts b/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/time-entries-current-user.component.tsindex bbea66b121e..aabc3bceaad 100644--- a/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/time-entries-current-user.component.ts+++ b/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/time-entries-current-user.component.ts@@ -6,7 +6,7 @@ import { CollectionResource } from 'core-app/features/hal/resources/collection-rimport { I18nService } from 'core-app/core/i18n/i18n.service';import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';import { AbstractWidgetComponent } from 'core-app/shared/components/grids/widgets/abstract-widget.component';-import { DisplayedDays } from 'core-app/shared/components/calendar/te-calendar/te-calendar.component';+import { DisplayedDays } from 'core-app/features/calendar/te-calendar/te-calendar.component';import { TimezoneService } from 'core-app/core/datetime/timezone.service';@Component({diff --git a/modules/calendar/app/controllers/calendar/calendar_controller.rb b/modules/calendar/app/controllers/calendar/calendar_controller.rbindex 90ed55cae7b..6a4591e1f59 100644--- a/modules/calendar/app/controllers/calendar/calendar_controller.rb+++ b/modules/calendar/app/controllers/calendar/calendar_controller.rb@@ -30,7 +30,7 @@module ::Calendarclass CalendarController < ApplicationController- menu_item :calendar+ menu_item :calendar_viewbefore_action :find_optional_projectdef indexdiff --git a/modules/calendar/app/views/calendar/calendar/_menu.html.erb b/modules/calendar/app/views/calendar/calendar/_menu.html.erbindex ec11d4d16b2..7cd0d93d5ee 100644--- a/modules/calendar/app/views/calendar/calendar/_menu.html.erb+++ b/modules/calendar/app/views/calendar/calendar/_menu.html.erb@@ -3,7 +3,7 @@inputs: {projectId: (@project ? @project.id.to_s : ''),menuItems: [parent_name, name],- baseRoute: 'work-packages.calendar',+ baseRoute: 'calendar.page.show',viewType: 'WorkPackagesCalendar',}%>diff --git a/modules/calendar/config/locales/js-en.yml b/modules/calendar/config/locales/js-en.ymlnew file mode 100644index 00000000000..0742057b5ab--- /dev/null+++ b/modules/calendar/config/locales/js-en.yml@@ -0,0 +1,7 @@+# English strings go here+en:+ js:+ calendar:+ title: 'Calendar'+ too_many: 'There are %{count} work packages in total, but only %{max} can be shown.'+ unsaved_title: 'Unnamed calendar'