[wp-trac] [WordPress Trac] #27055: Themes Install Screen: introduce THX (Backbone powered) UX
WordPress Trac
noreply at wordpress.org
Fri Mar 28 18:04:49 UTC 2014
#27055: Themes Install Screen: introduce THX (Backbone powered) UX
----------------------------+-----------------------------
Reporter: matveb | Owner:
Type: task (blessed) | Status: new
Priority: high | Milestone: 3.9
Component: Themes | Version: trunk
Severity: major | Resolution:
Keywords: needs-patch | Focuses: administration
----------------------------+-----------------------------
Comment (by matveb):
Patch 17:
* Adds pagination support and bumps initial request to 72 themes from the
API. The way it works is we fire a theme:end event based on the scroll
listener when we have no more themes. Then we use that event to send new
collection.query requests with a counter for the API page.
* We differentiate between requests by an internal currentQuery object. If
a given query matches that we then figure out if it's a cached request or
a paginated new query.
* Once we get more themes we add them to the collection, so the internal
collection pagination works just as fine.
* Also added a debounce to the search query trigger that makes searches
quite more solid.
Missing:
* Update counter.
* Avoid bumping the api page param until we get a successful request.
Right now if you scroll super fast you can jump ahead in pagination.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27055#comment:54>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list