Sidebar Improvements Spec¶
Context¶
The Left Sidebar
component’s main purpose is to give users access to the list of database objects. The sidebar supports the addition of various sections, where additional functionality can be displayed.
Prototype¶
Link¶
Videos¶
- All Scenarios: Video
User Experience¶
In the Explorer
section, the’ Left Sidebar’ should allow for quick navigation objects. Users should be able to retrieve objects and open them quickly. Additionally, it should make the status of objects listed visible.
Scenario 1: Opening the Sidebar¶
Scenario 1a: Via opening a schema¶
Steps for 1a¶
- A user opens a schema.
- The sidebar is open by default with the
Explorer
section active.
Scenario 1b: Via sidebar navigation bar¶
Steps for 1b¶
- A user is in the schema view.
- The user clicks on any navigation item from the sidebar navigation bar.
- The selected sidebar section opens.
Scenario 2: Closing the Sidebar¶
Scenario 2a: Via sidebar navigation bar¶
Steps for 2a¶
- A user is in the schema view.
- The user clicks on a currently selected navigation item.
- The sidebar closes.
Scenario 3: Navigating to Another Section¶
Scenario 3a: Via sidebar navigation bar¶
Steps for 3a¶
- A user is in the schema view.
- The user clicks on any navigation item not currently selected.
- The sidebar closes.
Components¶
Sidebar Sections¶
The Left Sidebar
component, can support multiple sections. At the time of writing this spec, only the Explorer
section is planned to be implemented.
Explorer Section¶
The Explorer
section contains the list of database objects for a currently open schema.
Interactions¶
Status of Objects¶
Items listed in the Explorer
sidebar are styled differently according to their status.
- Open/Active
- Unsaved Changes
- Error
- Progress Indicator
Potential Improvements¶
Reveal in Sidebar¶
We could use the ‘Reveal in Sidebar’ functionality to locate or scroll to an open item in the sidebar. The option could be located in tabs contextual menu, or when tables are referenced in the table UI.
Additional functionality a the list item level¶
Items listed in the Explorer
sidebar could offer a contextual menu to perform actions such as renaming, deleting or duplicating, without the need to open the object.
Handling of long lists¶
Functionality specific to long lists will not be addressed as part of this spec. Handling long lists will most likely require an additional view to display the complete list, including pagination and other navigation updates. For that reason, we will create a separate issue to address this.