Skip to content

feat: Cloudflare AI prod, CI Node 22, email test fix#340

Open
mobby57 wants to merge 42 commits into
mainfrom
feat/module-comptabilite
Open

feat: Cloudflare AI prod, CI Node 22, email test fix#340
mobby57 wants to merge 42 commits into
mainfrom
feat/module-comptabilite

Conversation

@mobby57

@mobby57 mobby57 commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Cloudflare Workers AI real implementation + CI fixes

SciSolia Developer added 30 commits May 28, 2026 02:03
…oraires, conflicts, signatures, upload client
- Supprime robots.txt/sitemap.xml statiques obsoletes (anciens domaines)
- Corrige BASE_URL vers memolib.space
- Convertit homepage + landing en Server Components avec metadata
- Ajoute 3 pages SEO (logiciel-avocat, oqtf-delais-recours, gestion-cabinet-avocat)
- Middleware: redirect pages protegees vers login si pas de session
- Cache identifiants demo en production
- Ajoute structured data (Organization, SoftwareApplication)
- Installe @tailwindcss/typography
- Ajoute PublicNav + maillage interne
- Ajoute verification Google Search Console
- Ajoute page admin/inbox
- Ajoute API routes emails (list + integrate)
- Ajoute state machine de processing
- Met a jour schema Prisma
- Met a jour email-monitor-service
- Met a jour tests legifrance + vitest config
- Prisma schema: 7 models (CompteComptable, Journal, Ecriture, LigneEcriture, MouvementBancaire, DeclarationTVA, MouvementCARPA) + 6 enums

- Services: plan comptable PCG avocat, ecritures auto, rapprochement bancaire IA, TVA, CARPA, reporting (grand livre, balance, FEC)

- API routes: 10 endpoints (/api/comptabilite/*)

- Auto-ecritures: facture envoyee/payee + webhook Stripe invoice.paid

- Frontend: dashboard comptabilite avec KPIs, ecritures, rapprochement, CARPA

- Script init: scripts/init-comptabilite.ts

- Refactored /api/exports/fec to use real ecritures with factures fallback
- Add Gmail OAuth connect flow (GET /api/email/connect/gmail)
- Add EmailAccount Prisma model + migration
- Add Judilibre client (Cour de cassation, 2M+ decisions)
- Rewrite /api/jurisprudence/search with fallback chain (PG > Judilibre > static)
- Add demo seed endpoint (POST /api/demo/seed) with OQTF sample data
- Auto-seed demo data on first login in dashboard
- Mount ConsentBanner in layout (activate GA tracking)
- Fix trial duration 30d > 14d in registration-service
- Fix unhandled JSON errors in withRateLimit middleware
- Add ConnectEmailButton component (Gmail/Outlook/IMAP)
- Anonymisation IA automatique (prompt-sanitizer) dans HybridAIClient
- Chiffrement at-rest emails (AES-256-GCM) + migration batch
- Audit trail hash chain SHA-256 (intégrité vérifiable)
- Consentement Art. 9 RGPD granulaire (données sensibles immigration)
- Rétention légale: garde-fou suppression dossiers (5 ans obligation)
- PII scrubbing Sentry (server + client + replay)
- Vérification hébergement EU au démarrage (DB, Redis, Sentry, Compute)
- AIDisclaimer non-dismissible par défaut (RC Pro)
- CGU: CARPA, rétention corrigée, sous-traitants listés
- Politique de confidentialité complète (Art. 13/14 RGPD)
- parseJsonBody helper + protection 10 endpoints critiques
- Service registration consolidé (déduplication code)
- render.yaml (Blueprint EU Frankfurt)
- DPA register documenté (docs/legal/)
- Migrations Prisma: hash chain + email encryption
SciSolia Developer added 5 commits July 7, 2026 22:10
… client

- Replace mock Cloudflare Workers AI with real REST API calls
- Refactor summarize-email to use hybridAI (Ollama > Cloudflare > regex)
- Refactor draft-reply to use hybridAI (Ollama > Cloudflare > template)
- AI now works on Render (no Ollama needed, Cloudflare as cloud provider)
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

🤖 Gemini Code Review

⚠️ Gemini review could not be completed.


Automated review by Gemini CLI

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 7, 2026

Copy link
Copy Markdown

Deploying memolib with  Cloudflare Pages  Cloudflare Pages

Latest commit: 350be62
Status:🚫  Build failed.

View logs

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

🤖 Gemini Code Review

⚠️ Gemini review could not be completed.


Automated review by Gemini CLI

@mobby57
mobby57 force-pushed the feat/module-comptabilite branch from 022d87e to 26a24ed Compare July 7, 2026 21:35
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

🤖 Gemini Code Review

⚠️ Gemini review could not be completed.


Automated review by Gemini CLI

@mobby57
mobby57 force-pushed the feat/module-comptabilite branch from 26a24ed to b4b5b18 Compare July 7, 2026 21:39
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

🤖 Gemini Code Review

⚠️ Gemini review could not be completed.


Automated review by Gemini CLI

SciSolia Developer added 6 commits July 7, 2026 23:44
…le-comptabilite

# Conflicts:
#	prisma/schema.prisma
#	public/robots.txt
#	public/sitemap.xml
#	src/app/[locale]/HomePageContent.tsx
#	src/app/[locale]/gestion-cabinet-avocat/page.tsx
#	src/app/[locale]/logiciel-avocat/page.tsx
#	src/app/[locale]/oqtf-delais-recours/page.tsx
#	src/app/[locale]/sitemap.ts
#	src/app/sitemap.ts
…module-comptabilite

# Conflicts:
#	src/app/[locale]/legal/cgu/page.tsx
#	src/app/api/cron/relance-pieces/route.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant