feat: update Makelore modules and conversations
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

This commit is contained in:
inman
2026-07-31 10:08:41 +08:00
parent b8ca3f8eea
commit 80e8386fa6
175 changed files with 8036 additions and 10581 deletions

View File

@@ -52,12 +52,11 @@ describe('ChatCommandDialogs', () => {
expect(screen.getByRole('button', { name: '重命名' })).toBeDisabled();
});
it('returns the exact selected message for timeline navigation and fork modes', () => {
it('returns the exact selected message for timeline navigation', () => {
const onSelect = vi.fn();
const { rerender } = render(
<ChatCommandTimelineDialog
open
mode="timeline"
entries={entries}
onSelect={onSelect}
onCancel={vi.fn()}
@@ -67,19 +66,6 @@ describe('ChatCommandDialogs', () => {
fireEvent.click(screen.getByRole('button', { name: /First answer/ }));
expect(onSelect).toHaveBeenLastCalledWith('assistant-1');
rerender(
<ChatCommandTimelineDialog
open
mode="fork"
entries={entries}
onSelect={onSelect}
onCancel={vi.fn()}
/>,
);
expect(
screen.getByRole('heading', { name: '选择分叉位置' }),
).toBeInTheDocument();
fireEvent.click(screen.getByRole('button', { name: /First prompt/ }));
expect(onSelect).toHaveBeenLastCalledWith('user-1');
});
@@ -91,7 +77,6 @@ describe('ChatCommandDialogs', () => {
<textarea aria-label="Composer" />
<ChatCommandTimelineDialog
open={false}
mode="timeline"
entries={entries}
onSelect={vi.fn()}
onCancel={onCancel}
@@ -106,7 +91,6 @@ describe('ChatCommandDialogs', () => {
<textarea aria-label="Composer" />
<ChatCommandTimelineDialog
open
mode="timeline"
entries={entries}
onSelect={vi.fn()}
onCancel={onCancel}
@@ -130,7 +114,6 @@ describe('ChatCommandDialogs', () => {
<textarea aria-label="Composer" />
<ChatCommandTimelineDialog
open={false}
mode="timeline"
entries={entries}
onSelect={vi.fn()}
onCancel={onCancel}