6 votes

Can we please have a highlight showing where a topic's title has been edited in the topic log?

It could look like Wikipedia, where green shows what was added in the bottom section and red shows what was removed in the top section. Maybe orange and blue for coloblind people. Useful for typos or small title tweaks, not so much bigger changes

I can never tell how it is currently without reading through the titles at least twice if it's a typo.

2 comments

  1. [2]
    Bauke
    Link
    There is an accepted feature request for this in the issue tracker: Use an "inline diff" style view in topic log for title/link changes (#579)

    There is an accepted feature request for this in the issue tracker:

    4 votes
    1. Emerald_Knight
      Link Parent
      I'm too lazy to dig up my account credentials, so I'll comment on it here: Maybe it would make sense to add a conditional case in the template that determines if the log entry is a "diffable" type...

      I'm too lazy to dig up my account credentials, so I'll comment on it here:

      Maybe it would make sense to add a conditional case in the template that determines if the log entry is a "diffable" type (currently titles and topic links). If not, then simply insert the log entry directly as is already done (which will invoke the log entry's string conversion), otherwise compute the differences and generate an array of objects representing the different "fragments" of the diff (e.g. unchanged, removed, and inserted). You can then iterate over that array of "fragments" and apply templating to each type conditionally. Something like that would avoid the need for generating HTML outside of the template.

      Actual implementation may deviate significantly from the above, but this should theoretically be one path to viability. Should be worth exploring in any case.

      2 votes