developing #10

Merged
GHMiranda merged 64 commits from developing into master 2026-01-25 00:37:11 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 2d0c3b6df6 - Show all commits

View File

@ -46,8 +46,8 @@ import type { FlowchartData, FlowchartNode, FlowchartEdge, Character, Variable,
// LocalStorage key prefix for draft saves // LocalStorage key prefix for draft saves
const DRAFT_KEY_PREFIX = 'vnwrite-draft-' const DRAFT_KEY_PREFIX = 'vnwrite-draft-'
// Debounce delay in ms // Debounce delay for LocalStorage draft saves
const AUTOSAVE_DEBOUNCE_MS = 1000 const AUTOSAVE_DEBOUNCE_MS = 5000
type ContextMenuState = { type ContextMenuState = {
x: number x: number

View File

@ -2,7 +2,7 @@ import * as Y from 'yjs'
import type { RealtimeChannel } from '@supabase/supabase-js' import type { RealtimeChannel } from '@supabase/supabase-js'
import type { FlowchartNode, FlowchartEdge } from '@/types/flowchart' import type { FlowchartNode, FlowchartEdge } from '@/types/flowchart'
const PERSIST_DEBOUNCE_MS = 2000 const PERSIST_DEBOUNCE_MS = 30_000 // 30s - DB persist is for crash recovery only; CRDT handles real-time sync
const BROADCAST_EVENT = 'yjs-update' const BROADCAST_EVENT = 'yjs-update'
export type CRDTCallbacks = { export type CRDTCallbacks = {