Skip to content

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

DEV: Add priority to post menu user-tip (#29322)

Jarek Radoszf45559a8b3bb
diff --git a/app/assets/javascripts/discourse/app/components/header/user-dropdown/notifications.gjs b/app/assets/javascripts/discourse/app/components/header/user-dropdown/notifications.gjs
index c20de9203fc..0081cf799a1 100644
--- a/app/assets/javascripts/discourse/app/components/header/user-dropdown/notifications.gjs
+++ b/app/assets/javascripts/discourse/app/components/header/user-dropdown/notifications.gjs
@@ -64,7 +64,7 @@ export default class Notifications extends Component {
@titleText={{i18n "user_tips.first_notification.title"}}
@contentText={{i18n "user_tips.first_notification.content"}}
@showSkipButton={{true}}
- @priority={{40}}
+ @priority={{1000}}
/>
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/components/suggested-topics.hbs b/app/assets/javascripts/discourse/app/components/suggested-topics.hbs
index 58703a14eb3..8274974bc0b 100644
--- a/app/assets/javascripts/discourse/app/components/suggested-topics.hbs
+++ b/app/assets/javascripts/discourse/app/components/suggested-topics.hbs
@@ -12,7 +12,7 @@
@titleText={{i18n "user_tips.suggested_topics.title"}}
@contentText={{i18n "user_tips.suggested_topics.content"}}
@placement="top-start"
- @priority={{10}}
+ @priority={{700}}
/>
{{/unless}}
diff --git a/app/assets/javascripts/discourse/app/components/topic-footer-buttons.hbs b/app/assets/javascripts/discourse/app/components/topic-footer-buttons.hbs
index c35b3ce8e7c..f4cc364d3ac 100644
--- a/app/assets/javascripts/discourse/app/components/topic-footer-buttons.hbs
+++ b/app/assets/javascripts/discourse/app/components/topic-footer-buttons.hbs
@@ -97,7 +97,7 @@
@triggerSelector=".notifications-button"
@titleText={{i18n "user_tips.topic_notification_levels.title"}}
@contentText={{i18n "user_tips.topic_notification_levels.content"}}
- @priority={{20}}
+ @priority={{800}}
/>
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/components/topic-timeline/container.hbs b/app/assets/javascripts/discourse/app/components/topic-timeline/container.hbs
index 86004b6649a..8f64f573eb0 100644
--- a/app/assets/javascripts/discourse/app/components/topic-timeline/container.hbs
+++ b/app/assets/javascripts/discourse/app/components/topic-timeline/container.hbs
@@ -67,7 +67,7 @@
@contentText={{i18n "user_tips.topic_timeline.content"}}
@placement="left"
@triggerSelector=".timeline-scrollarea-wrapper"
- @priority={{30}}
+ @priority={{900}}
/>
<div class="timeline-scrollarea-wrapper">
diff --git a/app/assets/javascripts/discourse/app/widgets/post-user-tip-shim.js b/app/assets/javascripts/discourse/app/widgets/post-user-tip-shim.js
index 42d1d1f52d1..5527859079c 100644
--- a/app/assets/javascripts/discourse/app/widgets/post-user-tip-shim.js
+++ b/app/assets/javascripts/discourse/app/widgets/post-user-tip-shim.js
@@ -4,5 +4,12 @@ import { registerWidgetShim } from "discourse/widgets/render-glimmer";
registerWidgetShim(
"post-user-tip-shim",
"div.post-user-tip-shim",
- hbs`<UserTip @id="post_menu" @triggerSelector=".post-controls .actions .show-more-actions" @placement="top" @titleText={{i18n "user_tips.post_menu.title"}} @contentText={{i18n "user_tips.post_menu.content"}} />`
+ hbs`<UserTip
+ @id="post_menu"
+ @triggerSelector=".post-controls .actions .show-more-actions"
+ @placement="top"
+ @titleText={{i18n "user_tips.post_menu.title"}}
+ @contentText={{i18n "user_tips.post_menu.content"}}
+ @priority={{600}}
+ />`
);