fleetdm / fleet

Open-source platform for IT, security, and infrastructure teams. (Linux, macOS, Chrome, Windows, cloud, data center)
https://fleetdm.com
Other
3.12k stars 431 forks source link

Keyboard shortcut for submitting query #6079

Open GuillaumeRoss opened 2 years ago

GuillaumeRoss commented 2 years ago

Goal

After writing a query in Fleet, I want to be able to run my query by using my keyboard.

How?

Tasks

noahtalerman commented 2 years ago

@lukeheath heads up, I assigned you this issue for spec'ing.

RachelElysia commented 2 years ago

These as well

Image Image

RachelElysia commented 2 years ago

Adding and editing a pack as well

RachelElysia commented 2 years ago

Collaborated on a call with @xpkoala

Other Keyboard issues:

Create a new query

Select targets page

Query results page

@lukeheath This experience has a lot of questions that need confirmation to proceed. Reed and I chatted for an hour related to what the UX should feel like on these pages with a keyboard. He said the shortcuts for command enter to run a query doesn't make sense to implement unless MVP of other implementations are in place. Would like your thoughts on how to to proceed for anything with a checkbox above.

@xpkoala offered to create a loom video on all these things https://www.loom.com/share/685582eb8ad74cd582fc3e440f9c717a

RachelElysia commented 2 years ago

@noahtalerman This landed on my plate and so I paired up with @xpkoala -- he was suggesting that it's unintuitive to progress to run query if the user doesn't know where they're at in the form which is related to this deprioritized ticket: https://github.com/fleetdm/fleet/issues/7795

Suggestions?

lukeheath commented 2 years ago

@RachelElysia Thank you both for your diligence in digging into this!

@noahtalerman Please take a look at the loom above. The product issue pointed out is that even if we make the "edit query" screen proceed with cmd+enter, the following "select targets" screen is not optimized for keyboard navigation and requires mouse interaction. So, if the goal is to be able to run the query without touching the mouse, we need to expand the ticket to include updating the "select targets" screen, as well. I see three options:

1) We proceed with the ticket as spec'd and only implement the cmd+enter feature on the "edit query" screen. This option accepts the "select targets" screen requires mouse interaction.

2) We expand the ticket to include the "select targets" screen, which takes this ticket from a 3 to a 5-8.

3) We defer this ticket and remove it from the current release.

What do you think? Since this was a low-priority ticket, I'm inclined toward option three.

noahtalerman commented 2 years ago

We defer this ticket and remove it from the current release.

@lukeheath This makes sense to me. Can you please remove the issue from the release board?

The goal is to be able to run the query without touching the mouse. This goal is not a high enough priority to spend 2-3 days on (5-8 points).

Since this was a low-priority ticket, I'm inclined toward option three.

I agree.

noahtalerman commented 2 years ago

@RachelElysia @xpkoala thank you for digging into this!

lukeheath commented 2 years ago

@noahtalerman Sounds good.

@RachelElysia We are deprioritizing this issue for now.