This commit is contained in:
2025-11-14 14:47:26 +00:00
parent 69ecf2c7c1
commit 3b4876793e
104 changed files with 231517 additions and 1029 deletions
+4 -4
View File
@@ -207,7 +207,7 @@ export const useNavigationStore = create<NavigationStore>((set, get) => ({
logger.debug('context-switch', '✨ Default node fetched', {
nodeId: defaultNode.id,
tldraw_snapshot: defaultNode.tldraw_snapshot,
node_storage_path: defaultNode.node_storage_path,
type: defaultNode.type
});
@@ -353,7 +353,7 @@ export const useNavigationStore = create<NavigationStore>((set, get) => ({
const node: NavigationNode = {
id: nodeId,
tldraw_snapshot: nodeData.node_data.tldraw_snapshot || '',
node_storage_path: nodeData.node_data.node_storage_path || '',
label: nodeData.node_data.title || nodeData.node_data.user_name || nodeId,
type: nodeData.node_type
};
@@ -361,7 +361,7 @@ export const useNavigationStore = create<NavigationStore>((set, get) => ({
logger.debug('navigation', '📍 Adding new node to history', {
nodeId: node.id,
type: node.type,
tldraw_snapshot: node.tldraw_snapshot
node_storage_path: node.node_storage_path
});
// Add to history and update state
@@ -414,7 +414,7 @@ export const useNavigationStore = create<NavigationStore>((set, get) => ({
if (nodeData) {
const node: NavigationNode = {
id: currentState.node.id,
tldraw_snapshot: nodeData.node_data.tldraw_snapshot || '',
node_storage_path: nodeData.node_data.node_storage_path || '',
label: nodeData.node_data.title || nodeData.node_data.user_name || currentState.node.id,
type: nodeData.node_type
};