From 3aabb940f5b66aaed340d20bf4decfa6c40330cc Mon Sep 17 00:00:00 2001 From: Preston Holmes Date: Fri, 27 Jun 2025 08:46:27 -0700 Subject: Add the current auth method and GCP Project config to the about message (#2112) --- packages/cli/src/ui/components/AboutBox.tsx | 28 ++++++++++++++++++++++ .../src/ui/components/HistoryItemDisplay.test.tsx | 2 ++ .../cli/src/ui/components/HistoryItemDisplay.tsx | 2 ++ 3 files changed, 32 insertions(+) (limited to 'packages/cli/src/ui/components') diff --git a/packages/cli/src/ui/components/AboutBox.tsx b/packages/cli/src/ui/components/AboutBox.tsx index 0744beff..71afbdd4 100644 --- a/packages/cli/src/ui/components/AboutBox.tsx +++ b/packages/cli/src/ui/components/AboutBox.tsx @@ -14,6 +14,8 @@ interface AboutBoxProps { osVersion: string; sandboxEnv: string; modelVersion: string; + selectedAuthType: string; + gcpProject: string; } export const AboutBox: React.FC = ({ @@ -21,6 +23,8 @@ export const AboutBox: React.FC = ({ osVersion, sandboxEnv, modelVersion, + selectedAuthType, + gcpProject, }) => ( = ({ {osVersion} + + + + Auth Method + + + + + {selectedAuthType.startsWith('oauth') ? 'OAuth' : selectedAuthType} + + + + {gcpProject && ( + + + + GCP Project + + + + {gcpProject} + + + )} ); diff --git a/packages/cli/src/ui/components/HistoryItemDisplay.test.tsx b/packages/cli/src/ui/components/HistoryItemDisplay.test.tsx index 464647b0..5816f7b4 100644 --- a/packages/cli/src/ui/components/HistoryItemDisplay.test.tsx +++ b/packages/cli/src/ui/components/HistoryItemDisplay.test.tsx @@ -67,6 +67,8 @@ describe('', () => { osVersion: 'test-os', sandboxEnv: 'test-env', modelVersion: 'test-model', + selectedAuthType: 'test-auth', + gcpProject: 'test-project', }; const { lastFrame } = render( , diff --git a/packages/cli/src/ui/components/HistoryItemDisplay.tsx b/packages/cli/src/ui/components/HistoryItemDisplay.tsx index dbbb5938..76b6ba6e 100644 --- a/packages/cli/src/ui/components/HistoryItemDisplay.tsx +++ b/packages/cli/src/ui/components/HistoryItemDisplay.tsx @@ -65,6 +65,8 @@ export const HistoryItemDisplay: React.FC = ({ osVersion={item.osVersion} sandboxEnv={item.sandboxEnv} modelVersion={item.modelVersion} + selectedAuthType={item.selectedAuthType} + gcpProject={item.gcpProject} /> )} {item.type === 'stats' && ( -- cgit v1.2.3