mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 19:41:09 +02:00
#6 — Worker test coverage on the deterministic helpers Three new bun-test files in apps/api/src/modules/articles/: - field-meta.test.ts (6 tests): pins down the legacy-vs-F3 fix so it can never regress silently — including the regression check from the live-test-found bug (string vs object compare across both shapes evaluates correctly). - consent-wall.test.ts (8 tests): the heuristic we extracted in #4. German + English vocab, wordcount threshold + the boundary case, case-insensitivity. - import-worker.test.ts (5 tests): countByState rollup. Pins down the consent-wall-counts-as-saved semantics so the progress bar doesn't off-by-one and allTerminal stays correct. Total 19 bun tests, all green. countByState + StateCounts exported (test-only access). #14 — Consent-wall recovery UI in JobDetailView Bulk-import items that hit a cookie-wand land as state='consent-wall' with the teaser saved. Before this commit there was no UX path to "rescue" them other than navigating to the article and re-saving manually. Now: - Job-level hint banner appears when warningCount > 0, explaining the cookie-wand semantics + linking to /articles/settings (where the v2 bookmarklet lives). - Per-item action group on consent-wall rows: "Teaser ansehen" (open existing article) + "Erneut speichern" (deep-link to /articles/add?source=bookmarklet&url=… so the bookmarklet's postMessage handshake has the URL pre-populated). Plan: docs/plans/articles-bulk-import.md. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| drizzle | ||
| scripts | ||
| src | ||
| Dockerfile | ||
| drizzle.config.ts | ||
| drizzle.presi.config.ts | ||
| package.json | ||
| tsconfig.json | ||