Skip to content

A platform for community discussion. Free, open, simple.

UX: Update user notes text formatting to follow guide (#36280)

Krzysztof Kotlarek47d7cd124b0b
diff --git a/plugins/discourse-user-notes/assets/javascripts/discourse/components/user-note.gjs b/plugins/discourse-user-notes/assets/javascripts/discourse/components/user-note.gjs
index c93763566be..6523b800639 100644
--- a/plugins/discourse-user-notes/assets/javascripts/discourse/components/user-note.gjs
+++ b/plugins/discourse-user-notes/assets/javascripts/discourse/components/user-note.gjs
@@ -30,7 +30,7 @@ const UserNote = <template>
@model={{@note.reviewable_id}}
class="btn btn-small btn-default show-reviewable"
>
- {{i18n "user_notes.show_reviewable"}}
+ {{i18n "user_notes.show_flag"}}
</LinkTo>
{{/if}}
{{#if @note.can_delete}}
diff --git a/plugins/discourse-user-notes/config/locales/client.en.yml b/plugins/discourse-user-notes/config/locales/client.en.yml
index 89b251c9f18..1c6fa737b49 100644
--- a/plugins/discourse-user-notes/config/locales/client.en.yml
+++ b/plugins/discourse-user-notes/config/locales/client.en.yml
@@ -1,12 +1,12 @@
en:
js:
user_notes:
- title: "User Notes"
- attach: "Add User Note"
+ title: "User notes"
+ attach: "Add user note"
attach_note_description: "Add a note about this user. This note will be visible to staff only."
- remove: "Remove User Note"
- show: "User Notes (%{count})"
+ remove: "Remove user note"
+ show: "User notes (%{count})"
delete_confirm: "Are you sure you want to delete that user note?"
- show_post: "Show Post"
- show_reviewable: "Show Reviewable"
+ show_post: "Show post"
+ show_flag: "Show flag"
copy_reviewable_note: "Copy note to %{username}'s profile?"
diff --git a/plugins/discourse-user-notes/spec/system/reviewable_user_notes_spec.rb b/plugins/discourse-user-notes/spec/system/reviewable_user_notes_spec.rb
index e69e35cc8a0..3ea76f11447 100644
--- a/plugins/discourse-user-notes/spec/system/reviewable_user_notes_spec.rb
+++ b/plugins/discourse-user-notes/spec/system/reviewable_user_notes_spec.rb
@@ -35,7 +35,7 @@ RSpec.describe "Reviewable User Notes", type: :system do
expect(user_notes_modal).to have_content("This user needs attention")
expect(user_notes_modal).to have_link(
- I18n.t("js.user_notes.show_reviewable"),
+ I18n.t("js.user_notes.show_flag"),
href: "/review/#{reviewable_flagged_post.id}",
)
end
@@ -54,7 +54,7 @@ RSpec.describe "Reviewable User Notes", type: :system do
expect(user_notes_modal).to have_content("Regular note without reviewable")
expect(user_notes_modal).not_to have_link(
- I18n.t("js.user_notes.show_reviewable"),
+ I18n.t("js.user_notes.show_flag"),
href: "/review/#{reviewable_flagged_post.id}",
)
end