Jagster
(Jakke Lehtonen)
5 مارس 2023، 9:00ص
1
عندما أفتح إعدادات فئة وأرغب في إعداد الوضع البطيء و/أو الإغلاق التلقائي، تكون الدقائق افتراضية وهناك خيار لاختيار الساعات والأيام وما إلى ذلك.
إذا استخدمت أي شيء آخر غير الدقائق، وفي مرحلة ما أرغب في العودة إلى الدقائق، فإن ذلك لم يعد متاحًا.
أعتقد أن الدقائق تُستخدم نادرًا جدًا، لكن الوضع البطيء هو شيء مختلف قليلاً. عندما أرغب في تبريد موضوع محموم، فإن ما بين 15 و 30 دقيقة كافٍ لمستخدمي، لأن أولئك الذين يتواجدون عبر الإنترنت في تلك اللحظة هم فقط مصدر القلق.
لذلك، هذا بالتأكيد ليس مشكلة من الدرجة الأولى. وهناك احتمال كبير أنه لا ينبغي اعتباره خطأ، بل عيبًا في واجهة المستخدم بدلاً من ذلك.
3 إعجابات
Canapin
(Coin-coin le Canapin)
6 مارس 2023، 12:20م
2
بالتأكيد، يمكنني إعادة إنتاج المشكلة، شكرًا يا جاغستر
إعجابَين (2)
ted
(Ted Johansson)
7 مارس 2023، 2:59ص
4
شكراً على التقرير، @Jagster !
لقد قمت بإنشاء إصلاح لهذا هنا :
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 إعجابات
تم إغلاق هذا الموضوع تلقائيًا بعد 18 ساعة. لم يعد يُسمح بالردود الجديدة.