mirror of
https://github.com/jlengrand/Maestro.git
synced 2026-03-10 08:31:19 +00:00
## 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:
@@ -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();
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user