Skip to content

ui(mongodb): binary, regex and 64-bit values print as Dart objects in the Table and Tree views #1826

Closed

Description

@ZhuchkaTriplesix

Problem

Browsing types_showcase of the compose stack's MongoDB (dev at 25c766c), Table and Tree views print the Dart representation of some BSON values; the JSON (Extended JSON) view is right for all of them.

  • Binary: col_binary: BsonBinary(deadbeef) (empty: BsonBinary()), and the type chip in the Tree view says BsonBinary. Expected something like Binary(0xdeadbeef) / BinData(0, "3q2+7w=="), chip bin.
  • Regex: col_regex: RegExp: pattern=^querya flags=, type chip _RegExp (a private Dart class name). Expected /^querya/i, chip regex.
  • Number colouring in the Tree view: int32 and double are green, but Int64 and Decimal (9223372036854775807, 12345678901234.5678) are plain white.

Where

mongo_documents_table_view.dart / MongoTableGridData (cell text), mongo_document_tree_view.dart (value text, type chip, colours); a shared displayBsonValue(Object?) next to mongo_ejson.dart would give both the same text.

Acceptance

  • No BsonBinary(…), RegExp: … or _RegExp in the Table / Tree views; the type chips are the BSON type names.
  • All numeric types share one colour in the Tree view.
  • A test pins the display text of binary, regex, Int64 and Decimal.

Activity

  1. added
    bugSomething isn't working
    uiUser interface components and widgets
    data-gridInteractive data grid, cell editor, filtering, groupings
    P3Low priority / Polish & Enhancements
    on Oct 25, 2026
  2. added a commit that references this issue on Oct 25, 2026
  3. ZhuchkaTriplesix commented on Oct 25, 2026

    @ZhuchkaTriplesix
    MemberAuthor

    Fixed by #1828.

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

    P3Low priority / Polish & EnhancementsbugSomething isn't workingdata-gridInteractive data grid, cell editor, filtering, groupingsuiUser interface components and widgets

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions