[wp-trac] [WordPress Trac] #23497: Revisions Rewrite using JS/Backbone
WordPress Trac
noreply at wordpress.org
Mon Feb 18 02:23:20 UTC 2013
#23497: Revisions Rewrite using JS/Backbone
-------------------------------------------------+-------------------------
Reporter: adamsilverstein | Type: enhancement
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Revisions
Version: 3.5.1 | Severity: normal
Keywords: has-patch needs-refresh dev- |
feedback |
-------------------------------------------------+-------------------------
notes:
* to install, apply the diff and extract images in wp-includes-images.zip
into wp-includes/images (images from jquery-ui-slider)
* interface rewritten with JS/Backbone
* to use, click Revisions: 'View' link, in post publish box
* design cues from @karmatosed
[http://core.trac.wordpress.org/attachment/ticket/23396/revisions9.png
here] and @lessbloat [http://cl.ly/image/1u232c3Z3M0o here] (and developed
in #23396)
* revisions are loaded asynchronously
* allows rapid review of all revisions using previous/next buttons and a
slider
* always shows what each revision contains - what it removed, added and
what was unchanged, compared to the preceding revision
* each diff is pre-calculated for rapid paging through revisions
* allows comparison in split view or combined view, ajax refresh
* allows user to show or hide (default) auto-saves, ajax refresh
* skips revisions which include no changes, including the first save
(note - unchanged revisions are no longer saved, see #7392)
* includes link to old revisions system, for these missing features:
revisions list, compare any two revisions and the easter egg :)
the attached is a proof-of-concept, with plenty of room for improvement:
* currently the diff view is not rendered until all revisions are loaded
* diffs are calculated with each load, cache these calculations?
* hook to turn off new revisions system for backwards compatibility,
plugins
* only load whats changes when options changed for auto-saves,
split/combined view options ( currently refreshes revisions from server
and logic is there )
screenshots:
[[Image(http://f.cl.ly/items/3W1x092I0g0I1u2V3L2r/linktorevisions.png)]]
[[Image(http://f.cl.ly/items/0U2V0J3n2x3P0a440r3U/revisions2.png)]]
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23497>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list