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
feat[#47150] Add help text to project folder label
Kabiru Mwenja9a5b371f5f2a
diff --git a/modules/storages/app/views/storages/project_settings/_form.html.erb b/modules/storages/app/views/storages/project_settings/_form.html.erbindex 0fa8b459ee3..621cd7bed9f 100644--- a/modules/storages/app/views/storages/project_settings/_form.html.erb+++ b/modules/storages/app/views/storages/project_settings/_form.html.erb@@ -28,8 +28,8 @@<%= t(:"storages.label_project_folder") %><%= angular_component_tag 'op-static-attribute-help-text',inputs: {- title: "Title",- content: "Lorem ipsum sit ajsakjdkassjd asdjkasjd",+ title: t(:"storages.label_project_folder"),+ content: t(:"storages.help_texts.project_folder"),}%><% end %>diff --git a/modules/storages/config/locales/en.yml b/modules/storages/config/locales/en.ymlindex e17b4041447..79596a035fe 100644--- a/modules/storages/config/locales/en.yml+++ b/modules/storages/config/locales/en.yml@@ -77,6 +77,10 @@ en:copy_from: "Copy this value from"nextcloud:integration: "Nextcloud Administration / OpenProject"+ help_texts:+ project_folder: >+ The project folder is the default folder for file uploads for this project.+ Users can nevertheless still upload files to other locations.delete_warning:storage: >Are you sure you want to delete this storage? This will also delete the storage from all projects where it is used.diff --git a/modules/storages/spec/features/manage_project_storage_spec.rb b/modules/storages/spec/features/manage_project_storage_spec.rbindex 1c64c6f7892..6a33044b243 100644--- a/modules/storages/spec/features/manage_project_storage_spec.rb+++ b/modules/storages/spec/features/manage_project_storage_spec.rb@@ -65,9 +65,12 @@ describe 'Activation of storages in projects', js: true, with_flag: { storage_prexpect(page).to have_text(I18n.t('storages.no_results'))page.find('.toolbar .button--icon.icon-add').click- # Can cancel the creation of a new file storage+ # Can cancel the creation of a new file storage and view help textexpect(page).to have_current_path new_project_settings_projects_storage_path(project_id: project)expect(page).to have_text('Add a file storage')+ page.find('.spot-link.help-text--entry').click+ expect(page).to have_selector('.spot-modal.attribute-help-text--modal.loading-indicator--location')+ page.click_button('Close')page.click_link('Cancel')expect(page).to have_current_path project_settings_projects_storages_path(project)