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
Merge branch 'dev' into epic/49688-custom-set-of-project-attributes-grouped-in-sections
jjabari-op336d3ef05c51
diff --cc app/views/admin/settings/projects_settings/show.html.erbindex 125c7db00ca,7aa2f0dbd84..cef50b5b3bf--- a/app/views/admin/settings/projects_settings/show.html.erb+++ b/app/views/admin/settings/projects_settings/show.html.erb@@@ -68,24 -60,39 +60,40 @@@ See COPYRIGHT and LICENSE files for mor</div><% end %>- <div class="form--field">- <%= setting_multiselect(:enabled_projects_columns, column_choices) %>+++ <div class="form--field -full-width">+ <div class="form--text-field-container -xwide">+ <%= angular_component_tag 'opce-draggable-autocompleter',+ inputs: {+ options: projects_columns_options,+ selected: selected_projects_columns_options,+ protected: protected_projects_columns_options,+ name: 'settings[enabled_projects_columns][]',+ id: 'settings_enabled_projects_columns',+ inputLabel: I18n.t(:'queries.configure_view.columns.input_label'),+ inputPlaceholder: I18n.t(:'queries.configure_view.columns.input_placeholder'),+ dragAreaLabel: I18n.t(:'queries.configure_view.columns.drag_area_label')+ }%>+ </div></div>- <div class="form--field">- <%= setting_block("project_gantt_query") do %>- <span class="form--check-box-field-container -slim">- <%= content_tag 'editable-query-props',- '',- data: {- name: 'settings[project_gantt_query]',- id: 'settings_project_gantt_query',- query: ::Projects::GanttQueryGeneratorService.current_query,- 'url-params': 'true'- }- %>+ <div class="form--field -vertical">+ <div class="form--label -bold">+ <%= I18n.t(:setting_project_gantt_query) %>+ </div>+ <span class="form--field-container">+ <span class="form--text-field-container">+ <%= content_tag 'editable-query-props',+ '',+ data: {+ name: 'settings[project_gantt_query]',+ id: 'settings_project_gantt_query',+ query: ::Projects::GanttQueryGeneratorService.current_query,+ 'url-params': 'true'+ }+ %>+ </span></span>- <% end %><div class="form--field-instructions"><%= I18n.t(:setting_project_gantt_query_text) %></div>diff --cc frontend/src/global_styles/openproject/_primer-adjustments.sassindex 057d9f0f404,9c340ca77dd..c764da5e6f6--- a/frontend/src/global_styles/openproject/_primer-adjustments.sass+++ b/frontend/src/global_styles/openproject/_primer-adjustments.sass@@@ -56,10 -56,19 +56,27 @@@ ul.tabnav-tabapointer-events: none+.op-primer-adjustments__toggle-switch--hidden-loading-indicator+ .ToggleSwitch-statusIcon+ display: none++.Overlay+ &-body_autocomplete_height+ min-height: 300px+++ /* TODO: The actions within the PageHeader are currently not aligned correctly.+ The pageHeader itself already uses center alignment but the actions themselves default to 'normal'.+ Will be added to our primer repository */+ .PageHeader-actions+ align-items: center++ /* Primer uses the fgColor (blue) for Buttons having the :invisible schema unless they receive an trailing/leading icon.+ Then, the color changes to gray. This seems inconsistent. An issue has been opened with Primer to discuss this behavior.+ Until then, we will override the fgColor for the invisible schema.+ No all invisible schema buttons are overwritten though and need to apply this modifier themselves. */+ .Button--invisibleOP,+ .Button--invisibleOP:hover:not(:disabled,.Button--inactive)+ color: var(--button-invisible-fgColor-rest,var(--color-btn-outline-text))++ .Button-visual+ color: var(--button-invisible-fgColor-rest,var(--color-btn-outline-text))diff --cc modules/xls_export/spec/models/xls_export/project/exporter/xls_integration_spec.rbindex 1671658e532,f62b664a81f..094bb9c2171--- a/modules/xls_export/spec/models/xls_export/project/exporter/xls_integration_spec.rb+++ b/modules/xls_export/spec/models/xls_export/project/exporter/xls_integration_spec.rb@@@ -58,18 -55,15 +56,15 @@@ RSpec.describe XlsExport::Project::Expoenddescribe 'custom field columns selected' do- before do- Setting.enabled_projects_columns += global_project_custom_fields.map(&:column_name)- end- let(:query_columns) { %w[name description project_status public] + custom_fields.map(&:column_name) }++ let(:query_columns) { %w[name description project_status public] + global_project_custom_fields.map(&:column_name) }+ let(:current_user) { build_stubbed(:admin) }context 'when ee enabled', with_ee: %i[custom_fields_in_projects_list] doit 'renders all those columns' do- expect(rows.count).to eq 1-- cf_names = custom_fields.map(&:name)+ cf_names = global_project_custom_fields.map(&:name)expect(header).to eq ['ID', 'Identifier', 'Name', 'Description', 'Status', 'Public', *cf_names]- custom_values = custom_fields.map do |cf|+ custom_values = global_project_custom_fields.map do |cf|case cfwhen bool_cf'true'diff --cc spec/models/projects/exporter/csv_integration_spec.rbindex d8a03f2d4a7,325c1a36301..3de1c4e0a00--- a/spec/models/projects/exporter/csv_integration_spec.rb+++ b/spec/models/projects/exporter/csv_integration_spec.rb@@@ -61,8 -59,8 +59,8 @@@ RSpec.describe Projects::Exports::CSV,enddescribe 'custom field columns selected' do- before do- Setting.enabled_projects_columns += global_project_custom_fields.map(&:column_name)+ let(:query_columns) do- %w[name description project_status public] + custom_fields.map(&:column_name)++ %w[name description project_status public] + global_project_custom_fields.map(&:column_name)endcontext 'when ee enabled', with_ee: %i[custom_fields_in_projects_list] do