From a5f5d7b33abf1d4f8711edc658af9e236ae1430b Mon Sep 17 00:00:00 2001 From: Allen Hutchison Date: Wed, 14 May 2025 16:15:41 -0700 Subject: [PATCH] Refactor: Move GEMINI.md file count to Footer (#351) --- packages/cli/src/ui/App.tsx | 9 +------- packages/cli/src/ui/components/Footer.tsx | 26 +++++++++++------------ 2 files changed, 14 insertions(+), 21 deletions(-) diff --git a/packages/cli/src/ui/App.tsx b/packages/cli/src/ui/App.tsx index 758ddb28..e1ae8da3 100644 --- a/packages/cli/src/ui/App.tsx +++ b/packages/cli/src/ui/App.tsx @@ -290,13 +290,6 @@ export const App = ({ {shortenPath(config.getTargetDir(), 70)} - {geminiMdFileCount > 0 && ( - - - Using {geminiMdFileCount} GEMINI.md files - - - )} diff --git a/packages/cli/src/ui/components/Footer.tsx b/packages/cli/src/ui/components/Footer.tsx index 06721a4b..d3fe7a4a 100644 --- a/packages/cli/src/ui/components/Footer.tsx +++ b/packages/cli/src/ui/components/Footer.tsx @@ -11,31 +11,31 @@ import { Config } from '@gemini-code/server'; interface FooterProps { config: Config; - queryLength: number; debugMode: boolean; debugMessage: string; cliVersion: string; + geminiMdFileCount: number; } export const Footer: React.FC = ({ config, - queryLength, debugMode, debugMessage, cliVersion, + geminiMdFileCount, }) => ( - - {/* Left Section: Help/DebugMode */} + - - {queryLength === 0 ? '? for shortcuts' : ''} - {debugMode && ( - - {' '} - {debugMessage || 'Running in debug mode.'} - - )} - + {geminiMdFileCount > 0 && ( + + Using {geminiMdFileCount} GEMINI.md files + + )} + {debugMode && ( + + {debugMessage || ' | Running in debug mode.'} + + )} {/* Middle Section: Centered Sandbox Info */}