## CHANGES

- Renamed empty-state action from “Select Folder” to “Change Folder” for clarity 🧭
- Refreshed empty-state helper text to match the new folder-change flow 📝
- Cleaned up `EditGroupChatModal` icon imports by dropping the unused `X` 🎛️
This commit is contained in:
Pedram Amini
2026-02-04 00:15:13 -06:00
parent 17fed4f232
commit f38f6b66e6
3 changed files with 6 additions and 6 deletions

View File

@@ -876,7 +876,7 @@ describe('AutoRun', () => {
// Use getAllByText since the refresh button exists in both document selector and empty state
expect(screen.getAllByText('Refresh').length).toBeGreaterThanOrEqual(1);
expect(screen.getByText('Select Folder')).toBeInTheDocument();
expect(screen.getByText('Change Folder')).toBeInTheDocument();
});
it('calls onRefresh when clicking Refresh in empty state', async () => {
@@ -897,8 +897,8 @@ describe('AutoRun', () => {
const props = createDefaultProps({ documentList: [], selectedFile: null });
renderWithProvider(<AutoRun {...props} />);
// Get the Select Folder button in the empty state
fireEvent.click(screen.getByText('Select Folder'));
// Get the Change Folder button in the empty state
fireEvent.click(screen.getByText('Change Folder'));
await waitFor(() => {
expect(props.onOpenSetup).toHaveBeenCalled();

View File

@@ -1983,7 +1983,7 @@ const AutoRunInner = forwardRef<AutoRunHandle, AutoRunProps>(function AutoRunInn
The selected folder doesn't contain any markdown (.md) files.
</p>
<p className="mb-6 max-w-xs text-xs" style={{ color: theme.colors.textDim }}>
Create a markdown file in the folder to get started, or select a different folder.
Create a markdown file in the folder to get started, or change to a different folder.
</p>
<div className="flex gap-3">
<button
@@ -2007,7 +2007,7 @@ const AutoRunInner = forwardRef<AutoRunHandle, AutoRunProps>(function AutoRunInn
}}
>
<FolderOpen className="w-4 h-4" />
Select Folder
Change Folder
</button>
</div>
</div>

View File

@@ -10,7 +10,7 @@
*/
import { useState, useEffect, useRef, useCallback } from 'react';
import { X, Settings, ChevronDown, Check } from 'lucide-react';
import { Settings, ChevronDown, Check } from 'lucide-react';
import type { Theme, AgentConfig, ModeratorConfig, GroupChat } from '../types';
import type { SshRemoteConfig, AgentSshRemoteConfig } from '../../shared/types';
import { MODAL_PRIORITIES } from '../constants/modalPriorities';