Jagster
(Jakke Lehtonen)
March 5, 2023, 9:00am
1
When I open settings of a category and I want to setup slow mode and/or auto closing, mins are default and there is option choose hours, days etc.
If I use anythng else than minutes, and at some point I want to change back to minutes that isn’t available any more.
I reckon minutes are quite rarely used, but slow mode is a bit different thing. When I want cool down overheated topic, for my user between 15 - 30 mins is enough, because only those who are online at the moment are an issue.
So this is defenetly not a major class issue. And there is big chance this should not be counted as a bug, but UI flaw instead.
3 Likes
Canapin
(Coin-coin le Canapin)
March 6, 2023, 12:20pm
2
Indeed, I can repro the issue, thanks Jagster
2 Likes
ted
(Ted Johansson)
March 7, 2023, 2:59am
4
Thanks for the report, @Jagster !
I’ve created a fix for this here :
discourse:main
← Drenmi:fix/category-settings-relative-time-pickers
opened 02:20AM - 07 Mar 23 UTC
### Background
As reported [here](https://meta.discourse.org/t/slow-mode-and-… auto-closing-minutes-aren-t-an-option/257103?u=canapin) on Meta, the relative time pickers for configuring slow-mode and auto-close durations in category settings are initially showing a "mins" option, which then disappears after you select any other timescale.
### Why was this happening?
Our `RelativeTimePicker` component wasn't equipped to handle `null` values as the initial input. This caused it to go into a code path that set the selected timescale to "mins", even if that is not an allowed option. (See inline comment for more details.)
### How does this fix it?
There are two things being done here:
1. Add support for `null` input values to `RelativeTimePicker`. This fixes the auto-close setting.
2. Allow minutes for the slow-mode setting. (The user in Meta mentioned they usually set 15-30 minutes to cool down hot topics.
### What does it look like?
Persistent "minutes" option for auto-close, and no "minutes" for slow-mode:
<img width="361" alt="Screenshot 2023-03-07 at 10 18 56 AM" src="https://user-images.githubusercontent.com/5259935/223302522-c00e02d3-8a9a-41f9-be25-99cfe7f55710.png">
5 Likes
This topic was automatically closed after 18 hours. New replies are no longer allowed.