Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moderate topics for forum questions #6234

Merged
merged 4 commits into from
Sep 25, 2024

Conversation

akatsoulas
Copy link
Collaborator

No description provided.

@akatsoulas akatsoulas force-pushed the moderation-tool branch 3 times, most recently from 18dd20f to 92894b1 Compare September 23, 2024 12:51
Copy link
Contributor

@escattone escattone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to the comments below, I noticed that the look of a flagged answer is different than the look of a flagged question:

  • Should the lighter gray area be limited to just the Content: section like it is for flagged answers?
  • I noticed that flagged answers have large empty gaps at the top and bottom.

Question

image

Answer

image
kitsune/flagit/views.py Outdated Show resolved Hide resolved
kitsune/flagit/views.py Show resolved Hide resolved
kitsune/flagit/models.py Outdated Show resolved Hide resolved
kitsune/flagit/jinja2/flagit/queue.html Show resolved Hide resolved
kitsune/flagit/views.py Outdated Show resolved Hide resolved
@akatsoulas
Copy link
Collaborator Author

@escattone PR updated. I added a forth commit to fix a bug in the flag_form. It was using the same ID of "report-abuse" for every entry in the page. As a result, JS was picking the first occurrence and was assigning the wrong flags

Copy link
Contributor

@escattone escattone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit. When showing the Take Action: section for flagged questions, which includes the ability to change the topic, it looks to me that there's a bit more space than usual between the Take Action: header and the Current topic: header immediately below it.

image
<a class="sumo-button button-sm delete" href="{{ url('questions.delete_answer', object.content_object.question.id, object.content_object.id) }}">{{ _('Delete') }}</a>
{% endif %}
</div>
{% include 'flagit/includes/flagged_question.html' %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Comment on lines 3 to 4
<h3 class="flagged-content__heading">{{ _('Title:') }}</h3>
<p class="flagged-content__title">{{ object.content_object.title }}</p>
Copy link
Contributor

@escattone escattone Sep 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we're using this for answers now as well, we shouldn't show the title for answers, right? I wonder if we could simply wrap this with a {% if object.content_object.title %}...{% endif %}?

image
@akatsoulas akatsoulas merged commit 246478b into mozilla:main Sep 25, 2024
2 checks passed
@akatsoulas akatsoulas deleted the moderation-tool branch September 25, 2024 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants