Closed Bug 1245389 Opened 9 years ago Closed 8 years ago

Scrolling to a log failure line should show lines both before and after the selected line

Categories

(Tree Management :: Treeherder, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: xidorn, Assigned: hassan)

Details

Attachments

(1 file)

Currently if you click on a failure, the viewer would put the red failure line on the very top of the log area, which is less optimal since some log above the failure line could usually be useful.
If you have a couple of failures next to each other, putting the clicked failure in the middle might bring confusion with the other errors. The new logviewer bug 1315808 solves the scrolling frustration.
Perhaps a compromise might be to not scroll the failure line to the middle of the panel, but to say 25% of the way down? Is independent highlight vs line number selection something that the unified log viewer supports?
Summary: The red failure line should be put in the middle instead of top → Scrolling to a log failure line should show lines both before and after the selected line
Yes, it does support independent highlight vs line number selection. I can take care of it :)
Assignee: nobody → helfi92
Attachment #8827575 - Flags: review?(emorley)
I put a demo of this functionality on gh-pages: https://helfi92.github.io/treeherder/ui/
Commit pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/bf97730f56b0577e5377f8dc5b3c84f048f8a6ec Bug 1245389 - Log viewer: Display log lines prior to the selected line Currently if you click on a failure, the viewer would put the red failure line on the very top of the log area, which is less optimal since some log above the failure line could usually be useful. This commit will add an offset of -7px to a line number so that users can see the log above a failure line.
Attachment #8827575 - Flags: review?(emorley) → review+
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Component: Treeherder: Log Viewer → TreeHerder
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: