From 09fd524c9671dea8e58c7360690507d50b94e388 Mon Sep 17 00:00:00 2001 From: ximengkai Date: Tue, 18 Aug 2026 16:19:10 +0800 Subject: [PATCH] test(ci): stabilize hook and skip-git tests --- gitnexus-web/src/components/FileTreePanel.tsx | 4 +-- gitnexus-web/src/components/Header.tsx | 2 +- .../src/components/ProcessesPanel.tsx | 2 +- gitnexus-web/src/components/QueryFAB.tsx | 2 +- gitnexus-web/src/components/RightPanel.tsx | 4 +-- gitnexus/test/unit/hooks.test.ts | 14 +++++++-- gitnexus/test/unit/skip-git-cli.test.ts | 6 ++++ gitnexus/test/utils/hook-test-helpers.ts | 31 +++++++++++++++++-- 8 files changed, 54 insertions(+), 11 deletions(-) diff --git a/gitnexus-web/src/components/FileTreePanel.tsx b/gitnexus-web/src/components/FileTreePanel.tsx index a3c7487a9..6d2a559aa 100644 --- a/gitnexus-web/src/components/FileTreePanel.tsx +++ b/gitnexus-web/src/components/FileTreePanel.tsx @@ -389,7 +389,7 @@ export const FileTreePanel = ({ onFocusNode }: FileTreePanelProps) => { {/* File tree */} -
+
{fileTree.length === 0 ? (
{t('graph:fileTree.noFilesLoaded')} @@ -413,7 +413,7 @@ export const FileTreePanel = ({ onFocusNode }: FileTreePanelProps) => { )} {activeTab === 'filters' && ( -
+

{t('graph:fileTree.nodeTypes')} diff --git a/gitnexus-web/src/components/Header.tsx b/gitnexus-web/src/components/Header.tsx index 8e8d41d08..a1b777422 100644 --- a/gitnexus-web/src/components/Header.tsx +++ b/gitnexus-web/src/components/Header.tsx @@ -247,7 +247,7 @@ export const Header = ({ />

-
+
{filteredRepos.length === 0 ? (
{t('header:noRepositoriesFound', { query: repoSearchQuery })} diff --git a/gitnexus-web/src/components/ProcessesPanel.tsx b/gitnexus-web/src/components/ProcessesPanel.tsx index add4c255b..e89074feb 100644 --- a/gitnexus-web/src/components/ProcessesPanel.tsx +++ b/gitnexus-web/src/components/ProcessesPanel.tsx @@ -364,7 +364,7 @@ export const ProcessesPanel = () => {
{/* Process list */} -
+
{/* View All Processes Card */}
{showResults && queryResult.rows.length > 0 && ( -
+
diff --git a/gitnexus-web/src/components/RightPanel.tsx b/gitnexus-web/src/components/RightPanel.tsx index 7038895d8..9b1fa5ab3 100644 --- a/gitnexus-web/src/components/RightPanel.tsx +++ b/gitnexus-web/src/components/RightPanel.tsx @@ -301,7 +301,7 @@ export const RightPanel = () => { )} {/* Messages */} -
+
{chatMessages.length === 0 ? (
@@ -426,7 +426,7 @@ export const RightPanel = () => { onKeyDown={handleKeyDown} placeholder={t('chat:input.placeholder')} rows={1} - className="scrollbar-thin min-h-[36px] flex-1 resize-none border-none bg-transparent text-sm text-text-primary outline-none placeholder:text-text-muted" + className="min-h-[36px] flex-1 resize-none scrollbar-thin border-none bg-transparent text-sm text-text-primary outline-none placeholder:text-text-muted" style={{ height: '36px', overflowY: 'hidden' }} />