Skip to content

Commit 4ef46e4

Browse files
srithreeposri3po
andauthored
Update Paid tier specific privacy notice. (#8737)
Co-authored-by: Srinath Padmanabhan <srithreepo@google.com>
1 parent bcc4d81 commit 4ef46e4

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

packages/cli/src/ui/privacy/CloudFreePrivacyNotice.tsx

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { Box, Newline, Text } from 'ink';
88
import { RadioButtonSelect } from '../components/shared/RadioButtonSelect.js';
99
import { usePrivacySettings } from '../hooks/usePrivacySettings.js';
10-
import { CloudPaidPrivacyNotice } from './CloudPaidPrivacyNotice.js';
10+
1111
import type { Config } from '@google/gemini-cli-core';
1212
import { theme } from '../semantic-colors.js';
1313
import { useKeypress } from '../hooks/useKeypress.js';
@@ -26,7 +26,10 @@ export const CloudFreePrivacyNotice = ({
2626

2727
useKeypress(
2828
(key) => {
29-
if (privacyState.error && key.name === 'escape') {
29+
if (
30+
(privacyState.error || privacyState.isFreeTier === false) &&
31+
key.name === 'escape'
32+
) {
3033
onExit();
3134
}
3235
},
@@ -49,7 +52,19 @@ export const CloudFreePrivacyNotice = ({
4952
}
5053

5154
if (privacyState.isFreeTier === false) {
52-
return <CloudPaidPrivacyNotice onExit={onExit} />;
55+
return (
56+
<Box flexDirection="column" marginY={1}>
57+
<Text bold color={theme.text.accent}>
58+
Gemini Code Assist Privacy Notice
59+
</Text>
60+
<Newline />
61+
<Text>
62+
https://developers.google.com/gemini-code-assist/resources/privacy-notices
63+
</Text>
64+
<Newline />
65+
<Text color={theme.text.secondary}>Press Esc to exit.</Text>
66+
</Box>
67+
);
5368
}
5469

5570
const items = [

0 commit comments

Comments
 (0)