From 75452e373b428cc06baef74470c17b806b2edd9e Mon Sep 17 00:00:00 2001
From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com>
Date: Thu, 25 Sep 2025 22:13:46 +0100
Subject: [PATCH] updates
---
frontend/src/data/useTranslatedToolRegistry.tsx | 8 ++++----
.../hooks/tools/replaceColor/useReplaceColorParameters.ts | 2 +-
frontend/src/types/toolId.ts | 2 +-
frontend/src/utils/urlMapping.ts | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/frontend/src/data/useTranslatedToolRegistry.tsx b/frontend/src/data/useTranslatedToolRegistry.tsx
index 65bda0e0c..3ccf278e9 100644
--- a/frontend/src/data/useTranslatedToolRegistry.tsx
+++ b/frontend/src/data/useTranslatedToolRegistry.tsx
@@ -642,18 +642,18 @@ export function useFlatToolRegistry(): ToolRegistry {
subcategoryId: SubcategoryId.ADVANCED_FORMATTING,
synonyms: getSynonyms(t, "overlayPdfs"),
},
- replaceColorPdf: {
+ replaceColor: {
icon: ,
- name: t("home.replaceColorPdf.title", "Replace & Invert Color"),
+ name: t("home.replaceColor.title", "Replace & Invert Color"),
component: ReplaceColor,
- description: t("home.replaceColorPdf.desc", "Replace or invert colors in PDF documents"),
+ description: t("home.replaceColor.desc", "Replace or invert colors in PDF documents"),
categoryId: ToolCategoryId.ADVANCED_TOOLS,
subcategoryId: SubcategoryId.ADVANCED_FORMATTING,
maxFiles: -1,
endpoints: ["replace-invert-pdf"],
operationConfig: replaceColorOperationConfig,
settingsComponent: ReplaceColorSettings,
- synonyms: getSynonyms(t, "replaceColorPdf"),
+ synonyms: getSynonyms(t, "replaceColor"),
},
addImage: {
icon: ,
diff --git a/frontend/src/hooks/tools/replaceColor/useReplaceColorParameters.ts b/frontend/src/hooks/tools/replaceColor/useReplaceColorParameters.ts
index 1c1d07b93..2b269aa1a 100644
--- a/frontend/src/hooks/tools/replaceColor/useReplaceColorParameters.ts
+++ b/frontend/src/hooks/tools/replaceColor/useReplaceColorParameters.ts
@@ -21,7 +21,7 @@ export const useReplaceColorParameters = (): ReplaceColorParametersHook => {
return useBaseParameters({
defaultParameters,
endpointName: 'replace-invert-pdf',
- validateFn: (params) => {
+ validateFn: () => {
// All parameters are always valid as they have defaults
return true;
},
diff --git a/frontend/src/types/toolId.ts b/frontend/src/types/toolId.ts
index 49bdb6523..bdc614c6f 100644
--- a/frontend/src/types/toolId.ts
+++ b/frontend/src/types/toolId.ts
@@ -49,7 +49,7 @@ export const TOOL_IDS = [
'validateSignature',
'read',
'automate',
- 'replaceColorPdf',
+ 'replaceColor',
'showJS',
'devApi',
'devFolderScanning',
diff --git a/frontend/src/utils/urlMapping.ts b/frontend/src/utils/urlMapping.ts
index 016591ab3..409eaea3f 100644
--- a/frontend/src/utils/urlMapping.ts
+++ b/frontend/src/utils/urlMapping.ts
@@ -76,7 +76,7 @@ export const URL_TO_TOOL_MAP: Record = {
'/extract-images': 'extractImages',
'/adjust-contrast': 'adjustContrast',
'/fake-scan': 'fakeScan',
- '/replace-color-pdf': 'replaceColorPdf',
+ '/replace-color-pdf': 'replaceColor',
// Metadata and info
'/change-metadata': 'changeMetadata',
@@ -116,7 +116,7 @@ export const URL_TO_TOOL_MAP: Record = {
'/view-pdf': 'read',
'/get-info-on-pdf': 'getPdfInfo',
'/remove-image-pdf': 'removeImage',
- '/replace-and-invert-color-pdf': 'replaceColorPdf',
+ '/replace-and-invert-color-pdf': 'replaceColor',
'/pipeline': 'automate',
'/extract-image-scans': 'scannerImageSplit',
'/show-javascript': 'showJS',