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

@@ -50,8 +50,8 @@ A smart, AI-powered note-taking app. Like Google Keep, but with notebooks, seman
The interactive deploy script handles everything - environment config, container build, and startup:
```bash
git clone https://github.com/yourusername/Momento.git
cd Momento
git clone https://github.com/yourusername/Memento.git
cd Memento
# macOS / Linux
./scripts/deploy-docker.sh
@@ -73,8 +73,8 @@ docker compose up -d
### Local Development
```bash
git clone https://github.com/yourusername/Momento.git
cd Momento
git clone https://github.com/yourusername/Memento.git
cd Memento
# macOS / Linux
./scripts/deploy-local.sh
@@ -86,7 +86,7 @@ cd Momento
Or manually:
```bash
cd Momento/memento-note
cd Memento/memento-note
cp .env.example .env
# Edit .env with your DATABASE_URL, NEXTAUTH_SECRET, ADMIN_EMAIL, etc.
npm install --legacy-peer-deps
@@ -170,7 +170,7 @@ For the complete installation, deployment, and configuration guide, see **[GUIDE
## Project Structure
```
Momento/
Memento/
├── docker-compose.yml # Multi-container orchestration
├── .env.docker.example # Docker environment template
├── scripts/ # Deployment scripts
@@ -215,8 +215,8 @@ See [.env.docker.example](.env.docker.example) for the complete list. Key variab
Contributions are welcome!
- **Bug reports**: [Open an issue](https://github.com/yourusername/Momento/issues)
- **Feature ideas**: [Start a discussion](https://github.com/yourusername/Momento/discussions)
- **Bug reports**: [Open an issue](https://github.com/yourusername/Memento/issues)
- **Feature ideas**: [Start a discussion](https://github.com/yourusername/Memento/discussions)
- **Pull requests**: Fork, create a branch, and submit a PR
---