Skip to content

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

Change datepicker banner texts

Henriette Darge16f4328b38ff
diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml
index dbe7f482536..dcba606bb44 100644
--- a/config/locales/js-en.yml
+++ b/config/locales/js-en.yml
@@ -925,10 +925,10 @@ en:
comment_updated: "The comment was successfully updated."
confirm_edit_cancel: "Are you sure you want to cancel editing the work package?"
datepicker_modal:
- automatically_scheduled_parent: "The dates are automatically derived from relations."
- manually_scheduled: "Manual scheduling is enabled so all existing work package relations are ignored."
+ automatically_scheduled_parent: "Automatically scheduled. Dates are derived from relations."
+ manually_scheduled: "Manual scheduling enabled, all relations ignored."
start_date_limited_by_relations: "Available start and finish dates are limited by relations."
- changing_dates_affects_follow_relations: "Changing the dates of this work package will change the dates of related work packages."
+ changing_dates_affects_follow_relations: "Changing these dates will affect dates of related work packages."
click_on_show_relations_to_open_gantt: 'Click on "%{button_name}" for GANTT overview.'
show_relations: 'Show relations'
description_filter: "Filter"
@@ -1309,4 +1309,3 @@ en:
storages:
enter_oauth2_client_secret: 'Please enter your OAuth2 client secret'
-
diff --git a/spec/features/work_packages/details/date_editor_spec.rb b/spec/features/work_packages/details/date_editor_spec.rb
index 20a2d3a6895..326aaa7dab1 100644
--- a/spec/features/work_packages/details/date_editor_spec.rb
+++ b/spec/features/work_packages/details/date_editor_spec.rb
@@ -313,7 +313,7 @@ describe 'date inplace editor',
it 'shows a banner that the relations are ignored' do
expect(page).to have_selector('[data-qa-selector="op-modal-banner-warning"] span',
- text: 'Manual scheduling is enabled so all existing work package relations are ignored.',
+ text: 'Manual scheduling enabled, all relations ignored.',
wait: 5)
# When toggling manually scheduled
@@ -324,7 +324,7 @@ describe 'date inplace editor',
# Expect new banner info
expect(page)
.to have_selector('[data-qa-selector="op-modal-banner-warning"] span',
- text: 'Changing the dates of this work package will change the dates of related work packages.')
+ text: 'Changing these dates will affect dates of related work packages.')
new_window = window_opened_by { click_on 'Show relations' }
switch_to_window new_window
@@ -340,7 +340,7 @@ describe 'date inplace editor',
it 'shows a banner that the start date is limited' do
expect(page)
.to have_selector('[data-qa-selector="op-modal-banner-warning"] span',
- text: 'Changing the dates of this work package will change the dates of related work packages.',
+ text: 'Changing these dates will affect dates of related work packages.',
wait: 5)
# When toggling manually scheduled
@@ -349,7 +349,7 @@ describe 'date inplace editor',
start_date.expect_scheduling_mode manually: true
expect(page).to have_selector('[data-qa-selector="op-modal-banner-warning"] span',
- text: 'Manual scheduling is enabled so all existing work package relations are ignored.')
+ text: 'Manual scheduling enabled, all relations ignored.')
end
end
end
@@ -372,7 +372,7 @@ describe 'date inplace editor',
it 'shows a banner that the relations are ignored' do
expect(page).to have_selector('[data-qa-selector="op-modal-banner-warning"] span',
- text: 'Manual scheduling is enabled so all existing work package relations are ignored.')
+ text: 'Manual scheduling enabled, all relations ignored.')
# When toggling manually scheduled
start_date.expect_scheduling_mode manually: true
@@ -381,7 +381,7 @@ describe 'date inplace editor',
# Expect banner to switch
expect(page).to have_selector('[data-qa-selector="op-modal-banner-info"] span',
- text: 'The dates are automatically derived from relations.')
+ text: 'Automatically scheduled. Dates are derived from relations.')
new_window = window_opened_by { click_on 'Show relations' }
switch_to_window new_window
@@ -396,7 +396,7 @@ describe 'date inplace editor',
it 'shows a banner that the dates are not editable' do
expect(page).to have_selector('[data-qa-selector="op-modal-banner-info"] span',
- text: 'The dates are automatically derived from relations.')
+ text: 'Automatically scheduled. Dates are derived from relations.')
# When toggling manually scheduled
start_date.expect_scheduling_mode manually: false
@@ -404,7 +404,7 @@ describe 'date inplace editor',
start_date.expect_scheduling_mode manually: true
expect(page).to have_selector('[data-qa-selector="op-modal-banner-warning"] span',
- text: 'Manual scheduling is enabled so all existing work package relations are ignored.')
+ text: 'Manual scheduling enabled, all relations ignored.')
new_window = window_opened_by { click_on 'Show relations' }
switch_to_window new_window
@@ -436,7 +436,7 @@ describe 'date inplace editor',
it 'shows a banner that the relations are ignored' do
expect(page).to have_selector('[data-qa-selector="op-modal-banner-warning"] span',
- text: 'Manual scheduling is enabled so all existing work package relations are ignored.')
+ text: 'Manual scheduling enabled, all relations ignored.')
# When toggling manually scheduled
start_date.expect_scheduling_mode manually: true
@@ -468,7 +468,7 @@ describe 'date inplace editor',
start_date.expect_scheduling_mode manually: true
expect(page).to have_selector('[data-qa-selector="op-modal-banner-warning"] span',
- text: 'Manual scheduling is enabled so all existing work package relations are ignored.')
+ text: 'Manual scheduling enabled, all relations ignored.')
end
end
end
@@ -494,7 +494,7 @@ describe 'date inplace editor',
it 'shows a banner that the relations are ignored' do
expect(page).to have_selector('[data-qa-selector="op-modal-banner-warning"] span',
- text: 'Manual scheduling is enabled so all existing work package relations are ignored.')
+ text: 'Manual scheduling enabled, all relations ignored.')
# When toggling manually scheduled
start_date.expect_scheduling_mode manually: true
@@ -503,7 +503,7 @@ describe 'date inplace editor',
expect(page)
.to have_selector('[data-qa-selector="op-modal-banner-warning"] span',
- text: 'Changing the dates of this work package will change the dates of related work packages.')
+ text: 'Changing these dates will affect dates of related work packages.')
new_window = window_opened_by { click_on 'Show relations' }
switch_to_window new_window
@@ -519,7 +519,7 @@ describe 'date inplace editor',
it 'shows a banner that the start date is limited' do
expect(page)
.to have_selector('[data-qa-selector="op-modal-banner-warning"] span',
- text: 'Changing the dates of this work package will change the dates of related work packages.')
+ text: 'Changing these dates will affect dates of related work packages.')
# When toggling manually scheduled
start_date.expect_scheduling_mode manually: false
@@ -527,7 +527,7 @@ describe 'date inplace editor',
start_date.expect_scheduling_mode manually: true
expect(page).to have_selector('[data-qa-selector="op-modal-banner-warning"] span',
- text: 'Manual scheduling is enabled so all existing work package relations are ignored.')
+ text: 'Manual scheduling enabled, all relations ignored.')
end
end
end