chore(release): v1.28.22 — full sync survives dense histories; quieter document chrome

Google Health: the fullSync rollup-defer tracker collected its touched keys via
a single spread push — one argument PER READING, so a multi-year heart-rate
history (six figures of samples) overflowed the call stack and aborted the
metrics collection mid-cycle, exactly on the accounts with the most data. A
plain loop replaces the spread. Reported by a self-hoster; the v1.28.21 sync
diagnostics confirmed every other read on that account healthy in one log line.

Documents: the vault card's read-by-AI tag no longer takes its own line — a
small glyph rides inline on the date-and-size row. The detail view drops the
status bar under the preview entirely; with automatic reading on and nothing to
review the whole block collapses, so the content starts straight with the
document's fields. The provenance contract moves with it: the e2e specs now pin
the card marker instead of the sheet pill, and the unmounted status-pill
component is removed rather than left dead.
This commit is contained in:
Marc-André Bombeck committed 2026-07-10 23:02:52 +02:00
1 parent 94ad48527e
commit 869f5e561b
18 files changed
+95 -209

No files matched your search

+7 -9
View File
@@ -345,10 +345,6 @@ test.describe("document vault — AI assist + content search", () => {
await expect(read).toBeVisible();
await expect(read).toHaveText(/Read with AI/);
// The status pill starts at the calm "not searchable yet".
const status = sheet.locator('[data-slot="content-search-status"]');
await expect(status).toHaveAttribute("data-state", "none");
await read.click();
await expect(page.getByText("The AI read your document.")).toBeVisible();
expect(indexCalls).toBe(1);
@@ -366,11 +362,13 @@ test.describe("document vault — AI assist + content search", () => {
const sheet = page.getByRole("dialog");
await expect(sheet).toBeVisible();
// The detail status pill reflects the AI-read source — asserted on every
// project (this is the provenance contract; it holds on desktop + mobile).
const status = sheet.locator('[data-slot="content-search-status"]');
await expect(status).toHaveAttribute("data-state", "ai-read");
await expect(status).toHaveText(/Read by AI/);
// v1.28.22 — the provenance marker moved out of the sheet onto the vault
// card's meta row (an inline glyph beside date · size). The sheet carries
// no status chrome; the CARD is the provenance contract now.
const marker = page.locator(
`[data-document-id="${CONTENT_DOC_ID}"] [data-slot="document-card-ai-read"]`,
);
await expect(marker.first()).toBeAttached();
});
// ── (f) Text-mode refuses a non-image before any OCR/upload ──────────────
+8 -6
View File
@@ -252,19 +252,21 @@ test.describe("automatic AI reading — vault per-document contract", () => {
page,
}) => {
// Auto-read reads every upload with no per-document tap, so the manual
// Read / Suggest actions are redundant and collapse away. The section
// header and the searchable status pill stay.
// Read / Suggest actions are redundant and the WHOLE block collapses
// (v1.28.22 — no status chrome; provenance lives on the vault card).
await mockDocumentCapability(page, { egress: "external", autoRead: true });
await page.goto(`/documents?doc=${AI_PROBE_DOC_ID}`);
const sheet = page.getByRole("dialog");
await expect(sheet).toBeVisible();
const section = sheet.locator('[data-slot="document-ai-section"]');
await expect(section).toBeVisible();
// v1.28.22 — with auto-read ON and nothing pending the WHOLE block
// collapses (no status chrome; provenance lives on the vault card), so the
// sheet content starts straight with the document fields.
await expect(sheet.locator("form")).toBeVisible();
await expect(
section.locator('[data-slot="content-search-status"]'),
).toBeVisible();
sheet.locator('[data-slot="document-ai-section"]'),
).toHaveCount(0);
await expect(sheet.locator('[data-slot="document-read-ai"]')).toHaveCount(
0,
);