Closed Bug 1075222 Opened 10 years ago Closed 7 years ago

Prevent orphan opening/closing parens on new job rows

Categories

(Tree Management :: Treeherder, defect, P4)

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: jfrench, Assigned: davidwalsh)

References

()

Details

(Keywords: outreachy)

Attachments

(3 files)

This was raised in channel by kwierso, it might be nice if there was a way to wrap the job row elements so that we wouldn't have orphan parens on new job rows.

I will upload a couple of screen grabs to illustrate the current (occasional) appearance, vs. the requested appearance.

I think it may result in slightly higher line/space consumption when wraps are triggered earlier, but perhaps not much, even over large result sets.
Attached image orphanParen
Attached image requestedBehavior
See above for the current behavior, and requested behavior.
Priority: P5 → P3
No longer blocks: treeherder-dev-transition
Priority: P3 → P4
Keywords: outreachy
Assignee: nobody → dibartolomeo.sara
Attachment #8820834 - Flags: review?(cdawson)
I've added some comments on the PR. Should Sara no longer be the assignee for this bug?
Status: NEW → ASSIGNED
Yeah, Sara was an Outreachy applicant, but she's moved to other things now, afaik.
Assignee: dibartolomeo.sara → dwalsh
Comment on attachment 8820834 [details] [review]
[treeherder] darkwing:1075222-orphan-parens > mozilla:master

Yeah, Jon is totally right.  I just tested it.  We'll need to try another approach for this.  I think this is one that's much harder than it seems it should be.  :)
Attachment #8820834 - Flags: review?(cdawson) → review-
I had wondered in the past if an ng-class like 'job-group-expanded' could conditionally be applied when a user clicks to expand a specific job group, and a css wrap rule then applied which overrides the global nowrap (in the current PR). That might prevent the expanded jobs flying offscreen.

I'm not sure about the performance hit applying that class on every job group doing a global expand though. Maybe we could listen to a 2nd scope variable for global expand like 'global-job-groups-expanded' as high up as we can in a parent element, and do some css child targeting for that.

It might still be the case when locally expanding a job group, overriding its nowrap will result in it bouncing around on the page, not sure.
Flags: needinfo?(cdawson)
David--  did you want to take another crack at this?  It's not a huge deal by any means, but if you have some other cool CSS tricks, it'd be neat to have it working cleanly.  On the other hand: I'm fine if we "wontfix" this, since it's really just cosmetic.
Flags: needinfo?(cdawson) → needinfo?(dwalsh)
The latest PR was the last trick in my playbook, I believe.  :/  I'll let you decide if you consider this a WONTFIX.
Flags: needinfo?(dwalsh)
Let's punt for now :-)
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: