Re-do Revision viewer
Closed this issue · 0 comments
Is your feature request related to a problem? Please describe.
The current revision-viewer does on-fly calculation of the diff using jsdiff.
However we already store (jsdiff generated) diffs of the revisions in the database and want to re-use them.
Describe the solution you'd like
We build a new revision viewer, that
a) uses pre-calculated diffs (thus improving client-side performance)
b) can show the context of the current patch section (e.g. the last heading; similar to how Git does this)
c) re-uses existing components for example by using CodeMirror and its features
Describe alternatives you've considered
Continue using the react-diff-viewer component, although it might impact the performance.
Additional context
none