Compare commits

...

3 Commits

Author SHA1 Message Date
Mark McLaughlin 56674b094b Merge branch 'main' into fix/chat-history-dialog 2026-02-24 09:56:07 -08:00
Mark McLaughlin ca57f82769 test(ui): update tests and snapshots for SessionRetentionWarningDialog 2026-02-24 09:42:18 -08:00
Mark McLaughlin 2aabc9fd5f fix(ui): correct capitalization and wording in SessionRetentionWarningDialog 2026-02-24 09:34:06 -08:00
3 changed files with 13 additions and 12 deletions
@@ -38,7 +38,7 @@ describe('SessionRetentionWarningDialog', () => {
expect(lastFrame()).toContain(
'introducing a limit on how long chat sessions are stored',
);
expect(lastFrame()).toContain('Keep for 30 days (Recommended)');
expect(lastFrame()).toContain('Keep for 30 days (recommended)');
expect(lastFrame()).toContain('42 sessions will be deleted');
expect(lastFrame()).toContain('Keep for 120 days');
expect(lastFrame()).toContain('No sessions will be deleted at this time');
@@ -24,7 +24,7 @@ export const SessionRetentionWarningDialog = ({
}: SessionRetentionWarningDialogProps) => {
const options: Array<RadioSelectItem<() => void>> = [
{
label: 'Keep for 30 days (Recommended)',
label: 'Keep for 30 days (recommended)',
value: onKeep30Days,
key: '30days',
sublabel: `${sessionsToDeleteCount} session${
@@ -47,14 +47,14 @@ export const SessionRetentionWarningDialog = ({
width="100%"
padding={1}
>
<Box marginBottom={1} justifyContent="center" width="100%">
<Box marginBottom={1} width="100%">
<Text bold>Keep chat history</Text>
</Box>
<Box flexDirection="column" gap={1} marginBottom={1}>
<Text>
To keep your workspace clean, we are introducing a limit on how long
chat sessions are stored. Please choose a retention period for your
To keep your workspace clean, we&lsquo;re introducing a limit on how
long chat sessions are stored. Choose a retention period for your
existing chats:
</Text>
</Box>
@@ -69,8 +69,9 @@ export const SessionRetentionWarningDialog = ({
<Box marginTop={1}>
<Text color={theme.text.secondary}>
Set a custom limit <Text color={theme.text.primary}>/settings</Text>{' '}
and change &quot;Keep chat history&quot;.
Set a custom limit in{' '}
<Text color={theme.text.primary}>/settings</Text> and change
&quot;Keep chat history&quot;.
</Text>
</Box>
</Box>
@@ -3,18 +3,18 @@
exports[`SessionRetentionWarningDialog > should match snapshot 1`] = `
"╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
Keep chat history
Keep chat history
│ │
│ To keep your workspace clean, we are introducing a limit on how long chat sessions are stored. │
Please choose a retention period for your existing chats: │
│ To keep your workspace clean, were introducing a limit on how long chat sessions are stored.
Choose a retention period for your existing chats:
│ │
│ │
│ 1. Keep for 30 days (Recommended) │
│ 1. Keep for 30 days (recommended) │
│ 123 sessions will be deleted │
│ ● 2. Keep for 120 days │
│ No sessions will be deleted at this time │
│ │
│ Set a custom limit /settings and change "Keep chat history".
│ Set a custom limit in /settings and change "Keep chat history". │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
"