This commit is contained in:
Connor Yoh 2025-08-28 12:53:54 +01:00
parent 6daae8fcd4
commit 1e2d53a67e
2 changed files with 2 additions and 8 deletions

View File

@ -235,10 +235,3 @@ export const useNavigationGuard = () => {
setShowNavigationWarning: actions.showNavigationWarning
};
};
// TODO: This will be expanded for URL-based routing system
// - URL parsing utilities
// - Route definitions
// - Navigation hooks with URL sync
// - History management
// - Breadcrumb restoration from URL params

View File

@ -9,6 +9,7 @@ import { PageEditorFunctions } from '../types/pageEditor';
import { ToolRegistryEntry } from '../data/toolsTaxonomy';
import { useNavigationActions, useNavigationState } from './NavigationContext';
import { useNavigationUrlSync } from '../hooks/useUrlSync';
import { getDefaultWorkbench } from '../types/navigation';
// State interface
interface ToolWorkflowState {
@ -180,7 +181,7 @@ export function ToolWorkflowProvider({ children }: ToolWorkflowProviderProps) {
if (tool && tool.workbench) {
actions.setWorkbench(tool.workbench);
} else {
actions.setWorkbench('fileEditor'); // Default workbench
actions.setWorkbench(getDefaultWorkbench());
}
// Clear search query when selecting a tool