feat: publication IA (magazine/brief/essay) + fixes critique
Some checks failed
CI / Lint, Unit Tests & Build (push) Failing after 1m22s
CI / Deploy production (on server) (push) Has been skipped

Publication IA:
- 4 templates (magazine, brief, essay, simple) avec CSS riche
- Rewrite IA (article/exercises/tutorial/reference/mixed)
- Modération avec timeout 12s + fallback safe
- Quotas publish_enhance par tier (basic=2, pro=15, business=100)
- Détection contenu stale (hash)
- Migration DB publishedContent/publishedTemplate/publishedSourceHash

Fixes:
- cheerio v1.2: Element -> AnyNode (domhandler), decodeEntities cast
- _isShared ajouté au type Note (champ virtuel serveur)
- callout colors PDF export: extraction fonction pure testable
- admin/published: guard note.userId null
- Cmd+S fonctionne en mode dialog (pas seulement fullPage)

i18n:
- 23 clés publish* traduites dans les 15 locales
- Extension Web Clipper: 13 locales mise à jour

Tests:
- callout-colors.test.ts (6 tests)
- note-visible-in-view.test.ts (5 tests)
- entitlements.test.ts + byok-entitlements.test.ts: mock usageLog + unstubAllEnvs
- 199/199 tests passent

Tracker: user-stories.md sync avec sprint-status.yaml
This commit is contained in:
Antigravity
2026-06-28 07:32:57 +00:00
parent 902fe95a69
commit 96e7902f01
169 changed files with 5382 additions and 1527 deletions

View File

@@ -1,12 +1,12 @@
{
"extName": {
"message": "Momento Web Clipper"
"message": "Memento Web Clipper"
},
"extDescription": {
"message": "Capture web pages and highlighted text into your Momento notebooks — connects to your own Momento server."
"message": "Capture web pages and highlighted text into your Memento notebooks — connects to your own Memento server."
},
"extActionTitle": {
"message": "Clip to Momento"
"message": "Clip to Memento"
},
"webClipper": {
"message": "Web Clipper"
@@ -18,10 +18,10 @@
"message": "Not connected"
},
"instanceSettings": {
"message": "Momento URL"
"message": "Memento URL"
},
"instanceUrlLabel": {
"message": "Your Momento instance URL"
"message": "Your Memento instance URL"
},
"presetProduction": {
"message": "Production preset · memento-note.com"
@@ -30,16 +30,16 @@
"message": "Apply and reconnect"
},
"openMomento": {
"message": "Open Momento"
"message": "Open Memento"
},
"settingsHint": {
"message": "Paste the HTTPS (or LAN) URL of your Momento server. Cookies in this browser handle sign-in."
"message": "Paste the HTTPS (or LAN) URL of your Memento server. Cookies in this browser handle sign-in."
},
"footerVersion": {
"message": "Momento Web Clipper 0.3.1"
"message": "Memento Web Clipper 0.3.1"
},
"errPermissionDenied": {
"message": "Momento can't access this tab. Check keyboard/site extension permissions — or open the Side Panel."
"message": "Memento can't access this tab. Check keyboard/site extension permissions — or open the Side Panel."
},
"notebookUnnamed": {
"message": "Untitled notebook"
@@ -81,7 +81,7 @@
"message": "Can't clip here — this page blocks extension access."
},
"errLoginRequired": {
"message": "Please sign in to Momento in this browser first."
"message": "Please sign in to Memento in this browser first."
},
"errLoadNotebooks": {
"message": "Could not load notebooks. Try reconnecting."
@@ -102,7 +102,7 @@
}
},
"restrictedPage": {
"message": "Restricted page — clip via the Momento toolbar or Side Panel."
"message": "Restricted page — clip via the Memento toolbar or Side Panel."
},
"destinationNotebook": {
"message": "Destination notebook"
@@ -120,7 +120,7 @@
"message": "Excerpt"
},
"saveToMomento": {
"message": "Save to Momento"
"message": "Save to Memento"
},
"back": {
"message": "Back"
@@ -150,7 +150,7 @@
}
},
"viewInMomento": {
"message": "View in Momento"
"message": "View in Memento"
},
"clipAnother": {
"message": "Clip another page"
@@ -159,7 +159,7 @@
"message": "Could not complete"
},
"genericError": {
"message": "Something went wrong reaching your Momento instance."
"message": "Something went wrong reaching your Memento instance."
},
"retry": {
"message": "Retry"
@@ -174,7 +174,7 @@
"message": "Could not save your note."
},
"errNetwork": {
"message": "Network issue — check your connection and Momento URL."
"message": "Network issue — check your connection and Memento URL."
},
"bannerPickText": {
"message": "Highlight text on the page, or clip the whole page."