fix(ui): update broken Terms of Service link in /auth (#23027)

This commit is contained in:
Bryan Morgan
2026-03-18 19:46:20 -04:00
parent 34f271504a
commit 06c8d3a61d
12 changed files with 16 additions and 21 deletions

View File

@@ -214,7 +214,7 @@ export async function parseArguments(
string: true,
nargs: 1,
description:
'[DEPRECATED: Use Policy Engine instead See https://geminicli.com/docs/core/policy-engine] Tools that are allowed to run without confirmation',
'[DEPRECATED: Use Policy Engine instead See https://geminicli.com/docs/policy-engine] Tools that are allowed to run without confirmation',
coerce: coerceCommaSeparated,
})
.option('extensions', {

View File

@@ -323,9 +323,7 @@ describe('settings-validation', () => {
expect(formatted).toContain('model.name');
expect(formatted).toContain('Expected: string, but received: object');
expect(formatted).toContain('Please fix the configuration.');
expect(formatted).toContain(
'https://geminicli.com/docs/reference/configuration/',
);
expect(formatted).toContain('https://geminicli.com/docs/configuration');
}
});
@@ -363,9 +361,7 @@ describe('settings-validation', () => {
if (result.error) {
const formatted = formatValidationError(result.error, 'test.json');
expect(formatted).toContain(
'https://geminicli.com/docs/reference/configuration/',
);
expect(formatted).toContain('https://geminicli.com/docs/configuration');
}
});

View File

@@ -327,7 +327,7 @@ export function formatValidationError(
}
lines.push('Please fix the configuration.');
lines.push('See: https://geminicli.com/docs/reference/configuration/');
lines.push('See: https://geminicli.com/docs/configuration');
return lines.join('\n');
}

View File

@@ -239,7 +239,7 @@ export async function main() {
) {
coreEvents.emitFeedback(
'warning',
'Warning: --allowed-tools cli argument and tools.allowed in settings.json are deprecated and will be removed in 1.0: Migrate to Policy Engine: https://geminicli.com/docs/core/policy-engine/',
'Warning: --allowed-tools cli argument and tools.allowed in settings.json are deprecated and will be removed in 1.0: Migrate to Policy Engine: https://geminicli.com/docs/policy-engine',
);
}
@@ -249,7 +249,7 @@ export async function main() {
) {
coreEvents.emitFeedback(
'warning',
'Warning: tools.exclude in settings.json is deprecated and will be removed in 1.0. Migrate to Policy Engine: https://geminicli.com/docs/core/policy-engine/',
'Warning: tools.exclude in settings.json is deprecated and will be removed in 1.0. Migrate to Policy Engine: https://geminicli.com/docs/policy-engine',
);
}

View File

@@ -246,7 +246,7 @@ export function AuthDialog({
</Box>
<Box marginTop={1}>
<Text color={theme.text.link}>
{'https://geminicli.com/docs/resources/tos-privacy/'}
{'https://geminicli.com/docs/tos-privacy'}
</Text>
</Box>
</Box>

View File

@@ -15,7 +15,7 @@ exports[`AuthDialog > Snapshots > renders correctly with auth error 1`] = `
│ │
│ Terms of Services and Privacy Notice for Gemini CLI │
│ │
│ https://geminicli.com/docs/resources/tos-privacy/
│ https://geminicli.com/docs/tos-privacy
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
"
@@ -34,7 +34,7 @@ exports[`AuthDialog > Snapshots > renders correctly with default props 1`] = `
│ │
│ Terms of Services and Privacy Notice for Gemini CLI │
│ │
│ https://geminicli.com/docs/resources/tos-privacy/
│ https://geminicli.com/docs/tos-privacy
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
"
@@ -53,7 +53,7 @@ exports[`AuthDialog > Snapshots > renders correctly with enforced auth type 1`]
│ │
│ Terms of Services and Privacy Notice for Gemini CLI │
│ │
│ https://geminicli.com/docs/resources/tos-privacy/
│ https://geminicli.com/docs/tos-privacy
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
"

View File

@@ -41,7 +41,7 @@ export const DEFAULT_SELECTION_OPACITY = 0.2;
export const DEFAULT_BORDER_OPACITY = 0.4;
export const KEYBOARD_SHORTCUTS_URL =
'https://geminicli.com/docs/cli/keyboard-shortcuts/';
'https://geminicli.com/docs/keyboard-shortcuts';
export const LRU_BUFFER_PERF_CACHE_LIMIT = 20000;
// Max lines to show for active shell output when not focused

View File

@@ -31,4 +31,4 @@ To use this extension, you'll need:
# Terms of Service and Privacy Notice
By installing this extension, you agree to the
[Terms of Service](https://geminicli.com/docs/resources/tos-privacy/).
[Terms of Service](https://geminicli.com/docs/tos-privacy).