A platform for community discussion. Free, open, simple.
UX: fix post admin titles, add some new ones (#39241)
Kris9fa7077b98e6
diff --git a/config/locales/client.en.yml b/config/locales/client.en.ymlindex 11150d44d2d..e4b588903f9 100644--- a/config/locales/client.en.yml+++ b/config/locales/client.en.yml@@ -4594,11 +4594,15 @@ en:permanently_delete: "Permanently Delete"permanently_delete_confirmation: "Are you sure you permanently want to delete this post? You will not be able to recover it."wiki: "Make Wiki"+ wiki_description: "let allowed groups edit this post"unwiki: "Remove Wiki"convert_to_moderator: "Add Staff Color"+ convert_to_moderator_description: "highlight the content of this post"revert_to_regular: "Remove Staff Color"rebake: "Rebuild HTML"+ rebake_description: "reprocess this post to fix formatting or embeds"publish_page: "Page Publishing"+ publish_page_description: "publish this topic as a standalone page"unhide: "Unhide"change_owner: "Change Ownership…"grant_badge: "Grant Badge…"@@ -4606,6 +4610,7 @@ en:lock_post_description: "prevent the poster from editing this post"unlock_post: "Unlock Post"unlock_post_description: "allow the poster to edit this post"+ add_post_notice_description: "add highlighted notice above this post"delete_topic_disallowed_modal: "You don't have permission to delete this topic. If you really want it to be deleted, submit a flag for moderator attention together with reasoning."delete_topic_disallowed: "you don't have permission to delete this topic"delete_topic_confirm_modal:diff --git a/frontend/discourse/app/components/admin-post-menu.gjs b/frontend/discourse/app/components/admin-post-menu.gjsindex ef34fb2b806..1f44576ee91 100644--- a/frontend/discourse/app/components/admin-post-menu.gjs+++ b/frontend/discourse/app/components/admin-post-menu.gjs@@ -70,6 +70,11 @@ export default class AdminPostMenu extends Component {"post.controls.revert_to_regular""post.controls.convert_to_moderator"}}+ @title={{if+ @data.post.isModeratorAction+ ""+ "post.controls.convert_to_moderator_description"+ }}@icon="shield-halved"class={{concatClass"btn btn-transparent toggle-post-type"@@ -89,7 +94,7 @@ export default class AdminPostMenu extends Component {"post.controls.change_post_notice""post.controls.add_post_notice"}}- @title="post.controls.unhide"+ @title="post.controls.add_post_notice_description"class={{concatClass"btn btn-transparent"(if @data.post.notice "change-notice" "add-notice")@@ -116,7 +121,6 @@ export default class AdminPostMenu extends Component {<DButton@label="post.controls.change_owner"@icon="user"- @title="post.controls.lock_post_description"class="btn btn-transparent change-owner"@action={{fn this.topicAction "changePostOwner"}}/>@@ -189,6 +193,7 @@ export default class AdminPostMenu extends Component {<dropdown.item><DButton@label="post.controls.wiki"+ @title="post.controls.wiki_description"@icon="far-pen-to-square"class="btn btn-transparent wiki"@action={{fn this.topicAction "toggleWiki"}}@@ -201,6 +206,7 @@ export default class AdminPostMenu extends Component {<dropdown.item><DButton@label="post.controls.publish_page"+ @title="post.controls.publish_page_description"@icon="file"class="btn btn-transparent publish-page"@action={{fn this.topicAction "showPagePublish"}}@@ -212,6 +218,7 @@ export default class AdminPostMenu extends Component {<dropdown.item><DButton@label="post.controls.rebake"+ @title="post.controls.rebake_description"@icon="rotate"class="btn btn-transparent rebuild-html"@action={{fn this.topicAction "rebakePost"}}diff --git a/plugins/discourse-user-notes/assets/javascripts/discourse/initializers/enable-user-notes.gjs b/plugins/discourse-user-notes/assets/javascripts/discourse/initializers/enable-user-notes.gjsindex a363af255ee..153719a5e56 100644--- a/plugins/discourse-user-notes/assets/javascripts/discourse/initializers/enable-user-notes.gjs+++ b/plugins/discourse-user-notes/assets/javascripts/discourse/initializers/enable-user-notes.gjs@@ -94,6 +94,7 @@ function customizePostMenu(api, container) {return {icon: "pen-to-square",label: "user_notes.attach",+ title: "user_notes.attach_note_description",action: (post) => {showUserNotes(store,diff --git a/plugins/discourse-user-notes/config/locales/client.en.yml b/plugins/discourse-user-notes/config/locales/client.en.ymlindex 9509823fc40..e6702640fad 100644--- a/plugins/discourse-user-notes/config/locales/client.en.yml+++ b/plugins/discourse-user-notes/config/locales/client.en.yml@@ -3,7 +3,7 @@ en:user_notes:title: "User notes"attach: "Add user note"- attach_note_description: "Add a note about this user. This note will be visible to staff only."+ attach_note_description: "add a note about this user that only staff can see"remove: "Remove user note"show: "User notes (%{count})"delete_confirm: "Are you sure you want to delete that user note?"