Closed Bug 1133545 Opened 9 years ago Closed 9 years ago

Create a shortcut to focus the Filter field

Categories

(Tree Management :: Treeherder, enhancement, P3)

enhancement

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: jfrench, Assigned: jfrench)

References

(Depends on 1 open bug, )

Details

Attachments

(1 file)

Split off from bug 1131830, it might be handy to have a shortcut (eg. 'f') which focuses the Filter search field, eliminating the need for manual mouse-click for its input.

This could also serve as an additional keyboard-based method to clear the Filter, per the UI feature request in bug 1083725. eg. 'r', then in the OS just issue the keyboard equivalents to select all and delete.

As that workflow presently works with classification comments.
See Also: → 1083725
I think this would be great :-)
Priority: P5 → P2
Assignee: nobody → tojonmz
Status: NEW → ASSIGNED
Once PR368 for mousetrap shortcuts is merged and fine, I'll have at this one.
Priority: P2 → P3
I've got this sorted, PR coming up shortly.
Attached file treeherder-ui-PR#393
Please see above PR for status and review.
Attachment #8570747 - Flags: review?(cdawson)
Comment on attachment 8570747 [details] [review]
treeherder-ui-PR#393

Just clearing the review while you checkout my proposed change.  Thanks!!
Attachment #8570747 - Flags: review?(cdawson)
Comment on attachment 8570747 [details] [review]
treeherder-ui-PR#393

That's a sweet approach. I've pushed the angular trigger change to my branch for review, but I'd like to squash before we merge.

Everything seems to be working correctly on both Firefox and Chrome with this approach, no perceptible performance difference.
Attachment #8570747 - Flags: review?(cdawson)
Commits pushed to master at https://github.com/mozilla/treeherder-ui

https://github.com/mozilla/treeherder-ui/commit/2d2a386047b0a2c5cdcfbc4e09418a4803892ecd
Bug 1133545 - Create a shortcut to focus the Filter field

https://github.com/mozilla/treeherder-ui/commit/f46ffa8fa5a7f692734999fd75f23df3a49d6eea
Bug 1133545 - Create a shortcut to focus the Filter field - angular trigger

https://github.com/mozilla/treeherder-ui/commit/9937d0de1b6d5ffc1a992c3ac37c8636c00caa62
Merge pull request #393 from tojonmz/filter-shortcut

Bug 1133545 - Create a shortcut to focus the Filter field
Attachment #8570747 - Flags: review?(cdawson) → review+
Marking fixed per above merge. I will verify on the next push to stage/prod.

We have this also on dev now, so marking Ryan for sheriff feedback and approval.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: needinfo?(ryanvm)
Resolution: --- → FIXED
Substantially better UX, thanks!
Flags: needinfo?(ryanvm)
Cool. Yah the flow for filtering back and forth at will without a mouse, is awesome.

Verified fixed on stage.
Status: RESOLVED → VERIFIED
Commits pushed to master at https://github.com/mozilla/treeherder

https://github.com/mozilla/treeherder/commit/8c9c550b2d18552964ea5efe72f495229bf5cef1
Bug 1133545 - Create a shortcut to focus the Filter field

https://github.com/mozilla/treeherder/commit/dcc5b26fcd182b7356e372f035c1404316be3ed3
Bug 1133545 - Create a shortcut to focus the Filter field - angular trigger

https://github.com/mozilla/treeherder/commit/b3dda608d5c48ba5b07923e48ff944f48f64e598
Merge pull request #393 from tojonmz/filter-shortcut

Bug 1133545 - Create a shortcut to focus the Filter field
Depends on: 1186469
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: