[wp-trac] [WordPress Trac] #38342: Quick Draft: Leverage REST API endpoints
WordPress Trac
noreply at wordpress.org
Thu Oct 27 21:20:20 UTC 2016
#38342: Quick Draft: Leverage REST API endpoints
--------------------------------+-------------------------
Reporter: adamsilverstein | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.7
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: REST-API has-patch | Focuses: javascript
--------------------------------+-------------------------
Comment (by aduth):
I love the 'shell' animated loading indicator you added, however the shell
always shows 4 drafts and if you have fewer it looks odd when loading.
Maybe only show one here or possibly no shells at all? probably not worth
the effort of a count query to determine the actual number of drafts.
Yeah, though it's a similarly jarring effect when there's no initial
placeholders, then replaced with drafts after the API request finishes. I
think the best approach would depend on what's most common case: do most
sites have many drafts? A couple? None? I suspect this might be "none",
but would be best to back up by stats.
Ideally we should add a `hide-if-no-js` class to the meta box, since the
feature won't work without JS. I think we have to do that via a filter.
Good call. This is already assigned to the Quick Drafts form and list
heading, but I think it should apply to the entire meta box. I imagine
with the latest patch, placeholders will be shown forever if JavaScript is
disabled.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38342#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list