Add User email detail to about box (#13459)

This commit is contained in:
Preston Holmes
2025-11-19 19:46:21 -08:00
committed by GitHub
parent 2231497b1f
commit 43d6dc3668
6 changed files with 35 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ interface AboutBoxProps {
selectedAuthType: string;
gcpProject: string;
ideClient: string;
userEmail?: string;
}
export const AboutBox: React.FC<AboutBoxProps> = ({
@@ -27,6 +28,7 @@ export const AboutBox: React.FC<AboutBoxProps> = ({
selectedAuthType,
gcpProject,
ideClient,
userEmail,
}) => (
<Box
borderStyle="round"
@@ -105,6 +107,18 @@ export const AboutBox: React.FC<AboutBoxProps> = ({
</Text>
</Box>
</Box>
{userEmail && (
<Box flexDirection="row">
<Box width="35%">
<Text bold color={theme.text.link}>
User Email
</Text>
</Box>
<Box>
<Text color={theme.text.primary}>{userEmail}</Text>
</Box>
</Box>
)}
{gcpProject && (
<Box flexDirection="row">
<Box width="35%">

View File

@@ -108,6 +108,7 @@ export const HistoryItemDisplay: React.FC<HistoryItemDisplayProps> = ({
selectedAuthType={itemForDisplay.selectedAuthType}
gcpProject={itemForDisplay.gcpProject}
ideClient={itemForDisplay.ideClient}
userEmail={itemForDisplay.userEmail}
/>
)}
{itemForDisplay.type === 'help' && commands && (