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

Minor adjustments to text and spacings in datepicker banner

Henriette Darge3a73af14b811
diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml
index 1fe42d39bcf..dbe7f482536 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: "Automatically scheduled. Dates are derived from relations."
- manually_scheduled: "Manual scheduling enabled, all relations ignored."
- start_date_limited_by_relations: "Available start date is limited by relations."
- changing_dates_affects_follow_relations: "Changing these dates will affect dates of related work packages."
+ automatically_scheduled_parent: "The dates are automatically derived from relations."
+ manually_scheduled: "Manual scheduling is enabled so all existing work package relations are 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."
click_on_show_relations_to_open_gantt: 'Click on "%{button_name}" for GANTT overview.'
show_relations: 'Show relations'
description_filter: "Filter"
diff --git a/frontend/src/app/shared/components/modal/modal-banner/modal-banner.component.html b/frontend/src/app/shared/components/modal/modal-banner/modal-banner.component.html
index 7c024dd92ed..9fc577bfaef 100644
--- a/frontend/src/app/shared/components/modal/modal-banner/modal-banner.component.html
+++ b/frontend/src/app/shared/components/modal/modal-banner/modal-banner.component.html
@@ -12,10 +12,10 @@
class="op-modal-banner--icon spot-icon spot-icon_warning hidden-for-mobile"
></span>
<p
- class="op-modal-banner--text"
+ class="op-modal-banner--text spot-caption"
>
<span
- class="op-modal-banner--title"
+ class="op-modal-banner--title spot-caption spot-caption_bold"
[textContent]="title"
></span>
<br/>
diff --git a/frontend/src/app/shared/components/modal/modal-banner/modal-banner.component.sass b/frontend/src/app/shared/components/modal/modal-banner/modal-banner.component.sass
index ccc4c9aa5cf..887a70b2794 100644
--- a/frontend/src/app/shared/components/modal/modal-banner/modal-banner.component.sass
+++ b/frontend/src/app/shared/components/modal/modal-banner/modal-banner.component.sass
@@ -3,9 +3,9 @@
.op-modal-banner
display: grid
grid-template-columns: 20px auto max-content
- grid-gap: 20px
+ grid-gap: $spot-spacing-1
align-items: center
- padding: 10px 20px
+ padding: $spot-spacing-0-75
@media only screen and (max-width: 679px)
grid-template-columns: auto max-content
@@ -16,15 +16,5 @@
&_info
background: $spot-color-feedback-info-light
- &--text
- margin: 0
- line-height: 1
-
- &--icon
- font-size: 20px
-
- &--title
- font-weight: bold
-
&--button
margin: 0
diff --git a/spec/features/work_packages/details/date_editor_spec.rb b/spec/features/work_packages/details/date_editor_spec.rb
index e20c836b367..788089b9f29 100644
--- a/spec/features/work_packages/details/date_editor_spec.rb
+++ b/spec/features/work_packages/details/date_editor_spec.rb
@@ -289,7 +289,7 @@ describe 'date inplace editor',
expect(page).to have_no_selector('[data-qa-selector="op-modal-banner-warning"]')
expect(page).to have_no_selector('[data-qa-selector="op-modal-banner-info"]')
- # When toggling manuallly scheduled
+ # When toggling manually scheduled
start_date.expect_scheduling_mode manually: false
start_date.toggle_scheduling_mode
start_date.expect_scheduling_mode manually: true
@@ -317,16 +317,16 @@ 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 enabled, all relations ignored.')
+ text: 'Manual scheduling is enabled so all existing work package relations are ignored.')
- # When toggling manuallly scheduled
+ # When toggling manually scheduled
start_date.expect_scheduling_mode manually: true
start_date.toggle_scheduling_mode
start_date.expect_scheduling_mode manually: false
# Expect banner to switch
expect(page).to have_selector('[data-qa-selector="op-modal-banner-info"] span',
- text: 'Automatically scheduled. Dates are derived from relations.')
+ text: 'The dates are automatically derived from relations.')
new_window = window_opened_by { click_on 'Show relations' }
switch_to_window new_window
@@ -341,15 +341,15 @@ 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: 'Automatically scheduled. Dates are derived from relations.')
+ text: 'The dates are automatically derived from relations.')
- # When toggling manuallly scheduled
+ # When toggling manually scheduled
start_date.expect_scheduling_mode manually: false
start_date.toggle_scheduling_mode
start_date.expect_scheduling_mode manually: true
expect(page).to have_selector('[data-qa-selector="op-modal-banner-warning"] span',
- text: 'Manual scheduling enabled, all relations ignored.')
+ text: 'Manual scheduling is enabled so all existing work package relations are ignored.')
new_window = window_opened_by { click_on 'Show relations' }
switch_to_window new_window
@@ -381,16 +381,16 @@ 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 enabled, all relations ignored.')
+ text: 'Manual scheduling is enabled so all existing work package relations are ignored.')
- # When toggling manuallly scheduled
+ # When toggling manually scheduled
start_date.expect_scheduling_mode manually: true
start_date.toggle_scheduling_mode
start_date.expect_scheduling_mode manually: false
# Expect new banner info
expect(page).to have_selector('[data-qa-selector="op-modal-banner-info"] span',
- text: 'Available start date is limited by relations.')
+ text: 'Available start and finish dates are limited by relations.')
new_window = window_opened_by { click_on 'Show relations' }
switch_to_window new_window
@@ -405,15 +405,15 @@ 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-info"] span',
- text: 'Available start date is limited by relations.')
+ text: 'Available start and finish dates are limited by relations.')
- # When toggling manuallly scheduled
+ # When toggling manually scheduled
start_date.expect_scheduling_mode manually: false
start_date.toggle_scheduling_mode
start_date.expect_scheduling_mode manually: true
expect(page).to have_selector('[data-qa-selector="op-modal-banner-warning"] span',
- text: 'Manual scheduling enabled, all relations ignored.')
+ text: 'Manual scheduling is enabled so all existing work package relations are ignored.')
end
end
end
@@ -439,15 +439,16 @@ 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 enabled, all relations ignored.')
+ text: 'Manual scheduling is enabled so all existing work package relations are ignored.')
- # When toggling manuallly scheduled
+ # When toggling manually scheduled
start_date.expect_scheduling_mode manually: true
start_date.toggle_scheduling_mode
start_date.expect_scheduling_mode manually: false
- expect(page).to have_selector('[data-qa-selector="op-modal-banner-info"] span',
- text: 'Changing these dates will affect dates of related work packages.')
+ expect(page)
+ .to have_selector('[data-qa-selector="op-modal-banner-info"] span',
+ text: 'Changing the dates of this work package will change the dates of related work packages.')
new_window = window_opened_by { click_on 'Show relations' }
switch_to_window new_window
@@ -461,16 +462,17 @@ describe 'date inplace editor',
let(:schedule_manually) { false }
it 'shows a banner that the start date is limited' do
- expect(page).to have_selector('[data-qa-selector="op-modal-banner-info"] span',
- text: 'Changing these dates will affect dates of related work packages.')
+ expect(page)
+ .to have_selector('[data-qa-selector="op-modal-banner-info"] span',
+ text: 'Changing the dates of this work package will change the dates of related work packages.')
- # When toggling manuallly scheduled
+ # When toggling manually scheduled
start_date.expect_scheduling_mode manually: false
start_date.toggle_scheduling_mode
start_date.expect_scheduling_mode manually: true
expect(page).to have_selector('[data-qa-selector="op-modal-banner-warning"] span',
- text: 'Manual scheduling enabled, all relations ignored.')
+ text: 'Manual scheduling is enabled so all existing work package relations are ignored.')
end
end
end