Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
284 changes: 0 additions & 284 deletions apps/desktop/e2e/composer-inline-completion.spec.ts

This file was deleted.

39 changes: 0 additions & 39 deletions apps/desktop/stories/app-shell.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
import type { Meta, StoryObj } from '@storybook/react-vite';
import { userEvent } from 'storybook/test';
import { useState, type CSSProperties, type ReactNode } from 'react';
import type { ComponentProps } from 'react';
import type { ProjectRecord } from '@maka/core/project';
import type { SessionSummary, StoredMessage } from '@maka/core/session';
import {
ChatSurfaceLayout,
ChatView,
clearGlobalInputHistory,
Composer,
deriveTitlebarProjectName,
saveGlobalInputHistoryEntry,
SessionListPanel,
TitlebarSessionIdentity,
} from '@maka/ui';
Expand Down Expand Up @@ -1032,39 +1029,3 @@ export const ModeOnWithPendingAttachments: Story = {
/>
),
};

const RECALLED_PROMPT = '帮我把 composer 的样式再收紧一点';

// Real path: the user has sent this prompt before and starts retyping it, so
// the editor offers the rest inside the field.
//
// A review driver, not coverage: the render smoke opens stories in embedded
// mode, which disables autoplay (FIDELITY.md), so nothing below is executed by
// CI. The active-offer lifecycle — Tab, caret, focus, composition, trigger-menu
// priority, streaming Escape — is pinned in
// `apps/desktop/e2e/composer-inline-completion.spec.ts`, which does run.
export const ComposerInlineSuggestion: Story = {
// Seeded through the module's own write path, before the story mounts:
// `useComposerHistory` reads storage once at mount and thereafter follows
// that module's writes, so poking the key from `play` would seed a list
// nobody holds.
loaders: [
async () => {
clearGlobalInputHistory();
saveGlobalInputHistoryEntry(RECALLED_PROMPT);
return {};
},
],
render: () => <ComposedShell chat={{ messages: [] }} />,
play: async ({ canvasElement }) => {
// Scoped to this canvas, not the document: Storybook can have other
// stories mounted, and a document-wide lookup would drive whichever
// composer happened to be first.
const editable = canvasElement.querySelector<HTMLElement>(
'.maka-composer-editor [contenteditable="true"]',
);
if (!editable) return;
await userEvent.click(editable);
await userEvent.keyboard(RECALLED_PROMPT.slice(0, 3));
},
};
41 changes: 0 additions & 41 deletions packages/ui/src/__tests__/astryx-inline-completion.test.tsx

This file was deleted.

Loading