يجب إخفاء الزر الذي يحتوي على علامة صح للمستخدمين الذين لا يستطيعون إلغاء تحديد الإجابات الصحيحة

مرحبًا بفريق Discourse-solved،

نقترح إجراء تغييرات على تجربة المستخدم (UX): يجب إخفاء الزر الذي يحتوي على علامة صح عن المستخدمين الذين لا يملكون صلاحية إلغاء تحديد الإجابات الصحيحة.

02%20AM

يجب أن تكون كلمة “الحل” (SOLUTION) هي الكلمة الوحيدة الظاهرة.

شكرًا لكم.

إعجاب واحد (1)

I disagree - I think the filled box is an important part of the styling highlighting the post.

13 إعجابًا

@riking

Having a checkbox tells users that I can uncheck it. If I am not the OP or admin, I shouldn’t see the checkbox. Only OP or admin should see checkbox because that action is only for them.

For everyone else, they should only see the word “SOLUTION”.

We can add additional highlights by making the background of the post ‘Green’ or have additional highlights around it. But not using the checkbox.

UX wise, having a checkbox for the readers is not the proper way.

To the discourse-solved developers, i’m not a ruby dev, but how can i modify this in code in case I want to remove the checkbox in my site for readers not OP/Admin? What part of the code handles this?

Thank you. :slight_smile:

إعجاب واحد (1)

You can hide it by adding the following line of CSS to your theme:

.actions button.accepted {display:none;}

PS: this does show there’s a slight alignment issue with the ‘Solution’ text:

image

4 إعجابات

Thanks @bartv for the suggestion.

But the problem with that solution is it also hides the checkmark to OP or admin who should have the ability to uncheck it.

Ah true. Perhaps you could dig into the CSS a bit more to make the selector more specific and avoid this.

I was trying to do that and realize that this isn’t possible because you can’t add any conditions (if/else) in the CSS. The only way to make it work is editing it directly thru the plugin code.

To everyone that helped, thanks.

I was able to modify the plugin code already:

Here’s what I did:

For OP:
Instead of just the checkmark, I added this button - “This solved my question” which is more visible to the OP or readers.
24%20AM

Also, if OP wants to change his/her answer, this is what he/she sees:

42%20AM

Now, if I am not OP or admin. Here is what I see:

57%20AM

Again, thanks for those who have created this plugin. :slight_smile:

8 إعجابات

I actually like this change quite a bit @sam – makes it much clearer, if you want to prioritize solved in a category.

3 إعجابات

Maybe @awesomerobot can do some mockups here, I am fine to make solved clearer. I agree that marking something as a solution is not super clear to the OP.

5 إعجابات

Having "this solved my question below a series of short replies is going to get very noisy very quickly though.

Really need to show mockups of how a topic will look, rather than individual posts.

6 إعجابات

It’s noisy, but just for OP, so I don’t think it’s so bad. It’s worth a little noise if increases feature use.

I shortened the copy from “this solved my question” to “mark as solution,” the longer version is clearer, but it’s also… long. Using “mark” also gives us “unmark” as the reverse.

Also Font Awesome’s times-square (:negative_squared_cross_mark:) icon is premium-only, and the times-circle is free, so that’s why I’m using circles here.

Mobile’s a little tricky, maybe we show “solution” and then if they expand the controls we hide the text and just show the icon?

6 إعجابات

Interesting yeah maybe in mobile we suppress text till clicked … on that note, how would “unmarking” the solution work in mobile?

إعجابَين (2)

Yeah it’s difficult to keep the same amount of clarity on mobile, the post controls are already crammed. One option could be to move the controls for solved outside of the existing topic nav

5 إعجابات

How about emphasizing the mark as solution for the current reply only and shift the emphasis as the reader scrolls? Appreciate it’s much more involved but would reduce noise considerably.

إعجابَين (2)

It was implemented in:

This is how it looks on desktop:

Can accept / unaccept:


Cannot accept / unaccept:


The same, but for mobile:


7 إعجابات

انطباعي الأول هو أن هذا جعل الأمر صاخبًا جدًا.

حقيقة أن التسمية طويلة جدًا “علّم كحل” وأنها أقرب إلى زر الإعجاب منها إلى علامة الصح (بفارق 2 بكسل :stuck_out_tongue: ) لا تساعد كثيرًا.

4 إعجابات

أشعر أن هذا يوضح مخاوفي السابقة بشكل جيد جدًا.

إعجابَين (2)

ماذا لو استغللنا تصميم الويكي للحفاظ على نمط موحد؟

منشور عادي:

ويكي:

الحل:
image

5 إعجابات

أعتقد أنه من الجدير إعادة النظر في فكرة تغيير الرموز التعبيرية مع هذا التغيير الكبير. تبدو الدوائر أقل بروزًا في القائمة. أعرف أن هناك جانبًا من “مقاومة حركة الحركة غير التقليدية” هنا. لكنني أود الحفاظ على الشكل المربع إن أمكن مع هذا التغيير، حتى لو اضطررنا إلى إعادة رسم 1-2 ملف SVG.

حاولنا دمج التغييرات يوم الجمعة، لكنني قمت بإرجاعها لأننا أغفلنا شيئًا ما وطبقنا تغييرات التنسيق على غير المنشور الأصلي (OP)، بينما كان من المفترض أن يكون هذا التغيير محددًا للغاية ومقتصرًا على المنشور الأصلي (OP) فقط (وليس الموظفين مثلًا).

هناك قلق آخر لدي بشأن المنشور الأصلي وهو “الدعوة المستمرة” إلى “إلغاء تحديد الحل” بمجرد تحديد شيء ما كحل. أجد أن هذا الأمر غير مرتب بعض الشيء. هل هناك أي شيء يمكننا فعله هنا؟ لإلغاء تفضيل منشور ما، ما عليك سوى النقر على القلب مرة أخرى، فلماذا لا نتبع نفس النمط؟

4 إعجابات