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:
@@ -255,7 +255,7 @@ export async function getPendingShareCount() {
|
||||
}
|
||||
}
|
||||
|
||||
export async function leaveSharedNote(noteId: string) {
|
||||
export async function leaveSharedNote(noteId: string, options?: { skipRevalidation?: boolean }) {
|
||||
const session = await auth()
|
||||
if (!session?.user?.id) throw new Error('Unauthorized')
|
||||
|
||||
@@ -268,7 +268,9 @@ export async function leaveSharedNote(noteId: string) {
|
||||
|
||||
await prisma.noteShare.update({ where: { id: share.id }, data: { status: 'removed' } })
|
||||
|
||||
revalidatePath('/home')
|
||||
if (!options?.skipRevalidation) {
|
||||
revalidatePath('/home')
|
||||
}
|
||||
return { success: true }
|
||||
} catch (error: unknown) {
|
||||
console.error('Error leaving shared note:', error)
|
||||
|
||||
Reference in New Issue
Block a user