Skip to content

fix(mongo): enable JSON syntax highlighting in MongoDocumentsJsonView (#1432) - #1450

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1432-mongo-json-view-button-highlight
Oct 11, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1432-mongo-json-view-button-highlight

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Closes #1432

Changes

  1. Enable Extended JSON syntax highlighting:
    • Switched MongoDocumentsJsonView's controller instantiation in initState to SyntaxHighlightService.createHighlightController(language: QueryaCodeLanguage.json, text: ...).
    • The view now renders highlighted syntax rather than plain monochrome text.
  2. Standard QueryaButton in toolbar:
    • "Copy JSON" action utilizes QueryaButton.secondary with QueryaControlSize.sm.
  3. Unit tests:
    • Added widget test in test/features/mongodb/mongo_documents_view_modes_test.dart validating that MongoDocumentsJsonView uses QueryaHighlightController when syntax highlighting is initialized.

@github-actions github-actions Bot added enhancement New feature or request editor Code/SQL editor frontend Theme parser epic label: frontend ui User interface components and widgets P2 Medium priority / Parity & Refactoring labels Oct 11, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 9d7db3d into dev Oct 11, 2026
11 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1432-mongo-json-view-button-highlight branch October 11, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

editor Code/SQL editor enhancement New feature or request frontend Theme parser epic label: frontend P2 Medium priority / Parity & Refactoring ui User interface components and widgets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant