Skip to content

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

UX: Improve messaging when auto closed based on last post topic timer (#35538)

Alan Guo Xiang Tan8597ab5f38d6
diff --git a/app/assets/javascripts/discourse/app/components/edit-topic-timer-form.gjs b/app/assets/javascripts/discourse/app/components/edit-topic-timer-form.gjs
index 88bfa71e66f..55e73aaa734 100644
--- a/app/assets/javascripts/discourse/app/components/edit-topic-timer-form.gjs
+++ b/app/assets/javascripts/discourse/app/components/edit-topic-timer-form.gjs
@@ -139,7 +139,7 @@ export default class EditTopicTimerForm extends Component {
(new Date() - new Date(this.args.topic.last_posted_at)) /
(1000 * 60 * 60)
);
- return i18n("topic.auto_close_momentarily", { count: diff });
+ return i18n("topic.auto_close_immediate", { count: diff });
}
}
@@ -227,7 +227,7 @@ export default class EditTopicTimerForm extends Component {
{{/if}}
{{#if this.useDuration}}
- <div class="controls">
+ <div class="control-group">
<label class="control-label">
{{i18n "topic.topic_status_update.duration"}}
</label>
diff --git a/app/assets/stylesheets/common/base/edit-topic-timer-modal.scss b/app/assets/stylesheets/common/base/edit-topic-timer-modal.scss
index 185c5e8849a..9ff716a6224 100644
--- a/app/assets/stylesheets/common/base/edit-topic-timer-modal.scss
+++ b/app/assets/stylesheets/common/base/edit-topic-timer-modal.scss
@@ -7,6 +7,10 @@
margin-bottom: 10px;
}
+ .warning {
+ color: var(--danger);
+ }
+
label {
display: inline-flex;
padding-right: 5px;
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index 6e0075cdb97..b05440ff065 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -3784,10 +3784,6 @@ en:
auto_close_immediate:
one: "The last post in the topic is already %{count} hour old, so the topic will be closed immediately."
other: "The last post in the topic is already %{count} hours old, so the topic will be closed immediately."
- auto_close_momentarily:
- one: "The last post in the topic is already %{count} hour old, so the topic will be closed momentarily."
- other: "The last post in the topic is already %{count} hours old, so the topic will be closed momentarily."
-
timeline:
back: "Back"
back_description: "Go back to your last unread post"