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

fix[Op#50212]: Minor improvements

Kabiru Mwenjabb82e7c6a69e
diff --git a/modules/storages/app/components/storages/admin/storage_view_component.html.erb b/modules/storages/app/components/storages/admin/storage_view_component.html.erb
index 0f2e6c2bb86..c1dd8d42b38 100644
--- a/modules/storages/app/components/storages/admin/storage_view_component.html.erb
+++ b/modules/storages/app/components/storages/admin/storage_view_component.html.erb
@@ -27,8 +27,8 @@
tag: :a,
scheme: :invisible,
href: edit_host_admin_settings_storage_path(storage),
- aria: { label: I18n.t('storages.label_edit_storage') } ,
- test_selector: 'storage-edit-button'
+ aria: { label: I18n.t('storages.label_edit_storage_host') } ,
+ test_selector: 'storage-edit-host-button'
)
)
end
@@ -67,8 +67,12 @@
icon: :sync,
scheme: :invisible,
type: :submit,
- aria: { label: I18n.t("storages.buttons.replace_provider_type_oauth", provider_type: I18n.t("storages.provider_types.#{storage.short_provider_type}.name")) },
- data: { turbo_confirm: I18n.t("storages.confirm_replace_oauth_client") }
+ aria: {
+ label: I18n.t("storages.buttons.replace_provider_type_oauth",
+ provider_type: I18n.t("storages.provider_types.#{storage.short_provider_type}.name"))
+ },
+ data: { turbo_confirm: I18n.t("storages.confirm_replace_oauth_client") },
+ test_selector: 'storage-replace-openproject-oauth-application-button'
)
)
end
diff --git a/modules/storages/app/components/storages/admin/storage_view_component.rb b/modules/storages/app/components/storages/admin/storage_view_component.rb
index 59495829d16..03ede2530f0 100644
--- a/modules/storages/app/components/storages/admin/storage_view_component.rb
+++ b/modules/storages/app/components/storages/admin/storage_view_component.rb
@@ -76,7 +76,7 @@ module Storages::Admin
end
def status_label(label, scheme:, test_selector:)
- render(Primer::Beta::Label.new(scheme:, data: { 'test-selector': test_selector })) { label }
+ render(Primer::Beta::Label.new(scheme:, test_selector:)) { label }
end
end
end
diff --git a/modules/storages/config/locales/en.yml b/modules/storages/config/locales/en.yml
index 56c7c1e0625..dc8b174d34d 100644
--- a/modules/storages/config/locales/en.yml
+++ b/modules/storages/config/locales/en.yml
@@ -192,6 +192,7 @@ en:
label_project_folder: "Project folder"
label_new_storage: "New storage"
label_edit_storage: "Edit storage"
+ label_edit_storage_host: "Edit storage host"
label_existing_manual_folder: "Existing folder with manually managed permissions"
label_no_specific_folder: "No specific folder"
label_automatic_folder: "New folder with automatically managed permissions"