zui
zui copied to clipboard
Scroll to sidebar item after creation
When creating a new query, dragging a query library, create a pool or dragging a pool, we must scroll the sidebar to that item.
I'll expand this to include creating items from within the sidebar through a right click action.
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.
- Creating a new query by typing a name and clicking Save in the area above the editor
- Creating a new pool by clicking New Pool
- Creating a new pool by dragging it into the Pools list
- Dragging in a query library JSON
- 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!