From 0f526630a2e1f2f199a5890555fa0605ccd32fef Mon Sep 17 00:00:00 2001 From: linshen <32978552+linshenkx@users.noreply.github.com> Date: Tue, 27 Jan 2026 21:39:56 +0800 Subject: [PATCH] refactor(ui): extract temporary variables panel Reuse a shared temp-variable editor in test panels and show it above image test variants for parity with Pro. --- .../context-mode/ContextUserTestPanel.vue | 179 +------- .../context-mode/ConversationTestPanel.vue | 390 ++---------------- .../image-mode/ImageImage2ImageWorkspace.vue | 141 +++---- .../image-mode/ImageText2ImageWorkspace.vue | 143 +++---- .../variable/TemporaryVariablesPanel.vue | 228 ++++++++++ .../variable/useTestVariableManager.ts | 83 +++- 6 files changed, 450 insertions(+), 714 deletions(-) create mode 100644 packages/ui/src/components/variable/TemporaryVariablesPanel.vue diff --git a/packages/ui/src/components/context-mode/ContextUserTestPanel.vue b/packages/ui/src/components/context-mode/ContextUserTestPanel.vue index 4fbd23bd..9c0b5353 100644 --- a/packages/ui/src/components/context-mode/ContextUserTestPanel.vue +++ b/packages/ui/src/components/context-mode/ContextUserTestPanel.vue @@ -1,159 +1,12 @@