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
[41717] Consolidate create labels in calendar, boards, team planner
Oliver Günthere1bfe76eeec5
diff --git a/frontend/src/app/features/boards/boards-sidebar/boards-menu.component.html b/frontend/src/app/features/boards/boards-sidebar/boards-menu.component.htmlindex 3cf87a54575..0233b8ac363 100644--- a/frontend/src/app/features/boards/boards-sidebar/boards-menu.component.html+++ b/frontend/src/app/features/boards/boards-sidebar/boards-menu.component.html@@ -13,8 +13,9 @@*ngIf="canCreateBoards$ | async"class="spot-button spot-button_outlined"(click)="showNewBoardModal()"+ [title]="text.create_new_board"><span class="spot-icon spot-icon_add"></span>- <span [textContent]="text.create_new_board"></span>+ <span [textContent]="text.board"></span></button></div>diff --git a/frontend/src/app/features/boards/boards-sidebar/boards-menu.component.ts b/frontend/src/app/features/boards/boards-sidebar/boards-menu.component.tsindex 9d6ac18bb94..a749252c6d3 100644--- a/frontend/src/app/features/boards/boards-sidebar/boards-menu.component.ts+++ b/frontend/src/app/features/boards/boards-sidebar/boards-menu.component.ts@@ -62,6 +62,7 @@ export class BoardsMenuComponent extends UntilDestroyedMixin implements OnInit {.pipe(this.untilDestroyed());text = {+ board: this.I18n.t('js.label_board'),create_new_board: this.I18n.t('js.boards.create_new'),};diff --git a/frontend/src/app/features/boards/index-page/boards-index-page.component.html b/frontend/src/app/features/boards/index-page/boards-index-page.component.htmlindex 982b58ae47a..7eceecb7613 100644--- a/frontend/src/app/features/boards/index-page/boards-index-page.component.html+++ b/frontend/src/app/features/boards/index-page/boards-index-page.component.html@@ -7,11 +7,12 @@<li *ngIf="canAdd"class="toolbar-item"><a class="button -alt-highlight"+ [title]="text.create_new_board"(click)="newBoard()"><op-icon icon-classes="button--icon icon-add"></op-icon><span class="button--text"- [textContent]="text.create">+ [textContent]="text.board"></span></a></li>diff --git a/frontend/src/app/features/boards/index-page/boards-index-page.component.ts b/frontend/src/app/features/boards/index-page/boards-index-page.component.tsindex 95939989748..384de1f83f5 100644--- a/frontend/src/app/features/boards/index-page/boards-index-page.component.ts+++ b/frontend/src/app/features/boards/index-page/boards-index-page.component.ts@@ -27,6 +27,7 @@ export class BoardsIndexPageComponent extends UntilDestroyedMixin implements OnIpublic text = {name: this.I18n.t('js.modals.label_name'),create: this.I18n.t('js.button_create'),+ create_new_board: this.I18n.t('js.boards.create_new'),board: this.I18n.t('js.label_board'),boards: this.I18n.t('js.label_board_plural'),type: this.I18n.t('js.boards.label_board_type'),diff --git a/frontend/src/app/features/calendar/sidemenu/calendar-sidemenu.component.html b/frontend/src/app/features/calendar/sidemenu/calendar-sidemenu.component.htmlindex 2d622525b65..48f2dec7424 100644--- a/frontend/src/app/features/calendar/sidemenu/calendar-sidemenu.component.html+++ b/frontend/src/app/features/calendar/sidemenu/calendar-sidemenu.component.html@@ -14,6 +14,7 @@class="spot-button spot-button_outlined"[uiSref]="createButton.uiSref"[uiParams]="createButton.uiParams"+ [title]="text.create_new_calendar"><span class="spot-icon spot-icon_add"></span><span [textContent]="createButton.title"></span>diff --git a/frontend/src/app/features/calendar/sidemenu/calendar-sidemenu.component.ts b/frontend/src/app/features/calendar/sidemenu/calendar-sidemenu.component.tsindex f361257c018..34b2a38bd92 100644--- a/frontend/src/app/features/calendar/sidemenu/calendar-sidemenu.component.ts+++ b/frontend/src/app/features/calendar/sidemenu/calendar-sidemenu.component.ts@@ -33,11 +33,12 @@ export class CalendarSidemenuComponent extends UntilDestroyedMixin {.pipe(this.untilDestroyed());text = {+ calendar: this.I18n.t('js.calendar.title'),create_new_calendar: this.I18n.t('js.calendar.create_new'),};createButton = {- title: this.text.create_new_calendar,+ title: this.text.calendar,uiSref: 'calendar.page.show',uiParams: {query_id: null,diff --git a/frontend/src/app/features/team-planner/team-planner/sidemenu/team-planner-sidemenu.component.ts b/frontend/src/app/features/team-planner/team-planner/sidemenu/team-planner-sidemenu.component.tsindex c58fca94212..1970e199747 100644--- a/frontend/src/app/features/team-planner/team-planner/sidemenu/team-planner-sidemenu.component.ts+++ b/frontend/src/app/features/team-planner/team-planner/sidemenu/team-planner-sidemenu.component.ts@@ -39,7 +39,7 @@ export class TeamPlannerSidemenuComponent extends UntilDestroyedMixin {);text = {- create_new_team_planner: this.I18n.t('js.team_planner.create_new'),+ create_new_team_planner: this.I18n.t('js.team_planner.title'),};createButton = {diff --git a/modules/boards/config/locales/js-en.yml b/modules/boards/config/locales/js-en.ymlindex 3e295d2f454..ac7063407c5 100644--- a/modules/boards/config/locales/js-en.yml+++ b/modules/boards/config/locales/js-en.yml@@ -2,7 +2,7 @@en:js:boards:- create_new: 'New board'+ create_new: 'Create new board'label_unnamed_board: 'Unnamed board'label_unnamed_list: 'Unnamed list'label_board_type: 'Board type'diff --git a/modules/boards/spec/features/board_enterprise_spec.rb b/modules/boards/spec/features/board_enterprise_spec.rbindex aa62e2ee93f..fecc7581ab6 100644--- a/modules/boards/spec/features/board_enterprise_spec.rb+++ b/modules/boards/spec/features/board_enterprise_spec.rb@@ -54,7 +54,7 @@ describe 'Boards enterprise spec', type: :feature, js: true doendit 'disabled all action boards' do- page.find('.toolbar-item a', text: I18n.t('js.button_create')).click+ page.find('.toolbar-item a', text: 'Board').clickexpect(page).to have_selector('[data-qa-selector="op-tile-block"]:not([disabled])', text: 'Basic')expect(page).to have_selector('[data-qa-selector="op-tile-block"]:disabled', count: 5)@@ -84,7 +84,7 @@ describe 'Boards enterprise spec', type: :feature, js: true doendit 'enables all options' do- page.find('.toolbar-item a', text: I18n.t('js.button_create')).click+ page.find('.toolbar-item a', text: 'Board').clickexpect(page).to have_selector('[data-qa-selector="op-tile-block"]:not([disabled])', count: 6)enddiff --git a/modules/boards/spec/features/support/board_index_page.rb b/modules/boards/spec/features/support/board_index_page.rbindex 130991d5f59..59de88255bd 100644--- a/modules/boards/spec/features/support/board_index_page.rb+++ b/modules/boards/spec/features/support/board_index_page.rb@@ -57,7 +57,7 @@ module Pagesenddef create_board(action: nil, expect_empty: false)- page.find('.toolbar-item a', text: I18n.t('js.button_create')).click+ page.find('.toolbar-item a', text: 'Board').clicktext = action == nil ? 'Basic' : action.to_s[0..5]find('[data-qa-selector="op-tile-block-title"]', text: text).clickdiff --git a/modules/calendar/app/views/calendar/calendars/index.html.erb b/modules/calendar/app/views/calendar/calendars/index.html.erbindex 6aff37f1835..8b5ad5812f2 100644--- a/modules/calendar/app/views/calendar/calendars/index.html.erb+++ b/modules/calendar/app/views/calendar/calendars/index.html.erb@@ -33,9 +33,9 @@ See COPYRIGHT and LICENSE files for more details.<li class="toolbar-item"><%= link_to new_project_calendars_path(@project),class: 'button -alt-highlight',- title: t(:button_create) do %>+ title: t('js.calendar.create_new') do %><%= op_icon('button--icon icon-add') %>- <span class="button--text"><%= t(:button_create) %></span>+ <span class="button--text"><%= t(:label_calendar) %></span><% end %></li><% end %>diff --git a/modules/calendar/config/locales/js-en.yml b/modules/calendar/config/locales/js-en.ymlindex 1f0493587aa..2a3a0b27296 100644--- a/modules/calendar/config/locales/js-en.yml+++ b/modules/calendar/config/locales/js-en.yml@@ -2,7 +2,7 @@en:js:calendar:- create_new: 'New calendar'+ create_new: 'Create new calendar'title: 'Calendar'too_many: 'There are %{count} work packages in total, but only %{max} can be shown.'unsaved_title: 'Unnamed calendar'diff --git a/modules/calendar/spec/features/calendars_index_spec.rb b/modules/calendar/spec/features/calendars_index_spec.rbindex fcb15e6a796..d77a968d0e9 100644--- a/modules/calendar/spec/features/calendars_index_spec.rb+++ b/modules/calendar/spec/features/calendars_index_spec.rb@@ -66,7 +66,7 @@ describe 'Team planner index', type: :feature, js: true, with_ee: %i[team_planneit 'shows an index action' doexpect(page).to have_text 'There is currently nothing to display.'- expect(page).to have_selector '.button', text: 'Create'+ expect(page).to have_selector '.button', text: 'Calendar'endend@@ -91,7 +91,7 @@ describe 'Team planner index', type: :feature, js: true, with_ee: %i[team_planneexpect(page).to have_no_selector "[data-qa-selector='calendar-remove-#{query.id}']"# Does not show the create button- expect(page).to have_no_selector '.button', text: 'Create'+ expect(page).to have_no_selector '.button', text: 'Calendar'endcontext 'when the view is non-public' do@@ -105,7 +105,7 @@ describe 'Team planner index', type: :feature, js: true, with_ee: %i[team_planneexpect(page).to have_no_selector "[data-qa-selector='team-planner-remove-#{query.id}']"# Does not show the create button- expect(page).to have_no_selector '.button', text: 'Create'+ expect(page).to have_no_selector '.button', text: 'Calendar'endendenddiff --git a/modules/calendar/spec/features/calendars_spec.rb b/modules/calendar/spec/features/calendars_spec.rbindex de928e55fa5..d2fc469b42b 100644--- a/modules/calendar/spec/features/calendars_spec.rb+++ b/modules/calendar/spec/features/calendars_spec.rb@@ -81,7 +81,7 @@ describe 'Work package calendars', type: :feature, js: true doexpect(page).to have_text 'There is currently nothing to display.'# Open a new calendar from there- click_on 'Create'+ find('.toolbar-item a', text: 'Calendar').clickloading_indicator_saveguarddiff --git a/modules/team_planner/app/views/team_planner/team_planner/index.html.erb b/modules/team_planner/app/views/team_planner/team_planner/index.html.erbindex e1f4de15fd2..e8feb0ce83f 100644--- a/modules/team_planner/app/views/team_planner/team_planner/index.html.erb+++ b/modules/team_planner/app/views/team_planner/team_planner/index.html.erb@@ -5,9 +5,9 @@<li class="toolbar-item"><%= link_to new_project_team_planners_path(@project),class: 'button -alt-highlight',- title: t(:button_create) do %>+ title: t(:'team_planner.label_create_new_team_planner') do %><%= op_icon('button--icon icon-add') %>- <span class="button--text"><%= t(:button_create) %></span>+ <span class="button--text"><%= t(:'team_planner.label_team_planner') %></span><% end %></li><% end %>diff --git a/modules/team_planner/config/locales/en.yml b/modules/team_planner/config/locales/en.ymlindex a91e124d721..0b32fdbe13b 100644--- a/modules/team_planner/config/locales/en.yml+++ b/modules/team_planner/config/locales/en.yml@@ -6,6 +6,7 @@ en:team_planner:label_team_planner: "Team planner"+ label_create_new_team_planner: "Create new team planner"label_team_planner_plural: "Team planners"label_assignees: "Assignees"upsale:diff --git a/modules/team_planner/config/locales/js-en.yml b/modules/team_planner/config/locales/js-en.ymlindex 7448ba5a967..69f5819cb64 100644--- a/modules/team_planner/config/locales/js-en.yml+++ b/modules/team_planner/config/locales/js-en.yml@@ -3,7 +3,6 @@ en:js:team_planner:add_existing: 'Add existing'- create_new: 'New team planner'title: 'Team planner'unsaved_title: 'Unnamed team planner'no_data: 'Add assignees to set up your team planner.'diff --git a/modules/team_planner/spec/features/team_planner_index_spec.rb b/modules/team_planner/spec/features/team_planner_index_spec.rbindex e57c809cdee..e9bf250be74 100644--- a/modules/team_planner/spec/features/team_planner_index_spec.rb+++ b/modules/team_planner/spec/features/team_planner_index_spec.rb@@ -47,16 +47,16 @@ describe 'Team planner index', type: :feature, js: true, with_ee: %i[team_planneit 'shows an index action' doexpect(page).to have_text 'There is currently nothing to display.'- expect(page).to have_selector '.button', text: 'Create'+ expect(page).to have_selector '.button', text: 'Team planner'endit 'can create an action through the sidebar' do- click_on 'New team planner'+ find('[data-qa-selector="team-planner--create-button"]').clickteam_planner.expect_title# Also works from the frontend- click_on 'New team planner'+ find('[data-qa-selector="team-planner--create-button"]').clickteam_planner.expect_no_toasterteam_planner.expect_title@@ -84,7 +84,7 @@ describe 'Team planner index', type: :feature, js: true, with_ee: %i[team_planneexpect(page).to have_no_selector "[data-qa-selector='team-planner-remove-#{query.id}']"# Does not show the create button- expect(page).to have_no_selector '.button', text: 'Create'+ expect(page).to have_no_selector '.button', text: 'Team planner'endcontext 'when the view is non-public' do@@ -98,7 +98,7 @@ describe 'Team planner index', type: :feature, js: true, with_ee: %i[team_planneexpect(page).to have_no_selector "[data-qa-selector='team-planner-remove-#{query.id}']"# Does not show the create button- expect(page).to have_no_selector '.button', text: 'Create'+ expect(page).to have_no_selector '.button', text: 'Team planner'endendend