mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-17 00:39:41 +02:00
feat(articles): finale polish — Help-Eintrag + intentional-console + 5-Locale i18n (#16,#10,#17)
#16 — Help-content entry for articles The articles module had no entry in `app-registry/help-content.ts` so the (?) icon in ModuleShell rendered an empty body. Added description + 9 features + 4 tips covering Reader-View, Highlights, Bookmarklet, Share-Target, and the new bulk-import flow with the "Erneut speichern" rescue path for cookie-walled hits. #10 — Console statements marked intentional The 5 console.log/warn/error calls in import-worker.ts (boot, tick errors, GC summary, stale-recovery sweep) were ESLint warnings. They're intentional operational logs — same pattern as services/mana-ai/src/cron/tick.ts. Added file-level `/* eslint-disable no-console */` with a comment explaining the pattern + that structured signal lives in Prometheus counters. #17 — Full 5-locale i18n for the bulk-import UI New `articles.import` namespace with 50 keys covering the BulkImportForm, JobsList, JobDetailView, and AddUrlForm bulk-link. All five locales translated by hand: - de.json (canonical, mirrors the original hardcoded German) - en.json (English) - fr.json (French — bookmarklet → "bookmarklet HTML du navigateur") - it.json (Italian — bookmarklet → "bookmarklet HTML del browser") - es.json (Spanish — bookmarklet → "bookmarklet HTML del navegador") Plural-aware `consent_hint_body` uses ICU plural format (`{n, plural, one {…} other {…}}`) so single-vs-multiple article counts read naturally in each language. The consent-hint sentence is split into 3 keys (body/link/after-link) so the link text appears mid-sentence rather than tacked on after. Components converted to `$_('articles.import.*')` everywhere — no remaining hardcoded strings in the bulk-import UI. i18n parity validator: 76 namespaces × 5 locales — 6477 canonical keys, all aligned. validate:i18n-hardcoded baseline unchanged for articles files (broadcasts/notes/timeline failures are user-WIP). Plan: docs/plans/articles-bulk-import.md. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
fc1cde9d22
commit
cb9d79d2c9
11 changed files with 443 additions and 67 deletions
|
|
@ -22,6 +22,12 @@
|
|||
* Plan: docs/plans/articles-bulk-import.md.
|
||||
*/
|
||||
|
||||
// Operational logs (boot, tick errors, GC summary, stale-recovery
|
||||
// sweep) go to console intentionally — same pattern as
|
||||
// services/mana-ai/src/cron/tick.ts. Captured by the apps/api stdout
|
||||
// aggregator; structured signal lives in Prometheus counters.
|
||||
/* eslint-disable no-console */
|
||||
|
||||
import { getSyncConnection } from '../../lib/sync-db';
|
||||
import {
|
||||
articlesImportJobsCompletedTotal,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue