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

Implementation/63625 Rename restricted visibility checkbox to internal comment (#18726)

Kabiru Mwenja98b65c73f0ec
diff --git a/app/forms/work_packages/activities_tab/journals/internal_note_form.rb b/app/forms/work_packages/activities_tab/journals/internal_note_form.rb
index d6e98c60c9a..52698b3a340 100644
--- a/app/forms/work_packages/activities_tab/journals/internal_note_form.rb
+++ b/app/forms/work_packages/activities_tab/journals/internal_note_form.rb
@@ -32,7 +32,7 @@ module WorkPackages::ActivitiesTab::Journals
form do |notes_form|
notes_form.check_box(
name: :internal,
- label: I18n.t("activities.work_packages.activity_tab.restrict_visibility"),
+ label: I18n.t("activities.work_packages.activity_tab.internal_comment"),
checked: false,
data: {
"work-packages--activities-tab--internal-comment-target": "internalCheckbox",
diff --git a/config/locales/en.yml b/config/locales/en.yml
index f0fa8aa18ed..59f4097ba8c 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -49,7 +49,7 @@ en:
changed: "changed"
created: "created"
commented: "commented"
- restrict_visibility: Restrict visibility
+ internal_comment: Internal comment
internal_journal: Internal comments are visible to a limited group of members.
unsaved_changes_confirmation_message: You have unsaved changes. Are you sure you want to close the editor?
internal_comment_confirmation:
@@ -392,7 +392,7 @@ en:
checkbox: "I understand that this will make the previously private content public"
title: "Make this project public?"
description: >
- Anyone who has access to this instance will be able to view and interact with this project depending on their role and authentication settings.
+ Anyone who has access to this instance will be able to view and interact with this project depending on their role and authentication settings.
Sub-projects are not affected and have their own settings.
private_confirmation:
checkbox: "I understand that this will make the previously public content private."
@@ -3907,8 +3907,8 @@ en:
setting_rest_api_enabled: "Enable REST web service"
setting_self_registration: "Self-registration"
setting_self_registration_warning: >
- The user will be able to activate their own accounts.
- Please note that this will give them access to all public projects and their content.
+ The user will be able to activate their own accounts.
+ Please note that this will give them access to all public projects and their content.
Please make sure that no sensitive or private data is exposed in public projects.
setting_session_ttl: "Session expiry time after inactivity"
setting_session_ttl_hint: "Value below 5 works like disabled"
diff --git a/spec/features/activities/work_package/internal_comments_spec.rb b/spec/features/activities/work_package/internal_comments_spec.rb
index f75b43efe6c..6e1e2efb42f 100644
--- a/spec/features/activities/work_package/internal_comments_spec.rb
+++ b/spec/features/activities/work_package/internal_comments_spec.rb
@@ -184,12 +184,12 @@ RSpec.describe "Work package internal comments",
activity_tab.quote_comment(first_comment)
page.within_test_selector("op-work-package-journal-form-element") do
- expect(page).to have_checked_field("Restrict visibility")
+ expect(page).to have_checked_field("Internal comment")
end
activity_tab.quote_comment(external_comment)
page.within_test_selector("op-work-package-journal-form-element") do
- expect(page).to have_checked_field("Restrict visibility")
+ expect(page).to have_checked_field("Internal comment")
end
end
end
diff --git a/spec/support/components/work_packages/activities.rb b/spec/support/components/work_packages/activities.rb
index 198694dc7e2..701c0f4395c 100644
--- a/spec/support/components/work_packages/activities.rb
+++ b/spec/support/components/work_packages/activities.rb
@@ -103,13 +103,13 @@ module Components
def expect_internal_comment_checked
page.within_test_selector("op-work-package-journal-form-element") do
- expect(page).to have_checked_field("Restrict visibility")
+ expect(page).to have_checked_field("Internal comment")
end
end
def expect_internal_comment_unchecked
page.within_test_selector("op-work-package-journal-form-element") do
- expect(page).to have_no_checked_field("Restrict visibility")
+ expect(page).to have_no_checked_field("Internal comment")
end
end
@@ -330,7 +330,12 @@ module Components
def check_internal_comment_checkbox
expect(page).to have_test_selector("op-work-package-journal-internal-comment-checkbox")
- page.check("Restrict visibility")
+ page.check("Internal comment")
+ end
+
+ def uncheck_internal_comment_checkbox
+ expect(page).to have_test_selector("op-work-package-journal-internal-comment-checkbox")
+ page.uncheck("Internal comment")
end
def uncheck_internal_comment_checkbox