feat(editor): remove chat-cards and Open AI Chat menu item (#9626)

Support issue [BS-2353](https://linear.app/affine-design/issue/BS-2353).

### What changed?
- Remove `Open AI Chat` menu item.
- Remove `chat-cards` web component.
- Add `extractAll` function for page and edgeless doc full content extract.
This commit is contained in:
akumatus
2025-01-10 03:53:11 +00:00
parent dcd691cd31
commit 2f49c064eb
17 changed files with 157 additions and 698 deletions

View File

@@ -599,20 +599,6 @@ test.describe('chat with block', () => {
.waitForSelector('chat-panel-input .chat-panel-images')
.then(el => el.waitForElementState('visible'));
});
test('open ai chat', async ({ page }) => {
await page
.waitForSelector('.ai-item-open-ai-chat')
.then(i => i.click());
const cards = await page.waitForSelector('chat-panel chat-cards');
await cards.waitForElementState('visible');
const cardTitles = await Promise.all(
await cards
.$$('.card-wrapper .card-title')
.then(els => els.map(async el => await el.innerText()))
);
expect(cardTitles).toContain('Start with this Image');
});
});
// TODO(@darkskygit): block by BS-1709, enable this after bug fix