Closed
Bug 1118253
Opened 11 years ago
Closed 11 years ago
Not possible to clear job selection when clicking in page footer or push header
Categories
(Tree Management :: Treeherder, defect, P3)
Tree Management
Treeherder
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: jgraham, Assigned: jfrench)
References
Details
Attachments
(3 files)
Once a job has been selected it isn't possible to get back to a state where no job is selected. This is unexpected (it's not how focus usually works) and, because of the way that focusing a job changes the layout, makes the overall status of a push harder to read.
| Assignee | ||
Comment 1•11 years ago
|
||
You should be able to click anywhere on the page that isn't a job or anchor, and you will get back to the state where no job is selected, per above. Or are you requesting something else?
| Reporter | ||
Comment 2•11 years ago
|
||
Oh I see, so it does work, but it's buggy. Specifically consider a single-push view like https://treeherder.mozilla.org/#/jobs?repo=try&revision=c99df8976076 If you focus a job and then click somewhere else on the job lines it will defocus. If you click in the white space below the list of jobs it won't.
| Assignee | ||
Comment 3•11 years ago
|
||
Cool, I see it. Ya, it ignores clear events in the footer region. Also observable when issuing a clearing click in the 'get next | 10 20 50' footer in a regular multi-resultset view.
| Assignee | ||
Comment 4•11 years ago
|
||
Adjusting the title accordingly.
Summary: Make it possible to de-focus selected job → Page footer region ignores job-clearing click
Comment 5•11 years ago
|
||
It's also not possible to clear the focus when clicking on the push header too.
OS: Linux → All
Priority: -- → P3
Hardware: x86_64 → All
Summary: Page footer region ignores job-clearing click → Not possible to clear job selection when clicking in page footer or push header
Comment 7•11 years ago
|
||
Same when clicking on the white space below a job when one job only is selected.
(for example here: https://treeherder.mozilla.org/ui/#/jobs?repo=gaia-try&revision=f1fdc185ca0d)
| Assignee | ||
Comment 8•11 years ago
|
||
Having a look at this now, will assign myself if I get all the bits sorted.
| Assignee | ||
Comment 9•11 years ago
|
||
I have a basic fix we can try out on dev for the footers. It's true the jobs don't clear in the empty areas in the resultset header either. I chatted with camd on that, I was concerned the mechanics of a fix in the header might be a bit more fragile. I think it would require a clearJob() be issued across the entire th-content, and then the propagation blocked for each of the buttons, filters, the SHA string, and elsewhere across the UI so users could interact without closing the job.
Anyway, just curious what Ed thinks about that, if we maybe bypass the header fix for now.
The simple fix I have for the footers addresses the get-next-job footer, and also creates a fixed empty div below it, which receives the clearJob() for single resultsets that are really short. It could be made dynamic later to always match the page dimension, but for now I was just going to make it a fixed height for simplicity, 500, 1000px or similar if everyone agrees.
Flags: needinfo?(emorley)
Comment 10•11 years ago
|
||
Spoke on IRC (tl;dr 302 camd + partial solution sgtm)
Flags: needinfo?(emorley)
| Assignee | ||
Comment 11•11 years ago
|
||
Please see above PR for status and review.
I think we should have folks try it out on dev first, before push to stage/prod. Just to confirm people can live without a dynamically sized spacer for now.
Attachment #8555947 -
Flags: review?(cdawson)
Comment 12•11 years ago
|
||
Commits pushed to master at https://github.com/mozilla/treeherder-ui
https://github.com/mozilla/treeherder-ui/commit/c8816abf3d6e3411078b411e8c7eda30db293afd
Bug 1118253 - Clear job selection in page bottom and get-next-footer
https://github.com/mozilla/treeherder-ui/commit/2177456a8b3f8fd011f83cbc8bfeb43b571a7721
Merge pull request #350 from tojonmz/clear-footer
Bug 1118253 - Clear job selection in page bottom and get-next-footer
Updated•11 years ago
|
Attachment #8555947 -
Flags: review?(cdawson) → review+
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → tojonmz
Status: NEW → ASSIGNED
| Assignee | ||
Comment 13•11 years ago
|
||
Marking fixed per above merge. James, Julien, we have the footer fixes sitting on the treeherder-dev instance if you wish to try it out.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 14•11 years ago
|
||
Where's the treeherder-dev instance? If it's treeherder.allizom.org then it doesn't work for me :/
Comment 15•11 years ago
|
||
Comment 16•11 years ago
|
||
Links to dev/stage/prod are on:
https://wiki.mozilla.org/Auto-tools/Projects/Treeherder#Contributing
Comment 17•11 years ago
|
||
Ok then, it works fine :) I still miss to remove the selection clicking on the headers but it's already a huge improvement for us working on Gaia with only a few builds/jobs :)
| Assignee | ||
Comment 18•11 years ago
|
||
Thanks Julien! We've had some concerns from sheriffs after a push to prod this morning about the 'spacer approach' to deselection below the get-next footer. We may have to try to implement it differently, but that request is still a valid expected feature. We're going to just fix get-next clear for now, and keep this bug open for the clearing behavior below it.
| Assignee | ||
Updated•11 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 19•11 years ago
|
||
I've opened the PR to revert the footer spacer portion of the fix.
https://github.com/mozilla/treeherder-ui/pull/352
| Assignee | ||
Comment 20•11 years ago
|
||
Adding wlach for review, per above.
Attachment #8557179 -
Flags: review?(wlachance)
Comment 21•11 years ago
|
||
Commits pushed to master at https://github.com/mozilla/treeherder-ui
https://github.com/mozilla/treeherder-ui/commit/edb2261f0c3652cf7e8b84f3f5d9778b88e028c7
Bug 1118253 - Remove footer spacer for a future clearing method
https://github.com/mozilla/treeherder-ui/commit/5112dd259ea978a8e0d61e2e3eceee7fb9ab3f3c
Merge pull request #352 from tojonmz/footer-spacer-removal
Bug 1118253 - Remove footer spacer for a future clearing method
Comment 22•11 years ago
|
||
Comment on attachment 8557179 [details] [review]
treeherder-ui-PR#352
Looks reasonable from what I've been able to observe. Merged.
Attachment #8557179 -
Flags: review?(wlachance) → review+
| Assignee | ||
Comment 23•11 years ago
|
||
I've made some progress locally for Julien for general deselection in th-content. Still working on it.
| Assignee | ||
Comment 24•11 years ago
|
||
I've got most of the main UI elements working as desired (ie. not clearing the selected job when clicked), while supporting clear everywhere else on the main page. It's pretty cool. I still have a few pieces of UI still to do, and a few other things.
| Assignee | ||
Comment 25•11 years ago
|
||
Preliminary PR for review by Cameron, and testing by Ed at their leisure.
Attachment #8560293 -
Flags: review?(cdawson)
Attachment #8560293 -
Flags: feedback?(emorley)
Comment 26•11 years ago
|
||
Comment on attachment 8560293 [details] [review]
treeherder-ui-PR#358
:-)
Attachment #8560293 -
Flags: feedback?(emorley) → feedback+
Comment 27•11 years ago
|
||
Commits pushed to master at https://github.com/mozilla/treeherder-ui
https://github.com/mozilla/treeherder-ui/commit/3f45f266da3f8023e5d73005cba691f6fc9edfa9
Bug 1118253 - Deselect job when clicking any empty page area
https://github.com/mozilla/treeherder-ui/commit/4452d81a11e9bcf8b73aeec5d46d635985e2f514
Merge pull request #358 from tojonmz/clear-job-openareas
Bug 1118253 - Deselect job when clicking any open area on main page
Updated•11 years ago
|
Attachment #8560293 -
Flags: review?(cdawson) → review+
| Assignee | ||
Comment 28•11 years ago
|
||
Marking Fixed per above merge. I will Verify on stage/prod when its pushed.
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Comment 30•11 years ago
|
||
Commits pushed to master at https://github.com/mozilla/treeherder
https://github.com/mozilla/treeherder/commit/67420de5dde1bb72246dad0ba5d19d1d699beb6d
Bug 1118253 - Clear job selection in page bottom and get-next-footer
https://github.com/mozilla/treeherder/commit/c4d887f8190acb62ee204752654f804b323a7963
Merge pull request #350 from tojonmz/clear-footer
Bug 1118253 - Clear job selection in page bottom and get-next-footer
https://github.com/mozilla/treeherder/commit/6e9e7d09abb930abff4c066611dbb241c9ca7396
Bug 1118253 - Remove footer spacer for a future clearing method
https://github.com/mozilla/treeherder/commit/0cdb89686c8985a9069967f4c2a9d12f0ede8d1f
Merge pull request #352 from tojonmz/footer-spacer-removal
Bug 1118253 - Remove footer spacer for a future clearing method
https://github.com/mozilla/treeherder/commit/ffdf0a7265bf710e362dc54581129786246a0648
Bug 1118253 - Deselect job when clicking any empty page area
https://github.com/mozilla/treeherder/commit/016537a108808cc8ee12086d81c95a61a70047cd
Merge pull request #358 from tojonmz/clear-job-openareas
Bug 1118253 - Deselect job when clicking any open area on main page
You need to log in
before you can comment on or make changes to this bug.
Description
•