Compare commits

...
Author SHA1 Message Date
ConnorYoh e1dda46606 Merge branch 'V2' into hotfix/V2/urlSync 2025-10-15 16:27:37 +01:00
ConnorYoh f68d51c3ad Merge branch 'V2' into hotfix/V2/urlSync 2025-10-15 15:30:54 +01:00
Connor Yoh 6b4d860fc5 Hotfix removed UrlSync 2025-10-15 15:20:17 +01:00
@@ -9,6 +9,7 @@ import { PageEditorFunctions } from '../types/pageEditor';
import { ToolRegistryEntry, ToolRegistry } from '../data/toolsTaxonomy';
import { useNavigationActions, useNavigationState } from './NavigationContext';
import { ToolId, isValidToolId } from '../types/toolId';
import { useNavigationUrlSync } from '../hooks/useUrlSync';
import { getDefaultWorkbench } from '../types/workbench';
import { filterToolRegistryByQuery } from '../utils/toolSearch';
import { useToolHistory } from '../hooks/tools/useUserToolActivity';
@@ -222,6 +223,14 @@ export function ToolWorkflowProvider({ children }: ToolWorkflowProviderProps) {
[state.sidebarsVisible, state.readerMode, state.leftPanelView]
);
useNavigationUrlSync(
navigationState.selectedTool,
handleToolSelect,
handleBackToTools,
toolRegistry as ToolRegistry,
true
);
// Properly memoized context value
const contextValue = useMemo((): ToolWorkflowContextValue => ({
// State