From a8b135b4892451f7faaea412b30a4d5772ae924b Mon Sep 17 00:00:00 2001 From: GCWing Date: Mon, 30 Mar 2026 12:03:23 +0800 Subject: [PATCH] web-ui: nav, file viewer, flow chat tools, file explorer - Nav panel, sessions, workspace item styling - File viewer nav, files panel, Markdown styles - Skill/task tool cards; remove SkillDisplay.scss - File explorer getNewItemParentPath; i18n updates --- .../src/app/components/NavPanel/NavPanel.scss | 12 +- .../sections/sessions/SessionsSection.scss | 3 +- .../sections/workspaces/WorkspaceItem.tsx | 4 +- .../src/app/components/panels/FilesPanel.tsx | 53 ++++++- .../app/scenes/file-viewer/FileViewerNav.scss | 1 + .../app/scenes/file-viewer/FileViewerNav.tsx | 38 ++++- .../components/Markdown/Markdown.scss | 2 +- .../flow_chat/tool-cards/SkillDisplay.scss | 50 ------- .../src/flow_chat/tool-cards/SkillDisplay.tsx | 135 ++++++++++-------- .../flow_chat/tool-cards/TaskToolDisplay.scss | 5 +- src/web-ui/src/locales/en-US/common.json | 2 - src/web-ui/src/locales/en-US/flow-chat.json | 4 +- src/web-ui/src/locales/zh-CN/common.json | 22 ++- src/web-ui/src/locales/zh-CN/flow-chat.json | 4 +- .../file-system/components/FileExplorer.tsx | 64 ++------- src/web-ui/src/tools/file-system/index.ts | 3 + .../src/tools/file-system/types/index.ts | 10 ++ .../file-system/utils/getNewItemParentPath.ts | 59 ++++++++ 18 files changed, 277 insertions(+), 194 deletions(-) delete mode 100644 src/web-ui/src/flow_chat/tool-cards/SkillDisplay.scss create mode 100644 src/web-ui/src/tools/file-system/utils/getNewItemParentPath.ts diff --git a/src/web-ui/src/app/components/NavPanel/NavPanel.scss b/src/web-ui/src/app/components/NavPanel/NavPanel.scss index 0b366f4c..119d0968 100644 --- a/src/web-ui/src/app/components/NavPanel/NavPanel.scss +++ b/src/web-ui/src/app/components/NavPanel/NavPanel.scss @@ -1807,7 +1807,8 @@ $_section-header-height: 24px; transition: none; } - .bitfun-nav-panel__top-action-btn:hover .bitfun-nav-panel__top-action-icon-circle { + .bitfun-nav-panel__top-action-btn:hover .bitfun-nav-panel__top-action-icon-circle, + .bitfun-nav-panel__top-action-btn:active .bitfun-nav-panel__top-action-icon-circle { transform: scale(1); } @@ -1941,8 +1942,6 @@ $_section-header-height: 24px; color: var(--color-text-primary); } - &:active { transform: translateY(1px); } - &:focus-visible { outline: 1px solid var(--color-accent-500); outline-offset: 1px; @@ -2015,7 +2014,7 @@ $_section-header-height: 24px; transition: background $motion-fast $easing-standard, color $motion-fast $easing-standard, box-shadow $motion-fast $easing-standard, - transform $motion-fast $easing-standard; + transform 0.4s $easing-bounce; .bitfun-nav-panel__top-action-btn:hover & { @include btn-primary.btn-primary-surface-hover; @@ -2024,5 +2023,10 @@ $_section-header-height: 24px; .bitfun-nav-panel__top-action-btn:active & { @include btn-primary.btn-primary-surface-active; + transform: scale(0.86); + transition: background $motion-instant $easing-accelerate, + color $motion-instant $easing-accelerate, + box-shadow $motion-instant $easing-accelerate, + transform 0.09s $easing-accelerate; } } diff --git a/src/web-ui/src/app/components/NavPanel/sections/sessions/SessionsSection.scss b/src/web-ui/src/app/components/NavPanel/sections/sessions/SessionsSection.scss index b4e13257..efc563b7 100644 --- a/src/web-ui/src/app/components/NavPanel/sections/sessions/SessionsSection.scss +++ b/src/web-ui/src/app/components/NavPanel/sections/sessions/SessionsSection.scss @@ -65,7 +65,7 @@ background: transparent; color: var(--color-text-primary); font-size: 13px; - font-weight: 400; + font-weight: 500; cursor: pointer; width: 100%; text-align: left; @@ -79,7 +79,6 @@ &.is-active { color: var(--color-text-primary); - font-weight: 500; background: var(--element-bg-soft); } diff --git a/src/web-ui/src/app/components/NavPanel/sections/workspaces/WorkspaceItem.tsx b/src/web-ui/src/app/components/NavPanel/sections/workspaces/WorkspaceItem.tsx index fd4b9c09..24b292ea 100644 --- a/src/web-ui/src/app/components/NavPanel/sections/workspaces/WorkspaceItem.tsx +++ b/src/web-ui/src/app/components/NavPanel/sections/workspaces/WorkspaceItem.tsx @@ -606,11 +606,11 @@ const WorkspaceItem: React.FC = ({ > {isLinkedWorktree ? (