V2 hide incomplete tools (#4250)

# Description of Changes
Filters out tools which don't exist in All Tools list. Also fixes a
bunch of translation warnings in the log.
This commit is contained in:
James Brunton
2025-08-21 09:26:17 +01:00
committed by GitHub
parent a6706fcb0c
commit a33e51351b
4 changed files with 96 additions and 107 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import { type TFunction } from 'i18next';
import React from 'react';
import { BaseToolProps } from '../types/tool';
export enum SubcategoryId {
SIGNING = 'signing',
@@ -24,7 +25,7 @@ export enum ToolCategory {
export type ToolRegistryEntry = {
icon: React.ReactNode;
name: string;
component: React.ComponentType<any> | null;
component: React.ComponentType<BaseToolProps> | null;
view: 'sign' | 'security' | 'format' | 'extract' | 'view' | 'merge' | 'pageEditor' | 'convert' | 'redact' | 'split' | 'convert' | 'remove' | 'compress' | 'external';
description: string;
category: ToolCategory;