summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cli/src/ui/components')
-rw-r--r--packages/cli/src/ui/components/AboutBox.tsx14
-rw-r--r--packages/cli/src/ui/components/HistoryItemDisplay.test.tsx1
-rw-r--r--packages/cli/src/ui/components/HistoryItemDisplay.tsx1
3 files changed, 16 insertions, 0 deletions
diff --git a/packages/cli/src/ui/components/AboutBox.tsx b/packages/cli/src/ui/components/AboutBox.tsx
index 71afbdd4..a0954576 100644
--- a/packages/cli/src/ui/components/AboutBox.tsx
+++ b/packages/cli/src/ui/components/AboutBox.tsx
@@ -16,6 +16,7 @@ interface AboutBoxProps {
modelVersion: string;
selectedAuthType: string;
gcpProject: string;
+ ideClient: string;
}
export const AboutBox: React.FC<AboutBoxProps> = ({
@@ -25,6 +26,7 @@ export const AboutBox: React.FC<AboutBoxProps> = ({
modelVersion,
selectedAuthType,
gcpProject,
+ ideClient,
}) => (
<Box
borderStyle="round"
@@ -115,5 +117,17 @@ export const AboutBox: React.FC<AboutBoxProps> = ({
</Box>
</Box>
)}
+ {ideClient && (
+ <Box flexDirection="row">
+ <Box width="35%">
+ <Text bold color={Colors.LightBlue}>
+ IDE Client
+ </Text>
+ </Box>
+ <Box>
+ <Text>{ideClient}</Text>
+ </Box>
+ </Box>
+ )}
</Box>
);
diff --git a/packages/cli/src/ui/components/HistoryItemDisplay.test.tsx b/packages/cli/src/ui/components/HistoryItemDisplay.test.tsx
index f806abd6..234ca968 100644
--- a/packages/cli/src/ui/components/HistoryItemDisplay.test.tsx
+++ b/packages/cli/src/ui/components/HistoryItemDisplay.test.tsx
@@ -71,6 +71,7 @@ describe('<HistoryItemDisplay />', () => {
modelVersion: 'test-model',
selectedAuthType: 'test-auth',
gcpProject: 'test-project',
+ ideClient: 'test-ide',
};
const { lastFrame } = render(
<HistoryItemDisplay {...baseItem} item={item} />,
diff --git a/packages/cli/src/ui/components/HistoryItemDisplay.tsx b/packages/cli/src/ui/components/HistoryItemDisplay.tsx
index 74615b26..89dd0149 100644
--- a/packages/cli/src/ui/components/HistoryItemDisplay.tsx
+++ b/packages/cli/src/ui/components/HistoryItemDisplay.tsx
@@ -73,6 +73,7 @@ export const HistoryItemDisplay: React.FC<HistoryItemDisplayProps> = ({
modelVersion={item.modelVersion}
selectedAuthType={item.selectedAuthType}
gcpProject={item.gcpProject}
+ ideClient={item.ideClient}
/>
)}
{item.type === 'help' && commands && <Help commands={commands} />}