feat: smart note history with manual/auto modes, delete entries, i18n fixes
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 1m16s
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 1m16s
- Add noteHistoryMode setting (manual default / auto) with DB migration - Manual mode: commit button in editor toolbar creates snapshots on demand - Auto mode: smart snapshots with 20-char diff threshold + 5min cooldown, structural changes (color, pin, archive, labels) bypass cooldown - Add delete individual history entries from history modal - Fix sidebar: Notes nav no longer active on notebook pages - Fix sidebar icon: replace filled Lightbulb with outlined FileText - Fix title suggestions: change from amber to sky blue color scheme - Fix hydration mismatch: add suppressHydrationWarning on locale dates - Complete i18n: add history, sort, and AI chat translations for all 16 languages - Translate French AI assistant section (40+ keys) from English to French - Update README with new features and stack info Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -12,6 +12,10 @@ Keep Notes est une application avancée de prise de notes hybride, combinant la
|
||||
- **Auto-Tagging** : Création automatique d'étiquettes pertinentes.
|
||||
- **Organisation par lots** (Batch Organization) : Tri automatique des notes en vrac.
|
||||
- **Amélioration textuelle** : Reformulation, synthèse, ou traduction propulsés par l'IA.
|
||||
- **Historique des notes** : Snapshots de versions avec deux modes :
|
||||
- **Manuel** (par défaut) : Création de snapshots via un bouton "Commit" dans l'éditeur.
|
||||
- **Automatique (intelligent)** : Snapshots automatiques avec détection de changements significatifs (diff 20+ chars) et cooldown de 5 min. Les changements structurels (couleur, épingle, labels) contournent le cooldown.
|
||||
- **Assistant IA** : Chat contextuel avec support de recherche web, insights et historique des conversations.
|
||||
- **Haute Performance (RSC & Turbopack)** : Rendu Server Components natif pour une hydratation sans délai et développement accéléré via Turbopack.
|
||||
|
||||
## 📄 Licence et Droits d'Auteur
|
||||
@@ -41,10 +45,10 @@ Une version complète de **Keep Notes** destinée au grand public est prévue et
|
||||
|
||||
## 🛠️ Stack Technique
|
||||
|
||||
- **Framework** : Next.js 15 (App Router, Server Components)
|
||||
- **Framework** : Next.js 16 (App Router, Server Components, Turbopack)
|
||||
- **Frontend** : React 19, Tailwind CSS, Radix UI primitives
|
||||
- **Drag & Drop** : `@dnd-kit/core` & `sortable`
|
||||
- **Base de Données** : Prisma ORM, SQLite en env de développement (bientôt PostgreSQL)
|
||||
- **Base de Données** : Prisma ORM, PostgreSQL (prod) / SQLite (dev)
|
||||
- **Outillage** : Turbopack, TypeScript
|
||||
|
||||
## 💻 Instructions de Développement
|
||||
@@ -62,6 +66,19 @@ npx prisma generate
|
||||
npx prisma db push
|
||||
```
|
||||
|
||||
### Migrations sûres (anti-perte de données)
|
||||
```bash
|
||||
npm run db:migrate
|
||||
```
|
||||
- Cette commande passe par `scripts/safe-migrate.js`.
|
||||
- Un backup est créé avant migration (`backups/migrations/`), puis `prisma migrate deploy` est exécuté.
|
||||
- La migration est interrompue si le backup échoue.
|
||||
|
||||
Commande dev avancée (à utiliser explicitement seulement) :
|
||||
```bash
|
||||
npm run db:migrate:dev
|
||||
```
|
||||
|
||||
### Lancement du serveur (avec Turbopack)
|
||||
```bash
|
||||
npm run dev
|
||||
|
||||
Reference in New Issue
Block a user