immich icon indicating copy to clipboard operation
immich copied to clipboard

feat(web): Edit people - Start people search on key press

Open Jan108 opened this issue 1 year ago • 7 comments

When editing a face, I often need to search for the right one. And I found myself quite often starting to type the name of the person before I click on the Search icon. So I added the functionality that, when selecting a new person for a face and starting to type, it starts the search automatically, instead of first clicking on the search icon. No functionality is removed, only added.

Before: befor_edit

With this change: after_edit

Jan108 avatar Aug 10 '24 13:08 Jan108

I agree with Martin, it's unexpected for the search input to suddenly activate and it conflicts with existing shortcuts (like f for favorite). Maybe the shortcut Ctrl + k can be used for consistency with the search bar.

michelheusschen avatar Aug 13 '24 10:08 michelheusschen

I just want to streamline a face change process, and I find it pretty intuitive to start the search when typing. But I also understand why you would prefer a shortcut. My intention was to reduce the amount of inputs for changing a face from 3 clicks and search to 2 clicks and search. A shortcut to select the search bar won't help there, because it won't reduce the amount of steps.

If we want to use a shortcut, it should work on the default photoviewer and directly open the new face selection, with possibly selecting the search bar. But I can't think of a good way to determine which face should be edited (mouse hover or tab selection comes to my mind, but both seem unintuitive for the user).

Jan108 avatar Aug 13 '24 13:08 Jan108

It's pretty common for the / key to focus on the search input. Thoughts on that instead?

jrasm91 avatar Aug 13 '24 15:08 jrasm91

I thought a little more how to streamline the process, and here are my proposed changes:

  • Add a shortcut p to the photoviewer to open the edit people side panel
  • Alter the tabindex on the edit-people side panel, so that it starts with the first person and loops through the rest. On enter open the assign-face side panel for the selected person (Currently it would open the person page)
  • Add the bounding boxes to the assign-face side panel, so the user knows which face is selected for the edit
  • Add the shortcut / and - (KeyCode: 173, but difference in qwerty/qwertz) to select the search input
  • Alter the tabindex on the assign-face side panel to loop thought the search results and select with enter
  • Maybe: Add the shortcut n to the assign-face side panel to create a new face

Jan108 avatar Aug 14 '24 12:08 Jan108

I liked this feature it could be looking to repeatedly press the search or a keyboard shortcut when doing it for a quantity of images, maybe it could be user selectable under system interface settings?

aviv926 avatar Aug 14 '24 14:08 aviv926

Hello, what is the status of this PR?

alextran1502 avatar Oct 09 '24 16:10 alextran1502

Hi, initially I waited for a little feedback to my proposal. Because nobody had any complains, I started implementing, but then life got in the way and I didn't finish. I think I will get to it this week or next :)

Jan108 avatar Oct 14 '24 09:10 Jan108

Label error. Requires exactly 1 of: changelog:.*. Found: 🖥️web

github-actions[bot] avatar Dec 13 '24 12:12 github-actions[bot]

This PR is quite old now and hasn't had much movement, so I'm going to go ahead and close it.

jrasm91 avatar Feb 13 '25 18:02 jrasm91