feat(notes): liens internes, onglet Réseau, living blocks et consentement IA
Rend les liens entre notes visibles et persistants (sync NoteLink au save, auto-save, graphe réseau rafraîchi), ajoute living blocks, Memory Echo, recherche globale, consentement IA explicite et consolide les prototypes design en architectural-grid. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -14,7 +14,6 @@ import { getPendingShareRequests, respondToShareRequest, getNotesWithReminders,
|
||||
import { getPendingBrainstormShares, respondToBrainstormShare } from '@/app/actions/brainstorm'
|
||||
import { getUnreadNotifications, markNotificationRead, markAllNotificationsRead, type AppNotification } from '@/app/actions/notifications'
|
||||
import { toast } from 'sonner'
|
||||
import { useRefresh } from '@/lib/use-refresh'
|
||||
import { cn } from '@/lib/utils'
|
||||
import { useLanguage } from '@/lib/i18n'
|
||||
import { formatDistanceToNow } from 'date-fns'
|
||||
@@ -57,7 +56,6 @@ const C = {
|
||||
}
|
||||
|
||||
export function NotificationPanel() {
|
||||
const { refreshNotes } = useRefresh()
|
||||
const { t } = useLanguage()
|
||||
const router = useRouter()
|
||||
const [requests, setRequests] = useState<ShareRequest[]>([])
|
||||
@@ -113,7 +111,6 @@ export function NotificationPanel() {
|
||||
description: t('collaboration.nowHasAccess', { name: 'Note' }),
|
||||
duration: 3000,
|
||||
})
|
||||
refreshNotes(null)
|
||||
setOpen(false)
|
||||
} catch (error: any) {
|
||||
toast.error(error.message || t('general.error'))
|
||||
@@ -135,7 +132,6 @@ export function NotificationPanel() {
|
||||
try {
|
||||
await toggleReminderDone(noteId, done)
|
||||
setReminders(prev => prev.map(r => r.id === noteId ? { ...r, isReminderDone: done } : r))
|
||||
refreshNotes(null)
|
||||
} catch {
|
||||
toast.error(t('general.error'))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user