Wishlist: Shortcut key to quickly log out

Bug #1812414 reported by Terran McCanna
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Wishlist
Unassigned

Bug Description

We've had a wish list request from a library for a shortcut / function key to call the Log Out function in the web client.

tags: added: usabil
removed: webstaffclient
tags: added: usability
removed: usabil
Revision history for this message
Stephanie Leary (stephanieleary) wrote :

I came across this while working on some other things related to shortcuts, and I agree it would be nice. I've done a quick patch using Alt+Shift+Q as the shortcut. I checked OS, browser, and screen reader keyboard shortcuts for conflicts and didn't find any.

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/sleary/lp1812414-logout-shortcut

However, I think this needs some discussion. Do we want to throw in a confirmation dialog, in case of accidents?

tags: added: needsdiscussion
Revision history for this message
Andrea Neiman (aneiman) wrote :

+1 to a confirmation

Changed in evergreen:
status: New → Confirmed
Revision history for this message
Jason Boyer (jboyer) wrote :

I also think that a confirmation would be good, though I would also like to see that paired with a user (rather than workstation) setting because I would also turn it off. :)

Revision history for this message
Stephanie Leary (stephanieleary) wrote :

Noting that it does us little good to have a keyboard shortcut for logging out if the resulting confirmation screen can't be dismissed via the keyboard; see bug 1826584

Revision history for this message
Stephanie Leary (stephanieleary) wrote :

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/collab/sleary/lp1812414-logout-shortcut

Updated branch, with help from Galen and Mike on figuring out that we needed to change from a directive to a component to make AccessKeys show a dialog.

This makes it possible for other keyboard shortcuts to implement confirmations before the requested action is taken.

tags: added: pullrequest
removed: needsdiscussion
Revision history for this message
Blake GH (bmagic) wrote :

Merge conflict today (feedback fest)

Revision history for this message
Michele Morgan (mmorgan) wrote :

This is merging cleanly for me to main.

Revision history for this message
Michele Morgan (mmorgan) wrote :

Merges cleanly for me!

Revision history for this message
Blake GH (bmagic) wrote :

After installing this patch, the nav menu's are messed up. See screen shot. It could* be an issue with playing with the other patches on the machine. The patch did merge cleanly.

Revision history for this message
Galen Charlton (gmc) wrote :

I'm seeing the same thing (upon dealing with the merge conflict now that bug 1828468 is pushed). Upon inspection, it looks like the template supplied by the attribute-selected component is replacing the contents of the <a> elements in the navbar when an access key is defined.

It looks like the following might work:

- change it back to a directive
- tack the eg-confirm-dialog (or maybe an ng-template containing it) to the navbar somewhere
- add a second @Input() to the directive that accepts a TemplateRef or a ConfirmDialogComponent, and pass it to each and every element that uses the accesskey directive similar to https://stackoverflow.com/a/75542708.

tags: removed: pullrequest
tags: added: needswork
Revision history for this message
Stephanie Leary (stephanieleary) wrote :

Rather than get tangled up in Angular components vs. directives in order to make confirmation dialogs easy for all keyboard shortcuts everywhere, I am vastly simplifying the solution here. The Alt+Shift+Q shortcut now calls a function that presents the confirmation dialog and, if confirmed, logs out.

Branch: https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/sleary/lp1812414-logout-shortcut-revised

tags: added: pullrequest ux-keyboard
removed: needswork
Revision history for this message
Michele Morgan (mmorgan) wrote :

Thanks for your work on this Stephanie. I've tested this patch, and unfortunately, while the Alt+Shift+Q quickly and easily performs the logout, the confirmation dialog is never presented.

Putting back the needswork tag.

tags: added: needswork
removed: pullrequest
Revision history for this message
Stephanie Leary (stephanieleary) wrote :

Thanks, Michele! Somehow the revised branch had only half the relevant changes. I've just updated and squashed it.

tags: added: pullrequest
removed: needswork
Revision history for this message
Shula Link (slink-g) wrote :
tags: added: signedoff
Revision history for this message
Terran McCanna (tmccanna) wrote :

Thanks Stephanie and Shula, fix committed!

Changed in evergreen:
milestone: none → 3.12-beta
status: Confirmed → Fix Committed
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.