feat: full plan execution - CI/CD, critical fixes, UX polish, secondary/advanced features, E2E + docs

Phase 0 (CI/CD): fix root typecheck to cover api+worker+web; reconcile migration
story into idempotent db:migrate (db:sync + db:triggers); add Gitea Actions
quality/deploy/smoke workflow; rewrite README/AGENTS/DEPLOY docs; add
requireWorkspaceAccess + recordActivityForEntity conventions.

Phase 1 (critical fixes): calendar delete + drag/resize DnD; canvas card CRUD +
bulk save + debounced autosave; logout route; graph edge workspaceId derivation;
real analytics endpoints (drop Math.random); task board droppable columns +
reorder persistence; Tiptap notes editor with sanitized HTML rendering; remove
insecure passkey auth; domain/owner scoping (IDOR) on all by-ID routes + search/
export/realtime scoping; command palette routing + agent mention fetch; agent
activity SSE handler; graph fly-to with tracked positions.

Phase 2 (UX polish): login on design system; Sonner toasts app-wide; shared
Loading/Empty/Error state components; working density/sidebarPos/reduce-motion
settings; Inter typography; consolidated status-colors lib; unified detail
routes; dashboard sort/realtime/responsive fixes; mobile responsive; a11y
(radiogroups, sanitized snippets, badge labels).

Phase 3 (features): daily notes timezone fix + delete + autosave + mood/energy
create; active-domain store + topbar picker; graph domain picker + navigable
entity links; tag assign/remove UI + server-side tag filter; real CSV export +
import validation; custom fields on tasks.

Phase 4 (advanced): migrate job worker into apps/worker (webhook delivery with
HMAC, recurring spawn, ai_dispatch disabled); webhook queue helper + entity
event enqueuing + test endpoint fix; recurring scheduledJobs pipeline; agents
CRUD + permission editing + activity filters; real notifications feed; MCP
polish (validation, error codes, domain scoping, dead sql leftover).

Phase 5 (E2E + docs): rewrite Playwright suite for the Vite SPA (15 specs, new
auth helpers, chromium-only in CI); add ephemeral-Postgres e2e CI job; rewrite
docs/API.md for the real Hono API.
This commit is contained in:
2026-08-10 08:53:18 +00:00
parent 6cb4b9f1b5
commit a60b75f075
99 changed files with 6238 additions and 2954 deletions
+32 -11
View File
@@ -1,5 +1,6 @@
import { test, expect } from '@playwright/test';
import { login } from './helpers/auth';
import { testProjects } from './helpers/fixtures';
test.describe('Projects', () => {
test.beforeEach(async ({ page }) => {
@@ -8,19 +9,39 @@ test.describe('Projects', () => {
await expect(page.getByRole('heading', { name: /projects/i })).toBeVisible();
});
test('should display projects page with grid layout', async ({ page }) => {
await expect(page.getByRole('button', { name: /new project/i })).toBeVisible();
});
test('should open new project dialog', async ({ page }) => {
test('creates a project via the New Project dialog', async ({ page }) => {
await page.getByRole('button', { name: /new project/i }).click();
// Dialog should appear
await page.waitForTimeout(500);
const dialog = page.getByRole('dialog');
await expect(dialog).toBeVisible();
await expect(dialog.getByRole('heading', { name: 'New Project' })).toBeVisible();
await dialog.getByLabel('Name').fill(testProjects.name);
await dialog.getByLabel('Description').fill(testProjects.description);
await dialog.getByRole('button', { name: /create project/i }).click();
// The dialog closes and the project card appears in the grid.
await expect(dialog).toBeHidden();
await expect(page.getByText(testProjects.name, { exact: true })).toBeVisible({
timeout: 10_000,
});
});
test('should show project cards in grid', async ({ page }) => {
// The grid container should exist
const grid = page.locator('.grid, [class*="grid"]').first();
await expect(grid).toBeVisible();
test('opens the project detail page from a project card', async ({ page }) => {
// Ensure the fixture project exists.
if (!(await page.getByText(testProjects.name, { exact: true }).isVisible().catch(() => false))) {
await page.getByRole('button', { name: /new project/i }).click();
const dialog = page.getByRole('dialog');
await dialog.getByLabel('Name').fill(testProjects.name);
await dialog.getByRole('button', { name: /create project/i }).click();
await expect(page.getByText(testProjects.name, { exact: true })).toBeVisible({ timeout: 10_000 });
}
await page.getByText(testProjects.name, { exact: true }).first().click();
await page.waitForURL('**/projects/*', { timeout: 10_000 });
await expect(
page.getByRole('heading', { name: testProjects.name, level: 3 }),
).toBeVisible({ timeout: 10_000 });
});
});