From ce04a6baf39b0e010b01fffe9f7a699c64a0393d Mon Sep 17 00:00:00 2001 From: EthanHealy01 Date: Fri, 26 Sep 2025 11:49:45 +0100 Subject: [PATCH] reintroduce lazy automate import --- frontend/src/data/useTranslatedToolRegistry.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/data/useTranslatedToolRegistry.tsx b/frontend/src/data/useTranslatedToolRegistry.tsx index ed6d10868..5e413d235 100644 --- a/frontend/src/data/useTranslatedToolRegistry.tsx +++ b/frontend/src/data/useTranslatedToolRegistry.tsx @@ -75,8 +75,7 @@ import { adjustPageScaleOperationConfig } from "../hooks/tools/adjustPageScale/u import AdjustPageScaleSettings from "../components/tools/adjustPageScale/AdjustPageScaleSettings"; import ChangeMetadataSingleStep from "../components/tools/changeMetadata/ChangeMetadataSingleStep"; import CropSettings from "../components/tools/crop/CropSettings"; -import PageLayoutSettings from "src/components/tools/pageLayout/PageLayoutSettings"; -import Automate from "src/tools/Automate"; +import PageLayoutSettings from "../components/tools/pageLayout/PageLayoutSettings" const showPlaceholderTools = true; // Show all tools; grey out unavailable ones in UI @@ -559,7 +558,7 @@ export function useFlatToolRegistry(): ToolRegistry { automate: { icon: , name: t("home.automate.title", "Automate"), - component: Automate, + component: React.lazy(() => import("../tools/Automate")), description: t( "home.automate.desc", "Build multi-step workflows by chaining together PDF actions. Ideal for recurring tasks."