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
Add old breadcrumb methods again for super class compliance && fix tests
Henriette Dargeb110240b5c8c
diff --git a/app/components/settings/project_custom_fields/new_form_header_component.rb b/app/components/settings/project_custom_fields/new_form_header_component.rbindex 29bb2748b72..dca15e48831 100644--- a/app/components/settings/project_custom_fields/new_form_header_component.rb+++ b/app/components/settings/project_custom_fields/new_form_header_component.rb@@ -31,6 +31,7 @@ module Settingsclass NewFormHeaderComponent < ApplicationComponentdef breadcrumb_items[{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_project_custom_fields_path, text: t("label_project_plural") },{ href: admin_settings_project_custom_fields_path, text: t("settings.project_attributes.heading") },t("settings.project_attributes.new.heading")]enddiff --git a/app/controllers/admin/attachments/quarantined_attachments_controller.rb b/app/controllers/admin/attachments/quarantined_attachments_controller.rbindex 233bc5e3e64..ab85b24b67e 100644--- a/app/controllers/admin/attachments/quarantined_attachments_controller.rb+++ b/app/controllers/admin/attachments/quarantined_attachments_controller.rb@@ -51,6 +51,12 @@ module Adminredirect_to action: :indexend+ def default_breadcrumb; end++ def show_local_breadcrumb+ false+ end+privatedef create_journal(container, user, notes)diff --git a/app/views/admin/attachments/quarantined_attachments/index.html.erb b/app/views/admin/attachments/quarantined_attachments/index.html.erbindex fa7223bec0e..55eefb1f37e 100644--- a/app/views/admin/attachments/quarantined_attachments/index.html.erb+++ b/app/views/admin/attachments/quarantined_attachments/index.html.erb@@ -2,7 +2,7 @@<%=render(Primer::OpenProject::PageHeader.new) do |header|- header.with_title(variant: :default) { t('antivirus_scan.quarantined_attachments.title') }+ header.with_title { t('antivirus_scan.quarantined_attachments.title') }header.with_breadcrumbs(breadcrumb_items)end%>diff --git a/app/views/admin/settings/project_custom_fields/index.html.erb b/app/views/admin/settings/project_custom_fields/index.html.erbindex 14b91d79930..71c74dbe15b 100644--- a/app/views/admin/settings/project_custom_fields/index.html.erb+++ b/app/views/admin/settings/project_custom_fields/index.html.erb@@ -26,6 +26,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See COPYRIGHT and LICENSE files for more details.++#%>+<% html_title t(:label_administration), t("settings.project_attributes.heading") %>+<div data-turbo="true"><%= render(Settings::ProjectCustomFields::HeaderComponent.new()) %><%= render(Settings::ProjectCustomFieldSections::IndexComponent.new(diff --git a/modules/storages/app/controllers/storages/admin/storages_controller.rb b/modules/storages/app/controllers/storages/admin/storages_controller.rbindex 9fa06960d48..71b478a0814 100644--- a/modules/storages/app/controllers/storages/admin/storages_controller.rb+++ b/modules/storages/app/controllers/storages/admin/storages_controller.rb@@ -194,6 +194,12 @@ class Storages::Admin::StoragesController < ApplicationControllerendend+ def default_breadcrumb; end++ def show_local_breadcrumb+ false+ end+privatedef ensure_valid_provider_type_selecteddiff --git a/modules/storages/app/views/storages/admin/storages/edit.html.erb b/modules/storages/app/views/storages/admin/storages/edit.html.erbindex c394af2e30b..1cc4b02666f 100644--- a/modules/storages/app/views/storages/admin/storages/edit.html.erb+++ b/modules/storages/app/views/storages/admin/storages/edit.html.erb@@ -56,7 +56,6 @@ See COPYRIGHT and LICENSE files for more details.mobile_icon: :trash,mobile_label: I18n.t("button_delete"),type: :submit,- data: { "test-selector": "project-query-name"},aria: { label: I18n.t("storages.label_delete_storage") },test_selector: "storage-delete-button") do |button|button.with_leading_visual_icon(icon: :trash)diff --git a/modules/storages/app/views/storages/admin/storages/index.html.erb b/modules/storages/app/views/storages/admin/storages/index.html.erbindex 61e09bd52bf..11f1b119213 100644--- a/modules/storages/app/views/storages/admin/storages/index.html.erb+++ b/modules/storages/app/views/storages/admin/storages/index.html.erb@@ -28,7 +28,7 @@ end %>item.with_trailing_visual_icon(icon: "op-enterprise-addons",classes: "upsale-colored"- ) if ::Storages::Storage::one_drive_without_ee_token?(provider_type:)+ ) if ::Storages::Storage::one_drive_without_ee_token?(provider_type)endendend %>diff --git a/modules/storages/spec/features/storages/admin/edit_storage_spec.rb b/modules/storages/spec/features/storages/admin/edit_storage_spec.rbindex bbe471e671a..5bde5245503 100644--- a/modules/storages/spec/features/storages/admin/edit_storage_spec.rb+++ b/modules/storages/spec/features/storages/admin/edit_storage_spec.rb@@ -42,9 +42,7 @@ RSpec.describe "Admin Edit File storage",storage = create(:nextcloud_storage, name: "Foo Nextcloud")visit edit_admin_settings_storage_path(storage)- within_test_selector("page-header-actions") do- click_on "Delete"- end+ page.find_test_selector("storage-delete-button").clickexpect(page).to have_text("DELETE FILE STORAGE")expect(page).to have_current_path("#{confirm_destroy_admin_settings_storage_path(storage)}?utf8=%E2%9C%93")diff --git a/modules/storages/spec/features/storages/admin/index_storages_spec.rb b/modules/storages/spec/features/storages/admin/index_storages_spec.rbindex 1d7e00cb790..c2ba3158059 100644--- a/modules/storages/spec/features/storages/admin/index_storages_spec.rb+++ b/modules/storages/spec/features/storages/admin/index_storages_spec.rb@@ -48,7 +48,6 @@ RSpec.describe "Admin List File storages",it "renders a list of all storages" dowithin :css, "#content" do- expect(page).to have_list_item(count: 2)expect(page).to have_list_item(nextcloud_storage.name)expect(page).to have_list_item(one_drive_storage.name)enddiff --git a/spec/features/admin/project_custom_fields/create_spec.rb b/spec/features/admin/project_custom_fields/create_spec.rbindex d6229369c93..d54e663a4e8 100644--- a/spec/features/admin/project_custom_fields/create_spec.rb+++ b/spec/features/admin/project_custom_fields/create_spec.rb@@ -48,8 +48,9 @@ RSpec.describe "Create project custom fields", :js doendit "shows a correct breadcrumb menu" do- within "#breadcrumb" do+ within ".PageHeader-breadcrumbs" doexpect(page).to have_link("Administration")+ expect(page).to have_link("Projects")expect(page).to have_link("Project attributes")expect(page).to have_text("New attribute")enddiff --git a/spec/features/admin/project_custom_fields/edit_spec.rb b/spec/features/admin/project_custom_fields/edit_spec.rbindex 3ff90c44b8d..6c127e87729 100644--- a/spec/features/admin/project_custom_fields/edit_spec.rb+++ b/spec/features/admin/project_custom_fields/edit_spec.rb@@ -48,8 +48,9 @@ RSpec.describe "Edit project custom fields", :js doendit "shows a correct breadcrumb menu" do- within "#breadcrumb" do+ within ".PageHeader-breadcrumbs" doexpect(page).to have_link("Administration")+ expect(page).to have_link("Projects")expect(page).to have_link("Project attributes")expect(page).to have_text(boolean_project_custom_field.name)end@@ -71,8 +72,9 @@ RSpec.describe "Edit project custom fields", :js doexpect(boolean_project_custom_field.reload.name).to eq("Updated name")expect(boolean_project_custom_field.reload.project_custom_field_section).to eq(section_for_select_fields)- within "#breadcrumb" do+ within ".PageHeader-breadcrumbs" doexpect(page).to have_link("Administration")+ expect(page).to have_link("Projects")expect(page).to have_link("Project attributes")expect(page).to have_text("Updated name")enddiff --git a/spec/support/pages/members.rb b/spec/support/pages/members.rbindex a60bfb6e181..736afb0794a 100644--- a/spec/support/pages/members.rb+++ b/spec/support/pages/members.rb@@ -41,7 +41,6 @@ module Pagesdef visit!super- expect(page).to have_css('h2', text: I18n.t(:label_member_plural))selfend