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

Rename classes in partitioned query space page

Oliver Günther0ead450de2c7
diff --git a/app/assets/stylesheets/layout/work_packages/_details_view.sass b/app/assets/stylesheets/layout/work_packages/_details_view.sass
index 2289084f08d..f3f0fbb165d 100644
--- a/app/assets/stylesheets/layout/work_packages/_details_view.sass
+++ b/app/assets/stylesheets/layout/work_packages/_details_view.sass
@@ -31,7 +31,7 @@
body.router--work-packages-split-view,
body.router--work-packages-split-view-new
- .work-packages-split-view--details-side
+ .work-packages-partitioned-page--content-right
overflow-x: hidden
overflow-y: auto
position: relative
diff --git a/app/assets/stylesheets/layout/work_packages/_mobile.sass b/app/assets/stylesheets/layout/work_packages/_mobile.sass
index 05d4e076b56..1bafb3e4205 100644
--- a/app/assets/stylesheets/layout/work_packages/_mobile.sass
+++ b/app/assets/stylesheets/layout/work_packages/_mobile.sass
@@ -138,7 +138,7 @@
.router--work-packages-split-view,
.router--work-packages-split-view-new
- .work-packages-split-view--details-side
+ .work-packages-partitioned-page--content-right
overflow-x: auto
.router--work-packages-list-view
diff --git a/app/assets/stylesheets/layout/work_packages/_print.sass b/app/assets/stylesheets/layout/work_packages/_print.sass
index c52ce9ea4f4..357ad5f839f 100644
--- a/app/assets/stylesheets/layout/work_packages/_print.sass
+++ b/app/assets/stylesheets/layout/work_packages/_print.sass
@@ -25,7 +25,7 @@
overflow: visible !important
position: relative
- .work-packages-list-view--container
+ .work-packages-partitioned-query-space--container
padding-left: 0
.work-packages-split-view--tabletimeline-side
@@ -69,7 +69,7 @@
#content-wrapper,
#content
- .work-packages-list-view--container
+ .work-packages-partitioned-query-space--container
display: block
.toolbar-container
display: none
diff --git a/app/assets/stylesheets/layout/work_packages/_table.sass b/app/assets/stylesheets/layout/work_packages/_table.sass
index e895b7aaa64..2331abd2442 100644
--- a/app/assets/stylesheets/layout/work_packages/_table.sass
+++ b/app/assets/stylesheets/layout/work_packages/_table.sass
@@ -50,7 +50,7 @@
.work-packages-page--ui-view
height: 100%
-.work-packages-list-view--container
+.work-packages-partitioned-query-space--container
> .toolbar-container
margin-top: 5px
diff --git a/frontend/src/app/components/wp-new/wp-new-split-view.html b/frontend/src/app/components/wp-new/wp-new-split-view.html
index 24b9fdab2d5..c3a2b1dcd5d 100644
--- a/frontend/src/app/components/wp-new/wp-new-split-view.html
+++ b/frontend/src/app/components/wp-new/wp-new-split-view.html
@@ -28,7 +28,7 @@
</div>
<div class="work-packages--details--resizer hidden-for-mobile hide-when-print">
- <wp-resizer [elementClass]="'work-packages-split-view--details-side'"
+ <wp-resizer [elementClass]="'work-packages-partitioned-page--content-right'"
[localStorageKey]="'openProject-splitViewFlexBasis'"
resizeStyle="width"></wp-resizer>
</div>
diff --git a/frontend/src/app/modules/calendar/wp-calendar-entry/wp-calendar-entry.component.html b/frontend/src/app/modules/calendar/wp-calendar-entry/wp-calendar-entry.component.html
index 1a2d0bf9f13..b85441f80c3 100644
--- a/frontend/src/app/modules/calendar/wp-calendar-entry/wp-calendar-entry.component.html
+++ b/frontend/src/app/modules/calendar/wp-calendar-entry/wp-calendar-entry.component.html
@@ -1,4 +1,4 @@
-<div class="work-packages-list-view--container loading-indicator--location"
+<div class="work-packages-calendar-view--container loading-indicator--location"
data-indicator-name="calendar-entry">
<div class="toolbar-container -editable">
<div class="toolbar">
diff --git a/frontend/src/app/modules/calendar/wp-calendar/wp-calendar.sass b/frontend/src/app/modules/calendar/wp-calendar/wp-calendar.sass
index e7ab05d0cc0..0881455575a 100644
--- a/frontend/src/app/modules/calendar/wp-calendar/wp-calendar.sass
+++ b/frontend/src/app/modules/calendar/wp-calendar/wp-calendar.sass
@@ -7,5 +7,3 @@
font-style: italic
margin-top: 0.5rem
- .work-packages-list-view--container &
- margin-bottom: 1rem
diff --git a/frontend/src/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.html b/frontend/src/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.html
index 4527c70f91a..74f9e6c0ec7 100644
--- a/frontend/src/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.html
+++ b/frontend/src/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.html
@@ -1,4 +1,4 @@
-<div class="work-packages-list-view--container"
+<div class="work-packages-partitioned-query-space--container"
[ngClass]="currentPartition">
<div class="toolbar-container -editable">
<div class="toolbar">
@@ -35,6 +35,6 @@
</div>
<!-- Right content view -->
- <div class="work-packages-split-view--details-side"
+ <div class="work-packages-partitioned-page--content-right"
ui-view="content-right"></div>
</div>
diff --git a/frontend/src/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass b/frontend/src/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass
index 7cd6b8f2f3b..4e02c25c1ad 100644
--- a/frontend/src/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass
+++ b/frontend/src/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass
@@ -12,7 +12,7 @@
// --> Move scrollbar out of visible area
min-width: calc(100vw + 10px)
-.work-packages-list-view--container
+.work-packages-partitioned-query-space--container
height: 100%
overflow: hidden
display: grid
@@ -35,5 +35,5 @@
.work-packages-partitioned-page--content-left
grid-area: content-left
- .work-packages-split-view--details-side
+ .work-packages-partitioned-page--content-right
grid-area: content-right
diff --git a/frontend/src/app/modules/work_packages/routing/wp-split-view/wp-split-view.html b/frontend/src/app/modules/work_packages/routing/wp-split-view/wp-split-view.html
index 1f72f5b76e3..f696f77e74f 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-split-view/wp-split-view.html
+++ b/frontend/src/app/modules/work_packages/routing/wp-split-view/wp-split-view.html
@@ -59,7 +59,7 @@
</div>
<div class="work-packages--details--resizer hidden-for-mobile hide-when-print">
- <wp-resizer [elementClass]="'work-packages-split-view--details-side'"
+ <wp-resizer [elementClass]="'work-packages-partitioned-page--content-right'"
[localStorageKey]="'openProject-splitViewFlexBasis'"
resizeStyle="width"></wp-resizer>
</div>
diff --git a/modules/bim/spec/features/show_default_spec.rb b/modules/bim/spec/features/show_default_spec.rb
index 1fa28a61343..3ecf7b66f22 100644
--- a/modules/bim/spec/features/show_default_spec.rb
+++ b/modules/bim/spec/features/show_default_spec.rb
@@ -32,7 +32,7 @@ require_relative '../support/pages/ifc_models/index'
require_relative '../support/pages/ifc_models/show_default'
describe 'show default model', type: :feature, js: true do
- let(:project) { FactoryBot.create :project, enabled_module_names: [:bim, :work_package_tracking] }
+ let(:project) { FactoryBot.create :project, enabled_module_names: %i[bim work_package_tracking] }
let(:index_page) { Pages::IfcModels::Index.new(project) }
let(:show_default_page) { Pages::IfcModels::ShowDefault.new(project) }
let(:role) { FactoryBot.create(:role, permissions: %i[view_ifc_models view_work_packages manage_ifc_models]) }
diff --git a/spec/features/work_packages/pagination_spec.rb b/spec/features/work_packages/pagination_spec.rb
index 5e8db9e6ae8..04c4ddaec5f 100644
--- a/spec/features/work_packages/pagination_spec.rb
+++ b/spec/features/work_packages/pagination_spec.rb
@@ -49,7 +49,7 @@ RSpec.feature 'Work package pagination', js: true do
scenario do
expect(page).to have_content('All open')
- within('.work-packages-list-view--container') do
+ within('.work-packages-partitioned-query-space--container') do
expect(page).to have_content(work_package_1.subject)
expect(page).to_not have_content(work_package_2.subject)
end
@@ -58,7 +58,7 @@ RSpec.feature 'Work package pagination', js: true do
find('.pagination--item a', text: '2').click
end
- within('.work-packages-list-view--container') do
+ within('.work-packages-partitioned-query-space--container') do
expect(page).to have_content(work_package_2.subject)
expect(page).to_not have_content(work_package_1.subject)
end
@@ -67,7 +67,7 @@ RSpec.feature 'Work package pagination', js: true do
find('.pagination--item a', text: '50').click
end
- within('.work-packages-list-view--container') do
+ within('.work-packages-partitioned-query-space--container') do
expect(page).to have_content(work_package_1.subject)
expect(page).to have_content(work_package_2.subject)
end