Skip to content

feat(mongodb): nested collection subtree in ConnectionsPanel #1023

Closed

Description

@ZhuchkaTriplesix

Summary

Добавить возможность раскрывать коллекции базы данных прямо в боковом дереве ConnectionsPanel (по аналогии с таблицами PostgreSQL/MySQL/SQLite) и открывать документы в один клик.

Context

Сейчас в connections_panel_mongo.dart отображается только список баз данных. Чтобы открыть коллекцию, нужно кликнуть на БД, перейти в MongoExplorerView, найти коллекцию и нажать на неё. Прямой переход из сайдбара сократит лишние клики и унифицирует поведение со всеми остальными СУБД.

Implementation Details

  1. В lib/features/connections/connections_panel_mongo.dart добавить состояние _expanded в _MongoDatabaseNode и ленивую подгрузку conn.listCollections(database).
  2. Создать узел _MongoCollectionNode с контекстным меню (Open, View Stats, Drop Collection, Copy Name).
  3. Пробросить selectedMongoCollection в WorkspacePanel и MainScreenWorkspaceState.

Acceptance Criteria

  • Базу данных в дереве MongoDB можно развернуть для просмотра коллекций.
  • Коллекции подгружаются асинхронно без фризов UI.
  • Клик на коллекцию сразу открывает MongoDocumentsView.

Activity

  1. added
    enhancementNew feature or request
    uiUser interface components and widgets
    connectionsDatabase connections, URI parsing, pools
    uxUser experience, keyboard shortcuts and interactions
    P1High priority / Core capability
    on Oct 4, 2026
  2. ZhuchkaTriplesix commented on Oct 5, 2026

    @ZhuchkaTriplesix
    MemberAuthor

    Completed and merged into dev via PR #1070

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High priority / Core capabilityconnectionsDatabase connections, URI parsing, poolsenhancementNew feature or requestuiUser interface components and widgetsuxUser experience, keyboard shortcuts and interactions

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions