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)
Tracking
()
ASSIGNED
Bugzilla 6.0
People
(Reporter: jfearn, Assigned: jfearn)
References
(Depends on 1 open bug)
Details
Attachments
(1 file, 2 obsolete files)
161.39 KB,
patch
|
dylan
:
review-
|
Details | Diff | 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.
Assignee | ||
Updated•9 years ago
|
Attachment #8802762 -
Flags: review?(dylan)
Comment 1•9 years ago
|
||
we already include highlight js (for markdown code blocks) but merging that should be easy. I'll do some testing later on.
Updated•9 years ago
|
Severity: normal → enhancement
Priority: -- → P1
Target Milestone: --- → Bugzilla 6.0
Assignee | ||
Updated•9 years ago
|
Assignee: attach-and-request → jfearn
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•9 years ago
|
||
Modified to use existing highlight.js files
Attachment #8802762 -
Attachment is obsolete: true
Attachment #8802762 -
Flags: review?(dylan)
Assignee | ||
Updated•9 years ago
|
Attachment #8807043 -
Flags: review?(dylan)
Comment 3•9 years ago
|
||
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-
Updated•9 years ago
|
Alias: bz-diff2html
Assignee | ||
Comment 4•9 years ago
|
||
Attachment #8807043 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Attachment #8817577 -
Flags: review?(dylan)
Comment 5•9 years ago
|
||
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-
Assignee | ||
Comment 6•8 years ago
|
||
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)
Comment 7•8 years ago
|
||
(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.
Description
•