From e297b56390e81dcad4c87154ea50c2a995e633c3 Mon Sep 17 00:00:00 2001 From: Taylor Mullen Date: Sat, 24 May 2025 12:06:44 -0700 Subject: [PATCH] feat: Add GEMINI.md tip to UI - Display a tip to create a GEMINI.md file if one doesn't exist. - Pass config to Tips component so it can inspect the initial GEMINI.md count. --- packages/cli/src/ui/App.tsx | 2 +- packages/cli/src/ui/components/Tips.tsx | 51 +++++++++++++++++-------- 2 files changed, 36 insertions(+), 17 deletions(-) diff --git a/packages/cli/src/ui/App.tsx b/packages/cli/src/ui/App.tsx index 5860e36e..727450c0 100644 --- a/packages/cli/src/ui/App.tsx +++ b/packages/cli/src/ui/App.tsx @@ -296,7 +296,7 @@ export const App = ({ items={[
- + , ...history.map((h) => ( ( - - Tips for getting started: - - 1.{' '} - - /help - {' '} - for more information. - - - 2. Ask coding questions, edit code or run commands. - - 3. Be specific for the best results. - -); +interface TipsProps { + config: Config; +} + +export const Tips: React.FC = ({ config }) => { + const geminiMdFileCount = config.getGeminiMdFileCount(); + return ( + + Tips for getting started: + + 1.{' '} + + /help + {' '} + for more information. + + + 2. Ask coding questions, edit code or run commands. + + + 3. Be specific for the best results. + + {geminiMdFileCount === 0 && ( + + 4. Create{' '} + + GEMINI.md + {' '} + files to customize your interactions with Gemini. + + )} + + ); +};