From 162e8a2a1257dddec957b61489ef6e7d800ef885 Mon Sep 17 00:00:00 2001 From: ymkiux <3255284101@qq.com> Date: Tue, 7 Apr 2026 14:35:03 +0800 Subject: [PATCH] feat: split session usage into separate tab --- tests/unit/config-tabs-ui.test.mjs | 25 +++-- .../session-tab-switch-performance.test.mjs | 33 ++++++ tests/unit/web-ui-behavior-parity.test.mjs | 4 +- web-ui/app.js | 1 - web-ui/index.html | 1 + web-ui/modules/config-mode.computed.mjs | 1 + web-ui/partials/index/layout-header.html | 42 +++++++- web-ui/partials/index/panel-sessions.html | 100 ------------------ web-ui/partials/index/panel-usage.html | 81 ++++++++++++++ web-ui/session-helpers.mjs | 3 +- 10 files changed, 180 insertions(+), 111 deletions(-) create mode 100644 web-ui/partials/index/panel-usage.html diff --git a/tests/unit/config-tabs-ui.test.mjs b/tests/unit/config-tabs-ui.test.mjs index 6381f0a..575ad90 100644 --- a/tests/unit/config-tabs-ui.test.mjs +++ b/tests/unit/config-tabs-ui.test.mjs @@ -13,6 +13,7 @@ test('config template keeps expected config tabs in top and side navigation', () const templateAgentModals = readProjectFile('web-ui/partials/index/modal-config-template-agents.html'); const openclawModal = readProjectFile('web-ui/partials/index/modal-openclaw-config.html'); const sessionsPanel = readProjectFile('web-ui/partials/index/panel-sessions.html'); + const usagePanel = readProjectFile('web-ui/partials/index/panel-usage.html'); const baseTheme = readProjectFile('web-ui/styles/base-theme.css'); const controlsForms = readProjectFile('web-ui/styles/controls-forms.css'); const sideRail = html.match(/