zui icon indicating copy to clipboard operation
zui copied to clipboard

Scroll to sidebar item after creation

Open jameskerr opened this issue 2 years ago • 1 comments

When creating a new query, dragging a query library, create a pool or dragging a pool, we must scroll the sidebar to that item.

jameskerr avatar Feb 21 '22 19:02 jameskerr

I'll expand this to include creating items from within the sidebar through a right click action.

jameskerr avatar Mar 14 '22 17:03 jameskerr

Verified in Brim commit a6fc1a8.

As shown in the attached video, now when the user takes each of these actions, the left sidebar automatically highlights the appropriate entry. This makes it easy for a user that wants to immediately hit Enter or click it to start renaming it, if desired.

  1. Creating a new query by typing a name and clicking Save in the area above the editor
  2. Creating a new pool by clicking New Pool
  3. Creating a new pool by dragging it into the Pools list
  4. Dragging in a query library JSON
  5. Creating a new query by right-clicking in the Queries area and selecting New Query

https://user-images.githubusercontent.com/5934157/198713815-dce02e9c-6d75-4678-b449-853c873929b7.mp4

Thanks @jameskerr!

philrz avatar Oct 28 '22 19:10 philrz