Make WordPress Core

Opened 7 years ago

Last modified 4 years ago

#42086 new feature request

Option to view condensed diffs for post revisions

Reported by: johnbillion's profile johnbillion Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Revisions Keywords: needs-patch needs-design
Focuses: ui, administration Cc:


Viewing a revision of a post which has a lot of content in it can result in a very long screen. It would be great if there was a toggle somewhere on the revisions browser so a condensed diff view was shown.

The condensed view would more closely resemble a traditional VCS diff view, which highlights only the changed lines and a handful of lines above and below each change.

I haven't checked to see if the Text_Diff library that core uses supports such diff generation, I doubt it does but I'd like to be wrong.

Change History (3)

This ticket was mentioned in Slack in #design by estelaris. View the logs.

4 years ago

#2 @michaelarestad
4 years ago


This is definitely still an issue and one I'm torn about. We could implement some sort of code folding like you see in GitHub diffs that don't show unchanged parts of the document.

That said, I think we need to revisions UI more holistically. In particular, how could a revisions UI fit within the realm of the new editor? How would they work with full site editing? Could we should revisions in a more visual way that doesn't need two columns? Within Gutenberg, we have the ability to show smaller previews of blocks and layouts. We utilizing that feature, we could show changes visually in a mosaic view a user could drill into? There are countless possibilities and I hope to see them explored.

In the meantime, I don't see any reason a proactive developer couldn't implement code folding. I don't know how much time we should spend on it given the fact that we'll need to update the revisions UI.

#3 @johnbillion
4 years ago

#47519 was marked as a duplicate.

Note: See TracTickets for help on using tickets.