Skip to content

Ability to Pin Items in sidebar for SQL based databases #982

@rasyidrafi

Description

@rasyidrafi

What

Add the ability to pin items in the DBCode left sidebar (DB Explorer), including:

  • Pin Connection: Right-click a connection → Pin Connection.

    • Pinned connections are always shown at the top of the sidebar.
    • Display a visible pin icon to indicate pinned status.
  • Pin Database: Right-click a database under a connection → Pin Database.

    • Pinned databases remain at the top within their parent connection.
  • Pin Table: Right-click a table → Pin Table.

    • Pinned tables appear at the top of the table list for that database.

Pinned items should remain pinned across restarts.


Why (problem/use case)

When working with servers that contain many connections, databases, and tables, navigation becomes slow and repetitive. Frequently used connections or tables are often buried deep in long lists, requiring constant scrolling and expanding/collapsing nodes.

Pinning would:

  • Reduce navigation time for commonly used resources
  • Improve focus when working on a small subset of databases/tables
  • Make large database environments significantly easier to manage
  • Match usability patterns found in other developer tools (e.g., pinned files, favorites)

Additional Context

  • Expected UX:

    • Right-click context menu actions (Pin / Unpin)
    • Pinned items visually separated or sorted above non-pinned items
    • Clear pin icon for discoverability
  • This is especially useful for:

    • Multi-tenant database servers
    • Production + staging environments
    • Schemas with hundreds of tables (My Main Issues)

Screenshots for reference

Pin Connection

Image

Pin Database

Image

Pin Table

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions