Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit f97123b

Browse files
committed
add table tooltip
1 parent 6a79d6d commit f97123b

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

assets/javascripts/discourse/templates/admin-dashboard-sentiment.hbs

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,23 @@
2727
<ul class="breadcrumb">
2828
<li class="item report">
2929
<LinkTo @route="adminReports" class="report-url">
30-
{{i18n "admin.dashboard.emotion"}}
30+
{{i18n "admin.dashboard.emotion.title"}}
3131
</LinkTo>
32+
33+
34+
<DTooltip
35+
@interactive=true
36+
>
37+
<:trigger>
38+
{{d-icon "circle-question"}}
39+
</:trigger>
40+
<:content>
41+
42+
<span>{{i18n "admin.dashboard.emotion.description"}}</span>
43+
44+
</:content>
45+
</DTooltip>
46+
3247
</li>
3348
</ul>
3449
</div>
@@ -61,4 +76,4 @@
6176
</div>
6277
</div>
6378
</div>
64-
</div>
79+
</div>

config/locales/client.en.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ en:
1212
categories:
1313
discourse_ai: "Discourse AI"
1414
dashboard:
15-
emotion: "Emotion"
15+
emotion:
16+
title: "Emotion"
17+
description: "The table lists a count of posts classified with a determined emotion. Classified with the model 'SamLowe/roberta-base-go_emotions'."
1618
js:
1719
discourse_automation:
1820
scriptables:

config/locales/server.en.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ en:
112112
reports:
113113
overall_sentiment:
114114
title: "Overall sentiment"
115-
description: 'The chart compares the number of posts classified as either positive or negative. These are calculated when positive or negative scores > the set threshold score. This means neutral posts are not shown. Private messages (PMs) are also excluded. Classified with "cardiffnlp/twitter-roberta-base-sentiment-latest"'
115+
description: 'The chart compares the number of posts classified as either positive or negative. These are calculated when positive or negative scores > the set threshold score. This means neutral posts are not shown. Personal messages (PMs) are also excluded. Classified with "cardiffnlp/twitter-roberta-base-sentiment-latest"'
116116
xaxis: "Positive(%)"
117117
yaxis: "Date"
118118
emotion_admiration:

0 commit comments

Comments
 (0)