UX: Copy for feature feed toggle (#30196)

Makes it so the result of toggling a new feature
feed item is clearer.
This commit is contained in:
Martin Brennan 2024-12-10 16:24:15 +10:00 committed by GitHub
parent 19c3f7db93
commit cd8e03086f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 6 deletions

View File

@ -4,6 +4,7 @@ import { on } from "@ember/modifier";
import { action } from "@ember/object";
import didInsert from "@ember/render-modifiers/modifiers/did-insert";
import { service } from "@ember/service";
import { htmlSafe } from "@ember/template";
import { and, not } from "truth-helpers";
import CookText from "discourse/components/cook-text";
import DToggleSwitch from "discourse/components/d-toggle-switch";
@ -127,12 +128,22 @@ export default class DiscourseNewFeatureItem extends Component {
<div class="admin-new-feature-item__tooltip">
<div class="admin-new-feature-item__tooltip-header">
{{i18n
"admin.dashboard.new_features.experiment_tooltip.title"
(if
this.experimentEnabled
"admin.dashboard.new_features.experiment_tooltip.title_enabled"
"admin.dashboard.new_features.experiment_tooltip.title_disabled"
)
}}
</div>
<div class="admin-new-feature-item__tooltip-content">
{{i18n
"admin.dashboard.new_features.experiment_tooltip.content"
{{htmlSafe
(i18n
(if
this.experimentEnabled
"admin.dashboard.new_features.experiment_tooltip.content_enabled"
"admin.dashboard.new_features.experiment_tooltip.content_disabled"
)
)
}}
</div>
</div>

View File

@ -5148,8 +5148,10 @@ en:
experiment_disabled: "You have disabled the experimental feature."
experiment_toggled_too_fast: "You have toggled the experimental feature too fast. Please wait a few seconds before trying again."
experiment_tooltip:
title: "Try our experimental feature"
content: "Give our newest feature in development a spin! It's still in the experimental stage, so we might remove it at any time. You can opt-out whenever you like."
title_disabled: "Try our experimental feature"
title_enabled: "Turn off experimental feature"
content_disabled: "Give our newest feature in development a spin! It's still in the experimental stage, so we might remove it at any time. You can opt-out whenever you like.<br/><br/>Changing this will enable the feature for all users."
content_enabled: "Changing this will disable the feature for all users."
last_checked: "Last checked"
refresh_problems: "Refresh"
@ -7101,7 +7103,7 @@ en:
selectable_avatars:
title: "List of avatars users can choose from"
table_column_heading:
status: "Status"
status: "Status"
categories:
all_results: "All"
required: "Required"