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
Add better texts for subtasks and subprojects board
Oliver Güntherd64e46c9558d
diff --git a/frontend/src/app/modules/boards/board/board-actions/subproject/subproject-action.service.ts b/frontend/src/app/modules/boards/board/board-actions/subproject/subproject-action.service.tsindex 249ef1ce20b..6c43b75e936 100644--- a/frontend/src/app/modules/boards/board/board-actions/subproject/subproject-action.service.ts+++ b/frontend/src/app/modules/boards/board/board-actions/subproject/subproject-action.service.ts@@ -17,8 +17,7 @@ export class BoardSubprojectActionService extends CachedBoardActionService {text = this.I18n.t('js.boards.board_type.action_by_attribute',{ attribute: this.I18n.t('js.boards.board_type.action_type.subproject')}) ;- description = this.I18n.t('js.boards.board_type.action_text',- { attribute: this.I18n.t('js.boards.board_type.action_type.subproject')});+ description = this.I18n.t('js.boards.board_type.action_text_subprojects');icon = 'icon-projects';diff --git a/frontend/src/app/modules/boards/board/board-actions/subtasks/board-subtasks-action.service.ts b/frontend/src/app/modules/boards/board/board-actions/subtasks/board-subtasks-action.service.tsindex ed543fac42e..4ce72a68d47 100644--- a/frontend/src/app/modules/boards/board/board-actions/subtasks/board-subtasks-action.service.ts+++ b/frontend/src/app/modules/boards/board/board-actions/subtasks/board-subtasks-action.service.ts@@ -13,6 +13,13 @@ import {SubtasksBoardHeaderComponent} from "core-app/modules/boards/board/board-export class BoardSubtasksActionService extends BoardActionService {filterName = 'parent';+ text = this.I18n.t('js.boards.board_type.action_by_attribute',+ { attribute: this.I18n.t('js.boards.board_type.action_type.subtasks')}) ;++ description = this.I18n.t('js.boards.board_type.action_text_subtasks');++ icon = 'icon-hierarchy';+public get localizedName() {return this.I18n.t('js.boards.board_type.action_type.subtasks');}diff --git a/modules/boards/config/locales/js-en.yml b/modules/boards/config/locales/js-en.ymlindex ed8f2b0a642..77eacbae5a4 100644--- a/modules/boards/config/locales/js-en.yml+++ b/modules/boards/config/locales/js-en.yml@@ -38,13 +38,19 @@ en:free: 'Basic board'select_board_type: 'Please choose the type of board you need.'free_text: >- Create a board in which you can freely create lists and order your work packages within.- Moving work packages between lists do not change the work package itself.+ A board in which you can freely create lists and order your work packages within.+ Dragging work packages between lists do not change the work package itself.action: 'Action board'action_by_attribute: 'Action board (%{attribute})'action_text: >- Create a board with filtered lists on %{attribute} attribute. Moving work packages to other lists+ A board with filtered lists on %{attribute} attribute. Moving work packages to other listswill update their attribute.+ action_text_subprojects: >+ A board with lists of subprojects of this project and their work packages as list items.+ Dragging work packages to other lists will move them to the corresponding subproject.+ action_text_subtasks: >+ A board with lists of selected parents and their child work packages as list items.+ Dragging work packages to other lists will update the parent accordingly.action_type:assignee: assigneestatus: statusdiff --git a/modules/boards/spec/features/action_boards/subtasks_board_spec.rb b/modules/boards/spec/features/action_boards/subtasks_board_spec.rbindex 56528c8e5ab..532634968b3 100644--- a/modules/boards/spec/features/action_boards/subtasks_board_spec.rb+++ b/modules/boards/spec/features/action_boards/subtasks_board_spec.rb@@ -100,7 +100,7 @@ describe 'Subtasks action board', type: :feature, js: true doboard_page.expect_movable 'Parent WP', 'Child', movable: trueboard_page.board(reload: true) do |board|- expect(board.name).to eq 'Action board (Children)'+ expect(board.name).to eq 'Action board (children)'queries = board.contained_queriesexpect(queries.count).to eq(1)diff --git a/modules/boards/spec/features/support/board_index_page.rb b/modules/boards/spec/features/support/board_index_page.rbindex 0fd4f1dd10a..e0052a5ca2f 100644--- a/modules/boards/spec/features/support/board_index_page.rb+++ b/modules/boards/spec/features/support/board_index_page.rb@@ -62,7 +62,7 @@ module Pagesif action == nilfind('.tile-block', text: 'Basic Board').clickelse- find('.tile-block', text: action.to_s).click+ find('.tile-block', text: "Action Board (#{action.to_s})").clickendif expect_empty