Refactor: Move GEMINI.md file count to Footer (#351)
This commit is contained in:
parent
416813452e
commit
a5f5d7b33a
|
@ -290,13 +290,6 @@ export const App = ({
|
||||||
{shortenPath(config.getTargetDir(), 70)}
|
{shortenPath(config.getTargetDir(), 70)}
|
||||||
</Text>
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
{geminiMdFileCount > 0 && (
|
|
||||||
<Box>
|
|
||||||
<Text color={Colors.SubtleComment}>
|
|
||||||
Using {geminiMdFileCount} GEMINI.md files
|
|
||||||
</Text>
|
|
||||||
</Box>
|
|
||||||
)}
|
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<InputPrompt
|
<InputPrompt
|
||||||
|
@ -363,10 +356,10 @@ export const App = ({
|
||||||
|
|
||||||
<Footer
|
<Footer
|
||||||
config={config}
|
config={config}
|
||||||
queryLength={query.length}
|
|
||||||
debugMode={config.getDebugMode()}
|
debugMode={config.getDebugMode()}
|
||||||
debugMessage={debugMessage}
|
debugMessage={debugMessage}
|
||||||
cliVersion={cliVersion}
|
cliVersion={cliVersion}
|
||||||
|
geminiMdFileCount={geminiMdFileCount}
|
||||||
/>
|
/>
|
||||||
<ConsoleOutput />
|
<ConsoleOutput />
|
||||||
</Box>
|
</Box>
|
||||||
|
|
|
@ -11,31 +11,31 @@ import { Config } from '@gemini-code/server';
|
||||||
|
|
||||||
interface FooterProps {
|
interface FooterProps {
|
||||||
config: Config;
|
config: Config;
|
||||||
queryLength: number;
|
|
||||||
debugMode: boolean;
|
debugMode: boolean;
|
||||||
debugMessage: string;
|
debugMessage: string;
|
||||||
cliVersion: string;
|
cliVersion: string;
|
||||||
|
geminiMdFileCount: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const Footer: React.FC<FooterProps> = ({
|
export const Footer: React.FC<FooterProps> = ({
|
||||||
config,
|
config,
|
||||||
queryLength,
|
|
||||||
debugMode,
|
debugMode,
|
||||||
debugMessage,
|
debugMessage,
|
||||||
cliVersion,
|
cliVersion,
|
||||||
|
geminiMdFileCount,
|
||||||
}) => (
|
}) => (
|
||||||
<Box marginTop={1} display="flex" justifyContent="space-between" width="100%">
|
<Box>
|
||||||
{/* Left Section: Help/DebugMode */}
|
|
||||||
<Box>
|
<Box>
|
||||||
<Text color={Colors.SubtleComment}>
|
{geminiMdFileCount > 0 && (
|
||||||
{queryLength === 0 ? '? for shortcuts' : ''}
|
<Text color={Colors.SubtleComment}>
|
||||||
{debugMode && (
|
Using {geminiMdFileCount} GEMINI.md files
|
||||||
<Text color={Colors.AccentRed}>
|
</Text>
|
||||||
{' '}
|
)}
|
||||||
{debugMessage || 'Running in debug mode.'}
|
{debugMode && (
|
||||||
</Text>
|
<Text color={Colors.AccentRed}>
|
||||||
)}
|
{debugMessage || ' | Running in debug mode.'}
|
||||||
</Text>
|
</Text>
|
||||||
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
{/* Middle Section: Centered Sandbox Info */}
|
{/* Middle Section: Centered Sandbox Info */}
|
||||||
|
|
Loading…
Reference in New Issue