feat: add streaming unified review assistant

This commit is contained in:
leefer
2026-07-23 00:25:43 +08:00
parent 7d8d270e98
commit 0f4bed17c9
11 changed files with 638 additions and 1 deletions
+4
View File
@@ -56,6 +56,7 @@ async function mockApplication(page, authSession = session()) {
else if (url.pathname === "/api/watchlist" || url.pathname === "/api/notes") payload = { items: [] };
else if (url.pathname === "/api/alerts") payload = { items: [], unread_count: 0 };
else if (url.pathname === "/api/trades") payload = { items: [], summary: {} };
else if (url.pathname === "/api/assistant/messages") payload = { items: [] };
else if (url.pathname === "/api/search") payload = { groups: { stocks: [], sectors: [], themes: [], indices: [] } };
else if (url.pathname === "/api/dragon-tiger") {
payload = {
@@ -93,6 +94,9 @@ test("admin shell opens every primary workspace and global search", async ({ pag
await page.locator("#alertButton").click();
await expect(page.locator("#alertsDialog")).toBeVisible();
await page.locator("#closeAlertsDialog").click();
await page.locator("#assistantButton").click();
await expect(page.locator("#assistantDialog")).toBeVisible();
await page.locator("#closeAssistantDialog").click();
const views = [
"sentimentCycleView", "limitPool", "brokenView", "downView", "yesterdayView",