Open Bug 1311571 (bz-diff2html) Opened 9 years ago Updated 2 years ago

Replace PatchReader with a modern diff viewer

Categories

(Bugzilla :: Attachments & Requests, enhancement, P1)

5.0.3
enhancement

Tracking

()

ASSIGNED
Bugzilla 6.0

People

(Reporter: jfearn, Assigned: jfearn)

References

(Depends on 1 open bug)

Details

Attachments

(1 file, 2 obsolete files)

Attached patch Patch to add diff2html (obsolete) β€” β€” Splinter Review
PatchReader is old, unattractive, and isn't having new features added, it needs to be replaced with a more modern diff viewer. Attached is a patch to replace the use of PatchReader for side-by-side and line-by-line modes with https://diff2html.xyz, it includes highlight.js and the highlight.js github theme. It does not add any new Perl dependencies. I left PatchReader in place as I've not used the interdiff functionality and didn't know if it was appropriate to remove or change that.
Attachment #8802762 - Flags: review?(dylan)
we already include highlight js (for markdown code blocks) but merging that should be easy. I'll do some testing later on.
Severity: normal → enhancement
Priority: -- → P1
Target Milestone: --- → Bugzilla 6.0
Assignee: attach-and-request → jfearn
Status: NEW → ASSIGNED
Attached patch diff2html.patch (obsolete) β€” β€” Splinter Review
Modified to use existing highlight.js files
Attachment #8802762 - Attachment is obsolete: true
Attachment #8802762 - Flags: review?(dylan)
Attachment #8807043 - Flags: review?(dylan)
Comment on attachment 8807043 [details] [diff] [review] diff2html.patch Review of attachment 8807043 [details] [diff] [review]: ----------------------------------------------------------------- I like this patch. It needs a little work: 1) background colors don't look good with sandstone. Possible adding #diff { background-color: white } might work. 2) We don't need to shop the non-minified css and js.
Attachment #8807043 - Flags: review?(dylan) → review-
Alias: bz-diff2html
Attachment #8807043 - Attachment is obsolete: true
Attachment #8817577 - Flags: review?(dylan)
Comment on attachment 8817577 [details] [diff] [review] updated patch, sans min files, tweaked css Review of attachment 8817577 [details] [diff] [review]: ----------------------------------------------------------------- this is a soft r- -- it would be an r+ but I think I miscommunicated :) I want only the *minified* js files for diff2html. Basically external code should be minified. Otherwise this works and looks great! On very large patches it can be a little slow.
Attachment #8817577 - Flags: review?(dylan) → review-
Are you sure only shipping minified is a good policy? i.e. Debian requires unminified sources for JS files and the like.
Flags: needinfo?(dylan)
(In reply to Jeff Fearn from comment #6) > Are you sure only shipping minified is a good policy? i.e. Debian requires > unminified sources for JS files and the like. It is what we currently do, but we can be better. Let me file a bug.
Flags: needinfo?(dylan)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: