Multiple job logs push action buttons outside the job details navbar
Categories
(Tree Management :: Treeherder: Frontend, defect, P3)
Tracking
(Not tracked)
People
(Reporter: camd, Assigned: pachicarlson)
References
Details
(Keywords: outreachy)
Attachments
(4 files)
Updated•10 years ago
|
Updated•10 years ago
|
Updated•10 years ago
|
Comment 2•10 years ago
|
||
Updated•7 years ago
|
Hi there, I am an outreachy applicant and would like to work on this bug. ty
Comment 4•5 years ago
|
||
Hi Pachi, I'll assign it to you. Cameron (cdawson) will be the one to ask if you have questions about this particular bug.
Updated•5 years ago
|
Reporter | ||
Comment 5•5 years ago
|
||
The place in the code where this will show is in these files:
https://github.com/mozilla/treeherder/blob/1300d3927e327e505bb4b8ed4afb24d270c3a0a3/ui/job-view/details/summary/LogUrls.jsx#L38
The logUrls
array param will usually only have one entry. But if it has multiple, the way we display should be improved.
I would start by changing the value of logUrls
in that file to have 3 or more items in the array. Perhaps like this:
const logUrls = [props.logUrls[0], props.logUrls[0], props.logUrls[0]];
Though it would be better to 3 log urls that would have unique href values (so you can tell that the right ones are showing).
Then start changing the way they're listed. Perhaps a drop-down to show them, rather than all of the links being crammed on the same line in the ActionBar.jsx
area.
I hope this helps to get you started. Please let me know if you need more info. :)
-Cam
Reporter | ||
Comment 6•5 years ago
|
||
Reporter | ||
Comment 7•5 years ago
|
||
Reporter | ||
Comment 8•5 years ago
|
||
This deals with the details panel when you click one of the completed jobs in the main view. In the upper left of the lower panel is the "ActionBar" which generally looks like screenshot 1. Then when there are too many log urls, it looks somewhat like screenshot 2.
Comment 9•5 years ago
•
|
||
This is where you find that job details panel - click a bolded letter/symbol (could be any color)
Assignee | ||
Comment 10•5 years ago
|
||
I tried to create the Mock we talked about, I created a new array with 3x the log but apparently the linter is saying there is a syntax error, I have spent a good part of the weekend trying to figure it out, but nothings seems wrong. I am attaching a screenshot. I would appreciate any pointers about how to go from here. Thank you!
Assignee | ||
Comment 11•5 years ago
|
||
Reporter | ||
Comment 12•5 years ago
|
||
This bug has some good info in it, but I'm marking this as the duplicate of Bug 1142579 because someone is actively working on the other one.
Comment 13•5 years ago
•
|
||
(In reply to Pachi from comment #10)
I tried to create the Mock we talked about, I created a new array with 3x the log but apparently the linter is saying there is a syntax error, I have spent a good part of the weekend trying to figure it out, but nothings seems wrong. I am attaching a screenshot. I would appreciate any pointers about how to go from here. Thank you!
I realize you've been assigned to another bug, but to answer your question - the answer is in the linter comments. Parsed is undefined
means you are using it as a variable and the value is undefined. Did you intend parsed
to be a variable or a string?
Description
•