Skip to content

Editor: абстракция QueryaCodeEditor #47

@ZhuchkaTriplesix

Description

@ZhuchkaTriplesix

Summary

Единый виджет QueryaCodeEditor для SQL и JSON вместо прямого TextField.

Проблема

Файл Сейчас
query_editor_tab.dart shadcn TextField
mongo_document_editor.dart Material TextField + hardcoded colors
sql_syntax_highlighting.dart пустой placeholder

Workspace (postgres_sql_workspace, mysql_sql_workspace) не должен зависеть от конкретного editor package.

API (черновик)

enum QueryaCodeLanguage { sql, json, plain }

class QueryaCodeEditor extends StatefulWidget {
  final TextEditingController? controller;
  final QueryaCodeLanguage language;
  final double fontSize;
  final bool readOnly;
  final ValueChanged<String>? onChanged;
  final Widget? placeholder;
}

Скрытая реализация за интерфейсом:

Migration

  • QueryEditorTab
  • mongo_document_editor (language: json)
  • Сохранить AppSettings.getSqlEditorFontSize()

Acceptance criteria

Зависимости

Оценка

~2–3 дня

Metadata

Metadata

Assignees

No one assigned

    Labels

    editorCode/SQL editorenhancementNew feature or requestthemeTheming, colors, VS Code themes

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions