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
Feature - #44886 - [Teamplanner] Added timespan options 4 weeks and 8 weeks (#14997)
mansi-jasanid6093780c3a5
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 8bc62c1bad5..67f85b9fbe9 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@@ -115,7 +115,7 @@ import {} from 'core-app/features/team-planner/team-planner/planner/background-events';import * as moment from 'moment-timezone';-export type TeamPlannerViewOptionKey = 'resourceTimelineWorkWeek'|'resourceTimelineWeek'|'resourceTimelineTwoWeeks';+export type TeamPlannerViewOptionKey = 'resourceTimelineWorkWeek'|'resourceTimelineWeek'|'resourceTimelineTwoWeeks'|'resourceTimelineFourWeeks'|'resourceTimelineEightWeeks';export type TeamPlannerViewOptions = { [K in TeamPlannerViewOptionKey]:RawOptionsFromRefiners<Required<ViewOptionRefiners>> };@Component({@@ -286,6 +286,8 @@ export class TeamPlannerComponent extends UntilDestroyedMixin implements OnInit,work_week: this.I18n.t('js.team_planner.work_week'),two_weeks: this.I18n.t('js.team_planner.two_weeks'),one_week: this.I18n.t('js.team_planner.one_week'),+ four_weeks: this.I18n.t('js.team_planner.four_weeks'),+ eight_weeks: this.I18n.t('js.team_planner.eight_weeks'),today: this.I18n.t('js.team_planner.today'),drag_here_to_remove: this.I18n.t('js.team_planner.drag_here_to_remove'),cannot_drag_here: this.I18n.t('js.team_planner.cannot_drag_here'),@@ -352,6 +354,28 @@ export class TeamPlannerComponent extends UntilDestroyedMixin implements OnInit,],},},+ resourceTimelineFourWeeks: {+ ...this.viewOptionDefaults,+ ...{+ buttonText: this.text.four_weeks,+ duration: { weeks: 4 },+ dateIncrement: { weeks: 2 },+ slotLabelFormat: [+ { weekday: 'short', day: '2-digit' },+ ],+ },+ },+ resourceTimelineEightWeeks: {+ ...this.viewOptionDefaults,+ ...{+ buttonText: this.text.eight_weeks,+ duration: { weeks: 8 },+ dateIncrement: { weeks: 4 },+ slotLabelFormat: [+ { weekday: 'short', day: '2-digit' },+ ],+ },+ },};constructor(diff --git a/modules/team_planner/config/locales/js-en.yml b/modules/team_planner/config/locales/js-en.ymlindex f6f6bec4540..1b6d9007d6f 100644--- a/modules/team_planner/config/locales/js-en.yml+++ b/modules/team_planner/config/locales/js-en.yml@@ -12,6 +12,8 @@ en:remove_assignee: 'Remove assignee'two_weeks: '2-week'one_week: '1-week'+ four_weeks: '4-week'+ eight_weeks: '8-week'work_week: 'Work week'today: 'Today'drag_here_to_remove: 'Drag here to remove assignee and start and end dates.'