refactor(core): open embedding settings when click check-status button (#12772)

> CLOSE BS-3582

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

- **New Features**
- Added a "Check status" button in the AI chat interface that opens the
embedding settings panel for improved user access.

- **Refactor**
- Simplified the embedding status tooltip to display static information
and a direct link to settings, removing dynamic progress updates.
- Integrated workspace dialog service across AI chat components for
consistent dialog management.

- **Tests**
- Updated end-to-end tests to verify that clicking the "Check status"
button opens the embedding settings panel.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
德布劳外 · 贾贵
2025-06-30 15:00:17 +08:00
committed by GitHub
parent 29ae6afe71
commit c9aad0d55e
7 changed files with 51 additions and 23 deletions

View File

@@ -17,7 +17,7 @@ test.describe('AIBasic/Chat', () => {
await expect(page.getByTestId('ai-onboarding')).toBeVisible();
});
test('should display embedding status tooltip', async ({
test('should open embedding settings when clicking check status button', async ({
loggedInPage: page,
utils,
}) => {
@@ -32,12 +32,8 @@ test.describe('AIBasic/Chat', () => {
);
await expect(check).toBeVisible({ timeout: 50 * 1000 });
await check.hover();
const tooltip = await page.getByTestId('ai-chat-embedding-status-tooltip');
await expect(tooltip).toBeVisible();
await expect(tooltip).toHaveText(
/Results will improve after embedding|Embedding finished/
);
await check.click();
await expect(page.getByTestId('workspace-setting:embedding')).toBeVisible();
});
test(`should send message and receive AI response: