The tables on these pages make my eyes bleed:
Compare with the same table in XTools:
Let's make the MediaWiki interface suck less.
kaldari | |
Apr 20 2017, 11:56 PM |
F7597831: Screen Shot 2017-04-17 at 1.04.03 PM.png | |
Apr 21 2017, 10:51 PM |
F7688521: Screen Shot 2017-04-21 at 11.34.50 AM.png | |
Apr 21 2017, 3:54 PM |
F7674597: Screen Shot 2017-04-20 at 4.54.01 PM.png | |
Apr 20 2017, 11:56 PM |
F7674595: Screen Shot 2017-04-20 at 4.54.15 PM.png | |
Apr 20 2017, 11:56 PM |
The tables on these pages make my eyes bleed:
Compare with the same table in XTools:
Let's make the MediaWiki interface suck less.
Use wikitext tables, for one. :) They allow you to sort without having to implement something complicated by yourself.
Well, the sorting should be for all blocks or autoblocks, not for the current page you're looking at. But the current table system (whatever it is) does have some sorting thing built-in, for instance see Special:AbuseFilter.
Some ideas:
Other than that I like ours more. It has more information, and my on-wiki gadgets work on the links and datestamps, etc. What's probably bothering you is that the text for each entry takes up multiple lines, but I don't see a way around that though without removing some info. The "Autoblocked because your IP address..." text comes right from the ipb_reason column of the ipb_blocks table, so we can't really trim that down.
Actually, for each autoblock we do have the parent block ID. With that we can get the original block message and account, and trim down the Reason column. I'd take it a step further and have a new column "Account". So for the first one in F7674595, it would have "AndrewTheLogoMaker" as the account and "Persistent addition of unsourced content" as the reason. That should free up a lot of real estate. Below the account name might be where you would put the "(unblock)" link, that makes it clear your unblocking the account, and not just the single autoblock.
Well, the sorting should be for all blocks or autoblocks, not for the current page you're looking at.
What's the issue with sorting just the visible records? I agree sorting everything might be more useful, but as the number of auto blocks go up in future, it could get slower.
The thing that makes my eyes bleed the most are the ugly arrows above the table and the "Expires" column. We should make those better.
It shouldn't go that slow. I just think people would expect it to sort all data. We don't have to sort on every column either, just what we deem useful – maybe Timestamp, Blocking admin, and "Account" (new column). Do we know of any other Special pages with lots of data that use wikitext tables? Going that route, I think you might have to implement your pagination system.
The thing that makes my eyes bleed the most are the ugly arrows above the table and the "Expires" column. We should make those better.
I think the arrows are part of TablePager, which could probably use a facelift. The "Expires" is also bit messy but I'm not sure how far you can go without removing data. I like having it show the time remaining, at least at Special:BlockList. For autoblocks I don't find it quite as useful, personally, unless someone caught in the autoblock were to approach me with the ID.
Also I realized the screenshots above are for a non-admin. I've got and block/unblock links that further make things clunky:
I looked at the code and Special:AutoblockList is using BlockListPager, so customizing just Special:AutoblockList (changing/adding columns, showing "#1234" instead of "Autoblock #1234"), isn't possible without affecting Special:BlockList (there we want "Autoblock #1234"). This is not a huge class, so maybe it's OK to make an AutoblockListPager? Just copy/paste and make the necessary changes, which doesn't seem like it would be hard.
A few notes/comments/suggestions:
On a general note, when the data is not required to be sortable or exportable, we can stay away from tables, and from displaying every type of data in a different cell. As it currently stands, I feel like we could explore a clean design solution that doesn't feature a table at all.
Per my comment on T346683, removing the username from ipb_address seems attractive from the perspective of traditional schema design, but it would prevent sorting by username. I would appreciate comments on whether or not we need a target sort key in the schema.