feat: journal dashboard widgets, agent polish, and edit-mode live previews
CI / checks (push) Failing after 2m7s
CI / build (push) Successful in 4m36s

Journal dashboard widgets and quick-add; rich-text quick-add dialogs.

Dashboard draft sync for live edit previews; assistant bubble + API tools.

Journal UX: stress slider, mood grid, query cap fix.
This commit is contained in:
ginnoir
2026-07-04 22:03:45 -05:00
parent 4a924a4107
commit a09747c314
76 changed files with 4594 additions and 611 deletions
+23 -6
View File
@@ -1,13 +1,30 @@
import { expect, test } from "@playwright/test";
test("assistant chat smoke", async ({ page }) => {
await page.goto("/assistant");
await expect(page.getByRole("heading", { name: "Assistant" })).toBeVisible();
test("assistant bubble is hidden until opted in", async ({ page }) => {
await page.goto("/");
await expect(page.getByRole("button", { name: "Open assistant" })).toHaveCount(0);
});
await page.getByLabel("Message").fill("hello assistant");
test("assistant chat smoke after opt-in", async ({ page }) => {
await page.goto("/settings?s=appearance");
const assistantSwitch = page.getByRole("switch", { name: "AI assistant" });
if (!(await assistantSwitch.isChecked())) {
await assistantSwitch.click();
}
await page.goto("/");
await page.getByRole("button", { name: "Open assistant" }).click();
await expect(page.getByRole("dialog", { name: "Assistant" })).toBeVisible();
await page.getByLabel("Assistant message").fill("hello assistant");
await page.getByRole("button", { name: "Send" }).click();
await expect(page.getByText("You")).toBeVisible();
await expect(page.getByText("hello assistant")).toBeVisible();
await expect(page.getByText("Assistant", { exact: true }).nth(1)).toBeVisible();
const dialog = page.getByRole("dialog", { name: "Assistant" });
await expect(dialog.locator(".animate-spin").first()).toBeVisible({ timeout: 5000 });
await expect(dialog.locator(".animate-spin")).toHaveCount(0, { timeout: 30_000 });
await page.reload();
await page.getByRole("button", { name: "Open assistant" }).click();
await expect(page.getByText("hello assistant")).toBeVisible();
});