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
[#62103] adapt PR comments
Eric Schubert7ce11fe62fa5
diff --git a/modules/storages/app/components/storages/admin/health/health_report_component.html.erb b/modules/storages/app/components/storages/admin/health/health_report_component.html.erbindex 30cd46ad77e..f5c4fb3a4f9 100644--- a/modules/storages/app/components/storages/admin/health/health_report_component.html.erb+++ b/modules/storages/app/components/storages/admin/health/health_report_component.html.erb@@ -34,8 +34,8 @@ See COPYRIGHT and LICENSE files for more details.if @report.nil?render(Primer::Beta::Blankslate.new(border: true)) do |placeholder|placeholder.with_visual_icon(icon: :meter)- placeholder.with_heading(tag: :h3) { data[:heading] }- placeholder.with_description { data[:description] }+ placeholder.with_heading(tag: :h3) { I18n.t("storages.health.no_report") }+ placeholder.with_description { I18n.t("storages.health.no_report_description") }placeholder.with_primary_action(tag: :a,href: admin_settings_storage_health_status_report_path(model),diff --git a/modules/storages/app/components/storages/admin/health/health_report_component.rb b/modules/storages/app/components/storages/admin/health/health_report_component.rbindex 68b876fc1cb..a25f138b24d 100644--- a/modules/storages/app/components/storages/admin/health/health_report_component.rb+++ b/modules/storages/app/components/storages/admin/health/health_report_component.rb@@ -47,30 +47,20 @@ module Storagesenddef compute_display_data- if @report.nil?- return {- heading: I18n.t("storages.health.no_report"),- description: I18n.t("storages.health.no_report_description")- }- end+ return {} if @report.nil?- checks_tally = @report.tally- if @report.healthy?- {- summary: summary_with_icon(checks_tally),- description: I18n.t("storages.health.summary.success")- }- else- description = if @report.unhealthy?- I18n.t("storages.health.summary.failure")- else- I18n.t("storages.health.summary.warning")- end- {- summary: summary_with_icon(checks_tally),- description:- }- end+ description = if @report.healthy?+ I18n.t("storages.health.summary.success")+ elsif @report.unhealthy?+ I18n.t("storages.health.summary.failure")+ else+ I18n.t("storages.health.summary.warning")+ end++ {+ summary: summary_with_icon(@report.tally),+ description:+ }enddef group_summary(group)@@ -90,12 +80,10 @@ module Storagesenddef summary_with_icon(check_tally)- failure = check_tally[:failure] || 0- warning = check_tally[:warning] || 0-- if failure > 0+ case check_tally+ in { failure: 1.. }{ icon: :alert, icon_color: :danger, text: I18n.t("storages.health.checks.failures", count: failure) }- elsif warning > 0+ in { warning: 1.. }{ icon: :alert, icon_color: :attention, text: I18n.t("storages.health.checks.warnings", count: warning) }else{ icon: :"check-circle", icon_color: :success, text: I18n.t("storages.health.checks.failures", count: 0) }diff --git a/modules/storages/app/components/storages/admin/side_panel/validation_result_component.rb b/modules/storages/app/components/storages/admin/side_panel/validation_result_component.rbindex facb3cbdf2b..10942025991 100644--- a/modules/storages/app/components/storages/admin/side_panel/validation_result_component.rb+++ b/modules/storages/app/components/storages/admin/side_panel/validation_result_component.rb@@ -43,13 +43,10 @@ module Storagesprivatedef summary_header- tally = @result.tally- failure = tally[:failure] || 0- warning = tally[:warning] || 0-- if failure > 0+ case @result.tally+ in { failure: 1.. }{ icon: :alert, icon_color: :danger, text: I18n.t("storages.health.checks.failures", count: failure) }- elsif warning > 0+ in { warning: 1.. }{ icon: :alert, icon_color: :attention, text: I18n.t("storages.health.checks.warnings", count: warning) }else{ icon: :"check-circle", icon_color: :success, text: I18n.t("storages.health.checks.failures", count: 0) }diff --git a/modules/storages/config/locales/en.yml b/modules/storages/config/locales/en.ymlindex 9ee6f5bc02c..f9299286453 100644--- a/modules/storages/config/locales/en.yml+++ b/modules/storages/config/locales/en.yml@@ -232,8 +232,8 @@ en:storage_provider: Storage providerhealth:actions:- run_checks: Run tests now- rerun_checks: Re-run all checks+ run_checks: "Run checks now"+ rerun_checks: "Re-run all checks"checks:failures:zero: "All checks passed"@@ -252,13 +252,16 @@ en:authentication:existing_token: "User token"header: "Authentication"- user_bound_request: "Sample request for user"+ non_provisioned_user: "User provisioned by IDP"+ provisioned_user_provider: "User provisioned by OIDC"+ token_negotiable: "User token capabilities"+ user_bound_request: "User-based request authentication"ampf_configuration:- files_request: "Check for file storage content"- group_folder_contents: "Group folder content"- group_folder_presence: "Group folder"+ files_request: "Fetching group folder files"+ group_folder_contents: "Group folder has expected content"+ group_folder_presence: "Group folder exists"header: "Automatically managed project folder configuration"- userless_access: "Sample request without a user"+ userless_access: "Server-side request authentication"checked: Last checked %{datetime}connection_validation:app_version_mismatch: The Integration OpenProject app version is not supported. Please update your Nextcloud server.@@ -272,7 +275,7 @@ en:not_configured: The connection could not be validated. Please finish configuration first.oauth_request_not_found: OpenProject couldn't find the root folder of Nextcloud using the current logged-in user. Please check the server logs for further information.oauth_request_unauthorized: The current user isn't authorized to see the main folder of Nextcloud or we couldn't acquire a token. Please check the server logs for further information.- oauth_token_missing: OpenProject cannot test the user level communication with Nextcloud as there's no token for the current user.+ oauth_token_missing: "OpenProject cannot test the user level communication with Nextcloud as the user did not yet link their Nextcloud account."oidc_cant_acquire_token: Your OpenID Connect setup doesn't provide the necessary audience, nor provides token exchange capabilities. Please check out our documentation for more information.oidc_cant_exchange_token: There seems to be a problem with the Token Exchange setup on your OpenID Connect Provider. Please check its configuration and try again.oidc_cant_refresh_token: There was an error while trying to check your access to the storage. Please check the server logs for further information.@@ -291,8 +294,8 @@ en:label_pending: Pendinglabel_skipped: Skippedlabel_warning: Warning- no_report: No report available- no_report_description: "Run the tests now for a full health status report for this file storage."+ no_report: "No report available"+ no_report_description: "Run the checks now for a full health status report for this file storage."open_report: "Open full health report"project_folders:subtitle: Automatically managed project folders