Add deleted/flag/suspension counts to user profile for staff

We need to add some staff counters on the user page to help identify problem users over time:

  • number of deleted (not by self posts)
  • number of flags
  • number of times suspended

That @radq is a well known problem user for example… clicking there on the numbers in the circles should drill in.

Alternate mockup (though it needs to be in the upper left as pictured, not at the bottom here)

<section class="controls admin-history">
  <div class="span4"><span class="helpfulFlags bigText">33</span>/<span class="totalFlags">37</span> helpful flags</div>
  <div class="span4"><span class="flaggedPosts bigText">8</span> flagged posts</div>
  <div class="span4"><span class="deletedPosts bigText">2</span>&nbsp;suspensions</div>
</section>

.bigText {
    font-size: 24px;
    border-radius: 999px;
    display: inline-block;
    height: 30px;
    width: 40px;
    text-align: center;
    vertical-align: super;
    padding-top: 10px;
}
.flaggedPosts {
    background-color: #e45735;
}
.deletedPosts {
    background-color: rgb(194, 32, 32);
}
.helpfulFlags {
    background-color: green;
}
.totalFlags {
    font-weight: bold;
}
.user-main .controls.admin-history {
    padding-bottom: 30px;
    padding-top: 0;
    color: white;
}
5 Likes

Defnitely agree, though I think from a pure usability perspective, the alternate would be more intuitive for newer users to discourse (especially those on a tablet - how would they know what the colored circles mean on the first mockup?) Perhaps a user setting to allow them to switch between the layouts (i.e. users start out seeing the first, then as they become more experienced users could switch to the top)

Poor radq, always getting picked on…

2 Likes

Great ! This would be very useful.

Users wouldn’t see this, it is visible to staff only.

1 Like

I realize that - I mistyped(/spoke/whatever). My point is that it’s perfectly clear for those in the know (i.e. experienced staff), but for those new to staff, it’s clear as mud.

We’ve currently got 20 people who would be considered “staff”, and as with any large community, real life gets in the way and so we probably have on average one or two new staff members a year. Becoming staff is daunting enough with those extra responsibilities/roles, and having to decode glyphs which have no obvious meaning (not to mention possible color blindness issues) worries me - I think the alternate view is more obvious on quick glance. I don’t have to remember which color means which, or what the order of the glyphs mean, or have to hover over the glyphs to get their meaning (which isn’t tablet friendly either).

FYI I’ll be working on this.

This is now done :dragon:

https://github.com/discourse/discourse/commit/15120bb5832d49eb1d4cb6055c8b2d1986df5767

3 Likes