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

Redesign admin accounts index #9340

Merged
merged 4 commits into from
Nov 26, 2018
Merged

Redesign admin accounts index #9340

merged 4 commits into from
Nov 26, 2018

Conversation

Gargron
Copy link
Member

@Gargron Gargron commented Nov 24, 2018

grafik

  • Make clear which accounts are deleted/suspended
  • Make clear which accounts are bots/staff (via badges)
  • Show when local account was last active and which IP it used
  • Strip whitespace before filtering
  • Default to not showing remote accounts
  • Default to not showing suspended accounts
  • Remove alphabetic ordering

@Gargron Gargron added the moderation Administration and moderation tooling label Nov 24, 2018
@Gargron Gargron force-pushed the fix-admin-accounts-index branch 2 times, most recently from f393a04 to 929b4d1 Compare November 25, 2018 00:01
- Display suspended status, role, last activity and IP prominently
- Default to showing local accounts
- Default to not showing suspended accounts
@ClearlyClaire
Copy link
Contributor

“Permissions” → “Roles”? “Permissions” kind of makes sense for Admin/Moderator/User, but not for bot

@Gargron
Copy link
Member Author

Gargron commented Nov 26, 2018

Yeah I can see the sense in that but would prefer not to update all the locales just for this.

@@ -63,7 +63,7 @@ function main() {
content.textContent = timeAgoString({
formatMessage: ({ id, defaultMessage }, values) => (new IntlMessageFormat(messages[id] || defaultMessage, locale)).format(values),
formatDate: (date, options) => (new Intl.DateTimeFormat(locale, options)).format(date),
}, datetime, now, datetime.getFullYear());
}, datetime, now, now.getFullYear());
Copy link
Contributor

Choose a reason for hiding this comment

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

…what?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is an unrelated fix. Public pages were displaying "Nov 28" even for dates 2 years back, unlike the web UI, which correctly displayed "Nov 28, 2016", because of this mistake

Copy link
Contributor

@ClearlyClaire ClearlyClaire left a comment

Choose a reason for hiding this comment

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

Overall, this seems like a good change. I would prefer the IP address tests being adapted rather than being deleted, though.
And there is this unrelated(?) JS change.

@Gargron Gargron merged commit 73faada into master Nov 26, 2018
@Gargron Gargron deleted the fix-admin-accounts-index branch November 26, 2018 14:53
@kit-ty-kate
Copy link

Remove alphabetic ordering

so the new default ordering is by "most recent" is that right?

@Gargron
Copy link
Member Author

Gargron commented Nov 26, 2018

Yes. I have not found any practical uses for alphabetic sorting.

hiyuki2578 pushed a commit to ProjectMyosotis/mastodon that referenced this pull request Oct 2, 2019
* Improve overview of accounts in admin UI

- Display suspended status, role, last activity and IP prominently
- Default to showing local accounts
- Default to not showing suspended accounts

* Remove unused strings

* Fix tests

* Allow filtering accounts by IP mask
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
moderation Administration and moderation tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants