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
[40533] Remove monthly view from team planner
Oliver Günther4b858d69332f
diff --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 c10c08512d4..bae970d8e2e 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@@ -220,7 +220,7 @@ export class TeamPlannerComponent extends UntilDestroyedMixin implements OnInit,headerToolbar: {left: 'prev,next today',center: 'title',- right: 'resourceTimelineWeek,resourceTimelineTwoWeeks,resourceTimelineMonth',+ right: 'resourceTimelineWeek,resourceTimelineTwoWeeks',},views: {resourceTimelineWeek: {@@ -258,23 +258,6 @@ export class TeamPlannerComponent extends UntilDestroyedMixin implements OnInit,},],},- resourceTimelineMonth: {- type: 'resourceTimeline',- duration: { months: 1 },- slotDuration: { days: 1 },- slotLabelFormat: [- {- weekday: 'long',- day: '2-digit',- },- ],- resourceAreaColumns: [- {- field: 'title',- headerContent: this.text.assignees,- },- ],- },},events: this.calendarEventsFunction.bind(this) as unknown,resources: [],diff --git a/modules/team_planner/spec/features/team_planner_view_modes_spec.rb b/modules/team_planner/spec/features/team_planner_view_modes_spec.rbindex b3415630198..0665f45e79f 100644--- a/modules/team_planner/spec/features/team_planner_view_modes_spec.rb+++ b/modules/team_planner/spec/features/team_planner_view_modes_spec.rb@@ -51,9 +51,5 @@ describe 'Team planner', type: :feature, js: true do# 2 weeks: expect 14 slotsteam_planner.switch_view_mode '2 weeks'expect(page).to have_selector('.fc-timeline-slot-frame', count: 14)-- # month: Expect 30 slots- team_planner.switch_view_mode 'month'- expect(page).to have_selector('.fc-timeline-slot-frame', minimum: 28, maximum: 31)endenddiff --git a/modules/team_planner/spec/support/pages/team_planner.rb b/modules/team_planner/spec/support/pages/team_planner.rbindex 3a7f7bf21b0..e3ba9c577c0 100644--- a/modules/team_planner/spec/support/pages/team_planner.rb+++ b/modules/team_planner/spec/support/pages/team_planner.rb@@ -62,7 +62,6 @@ module Pagesparam = {'week' => :resourceTimelineWeek,'2 weeks' => :resourceTimelineTwoWeeks,- 'month' => :resourceTimelineMonth}[text]expect(page).to have_current_path(/cview=#{param}/)