#15580 closed defect (bug) (fixed)
Fixes to Ajaxify Admin before 3.1
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.1 | Priority: | highest omg bbq |
Severity: | blocker | Version: | 3.1 |
Component: | Administration | Keywords: | has-patch commit |
Focuses: | Cc: |
Description (last modified by )
This ticket will hold the individual adjustments needed for the ajaxified admin features before we release for 3.1
When using pagination located at the bottom of the table, should load new results and bump you to the top of the screen.
On comments, no need to sort alphabetically by comment.
On p=36220 comment screens, no need to sort by "in reply to" since they are all in reply to the same comment.
Save-state hashes for URLs.
4b.
Don't bump bulk action and other triggers back to the front page.
Date columns should first sort by DESC, not ASC. Plugins will likely need a new way to request DESC over ASC for a specific column.
Attachments (20)
Change History (111)
#1
@
14 years ago
- Description modified (diff)
- Keywords needs-patch added; ajax removed
- Milestone changed from Awaiting Review to 3.1
- Severity changed from normal to blocker
#2
@
14 years ago
- Priority changed from normal to highest omg bbq
- Status changed from new to assigned
#5
@
14 years ago
- On p=36220 comment screens, no need to sort by "in reply to" since they are all in reply to the same comment.
For clarity, the column is called "In response to" and I think it should simply not be shown at all.
#6
@
14 years ago
It would be great if someone could take a look at http://core.trac.wordpress.org/ticket/14579#comment:158 as I don't have access to Internet Explorer.
#10
in reply to:
↑ 9
@
14 years ago
Replying to scribu:
Date columns should first sort by DESC, not ASC.
Why?
Per Jane:
Change default sort by chronology to be reversed by default (most recent first).
This is the expected functionality. Oldest first is unintuitive.
#11
@
14 years ago
Oldest first is unintuitive only if you're sorting by date, but there's only one date column.
When you're sorting by title, you don't expect to see the post with title Z first.
#21
@
14 years ago
For hashes, I began rolling out a custom solution because I didn't really find any jQuery plugins that would help. jquery.query.js seems to be the only thing needed.
- changing the rows changes the hash.
- going to an url with a hash changes the rows. But, it doesn't change the ajaxified elements, like the page number etc.
#23
@
14 years ago
I thought the main reason for using hashes was to support bookmarking, not history.
#27
@
14 years ago
Seems to work in Chrome and FF4 will support it. Very tempting to go modern, especially given what a hack hashes are. :-)
#30
@
14 years ago
With pushState(), when the user presses the back button, only the URL is updated, so - just like with hashes, we would have to take care of updating the rows and the UI elements again.
So, I used replaceState() instead, which doesn't create a new history entry.
#33
@
14 years ago
Yeah, the commit message was supposed to read "Get rid of $mode in favor of $post_id".
$mode seems to be a relic (it could be either 'single' or 'detail'), possibly since to edit a single comment you used edit-comments.php too?
Anyway, I stopped using it in favor of just checking the $post_id.
#35
@
14 years ago
Sure, but I only stopped using it in the comments screen, because it had no effect there.
#36
follow-up:
↓ 38
@
14 years ago
From http://core.trac.wordpress.org/ticket/14579#comment:164:
I've noticed that when you sort by title in a list of hierarchical posts you loose the hierarchy indicators (which is what I would expect) but there seems to be no way to go back to the hierarchical listing without refreshing the entire page. Not having some way to revert could be confusing for people and while a page refresh will fix, that being the only way feels like it was just missed in the design process.
I considered a page refresh a good-enough method. However, that won't work since r16615: the sorting order will remain unchanged.
So, the only way to go back to the hierarchical order now is by clicking on the admin menu link again.
Under this circumstance, I think a UI element for going back to the hierarchical order would be useful.
#38
in reply to:
↑ 36
@
14 years ago
Replying to scribu:
Under this circumstance, I think a UI element for going back to the hierarchical order would be useful.
+1
#42
follow-up:
↓ 50
@
14 years ago
Strongly considering the need for an AJAX spinner. (See #15482.) Otherwise it seems like you get no real feedback on pagination, sorting, or searching.
#45
@
14 years ago
If I enter non-digits (e.g. 'abc') into the page number input and search, it returns an NaN. We can either have the parseInt call (in the keypress function for .current-page) fallback to 1
var page = parseInt( $el.val() ) || 1; change_page( page, $el );
or alert the user and ask them to enter a valid number.
Similarly, if a user enters a page number higher than the total pages or below 1, we should either handle it gracefully (entering 11 with 9 total pages sends you to page 9; entering -1 sends you to page 1) or alert them.
#47
@
14 years ago
4b. Don't bump bulk action and other triggers back to the front page.
ENV: wp trunk r16653 ( 3.1-beta1-16642 )
I take it this describes the scenario where the search term is cleared after a bulk action.
#48
@
14 years ago
- Cc JustinSainton added
Doesn't appear to work on custom post type pages when custom columns are added.
http://scribu.net/wordpress/custom-sortable-columns.html shows custom columns working on regular post types, and it appears to work fine for non-custom columns on custom post types...just not custom columns on custom types.
#50
in reply to:
↑ 42
@
14 years ago
- Cc batmoo@… added
Replying to nacin:
Strongly considering the need for an AJAX spinner. (See #15482.) Otherwise it seems like you get no real feedback on pagination, sorting, or searching.
Patch (15580_loading_overlay.diff) cleans up the loading overlay. I've added a large version of the loading spinner since the small ones included with WP would be easily missed. Works nicely in IE6 too :)
#51
follow-up:
↓ 53
@
14 years ago
Is there a specific reason for using .append() instead of .html() ?
#52
@
14 years ago
Also, please upload the spinner graphic separately (it's not contained in the patch).
#54
follow-up:
↓ 55
@
14 years ago
A couple of problems with the large spinner:
- the overlay is about 10px higher than the rows
- the spinner isn't centered vertically, which looks weird when there's only a single row.
Both problems can be observed in Screenshot.png (made using Firefox 3.6)
#55
in reply to:
↑ 54
@
14 years ago
Replying to scribu:
- the overlay is about 10px higher than the rows
- the spinner isn't centered vertically, which looks weird when there's only a single row.
Overlay size should be fixed in new patch. I've moved the spinner very close to the top so it should look and work well on both single and multiple rows. I've also moved the scrollTo right before the overlay is displayed; this is so that you see the loading feedback any time you trigger an action (particularly way down at the bottom of the page, such as the bottom pagination).
#57
@
14 years ago
I have to admin I'm not crazy about the grayish background of the overlay, but it does provide better contrast against the comments list for example, which is all white.
#60
@
14 years ago
I'm not going to bother rebumping the script vers after this as it hasn't made it into a nightly build
#63
@
14 years ago
- Cc garyc40@… added
"4b. Don't bump bulk action and other triggers back to the front page."
see #15416 for patch
#66
@
14 years ago
What is the orientation of the spinner based on? As in - is there any particular reason for it to be right at the top in the middle? I'm guessing you're thinking about small screen sizes?
#67
follow-up:
↓ 69
@
14 years ago
The top-middle is most likely to be seen.
Didn't think about the case where the user is at the footer of the table.
#68
@
14 years ago
Would it make more sense to put a standard spinner beside both of the "filter" buttons whenever they're clicked? A bit like the save-draft button when writing a new post.
#69
in reply to:
↑ 67
@
14 years ago
Replying to scribu:
Didn't think about the case where the user is at the footer of the table.
The patch jumps the user to the top of the page any time the table content is changed.
Replying to JohnONolan:
Would it make more sense to put a standard spinner beside both of the "filter" buttons whenever they're clicked? A bit like the save-draft button when writing a new post.
That's what I was originally thinking with #15482, but if we go that route, we'll end up with spinners everywhere. We'd need separate ones for pagination, filter, sorting, and so on. Or, we go with a single one in a prominent location.
#70
follow-up:
↓ 71
@
14 years ago
I'm not sure that jumping to the top of the page is great UX for an AJAX filter...?
Spinners beside actions is expected functionality at the moment, I'm pretty sure that's how almost everything works. This would be a move away from that and establishing a new type of feedback to an interaction. That's not to say it isn't a good idea - it just needs to be considered carefully in terms of both approach and implications.
Keyword: needs-jane
#71
in reply to:
↑ 70
@
14 years ago
Replying to JohnONolan:
I'm not sure that jumping to the top of the page is great UX for an AJAX filter...?
It makes sense when the user is at the bottom of the page and takes action. The reason my patch always jumps the user up is to make the loading indicator visible, otherwise it can feel like nothing happened.
Currently, only the bottom pagination jumps you up, and that probably make sense. Though, Bulk Edit should jump you up too.
Replying to JohnONolan:
Spinners beside actions is expected functionality at the moment, I'm pretty sure that's how almost everything works. This would be a move away from that and establishing a new type of feedback to an interaction. That's not to say it isn't a good idea - it just needs to be considered carefully in terms of both approach and implications.
Agreed, consistency is awesome. And I like the WordPress standard spinner :)
#72
@
14 years ago
- Keywords needs-patch added; has-patch ux-feedback removed
UI changes to be made, per IRC chat today:
- drop the overlay
- paging: small spinner next to the pagination
- search: small spinner next to search
- sorting: sorting arrow transforms into spinner
(at least that's what I understood)
#73
@
14 years ago
I understood just two spinners, next to each pagination row, to be triggered on all actions. (There might be more room for them to appear to the left of the search box, even.)
Spinners everywhere is perhaps a long-term goal, but that's more cumbersome to do and implement for 3.1 I think.
#74
@
14 years ago
- Keywords has-patch added; needs-patch removed
spinner-search.diff adds a small spinner next to the search box. The pagination row is too crowded.
#78
@
14 years ago
- makes 100% of the <th> clickable
- vertically aligns the sorting indicator on the comments column with the rest
- removes useless padding in the sorting indicator images
#80
@
14 years ago
If you do make a sprite pls upload a copy of the PSD (or other graphics file) to the ticket so that we can archive it for future use
#81
@
14 years ago
I will make a sprite.
I think a PSD would be a major overkill in this case.
Previous versions of files are automatically kept in the SVN revisions.
#82
@
14 years ago
We're working on an SVN repo for artwork. That will include originals for every core file.
Original files need to be uploaded from now on. Otherwise there won't be a commit. We're done with rebuilding images from scratch every time we need to modify them.
#83
@
14 years ago
- Keywords commit removed
Ok, cool. Well, the original images are already uploaded: sort_asc.gif and sort_desc.gif
#84
@
14 years ago
the original files which the arrows come from would be appreciated as well, ie. modifying gif's is impossible, better to give a high-res psd or equiv. which modifications can be based off for future changes (ie. colour changes in those gifs would be impossible, but re-building from a decent res psd would be easy)
#85
@
14 years ago
The arrows were hand-drawn pixel by pixel, so I don't have any larger-res files.
I hope it is clear by now that my Photoshop skills are... limited. :)
Adding a few more issues.