diff --git a/packages/builder/src/builderStore/index.js b/packages/builder/src/builderStore/index.js index 2e9ec1166c..8b0cde8658 100644 --- a/packages/builder/src/builderStore/index.js +++ b/packages/builder/src/builderStore/index.js @@ -2,7 +2,6 @@ import { getFrontendStore } from "./store/frontend" import { getBackendUiStore } from "./store/backend" import { getAutomationStore } from "./store/automation" import { getHostingStore } from "./store/hosting" - import { getThemeStore } from "./store/theme" import { derived, writable } from "svelte/store" import analytics from "analytics" @@ -66,3 +65,5 @@ export const initialise = async () => { console.log(err) } } + +export const screenSearchString = writable(null) diff --git a/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/PathTree.svelte b/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/PathTree.svelte index c9e9d27958..5f98a2b9ed 100644 --- a/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/PathTree.svelte +++ b/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/PathTree.svelte @@ -1,11 +1,15 @@ - +{#if !noSearchMatch} + -{#each Object.entries(route.subpaths) as [url, subpath]} - {#each Object.entries(subpath.screens) as [role, screenId]} - changeScreen(screenId)}> - - - {#if selectedScreen?._id === screenId} - - {/if} - {/each} -{/each} + {#if routeOpened} + {#each filteredScreens as screen (screen.id)} + changeScreen(screen.id)}> + + + {#if selectedScreen?._id === screen.id} + + {/if} + {/each} + {/if} +{/if} diff --git a/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/index.svelte b/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/index.svelte index 720b18f8f9..65425a5b9f 100644 --- a/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/index.svelte +++ b/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/index.svelte @@ -56,7 +56,7 @@
- {#each paths as path, idx} + {#each paths as path, idx (path)} 0} {path} route={routes[path]} /> {/each} diff --git a/packages/builder/src/components/design/NavigationPanel/FrontendNavigatePane.svelte b/packages/builder/src/components/design/NavigationPanel/FrontendNavigatePane.svelte index 147f32bb3e..e235e3b254 100644 --- a/packages/builder/src/components/design/NavigationPanel/FrontendNavigatePane.svelte +++ b/packages/builder/src/components/design/NavigationPanel/FrontendNavigatePane.svelte @@ -1,19 +1,19 @@