From f9ee05fd7da74d4a3b8691b87e369597e97aadf8 Mon Sep 17 00:00:00 2001 From: Saeful Rahman Date: Tue, 6 Oct 2026 20:59:37 +0700 Subject: [PATCH] feat(explain): show JSON plans in a read-only editor with copy --- .../components/explain/ExplainPlanViewer.vue | 50 +++++++- .../__tests__/ExplainPlanViewer.copy.spec.ts | 117 ++++++++++++++++++ .../ExplainPlanViewer.defaultView.spec.ts | 7 +- .../ExplainPlanViewer.export.spec.ts | 3 + apps/desktop/src/i18n/locales/az.ts | 3 + apps/desktop/src/i18n/locales/en.ts | 3 + apps/desktop/src/i18n/locales/es.ts | 3 + apps/desktop/src/i18n/locales/id.ts | 3 + apps/desktop/src/i18n/locales/it.ts | 3 + apps/desktop/src/i18n/locales/ja.ts | 3 + apps/desktop/src/i18n/locales/ko.ts | 3 + apps/desktop/src/i18n/locales/pt-BR.ts | 3 + apps/desktop/src/i18n/locales/ru.ts | 3 + apps/desktop/src/i18n/locales/tr.ts | 3 + apps/desktop/src/i18n/locales/zh-CN.ts | 3 + apps/desktop/src/i18n/locales/zh-TW.ts | 3 + 16 files changed, 207 insertions(+), 6 deletions(-) create mode 100644 apps/desktop/src/components/explain/__tests__/ExplainPlanViewer.copy.spec.ts diff --git a/apps/desktop/src/components/explain/ExplainPlanViewer.vue b/apps/desktop/src/components/explain/ExplainPlanViewer.vue index 2904644b9f..7d5a5e6384 100644 --- a/apps/desktop/src/components/explain/ExplainPlanViewer.vue +++ b/apps/desktop/src/components/explain/ExplainPlanViewer.vue @@ -1,14 +1,16 @@