From 334fce5fc1f106356ce9b1e7174b1326741e0535 Mon Sep 17 00:00:00 2001 From: Antigravity Date: Sun, 28 Jun 2026 09:45:29 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20indicateur=20versioning=20sur=20cartes?= =?UTF-8?q?=20+=20toolbar=20=C3=A9diteur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Note card: - Icône History en overlay bottom-right (visible si historyEnabled=true) - Discrète: text-muted-foreground/50, ne pollue pas l'UI - Tooltip 'Historique des versions activé' Toolbar éditeur: - Icône History à côté du statut Saved/Dirty - Visible seulement en sm+ (desktop) - cursor-help + tooltip i18n: - notes.historyEnabledTooltip ajouté aux 15 locales (FR/EN traduits, 13 EN placeholder) --- .cursor/hooks/state/continual-learning.json | 4 ++-- memento-note/components/note-card.tsx | 12 +++++++++++- .../components/note-editor/note-editor-toolbar.tsx | 11 ++++++++++- memento-note/locales/ar.json | 3 ++- memento-note/locales/de.json | 3 ++- memento-note/locales/en.json | 3 ++- memento-note/locales/es.json | 3 ++- memento-note/locales/fa.json | 3 ++- memento-note/locales/fr.json | 3 ++- memento-note/locales/hi.json | 3 ++- memento-note/locales/it.json | 3 ++- memento-note/locales/ja.json | 3 ++- memento-note/locales/ko.json | 3 ++- memento-note/locales/nl.json | 3 ++- memento-note/locales/pl.json | 3 ++- memento-note/locales/pt.json | 3 ++- memento-note/locales/ru.json | 3 ++- memento-note/locales/zh.json | 3 ++- 18 files changed, 53 insertions(+), 19 deletions(-) diff --git a/.cursor/hooks/state/continual-learning.json b/.cursor/hooks/state/continual-learning.json index c25f107..c315349 100644 --- a/.cursor/hooks/state/continual-learning.json +++ b/.cursor/hooks/state/continual-learning.json @@ -1,8 +1,8 @@ { "version": 1, "lastRunAtMs": 1782633053032, - "turnsSinceLastRun": 7, + "turnsSinceLastRun": 8, "lastTranscriptMtimeMs": 1782633052959.9294, - "lastProcessedGenerationId": "5c41c5b1-0c40-4c8e-a6df-b22e873df8f6", + "lastProcessedGenerationId": "6d690dcb-cba6-47d2-9361-43956be8667e", "trialStartedAtMs": null } diff --git a/memento-note/components/note-card.tsx b/memento-note/components/note-card.tsx index 184ea45..c3e3fc9 100644 --- a/memento-note/components/note-card.tsx +++ b/memento-note/components/note-card.tsx @@ -24,7 +24,7 @@ import { AlertDialogHeader, AlertDialogTitle, } from '@/components/ui/alert-dialog' -import { Pin, Bell, GripVertical, X, Link2, FolderOpen, StickyNote, LucideIcon, Folder, Briefcase, FileText, Zap, BarChart3, Globe, Sparkles, Book, Heart, Crown, Music, Building2, LogOut, Trash2, AlignLeft, FileCode2, PenLine, ListChecks, ChevronRight, Plus } from 'lucide-react' +import { Pin, Bell, GripVertical, X, Link2, FolderOpen, StickyNote, LucideIcon, Folder, Briefcase, FileText, Zap, BarChart3, Globe, Sparkles, Book, Heart, Crown, Music, Building2, LogOut, Trash2, AlignLeft, FileCode2, PenLine, ListChecks, ChevronRight, Plus, History } from 'lucide-react' import { useState, useEffect, useTransition, useOptimistic, memo, useMemo } from 'react' import dynamic from 'next/dynamic' import { useSession } from 'next-auth/react' @@ -594,6 +594,16 @@ export const NoteCard = memo(function NoteCard({ /> )} + {/* Versioning indicator */} + {optimisticNote.historyEnabled && ( +
+ +
+ )} + {/* Fusion Badge */} {note.aiProvider === 'fusion' && optimisticNote.autoGenerated !== null && (
diff --git a/memento-note/components/note-editor/note-editor-toolbar.tsx b/memento-note/components/note-editor/note-editor-toolbar.tsx index 8cb0be6..551e18f 100644 --- a/memento-note/components/note-editor/note-editor-toolbar.tsx +++ b/memento-note/components/note-editor/note-editor-toolbar.tsx @@ -19,7 +19,7 @@ import { Badge } from '@/components/ui/badge' import { X, Plus, Palette, Image as ImageIcon, Bell, Eye, Link as LinkIcon, Sparkles, Maximize2, Copy, ArrowLeft, ChevronRight, PanelRight, Check, Loader2, Save, MoreHorizontal, - Trash2, LogOut, Wand2, Share2, Wind, Paperclip, GraduationCap, FileDown, FileUp, Mic, MicOff, Printer, PenTool, Loader2 as Loader2Icon, Globe, ExternalLink + Trash2, LogOut, Wand2, Share2, Wind, Paperclip, GraduationCap, FileDown, FileUp, Mic, MicOff, Printer, PenTool, Loader2 as Loader2Icon, Globe, ExternalLink, History } from 'lucide-react' import { FlashcardGenerateDialog } from '@/components/flashcards/flashcard-generate-dialog' import { NoteShareDialog } from './note-share-dialog' @@ -549,6 +549,15 @@ export function NoteEditorToolbar({ mode, onClose, onToggleAttachments, attachme : <>{t('notes.savedStatus')}} + {note.historyEnabled && ( + + + + )} + {state.isMarkdown && !readOnly && (