refactor(core): hide emebedding status tip if completed (#12720)

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **New Features**
  - Added real-time embedding status tracking and progress messages to the AI chat composer, with automatic updates every 10 seconds.
- **Refactor**
  - Simplified the embedding status tooltip to display a static message, removing dynamic status updates and hover-based refresh.
- **Tests**
  - Enhanced embedding status tooltip test by creating sample documents and extending visibility timeout to 50 seconds.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
yoyoyohamapi
2025-06-10 01:54:12 +00:00
parent b5ef361f87
commit 3c29f62224
5 changed files with 101 additions and 54 deletions

View File

@@ -19,11 +19,18 @@ test.describe('AIBasic/Chat', () => {
test('should display embedding status tooltip', async ({
loggedInPage: page,
utils,
}) => {
await utils.editor.createDoc(page, 'Doc 1', 'doc1');
await utils.editor.createDoc(page, 'Doc 2', 'doc2');
await utils.editor.createDoc(page, 'Doc 3', 'doc3');
await utils.editor.createDoc(page, 'Doc 4', 'doc4');
await utils.editor.createDoc(page, 'Doc 5', 'doc5');
const check = await page.getByTestId(
'ai-chat-embedding-status-tooltip-check'
);
await expect(check).toBeVisible();
await expect(check).toBeVisible({ timeout: 50 * 1000 });
await check.hover();
const tooltip = await page.getByTestId('ai-chat-embedding-status-tooltip');