From b6243bd98500e15240b31c2e82041888b2e46679 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Tue, 1 Sep 2026 23:50:04 +0800 Subject: [PATCH] feat(frontend): keep the install drawer open with live circular progress MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After a catalog install the sandbox list stays put: busy rows show a circle plus percent from the install-events stream, and “view progress” stacks the manage drawer on top. Drawer width is clamped to the viewport so the action is not pushed off-screen. --- .../components/SandboxSkillsPanel.test.mjs | 2 + .../src/components/SandboxSkillsPanel.vue | 18 +- .../settings/SettingDrawer.test.mjs | 6 + .../src/components/settings/SettingDrawer.vue | 37 +- .../src/composables/skillInstallProgress.ts | 35 + .../useConfigSkillInstallProgress.test.mjs | 44 ++ .../useConfigSkillInstallProgress.ts | 123 +++ frontend/src/i18n/locales/en-US.ts | 2 + frontend/src/i18n/locales/ko-KR.ts | 2 + frontend/src/i18n/locales/ru-RU.ts | 2 + frontend/src/i18n/locales/zh-CN.ts | 2 + .../src/views/agent/AgentEditorModal.test.mjs | 1 + .../src/views/settings/SkillSettings.test.mjs | 14 + frontend/src/views/settings/SkillSettings.vue | 698 +++++++++++------- 14 files changed, 693 insertions(+), 293 deletions(-) create mode 100644 frontend/src/composables/skillInstallProgress.ts create mode 100644 frontend/src/composables/useConfigSkillInstallProgress.test.mjs create mode 100644 frontend/src/composables/useConfigSkillInstallProgress.ts diff --git a/frontend/src/components/SandboxSkillsPanel.test.mjs b/frontend/src/components/SandboxSkillsPanel.test.mjs index 5aee9b10..6be978bd 100644 --- a/frontend/src/components/SandboxSkillsPanel.test.mjs +++ b/frontend/src/components/SandboxSkillsPanel.test.mjs @@ -20,6 +20,8 @@ test('focused skill management expands env vars and transcript without a mid-pag assert.match(source, /SETTING_DRAWER_HEADER_ACTIONS_ID/) assert.match(source, /skill\.status === 'installing'/) assert.match(manageBlock, /skill-manage__section--remove/) + assert.match(manageBlock, /theme="circle"/) + assert.doesNotMatch(manageBlock, /stroke-width="6"/) assert.match(manageBlock, /t-popconfirm/) assert.doesNotMatch(manageBlock, /askRemove/) assert.doesNotMatch(manageBlock, /skill-manage__section--danger/) diff --git a/frontend/src/components/SandboxSkillsPanel.vue b/frontend/src/components/SandboxSkillsPanel.vue index b233c0f6..4e0dd0f4 100644 --- a/frontend/src/components/SandboxSkillsPanel.vue +++ b/frontend/src/components/SandboxSkillsPanel.vue @@ -106,9 +106,17 @@

{{ $t('settings.sandbox.skillRemoveInProgress') }}

- {{ progressOf(managedSkill) }}% +
+ + {{ progressOf(managedSkill) }}% +
-

{{ progressStageText(managedSkill) }}

@@ -1682,12 +1690,6 @@ onUnmounted(() => { } } -.skill-manage__progress-label { - font-size: 12px; - font-weight: 600; - color: var(--td-brand-color); -} - .skill-manage__remove-stage { margin: 0; font-size: 13px; diff --git a/frontend/src/components/settings/SettingDrawer.test.mjs b/frontend/src/components/settings/SettingDrawer.test.mjs index a316c855..0e37085c 100644 --- a/frontend/src/components/settings/SettingDrawer.test.mjs +++ b/frontend/src/components/settings/SettingDrawer.test.mjs @@ -12,3 +12,9 @@ test('the title row hosts compact header actions without replacing the step rail assert.match(source, /setting-drawer__header-actions/) assert.match(source, /&:empty/) }) + +test('drawer width never exceeds the viewport', () => { + assert.match(source, /viewportWidth/) + assert.match(source, /window.innerWidth/) + assert.match(source, /max-width: 100vw/) +}) diff --git a/frontend/src/components/settings/SettingDrawer.vue b/frontend/src/components/settings/SettingDrawer.vue index d54d36c5..1ee3bf76 100644 --- a/frontend/src/components/settings/SettingDrawer.vue +++ b/frontend/src/components/settings/SettingDrawer.vue @@ -7,7 +7,7 @@
-