Jagster
(Jakke Flemming)
05.Март.2023 09:00:58
1
Когда я открываю настройки категории и хочу настроить режим ожидания и/или автозакрытие, по умолчанию выбираются минуты, но есть возможность выбрать часы, дни и т. д.
Если я выберу что-то другое, кроме минут, и позже захочу вернуться к минутам, эта опция больше не будет доступна.
Полагаю, что минуты используются довольно редко, но режим ожидания — это несколько иной случай. Когда я хочу установить задержку для перегретой темы, для моих пользователей достаточно 15–30 минут, так как проблема возникает только у тех, кто находится онлайн в данный момент.
Так что это точно не критическая проблема. И велика вероятность, что это не баг, а недостаток интерфейса.
3 лайка
Canapin
(Coin-coin le Canapin)
06.Март.2023 12:20:56
2
Действительно, я могу воспроизвести проблему, спасибо Jagster
2 лайка
ted
(Ted Johansson)
07.Март.2023 02:59:27
4
Спасибо за отчёт, @Jagster !
Я создал исправление для этого здесь :
main ← Drenmi:fix/category-settings-relative-time-pickers
merged 03:05AM - 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 лайков
Эта тема была автоматически закрыта через 18 часов. Новые ответы больше не принимаются.