Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

Render the tool registry and the automations through <Icon> (#7899)

EthanHealy0121694aa83740
diff --git a/frontend/editor/src/core/components/shared/ToolIcon.stories.tsx b/frontend/editor/src/core/components/shared/ToolIcon.stories.tsx
index 8994f34157..2af21898b0 100644
--- a/frontend/editor/src/core/components/shared/ToolIcon.stories.tsx
+++ b/frontend/editor/src/core/components/shared/ToolIcon.stories.tsx
@@ -1,9 +1,7 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
-import { iconMap } from "@app/components/tools/automate/iconMap";
+import { Icon } from "@app/ui/Icon";
import { ToolIcon } from "@app/components/shared/ToolIcon";
-const { PictureAsPdfIcon } = iconMap;
-
const meta = {
title: "Shared/ToolIcon",
component: ToolIcon,
@@ -14,14 +12,14 @@ type Story = StoryObj<typeof meta>;
export const Default: Story = {
args: {
- icon: <PictureAsPdfIcon />,
+ icon: <Icon name="file-pdf" />,
},
};
/** Visually unavailable state, for tools the user can't run. */
export const ReducedOpacity: Story = {
args: {
- icon: <PictureAsPdfIcon />,
+ icon: <Icon name="file-pdf" />,
opacity: 0.25,
},
};
@@ -29,7 +27,7 @@ export const ReducedOpacity: Story = {
/** No right margin, for inline placement. */
export const NoMargin: Story = {
args: {
- icon: <PictureAsPdfIcon />,
+ icon: <Icon name="file-pdf" />,
marginRight: "0",
},
};
diff --git a/frontend/editor/src/core/components/shared/WorkbenchBar.tsx b/frontend/editor/src/core/components/shared/WorkbenchBar.tsx
index 18ea1e9973..22e5062d1d 100644
--- a/frontend/editor/src/core/components/shared/WorkbenchBar.tsx
+++ b/frontend/editor/src/core/components/shared/WorkbenchBar.tsx
@@ -444,7 +444,8 @@ export default function WorkbenchBar({
{
value: "pageEditor" as WorkbenchType,
label: t("workbenchBar.multiTool", "Multi-Tool"),
- icon: <Icon name="layout-dashboard" size="1rem" />,
+ // The registry's multiTool glyph: one tool, one mark, wherever it is drawn.
+ icon: <Icon name="grid-2x2-plus" size="1rem" />,
},
]
: []),
diff --git a/frontend/editor/src/core/components/shared/superSearch/SuperSearch.tsx b/frontend/editor/src/core/components/shared/superSearch/SuperSearch.tsx
index 054e99cfde..80161240bc 100644
--- a/frontend/editor/src/core/components/shared/superSearch/SuperSearch.tsx
+++ b/frontend/editor/src/core/components/shared/superSearch/SuperSearch.tsx
@@ -12,7 +12,6 @@ import { Text } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { Chip } from "@app/ui/Chip";
import { TextInput } from "@app/components/shared/TextInput";
-import LocalIcon from "@app/components/shared/LocalIcon";
import { isMacLike } from "@app/utils/hotkeys";
import { useIsMobile } from "@app/hooks/useIsMobile";
import {
@@ -28,6 +27,7 @@ import {
} from "@app/components/shared/superSearch/superSearchFilters";
import "@app/components/shared/superSearch/SuperSearch.css";
+import { Icon } from "@app/ui/Icon";
/** Rows shown per group before a "show more" toggle reveals the rest. */
const COLLAPSED_GROUP_SIZE = 5;
@@ -521,11 +521,7 @@ export default function SuperSearch({
}`}
aria-hidden="true"
>
- <LocalIcon
- icon="expand-more-rounded"
- width="1rem"
- height="1rem"
- />
+ <Icon name="chevron-down" size="1rem" />
</span>
}
>
@@ -581,10 +577,9 @@ export default function SuperSearch({
>
<span className="super-search-item-icon">
{result.icon ?? (
- <LocalIcon
- icon={result.iconName ?? "search-rounded"}
- width="1.1rem"
- height="1.1rem"
+ <Icon
+ name={result.iconName ?? "search"}
+ size="1.1rem"
/>
)}
</span>
@@ -643,9 +638,7 @@ export default function SuperSearch({
? t("superSearch.placeholderShort", "Search")
: t("superSearch.placeholder", "Search Stirling")
}
- icon={
- <LocalIcon icon="search-rounded" width="1.1rem" height="1.1rem" />
- }
+ icon={<Icon name="search" size="1.1rem" />}
autoComplete="off"
role="combobox"
aria-label={t("superSearch.ariaLabel", "Super search")}
diff --git a/frontend/editor/src/core/components/tools/FullscreenToolList.tsx b/frontend/editor/src/core/components/tools/FullscreenToolList.tsx
index 85a306c476..c4befc0e17 100644
--- a/frontend/editor/src/core/components/tools/FullscreenToolList.tsx
+++ b/frontend/editor/src/core/components/tools/FullscreenToolList.tsx
@@ -11,8 +11,7 @@ import { ToolId } from "@app/types/toolId";
import { useToolSections } from "@app/hooks/useToolSections";
import NoToolsFound from "@app/components/tools/shared/NoToolsFound";
import { useToolWorkflow } from "@app/contexts/ToolWorkflowContext";
-import StarRoundedIcon from "@mui/icons-material/StarRounded";
-import ThumbUpRoundedIcon from "@mui/icons-material/ThumbUpRounded";
+import { Icon } from "@app/ui/Icon";
import Badge from "@app/components/shared/Badge";
import "@app/components/tools/ToolPanel.css";
import DetailedToolItem from "@app/components/tools/fullscreen/DetailedToolItem";
@@ -155,7 +154,7 @@ const FullscreenToolList = ({
}}
aria-hidden
>
- <StarRoundedIcon />
+ <Icon name="star" filled />
</span>
<Text size="sm" fw={600} tt="uppercase" lts={0.5} c="dimmed">
{t("toolPanel.fullscreen.favorites", "Favourites")}
@@ -201,7 +200,7 @@ const FullscreenToolList = ({
}}
aria-hidden
>
- <ThumbUpRoundedIcon />
+ <Icon name="thumbs-up" />
</span>
<Text size="sm" fw={600} tt="uppercase" lts={0.5} c="dimmed">
{t("toolPanel.fullscreen.recommended", "Recommended")}
diff --git a/frontend/editor/src/core/components/tools/RightSidebar.tsx b/frontend/editor/src/core/components/tools/RightSidebar.tsx
index 5f8eeff919..f9af87cdb4 100644
--- a/frontend/editor/src/core/components/tools/RightSidebar.tsx
+++ b/frontend/editor/src/core/components/tools/RightSidebar.tsx
@@ -10,7 +10,7 @@ import { ToolIcon } from "@app/components/shared/ToolIcon";
import { ToolPanelHeader } from "@app/components/shared/ToolPanelHeader";
import { ActionIcon } from "@app/ui/ActionIcon";
import { withViewTransition } from "@app/utils/viewTransition";
-import CloseIcon from "@mui/icons-material/Close";
+import { Icon } from "@app/ui/Icon";
import { ToolId } from "@app/types/toolId";
import type { ToolRegistryEntry } from "@app/data/toolsTaxonomy";
import {
@@ -151,7 +151,7 @@ export default function RightSidebar() {
}
className="tool-panel__expand-btn"
>
- <CloseIcon sx={{ fontSize: "1.1rem" }} />
+ <Icon name="x" size={"1.1rem"} />
</ActionIcon>
</div>
</div>
diff --git a/frontend/editor/src/core/components/tools/automate/AutomationCreation.tsx b/frontend/editor/src/core/components/tools/automate/AutomationCreation.tsx
index 0e4926adbe..d6508bd036 100644
--- a/frontend/editor/src/core/components/tools/automate/AutomationCreation.tsx
+++ b/frontend/editor/src/core/components/tools/automate/AutomationCreation.tsx
@@ -11,8 +11,7 @@ import {
} from "@mantine/core";
import { Button } from "@app/ui/Button";
import { Z_INDEX_AUTOMATE_MODAL } from "@app/styles/zIndex";
-import CheckIcon from "@mui/icons-material/Check";
-import DownloadIcon from "@mui/icons-material/Download";
+import { Icon } from "@app/ui/Icon";
import { ToolRegistry } from "@app/data/toolsTaxonomy";
import ToolConfigurationModal from "@app/components/tools/automate/ToolConfigurationModal";
import ToolList from "@app/components/tools/automate/ToolList";
@@ -292,7 +291,7 @@ export default function AutomationCreation({
{/* Action Buttons */}
<Stack gap="sm">
<Button
- leftSection={<CheckIcon />}
+ leftSection={<Icon name="check" />}
onClick={saveAutomation}
disabled={!canSaveAutomation()}
fullWidth
@@ -303,7 +302,7 @@ export default function AutomationCreation({
<Group gap="sm" grow>
<Button
variant="secondary"
- leftSection={<DownloadIcon />}
+ leftSection={<Icon name="download" />}
onClick={() => {
downloadAutomationConfig(buildExportableAutomation());
}}
@@ -313,7 +312,7 @@ export default function AutomationCreation({
</Button>
<Button
variant="secondary"
- leftSection={<DownloadIcon />}
+ leftSection={<Icon name="download" />}
onClick={() => {
downloadFolderScanningConfig(
buildExportableAutomation(),
diff --git a/frontend/editor/src/core/components/tools/automate/AutomationEntry.tsx b/frontend/editor/src/core/components/tools/automate/AutomationEntry.tsx
index a4a7c1d2ca..9800888d20 100644
--- a/frontend/editor/src/core/components/tools/automate/AutomationEntry.tsx
+++ b/frontend/editor/src/core/components/tools/automate/AutomationEntry.tsx
@@ -2,12 +2,7 @@ import React, { useState } from "react";
import { useTranslation } from "react-i18next";
import { Group, Text, Menu, Box } from "@mantine/core";
import { Button as SharedButton } from "@app/ui/Button";
-import MoreVertIcon from "@mui/icons-material/MoreVert";
-import EditIcon from "@mui/icons-material/Edit";
-import DeleteIcon from "@mui/icons-material/Delete";
-import ContentCopyIcon from "@mui/icons-material/ContentCopy";
-import DownloadIcon from "@mui/icons-material/Download";
-import UploadFileIcon from "@mui/icons-material/UploadFile";
+import { Icon, type IconName } from "@app/ui/Icon";
import { Tooltip } from "@app/components/shared/Tooltip";
import { ToolIcon } from "@app/components/shared/ToolIcon";
import { ToolRegistry } from "@app/data/toolsTaxonomy";
@@ -19,7 +14,7 @@ interface AutomationEntryProps {
/** Optional description for tooltip */
description?: string;
/** MUI Icon component for the badge */
- badgeIcon?: React.ComponentType;
+ badgeIcon?: IconName;
/** Array of tool operation names in the workflow */
operations: string[];
/** Click handler */
@@ -47,7 +42,7 @@ interface AutomationEntryProps {
export default function AutomationEntry({
title,
description,
- badgeIcon: BadgeIcon,
+ badgeIcon,
operations,
onClick,
keepIconColor = false,
@@ -135,9 +130,9 @@ export default function AutomationEntry({
const buttonContent = (
<>
- {BadgeIcon && (
+ {badgeIcon && (
<ToolIcon
- icon={<BadgeIcon />}
+ icon={<Icon name={badgeIcon} />}
{...(keepIconColor && {
color: "var(--mantine-primary-color-filled)",
})}
@@ -207,7 +202,7 @@ export default function AutomationEntry({
>
<Menu.Target>
<SharedButton
- leftSection={<MoreVertIcon style={{ fontSize: 20 }} />}
+ leftSection={<Icon name="ellipsis-vertical" size={20} />}
variant="tertiary"
accent="neutral"
size="md"
@@ -233,7 +228,7 @@ export default function AutomationEntry({
<Menu.Dropdown>
{onImport && (
<Menu.Item
- leftSection={<UploadFileIcon style={{ fontSize: 16 }} />}
+ leftSection={<Icon name="file-up" size={16} />}
onClick={(e) => {
e.stopPropagation();
onImport();
@@ -244,7 +239,7 @@ export default function AutomationEntry({
)}
{onCopy && (
<Menu.Item
- leftSection={<ContentCopyIcon style={{ fontSize: 16 }} />}
+ leftSection={<Icon name="copy" size={16} />}
onClick={(e) => {
e.stopPropagation();
onCopy();
@@ -255,7 +250,7 @@ export default function AutomationEntry({
)}
{onEdit && (
<Menu.Item
- leftSection={<EditIcon style={{ fontSize: 16 }} />}
+ leftSection={<Icon name="pencil" size={16} />}
onClick={(e) => {
e.stopPropagation();
onEdit();
@@ -266,7 +261,7 @@ export default function AutomationEntry({
)}
{onExportAutomation && (
<Menu.Item
- leftSection={<DownloadIcon style={{ fontSize: 16 }} />}
+ leftSection={<Icon name="download" size={16} />}
onClick={(e) => {
e.stopPropagation();
onExportAutomation();
@@ -277,7 +272,7 @@ export default function AutomationEntry({
)}
{onExportFolderScan && (
<Menu.Item
- leftSection={<DownloadIcon style={{ fontSize: 16 }} />}
+ leftSection={<Icon name="download" size={16} />}
onClick={(e) => {
e.stopPropagation();
onExportFolderScan();
@@ -291,7 +286,7 @@ export default function AutomationEntry({
)}
{onDelete && (
<Menu.Item
- leftSection={<DeleteIcon style={{ fontSize: 16 }} />}
+ leftSection={<Icon name="trash" size={16} />}
onClick={(e) => {
e.stopPropagation();
onDelete();
diff --git a/frontend/editor/src/core/components/tools/automate/AutomationImportModal.tsx b/frontend/editor/src/core/components/tools/automate/AutomationImportModal.tsx
index 389cd79da6..d722edc095 100644
--- a/frontend/editor/src/core/components/tools/automate/AutomationImportModal.tsx
+++ b/frontend/editor/src/core/components/tools/automate/AutomationImportModal.tsx
@@ -11,7 +11,7 @@ import {
} from "@mantine/core";
import { Button } from "@app/ui/Button";
import { Dropzone } from "@mantine/dropzone";
-import UploadFileIcon from "@mui/icons-material/UploadFile";
+import { Icon } from "@app/ui/Icon";
import { Z_INDEX_AUTOMATE_MODAL } from "@app/styles/zIndex";
import {
ParsedAutomationImport,
@@ -150,7 +150,7 @@ export default function AutomationImportModal({
mih={80}
justify="center"
>
- <UploadFileIcon style={{ fontSize: 32, opacity: 0.6 }} />
+ <Icon name="file-up" size={32} style={{ opacity: 0.6 }} />
<div>
<Text size="sm" fw={500}>
{t(
diff --git a/frontend/editor/src/core/components/tools/automate/AutomationRun.tsx b/frontend/editor/src/core/components/tools/automate/AutomationRun.tsx
index 13e1d9aff5..ef3d16f8e6 100644
--- a/frontend/editor/src/core/components/tools/automate/AutomationRun.tsx
+++ b/frontend/editor/src/core/components/tools/automate/AutomationRun.tsx
@@ -10,9 +10,8 @@ import {
Tooltip,
} from "@mantine/core";
import { Button } from "@app/ui/Button";
+import { Icon } from "@app/ui/Icon";
import { useConnectedServer } from "@app/hooks/useConnectedServer";
-import PlayArrowIcon from "@mui/icons-material/PlayArrow";
-import CheckIcon from "@mui/icons-material/Check";
import { useViewScopedFiles } from "@app/hooks/tools/shared/useViewScopedFiles";
import { useToolRegistry } from "@app/contexts/ToolRegistryContext";
import { AutomationConfig, ExecutionStep } from "@app/types/automation";
@@ -159,7 +158,7 @@ export default function AutomationRun({
const getStepIcon = (step: ExecutionStep) => {
switch (step.status) {
case EXECUTION_STATUS.COMPLETED:
- return <CheckIcon style={{ fontSize: 16, color: "green" }} />;
+ return <Icon name="check" size={16} style={{ color: "green" }} />;
case EXECUTION_STATUS.ERROR:
return <span style={{ fontSize: 16, color: "red" }}>✕</span>;
case EXECUTION_STATUS.RUNNING:
@@ -248,7 +247,7 @@ export default function AutomationRun({
{/* Wrapper keeps the tooltip reachable while the button is disabled. */}
<span style={{ display: "inline-flex" }}>
<Button
- leftSection={<PlayArrowIcon />}
+ leftSection={<Icon name="play" />}
onClick={executeAutomation}
disabled={
isExecuting ||
diff --git a/frontend/editor/src/core/components/tools/automate/AutomationSelection.tsx b/frontend/editor/src/core/components/tools/automate/AutomationSelection.tsx
index 39871d86b8..b00f3884c0 100644
--- a/frontend/editor/src/core/components/tools/automate/AutomationSelection.tsx
+++ b/frontend/editor/src/core/components/tools/automate/AutomationSelection.tsx
@@ -1,8 +1,6 @@
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { Title, Stack, Divider } from "@mantine/core";
-import AddCircleOutline from "@mui/icons-material/AddCircleOutlined";
-import SettingsIcon from "@mui/icons-material/Settings";
import AutomationEntry from "@app/components/tools/automate/AutomationEntry";
import AutomationImportModal from "@app/components/tools/automate/AutomationImportModal";
import { useSuggestedAutomations } from "@app/hooks/tools/automate/useSuggestedAutomations";
@@ -99,7 +97,7 @@ export default function AutomationSelection({
"automate.selection.createNew.title",
"Create New Automation",
)}
- badgeIcon={AddCircleOutline}
+ badgeIcon="circle-plus"
operations={[]}
onClick={onCreateNew}
keepIconColor={true}
@@ -109,15 +107,15 @@ export default function AutomationSelection({
/>
{/* Saved Automations */}
{savedAutomations.map((automation) => {
- const IconComponent = automation.icon
- ? iconMap[automation.icon as keyof typeof iconMap]
- : SettingsIcon;
+ const badge = automation.icon
+ ? iconMap[automation.icon]
+ : iconMap.SettingsIcon;
return (
<AutomationEntry
key={automation.id}
title={automation.name}
description={automation.description}
- badgeIcon={IconComponent || SettingsIcon}
+ badgeIcon={badge ?? iconMap.SettingsIcon}
operations={automation.operations.map((op) =>
typeof op === "string" ? op : op.operation,
)}
diff --git a/frontend/editor/src/core/components/tools/automate/IconSelector.tsx b/frontend/editor/src/core/components/tools/automate/IconSelector.tsx
index 1b0909cbc0..1ebcabee6c 100644
--- a/frontend/editor/src/core/components/tools/automate/IconSelector.tsx
+++ b/frontend/editor/src/core/components/tools/automate/IconSelector.tsx
@@ -2,7 +2,7 @@ import React, { useState } from "react";
import { useTranslation } from "react-i18next";
import { Box, Text, Stack, SimpleGrid, Tooltip, Popover } from "@mantine/core";
import { ActionIcon } from "@app/ui/ActionIcon";
-import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
+import { Icon } from "@app/ui/Icon";
import { iconMap, iconOptions } from "@app/components/tools/automate/iconMap";
import { Z_INDEX_AUTOMATE_DROPDOWN } from "@app/styles/zIndex";
@@ -20,8 +20,7 @@ export default function IconSelector({
const { t } = useTranslation();
const [isDropdownOpen, setIsDropdownOpen] = useState(false);
- const selectedIconComponent =
- iconMap[value as keyof typeof iconMap] || iconMap.SettingsIcon;
+ const selectedIcon = iconMap[value] ?? iconMap.SettingsIcon;
const handleIconSelect = (iconKey: string) => {
onChange?.(iconKey);
@@ -66,12 +65,11 @@ export default function IconSelector({
color: "var(--mantine-color-text)",
}}
>
- {React.createElement(selectedIconComponent, {
- style: { fontSize: iconSize },
- })}
- <KeyboardArrowDownIcon
+ <Icon name={selectedIcon} size={iconSize} />
+ <Icon
+ name="chevron-down"
+ size={iconSize * 0.8}
style={{
- fontSize: iconSize * 0.8,
position: "absolute",
right: "0.25rem",
top: "50%",
@@ -85,8 +83,7 @@ export default function IconSelector({
<Stack gap="xs">
<SimpleGrid cols={4} spacing="xs">
{iconOptions.map((option) => {
- const IconComponent =
- iconMap[option.value as keyof typeof iconMap];
+ const optionIcon = iconMap[option.value];
const isSelected = value === option.value;
return (
@@ -116,9 +113,10 @@ export default function IconSelector({
}
}}
>
- <IconComponent
+ <Icon
+ name={optionIcon}
+ size={iconSize}
style={{
- fontSize: iconSize,
color: isSelected
? "var(--mantine-color-gray-9)"
: "var(--mantine-color-gray-7)",
diff --git a/frontend/editor/src/core/components/tools/automate/ToolConfigurationModal.tsx b/frontend/editor/src/core/components/tools/automate/ToolConfigurationModal.tsx
index 93631e087c..0210e3c0ae 100644
--- a/frontend/editor/src/core/components/tools/automate/ToolConfigurationModal.tsx
+++ b/frontend/editor/src/core/components/tools/automate/ToolConfigurationModal.tsx
@@ -3,10 +3,7 @@ import { useTranslation } from "react-i18next";
import { Modal, Title, Group, Stack, Text, Alert, Loader } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { Z_INDEX_AUTOMATE_MODAL } from "@app/styles/zIndex";
-import SettingsIcon from "@mui/icons-material/Settings";
-import CheckIcon from "@mui/icons-material/Check";
-import CloseIcon from "@mui/icons-material/Close";
-import WarningIcon from "@mui/icons-material/Warning";
+import { Icon } from "@app/ui/Icon";
import { ToolRegistry } from "@app/data/toolsTaxonomy";
import { ToolId } from "@app/types/toolId";
import { ErasedToolParams } from "@app/hooks/tools/shared/toolOperationTypes";
@@ -55,7 +52,7 @@ export default function ToolConfigurationModal({
const renderToolSettings = () => {
if (!SettingsComponent) {
return (
- <Alert icon={<WarningIcon />} color="orange">
+ <Alert icon={<Icon name="triangle-alert" />} color="orange">
<Text size="sm">
{t(
"automate.config.noSettings",
@@ -87,7 +84,7 @@ export default function ToolConfigurationModal({
onClose={onCancel}
title={
<Group gap="xs">
- <SettingsIcon />
+ <Icon name="settings" />
<Title order={3}>
{t("automate.config.title", "Configure {{toolName}}", {
toolName: tool.name,
@@ -118,12 +115,12 @@ export default function ToolConfigurationModal({
<Group justify="flex-end" gap="sm">
<Button
variant="secondary"
- leftSection={<CloseIcon />}
+ leftSection={<Icon name="x" />}
onClick={onCancel}
>
{t("automate.config.cancel", "Cancel")}
</Button>
- <Button leftSection={<CheckIcon />} onClick={handleSave}>
+ <Button leftSection={<Icon name="check" />} onClick={handleSave}>
{t("automate.config.save", "Save Configuration")}
</Button>
</Group>
diff --git a/frontend/editor/src/core/components/tools/automate/ToolList.tsx b/frontend/editor/src/core/components/tools/automate/ToolList.tsx
index e2fe54deb0..ac5acc9927 100644
--- a/frontend/editor/src/core/components/tools/automate/ToolList.tsx
+++ b/frontend/editor/src/core/components/tools/automate/ToolList.tsx
@@ -2,9 +2,7 @@ import React from "react";
import { useTranslation } from "react-i18next";
import { Text, Stack, Group } from "@mantine/core";
import { ActionIcon } from "@app/ui/ActionIcon";
-import SettingsIcon from "@mui/icons-material/Settings";
-import CloseIcon from "@mui/icons-material/Close";
-import AddCircleOutline from "@mui/icons-material/AddCircleOutlined";
+import { Icon } from "@app/ui/Icon";
import { AutomationTool } from "@app/types/automation";
import { ToolRegistry } from "@app/data/toolsTaxonomy";
import { ToolId } from "@app/types/toolId";
@@ -97,7 +95,7 @@ export default function ToolList({
color: "var(--mantine-color-gray-6)",
}}
>
- <CloseIcon style={{ fontSize: 16 }} />
+ <Icon name="x" size={16} />
</ActionIcon>
)}
@@ -133,7 +131,7 @@ export default function ToolList({
)}
style={{ color: "var(--mantine-color-gray-6)" }}
>
- <SettingsIcon style={{ fontSize: 16 }} />
+ <Icon name="settings" size={16} />
</ActionIcon>
)}
</Group>
@@ -189,7 +187,7 @@ export default function ToolList({
>
<AutomationEntry
title={t("automate.creation.tools.addTool", "Add Tool")}
- badgeIcon={AddCircleOutline}
+ badgeIcon="circle-plus"
operations={[]}
onClick={onToolAdd}
keepIconColor={true}
diff --git a/frontend/editor/src/core/components/tools/automate/iconMap.ts b/frontend/editor/src/core/components/tools/automate/iconMap.ts
index 65d3f9421c..a8319d7119 100644
--- a/frontend/editor/src/core/components/tools/automate/iconMap.ts
+++ b/frontend/editor/src/core/components/tools/automate/iconMap.ts
@@ -1,61 +1,36 @@
-import SettingsIcon from "@mui/icons-material/Settings";
-import CompressIcon from "@mui/icons-material/Compress";
-import SwapHorizIcon from "@mui/icons-material/SwapHoriz";
-import CleaningServicesIcon from "@mui/icons-material/CleaningServices";
-import CropIcon from "@mui/icons-material/Crop";
-import TextFieldsIcon from "@mui/icons-material/TextFields";
-import PictureAsPdfIcon from "@mui/icons-material/PictureAsPdf";
-import EditIcon from "@mui/icons-material/Edit";
-import DeleteIcon from "@mui/icons-material/Delete";
-import FolderIcon from "@mui/icons-material/Folder";
-import CloudIcon from "@mui/icons-material/Cloud";
-import StorageIcon from "@mui/icons-material/Storage";
-import SearchIcon from "@mui/icons-material/Search";
-import DownloadIcon from "@mui/icons-material/Download";
-import UploadIcon from "@mui/icons-material/Upload";
-import PlayArrowIcon from "@mui/icons-material/PlayArrow";
-import RotateLeftIcon from "@mui/icons-material/RotateLeft";
-import RotateRightIcon from "@mui/icons-material/RotateRight";
-import VisibilityIcon from "@mui/icons-material/Visibility";
-import ContentCutIcon from "@mui/icons-material/ContentCut";
-import ContentCopyIcon from "@mui/icons-material/ContentCopy";
-import WorkIcon from "@mui/icons-material/Work";
-import BuildIcon from "@mui/icons-material/Build";
-import AutoAwesomeIcon from "@mui/icons-material/AutoAwesome";
-import SmartToyIcon from "@mui/icons-material/SmartToy";
-import CheckIcon from "@mui/icons-material/Check";
-import SecurityIcon from "@mui/icons-material/Security";
-import StarIcon from "@mui/icons-material/Star";
+import type { IconName } from "@app/ui/Icon";
-export const iconMap = {
- SettingsIcon,
- CompressIcon,
- SwapHorizIcon,
- CleaningServicesIcon,
- CropIcon,
- TextFieldsIcon,
- PictureAsPdfIcon,
- EditIcon,
- DeleteIcon,
- FolderIcon,
- CloudIcon,
- StorageIcon,
- SearchIcon,
- DownloadIcon,
- UploadIcon,
- PlayArrowIcon,
- RotateLeftIcon,
- RotateRightIcon,
- VisibilityIcon,
- ContentCutIcon,
- ContentCopyIcon,
- WorkIcon,
- BuildIcon,
- AutoAwesomeIcon,
- SmartToyIcon,
- CheckIcon,
- SecurityIcon,
- StarIcon,
+/** Icon palette for saved automations and watched folders. The KEYS are
+ * persisted (e.g. "SettingsIcon"), so only the values may change. */
+export const iconMap: Record<string, IconName> = {
+ SettingsIcon: "settings",
+ CompressIcon: "shrink",
+ SwapHorizIcon: "arrow-left-right",
+ CleaningServicesIcon: "brush-cleaning",
+ CropIcon: "crop",
+ TextFieldsIcon: "type",
+ PictureAsPdfIcon: "file-text",
+ EditIcon: "pencil",
+ DeleteIcon: "trash",
+ FolderIcon: "folder",
+ CloudIcon: "cloud",
+ StorageIcon: "server",
+ SearchIcon: "search",
+ DownloadIcon: "download",
+ UploadIcon: "upload",
+ PlayArrowIcon: "play",
+ RotateLeftIcon: "rotate-ccw",
+ RotateRightIcon: "rotate-cw",
+ VisibilityIcon: "eye",
+ ContentCutIcon: "scissors",
+ ContentCopyIcon: "copy",
+ WorkIcon: "briefcase",
+ BuildIcon: "wrench",
+ AutoAwesomeIcon: "sparkles",
+ SmartToyIcon: "bot",
+ CheckIcon: "check",
+ SecurityIcon: "shield-check",
+ StarIcon: "star",
};
export const iconOptions = [
diff --git a/frontend/editor/src/core/components/tools/toolPicker/FavoriteStar.tsx b/frontend/editor/src/core/components/tools/toolPicker/FavoriteStar.tsx
index 7504e89d74..7b82ee7a7a 100644
--- a/frontend/editor/src/core/components/tools/toolPicker/FavoriteStar.tsx
+++ b/frontend/editor/src/core/components/tools/toolPicker/FavoriteStar.tsx
@@ -1,7 +1,6 @@
import React from "react";
import { useTranslation } from "react-i18next";
-import StarRoundedIcon from "@mui/icons-material/StarRounded";
-import StarBorderRoundedIcon from "@mui/icons-material/StarBorderRounded";
+import { Icon } from "@app/ui/Icon";
import { ActionIcon } from "@app/ui/ActionIcon";
import type { ActionIconSize } from "@app/ui/ActionIcon";
type FavoriteStarSize = "xs" | ActionIconSize;
@@ -55,15 +54,14 @@ const FavoriteStar: React.FC<FavoriteStarProps> = ({
}
>
{isFavorite ? (
- <StarRoundedIcon
- fontSize="inherit"
- style={{ color: "var(--special-color-favorites)", fontSize: "1rem" }}
+ <Icon
+ name="star"
+ size="1em"
+ filled
+ style={{ color: "var(--special-color-favorites)" }}
/>
) : (
- <StarBorderRoundedIcon
- fontSize="inherit"
- style={{ fontSize: "1rem" }}
- />
+ <Icon name="star" size="1em" />
)}
</ActionIcon>
);
diff --git a/frontend/editor/src/core/components/tools/toolPicker/ToolSearch.tsx b/frontend/editor/src/core/components/tools/toolPicker/ToolSearch.tsx
index 39eaf2a57b..f25a8d895e 100644
--- a/frontend/editor/src/core/components/tools/toolPicker/ToolSearch.tsx
+++ b/frontend/editor/src/core/components/tools/toolPicker/ToolSearch.tsx
@@ -2,7 +2,7 @@ import { useState, useRef, useEffect, useMemo } from "react";
import { Stack, Text } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { useTranslation } from "react-i18next";
-import LocalIcon from "@app/components/shared/LocalIcon";
+import { Icon } from "@app/ui/Icon";
import { ToolRegistryEntry } from "@app/data/toolsTaxonomy";
import { TextInput } from "@app/components/shared/TextInput";
import "@app/components/tools/toolPicker/ToolPicker.css";
@@ -100,9 +100,7 @@ const ToolSearch = ({
}
icon={
iconOverride ??
- (hideIcon ? undefined : (
- <LocalIcon icon="search-rounded" width="1.25rem" height="1.25rem" />
- ))
+ (hideIcon ? undefined : <Icon name="search" size="1.25rem" />)
}
iconClickable={!!iconOverride}
autoComplete="off"
diff --git a/frontend/editor/src/core/data/toolsTaxonomy.ts b/frontend/editor/src/core/data/toolsTaxonomy.ts
index 529e80a503..9f9e429623 100644
--- a/frontend/editor/src/core/data/toolsTaxonomy.ts
+++ b/frontend/editor/src/core/data/toolsTaxonomy.ts
@@ -1,4 +1,5 @@
import { type TFunction } from "i18next";
+import { Icon } from "@app/ui/Icon";
import React from "react";
import {
type ErasedToolParams,
@@ -14,17 +15,6 @@ import {
ToolId,
ToolKind,
} from "@app/types/toolId";
-import DrawRoundedIcon from "@mui/icons-material/DrawRounded";
-import SecurityRoundedIcon from "@mui/icons-material/SecurityRounded";
-import VerifiedUserRoundedIcon from "@mui/icons-material/VerifiedUserRounded";
-import RateReviewRoundedIcon from "@mui/icons-material/RateReviewRounded";
-import ViewAgendaRoundedIcon from "@mui/icons-material/ViewAgendaRounded";
-import FileDownloadRoundedIcon from "@mui/icons-material/FileDownloadRounded";
-import DeleteSweepRoundedIcon from "@mui/icons-material/DeleteSweepRounded";
-import SmartToyRoundedIcon from "@mui/icons-material/SmartToyRounded";
-import BuildRoundedIcon from "@mui/icons-material/BuildRounded";
-import TuneRoundedIcon from "@mui/icons-material/TuneRounded";
-import CodeRoundedIcon from "@mui/icons-material/CodeRounded";
import { ProprietaryToolId } from "@app/types/proprietaryToolId";
import { PrototypeToolId } from "@app/types/prototypeToolId";
@@ -130,29 +120,31 @@ export const getSubcategoryIcon = (
): React.ReactNode => {
switch (subcategory) {
case SubcategoryId.SIGNING:
- return React.createElement(DrawRoundedIcon);
+ return React.createElement(Icon, { name: "pen-tool" });
+ // Siblings in the same picker list, so they must not share a glyph:
+ // security is the bare shield, verification the one with the tick.
case SubcategoryId.DOCUMENT_SECURITY:
- return React.createElement(SecurityRoundedIcon);
+ return React.createElement(Icon, { name: "shield" });
case SubcategoryId.VERIFICATION:
- return React.createElement(VerifiedUserRoundedIcon);
+ return React.createElement(Icon, { name: "shield-check" });
case SubcategoryId.DOCUMENT_REVIEW:
- return React.createElement(RateReviewRoundedIcon);
+ return React.createElement(Icon, { name: "message-square-text" });
case SubcategoryId.PAGE_FORMATTING:
- return React.createElement(ViewAgendaRoundedIcon);
+ return React.createElement(Icon, { name: "rows-3" });
case SubcategoryId.EXTRACTION:
- return React.createElement(FileDownloadRoundedIcon);
+ return React.createElement(Icon, { name: "download" });
case SubcategoryId.REMOVAL:
- return React.createElement(DeleteSweepRoundedIcon);
+ return React.createElement(Icon, { name: "trash" });
case SubcategoryId.AUTOMATION:
- return React.createElement(SmartToyRoundedIcon);
+ return React.createElement(Icon, { name: "bot" });
case SubcategoryId.GENERAL:
- return React.createElement(BuildRoundedIcon);
+ return React.createElement(Icon, { name: "wrench" });
case SubcategoryId.ADVANCED_FORMATTING:
- return React.createElement(TuneRoundedIcon);
+ return React.createElement(Icon, { name: "sliders-horizontal" });
case SubcategoryId.DEVELOPER_TOOLS:
- return React.createElement(CodeRoundedIcon);
+ return React.createElement(Icon, { name: "code" });
default:
- return React.createElement(BuildRoundedIcon);
+ return React.createElement(Icon, { name: "wrench" });
}
};
diff --git a/frontend/editor/src/core/data/useTranslatedToolRegistry.tsx b/frontend/editor/src/core/data/useTranslatedToolRegistry.tsx
index 0814729775..d4c18a46cf 100644
--- a/frontend/editor/src/core/data/useTranslatedToolRegistry.tsx
+++ b/frontend/editor/src/core/data/useTranslatedToolRegistry.tsx
@@ -1,6 +1,5 @@
import { lazy, useMemo } from "react";
-import LocalIcon from "@app/components/shared/LocalIcon";
-import GroupAddOutlinedIcon from "@mui/icons-material/GroupAddOutlined";
+import { Icon } from "@app/ui/Icon";
import { useTranslation } from "react-i18next";
import { devApiLink } from "@app/constants/links";
import { reorganizePagesOperationConfig } from "@app/hooks/tools/reorganizePages/useReorganizePagesOperation";
@@ -91,13 +90,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
...prototypeTools,
// Recommended Tools in order
pdfTextEditor: {
- icon: (
- <LocalIcon
- icon="edit-square-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="square-pen" size="1.5rem" />,
name: t("home.pdfTextEditor.title", "PDF Text Editor"),
component: lazy(() => import("@app/tools/pdfTextEditor/PdfTextEditor")),
description: t(
@@ -113,13 +106,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
automationSettings: null,
},
multiTool: {
- icon: (
- <LocalIcon
- icon="dashboard-customize-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="grid-2x2-plus" size="1.5rem" />,
name: t("home.multiTool.title", "Multi-Tool"),
component: null,
workbench: "pageEditor",
@@ -136,13 +123,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
automationSettings: null,
},
merge: {
- icon: (
- <LocalIcon
- icon="library-add-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="copy-plus" size="1.5rem" />,
name: t("home.merge.title", "Merge"),
component: lazy(() => import("@app/tools/Merge")),
description: t(
@@ -161,13 +142,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
},
// Signing
certSign: {
- icon: (
- <LocalIcon
- icon="workspace-premium-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="award" size="1.5rem" />,
name: t("home.certSign.title", "Certificate Sign"),
component: lazy(() => import("@app/tools/CertSign")),
description: t(
@@ -186,13 +161,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
),
},
timestampPdf: {
- icon: (
- <LocalIcon
- icon="schedule-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="clock" size="1.5rem" />,
name: t("home.timestampPdf.title", "Timestamp PDF"),
component: lazy(() => import("@app/tools/TimestampPdf")),
description: t(
@@ -208,9 +177,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
synonyms: getSynonyms(t, "timestampPdf"),
},
sign: {
- icon: (
- <LocalIcon icon="signature-rounded" width="1.5rem" height="1.5rem" />
- ),
+ icon: <Icon name="signature" size="1.5rem" />,
name: t("home.sign.title", "Sign"),
component: lazy(() => import("@app/tools/Sign")),
description: t(
@@ -228,7 +195,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
supportsAutomate: false, //TODO make support Sign
},
sharedSign: {
- icon: <GroupAddOutlinedIcon sx={{ fontSize: "1.5rem" }} />,
+ icon: <Icon name="users-plus" size={"1.5rem"} />,
name: t("home.sharedSign.title", "Shared Signing"),
component: lazy(() => import("@app/tools/SharedSign")),
description: t(
@@ -242,13 +209,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
synonyms: getSynonyms(t, "sharedSign"),
},
addText: {
- icon: (
- <LocalIcon
- icon="text-fields-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="type" size="1.5rem" />,
name: t("home.addText.title", "Add Text"),
component: lazy(() => import("@app/tools/AddText")),
description: t(
@@ -264,13 +225,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
supportsAutomate: false,
},
addImage: {
- icon: (
- <LocalIcon
- icon="image-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="image" size="1.5rem" />,
name: t("home.addImage.title", "Add Image"),
component: lazy(() => import("@app/tools/AddImage")),
description: t("home.addImage.desc", "Add images anywhere in your PDF"),
@@ -283,13 +238,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
supportsAutomate: false,
},
annotate: {
- icon: (
- <LocalIcon
- icon="edit-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="pencil" size="1.5rem" />,
name: t("home.annotate.title", "Annotate"),
component: lazy(() => import("@app/tools/Annotate")),
description: t(
@@ -309,9 +258,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
// Document Security
addPassword: {
- icon: (
- <LocalIcon icon="password-rounded" width="1.5rem" height="1.5rem" />
- ),
+ icon: <Icon name="password" size="1.5rem" />,
name: t("home.addPassword.title", "Add Password"),
component: lazy(() => import("@app/tools/AddPassword")),
description: t(
@@ -329,13 +276,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
synonyms: getSynonyms(t, "addPassword"),
},
watermark: {
- icon: (
- <LocalIcon
- icon="branding-watermark-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="watermark" size="1.5rem" />,
name: t("home.watermark.title", "Add Watermark"),
component: lazy(() => import("@app/tools/AddWatermark")),
maxFiles: -1,
@@ -354,13 +295,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
synonyms: getSynonyms(t, "watermark"),
},
addStamp: {
- icon: (
- <LocalIcon
- icon="approval-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="stamp" size="1.5rem" />,
name: t("home.addStamp.title", "Add Stamp to PDF"),
component: lazy(() => import("@app/tools/AddStamp")),
description: t(
@@ -379,13 +314,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
),
},
sanitize: {
- icon: (
- <LocalIcon
- icon="cleaning-services-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="brush-cleaning" size="1.5rem" />,
name: t("home.sanitize.title", "Sanitize"),
component: lazy(() => import("@app/tools/Sanitize")),
maxFiles: -1,
@@ -403,13 +332,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
synonyms: getSynonyms(t, "sanitize"),
},
flatten: {
- icon: (
- <LocalIcon
- icon="layers-clear-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="layers-minus" size="1.5rem" />,
name: t("home.flatten.title", "Flatten"),
component: lazy(() => import("@app/tools/Flatten")),
description: t(
@@ -427,13 +350,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
synonyms: getSynonyms(t, "flatten"),
},
unlockPDFForms: {
- icon: (
- <LocalIcon
- icon="preview-off-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="file-lock-open" size="1.5rem" />,
name: t("home.unlockPDFForms.title", "Unlock PDF Forms"),
component: lazy(() => import("@app/tools/UnlockPdfForms")),
description: t(
@@ -449,13 +366,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
automationSettings: null,
},
formFill: {
- icon: (
- <LocalIcon
- icon="text-fields-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="form-input" size="1.5rem" />,
name: t("home.formFill.title", "Form Editor"),
component: lazy(() => import("@app/tools/formFill/FormFill")),
description: t(
@@ -483,13 +394,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
],
},
autoFormDetection: {
- icon: (
- <LocalIcon
- icon="document-scanner-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="form-scan" size="1.5rem" />,
name: t("home.autoFormDetection.title", "Auto Form Detection"),
component: lazy(
() => import("@app/tools/autoFormDetection/AutoFormDetection"),
@@ -523,7 +428,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
supportsAutomate: true,
},
changePermissions: {
- icon: <LocalIcon icon="lock-outline" width="1.5rem" height="1.5rem" />,
+ icon: <Icon name="lock" size="1.5rem" />,
name: t("home.changePermissions.title", "Change Permissions"),
component: lazy(() => import("@app/tools/ChangePermissions")),
description: t(
@@ -542,13 +447,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
synonyms: getSynonyms(t, "changePermissions"),
},
getPdfInfo: {
- icon: (
- <LocalIcon
- icon="fact-check-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="clipboard-check" size="1.5rem" />,
name: t("home.getPdfInfo.title", "Get ALL Info on PDF"),
component: lazy(() => import("@app/tools/GetPdfInfo")),
description: t(
@@ -564,13 +463,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
maxFiles: 1,
},
validateSignature: {
- icon: (
- <LocalIcon
- icon="verified-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="badge-check" size="1.5rem" />,
name: t("home.validateSignature.title", "Validate PDF Signature"),
component: lazy(() => import("@app/tools/ValidateSignature")),
description: t(
@@ -591,13 +484,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
// Document Review
read: {
- icon: (
- <LocalIcon
- icon="article-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="file-text" size="1.5rem" />,
name: t("home.read.title", "Read"),
component: null,
workbench: "viewer",
@@ -613,13 +500,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
automationSettings: null,
},
changeMetadata: {
- icon: (
- <LocalIcon
- icon="assignment-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="clipboard-list" size="1.5rem" />,
name: t("home.changeMetadata.title", "Change Metadata"),
component: lazy(() => import("@app/tools/ChangeMetadata")),
description: t(
@@ -638,7 +519,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
synonyms: getSynonyms(t, "changeMetadata"),
},
editTableOfContents: {
- icon: <LocalIcon icon="toc-rounded" width="1.5rem" height="1.5rem" />,
+ icon: <Icon name="table-of-contents" size="1.5rem" />,
name: t("home.editTableOfContents.title", "Edit Table of Contents"),
component: lazy(() => import("@app/tools/EditTableOfContents")),
description: t(
@@ -657,7 +538,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
// Page Formatting
crop: {
- icon: <LocalIcon icon="crop-rounded" width="1.5rem" height="1.5rem" />,
+ icon: <Icon name="crop" size="1.5rem" />,
name: t("home.crop.title", "Crop PDF"),
component: lazy(() => import("@app/tools/Crop")),
description: t(
@@ -674,13 +555,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
),
},
rotate: {
- icon: (
- <LocalIcon
- icon="rotate-right-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="rotate-cw" size="1.5rem" />,
name: t("home.rotate.title", "Rotate"),
component: lazy(() => import("@app/tools/Rotate")),
description: t("home.rotate.desc", "Easily rotate your PDFs."),
@@ -695,13 +570,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
synonyms: getSynonyms(t, "rotate"),
},
autoRotate: {
- icon: (
- <LocalIcon
- icon="screen-rotation-alt-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="rotate-cw-square" size="1.5rem" />,
name: t("home.autoRotate.title", "Auto Rotate"),
component: lazy(() => import("@app/tools/AutoRotate")),
description: t(
@@ -720,13 +589,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
synonyms: getSynonyms(t, "autoRotate"),
},
split: {
- icon: (
- <LocalIcon
- icon="content-cut-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="scissors" size="1.5rem" />,
name: t("home.split.title", "Split"),
component: lazy(() => import("@app/tools/Split")),
description: t("home.split.desc", "Split PDFs into multiple documents"),
@@ -740,9 +603,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
synonyms: getSynonyms(t, "split"),
},
reorganizePages: {
- icon: (
- <LocalIcon icon="move-down-rounded" width="1.5rem" height="1.5rem" />
- ),
+ icon: <Icon name="move-item-down" size="1.5rem" />,
name: t("home.reorganizePages.title", "Reorganize Pages"),
component: lazy(() => import("@app/tools/ReorganizePages")),
description: t(
@@ -760,9 +621,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
),
},
scalePages: {
- icon: (
- <LocalIcon icon="crop-free-rounded" width="1.5rem" height="1.5rem" />
- ),
+ icon: <Icon name="scan" size="1.5rem" />,
name: t("home.scalePages.title", "Adjust page size/scale"),
component: lazy(() => import("@app/tools/AdjustPageScale")),
description: t(
@@ -781,7 +640,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
synonyms: getSynonyms(t, "scalePages"),
},
addPageNumbers: {
- icon: <LocalIcon icon="123-rounded" width="1.5rem" height="1.5rem" />,
+ icon: <Icon name="file-digit" size="1.5rem" />,
name: t("home.addPageNumbers.title", "Add Page Numbers"),
component: lazy(() => import("@app/tools/AddPageNumbers")),
description: t(
@@ -800,13 +659,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
synonyms: getSynonyms(t, "addPageNumbers"),
},
pageLayout: {
- icon: (
- <LocalIcon
- icon="dashboard-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="layout-dashboard" size="1.5rem" />,
name: t("home.pageLayout.title", "Multi-Page Layout"),
component: lazy(() => import("@app/tools/PageLayout")),
description: t(
@@ -824,13 +677,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
synonyms: getSynonyms(t, "pageLayout"),
},
bookletImposition: {
- icon: (
- <LocalIcon
- icon="menu-book-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="book-open" size="1.5rem" />,
name: t("home.bookletImposition.title", "Booklet Imposition"),
component: lazy(() => import("@app/tools/BookletImposition")),
operationConfig: asRegistryConfig(bookletImpositionOperationConfig),
@@ -847,13 +694,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
endpoints: ["booklet-imposition"],
},
pdfToSinglePage: {
- icon: (
- <LocalIcon
- icon="looks-one-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="single-page" size="1.5rem" />,
name: t("home.pdfToSinglePage.title", "PDF to Single Large Page"),
component: lazy(() => import("@app/tools/SingleLargePage")),
@@ -870,9 +711,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
automationSettings: null,
},
addAttachments: {
- icon: (
- <LocalIcon icon="attachment-rounded" width="1.5rem" height="1.5rem" />
- ),
+ icon: <Icon name="paperclip" size="1.5rem" />,
name: t("home.addAttachments.title", "Add Attachments"),
component: lazy(() => import("@app/tools/AddAttachments")),
description: t(
@@ -891,13 +730,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
),
},
createPortfolio: {
- icon: (
- <LocalIcon
- icon="library-add-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="library" size="1.5rem" />,
name: t("home.createPortfolio.title", "Create Portfolio"),
component: lazy(() => import("@app/tools/CreatePortfolio")),
description: t(
@@ -919,9 +752,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
// Extraction
extractPages: {
- icon: (
- <LocalIcon icon="upload-rounded" width="1.5rem" height="1.5rem" />
- ),
+ icon: <Icon name="upload" size="1.5rem" />,
name: t("home.extractPages.title", "Extract Pages"),
component: lazy(() => import("@app/tools/ExtractPages")),
description: t(
@@ -939,13 +770,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
endpoints: ["rearrange-pages"],
},
extractImages: {
- icon: (
- <LocalIcon
- icon="photo-library-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="images" size="1.5rem" />,
name: t("home.extractImages.title", "Extract Images"),
component: lazy(() => import("@app/tools/ExtractImages")),
description: t(
@@ -967,13 +792,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
// Removal
removePages: {
- icon: (
- <LocalIcon
- icon="delete-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="trash" size="1.5rem" />,
name: t("home.removePages.title", "Remove Pages"),
component: lazy(() => import("@app/tools/RemovePages")),
description: t(
@@ -991,13 +810,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
),
},
removeBlanks: {
- icon: (
- <LocalIcon
- icon="scan-delete-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="file-x" size="1.5rem" />,
name: t("home.removeBlanks.title", "Remove Blank Pages"),
component: lazy(() => import("@app/tools/RemoveBlanks")),
description: t(
@@ -1016,13 +829,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
),
},
removeAnnotations: {
- icon: (
- <LocalIcon
- icon="thread-unread-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="annotation-off" size="1.5rem" />,
name: t("home.removeAnnotations.title", "Remove Annotations"),
component: lazy(() => import("@app/tools/RemoveAnnotations")),
description: t(
@@ -1038,13 +845,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
synonyms: getSynonyms(t, "removeAnnotations"),
},
removeImage: {
- icon: (
- <LocalIcon
- icon="remove-selection-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="remove-selection" size="1.5rem" />,
name: t("home.removeImage.title", "Remove Images"),
component: lazy(() => import("@app/tools/RemoveImage")),
description: t(
@@ -1060,13 +861,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
automationSettings: null,
},
removePassword: {
- icon: (
- <LocalIcon
- icon="lock-open-right-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="lock-open-password" size="1.5rem" />,
name: t("home.removePassword.title", "Remove Password"),
component: lazy(() => import("@app/tools/RemovePassword")),
description: t(
@@ -1085,13 +880,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
synonyms: getSynonyms(t, "removePassword"),
},
removeCertSign: {
- icon: (
- <LocalIcon
- icon="remove-moderator-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="shield-off" size="1.5rem" />,
name: t("home.removeCertSign.title", "Remove Certificate Sign"),
component: lazy(() => import("@app/tools/RemoveCertificateSign")),
description: t(
@@ -1110,9 +899,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
// Automation
automate: {
- icon: (
- <LocalIcon icon="automation-outline" width="1.5rem" height="1.5rem" />
- ),
+ icon: <Icon name="waypoints" size="1.5rem" />,
name: t("home.automate.title", "Automate"),
component: lazy(() => import("@app/tools/Automate")),
description: t(
@@ -1128,9 +915,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
automationSettings: null,
},
autoRename: {
- icon: (
- <LocalIcon icon="match-word-rounded" width="1.5rem" height="1.5rem" />
- ),
+ icon: <Icon name="whole-word" size="1.5rem" />,
name: t("home.autoRename.title", "Auto Rename PDF File"),
component: lazy(() => import("@app/tools/AutoRename")),
maxFiles: -1,
@@ -1148,9 +933,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
// Advanced Formatting
adjustContrast: {
- icon: (
- <LocalIcon icon="palette-outline" width="1.5rem" height="1.5rem" />
- ),
+ icon: <Icon name="palette" size="1.5rem" />,
name: t("home.adjustContrast.title", "Adjust Colors/Contrast"),
component: lazy(() => import("@app/tools/AdjustContrast")),
description: t(
@@ -1169,13 +952,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
synonyms: getSynonyms(t, "adjustContrast"),
},
repair: {
- icon: (
- <LocalIcon
- icon="build-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="wrench" size="1.5rem" />,
name: t("home.repair.title", "Repair"),
component: lazy(() => import("@app/tools/Repair")),
description: t(
@@ -1191,13 +968,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
automationSettings: null,
},
scannerImageSplit: {
- icon: (
- <LocalIcon
- icon="scanner-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="table-columns-split" size="1.5rem" />,
name: t(
"home.scannerImageSplit.title",
"Detect & Split Scanned Photos",
@@ -1219,13 +990,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
synonyms: getSynonyms(t, "scannerImageSplit"),
},
overlayPdfs: {
- icon: (
- <LocalIcon
- icon="layers-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="overlay-pages" size="1.5rem" />,
name: t("home.overlay-pdfs.title", "Overlay PDFs"),
component: lazy(() => import("@app/tools/OverlayPdfs")),
description: t(
@@ -1242,13 +1007,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
),
},
replaceColor: {
- icon: (
- <LocalIcon
- icon="format-color-fill-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="paint-bucket" size="1.5rem" />,
name: t("home.replaceColor.title", "Replace & Invert Color"),
component: lazy(() => import("@app/tools/ReplaceColor")),
description: t(
@@ -1267,13 +1026,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
synonyms: getSynonyms(t, "replaceColor"),
},
scannerEffect: {
- icon: (
- <LocalIcon
- icon="scanner-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="scan-line" size="1.5rem" />,
name: t("home.scannerEffect.title", "Scanner Effect"),
component: null,
description: t(
@@ -1293,9 +1046,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
// Developer Tools
showJS: {
- icon: (
- <LocalIcon icon="javascript-rounded" width="1.5rem" height="1.5rem" />
- ),
+ icon: <Icon name="braces" size="1.5rem" />,
name: t("home.showJS.title", "Show JavaScript"),
component: lazy(() => import("@app/tools/ShowJS")),
description: t(
@@ -1312,10 +1063,9 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
},
devApi: {
icon: (
- <LocalIcon
- icon="open-in-new-rounded"
- width="1.5rem"
- height="1.5rem"
+ <Icon
+ name="external-link"
+ size="1.5rem"
style={{ color: "var(--c-accent-fg, var(--c-primary))" }}
/>
),
@@ -1332,10 +1082,9 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
},
devFolderScanning: {
icon: (
- <LocalIcon
- icon="open-in-new-rounded"
- width="1.5rem"
- height="1.5rem"
+ <Icon
+ name="external-link"
+ size="1.5rem"
style={{ color: "var(--c-accent-fg, var(--c-primary))" }}
/>
),
@@ -1355,10 +1104,9 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
},
devSsoGuide: {
icon: (
- <LocalIcon
- icon="open-in-new-rounded"
- width="1.5rem"
- height="1.5rem"
+ <Icon
+ name="external-link"
+ size="1.5rem"
style={{ color: "var(--c-accent-fg, var(--c-primary))" }}
/>
),
@@ -1375,10 +1123,9 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
},
devAirgapped: {
icon: (
- <LocalIcon
- icon="open-in-new-rounded"
- width="1.5rem"
- height="1.5rem"
+ <Icon
+ name="external-link"
+ size="1.5rem"
style={{ color: "var(--c-accent-fg, var(--c-primary))" }}
/>
),
@@ -1399,9 +1146,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
// Recommended Tools
compare: {
- icon: (
- <LocalIcon icon="compare-rounded" width="1.5rem" height="1.5rem" />
- ),
+ icon: <Icon name="image-compare" size="1.5rem" />,
name: t("home.compare.title", "Compare"),
component: lazy(() => import("@app/tools/Compare")),
description: t(
@@ -1418,13 +1163,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
supportsAutomate: false,
},
classify: {
- icon: (
- <LocalIcon
- icon="label-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="tag" size="1.5rem" />,
name: t("home.classify.title", "Classify"),
// No interactive UI: this is a pipeline step, registered so a pipeline can name it.
component: null,
@@ -1442,13 +1181,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
hiddenFromToolList: true,
},
compress: {
- icon: (
- <LocalIcon
- icon="zoom-in-map-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="shrink" size="1.5rem" />,
name: t("home.compress.title", "Compress"),
component: lazy(() => import("@app/tools/Compress")),
description: t(
@@ -1466,9 +1199,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
synonyms: getSynonyms(t, "compress"),
},
convert: {
- icon: (
- <LocalIcon icon="sync-alt-rounded" width="1.5rem" height="1.5rem" />
- ),
+ icon: <Icon name="file-convert" size="1.5rem" />,
name: t("home.convert.title", "Convert"),
component: lazy(() => import("@app/tools/Convert")),
description: t(
@@ -1506,13 +1237,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
},
ocr: {
- icon: (
- <LocalIcon
- icon="quick-reference-all-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="scan-text" size="1.5rem" />,
name: t("home.ocr.title", "OCR"),
component: lazy(() => import("@app/tools/OCR")),
description: t(
@@ -1530,13 +1255,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
synonyms: getSynonyms(t, "ocr"),
},
redact: {
- icon: (
- <LocalIcon
- icon="visibility-off-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="eye-off" size="1.5rem" />,
name: t("home.redact.title", "Redact"),
component: lazy(() => import("@app/tools/Redact")),
description: t(
diff --git a/frontend/editor/src/core/hooks/tools/automate/useSuggestedAutomations.ts b/frontend/editor/src/core/hooks/tools/automate/useSuggestedAutomations.ts
index 541e8234dc..59a5de9046 100644
--- a/frontend/editor/src/core/hooks/tools/automate/useSuggestedAutomations.ts
+++ b/frontend/editor/src/core/hooks/tools/automate/useSuggestedAutomations.ts
@@ -1,36 +1,8 @@
import { useMemo } from "react";
import { useTranslation } from "react-i18next";
-import React from "react";
-import LocalIcon from "@app/components/shared/LocalIcon";
import { SuggestedAutomation } from "@app/types/automation";
import { SPLIT_METHODS } from "@app/constants/splitConstants";
-// Create icon components
-const CompressIcon = () =>
- React.createElement(LocalIcon, {
- icon: "compress",
- width: "1.5rem",
- height: "1.5rem",
- });
-const SecurityIcon = () =>
- React.createElement(LocalIcon, {
- icon: "security",
- width: "1.5rem",
- height: "1.5rem",
- });
-const StarIcon = () =>
- React.createElement(LocalIcon, {
- icon: "star",
- width: "1.5rem",
- height: "1.5rem",
- });
-const PrivacyIcon = () =>
- React.createElement(LocalIcon, {
- icon: "shield-lock",
- width: "1.5rem",
- height: "1.5rem",
- });
-
export function useSuggestedAutomations(): SuggestedAutomation[] {
const { t } = useTranslation();
@@ -93,7 +65,7 @@ export function useSuggestedAutomations(): SuggestedAutomation[] {
],
createdAt: now,
updatedAt: now,
- icon: SecurityIcon,
+ icon: "shield-check",
},
{
id: "pre-publish-sanitization",
@@ -156,7 +128,7 @@ export function useSuggestedAutomations(): SuggestedAutomation[] {
],
createdAt: now,
updatedAt: now,
- icon: PrivacyIcon,
+ icon: "shield",
},
{
id: "email-preparation",
@@ -206,7 +178,7 @@ export function useSuggestedAutomations(): SuggestedAutomation[] {
],
createdAt: now,
updatedAt: now,
- icon: CompressIcon,
+ icon: "shrink",
},
{
id: "secure-workflow",
@@ -248,7 +220,7 @@ export function useSuggestedAutomations(): SuggestedAutomation[] {
],
createdAt: now,
updatedAt: now,
- icon: SecurityIcon,
+ icon: "shield-check",
},
{
id: "process-images",
@@ -285,7 +257,7 @@ export function useSuggestedAutomations(): SuggestedAutomation[] {
],
createdAt: now,
updatedAt: now,
- icon: StarIcon,
+ icon: "star",
},
];
}, [t]);
diff --git a/frontend/editor/src/core/hooks/useSuperSearch.ts b/frontend/editor/src/core/hooks/useSuperSearch.ts
index 02957e3fc3..a8b2b66c36 100644
--- a/frontend/editor/src/core/hooks/useSuperSearch.ts
+++ b/frontend/editor/src/core/hooks/useSuperSearch.ts
@@ -349,12 +349,12 @@ export function rankSettingsResults(
(e) => e.keywords?.join(" ") ?? "",
],
);
- const rows = rowMatches.map(({ item, score }) => ({
+ const rows: SuperSearchResult[] = rowMatches.map(({ item, score }) => ({
key: `setting:${item.section}:${item.anchor}`,
group: "settings",
title: t(item.labelKey, item.labelFallback),
subtitle: sectionLabelFor.get(item.section),
- iconName: "settings-rounded",
+ iconName: "settings",
score: score + 1, // nudge rows above bare section matches
onSelect: () => openSettings(item.section, item.anchor),
}));
@@ -370,15 +370,17 @@ export function rankSettingsResults(
(s) => s.labelFallback,
(s) => s.keywords?.join(" ") ?? "",
]);
- const sections = sectionMatches.map(({ item, score }) => ({
- key: `setting-section:${item.key}`,
- group: "settings",
- title: t(item.labelKey, item.labelFallback),
- subtitle: groupTitle(item),
- iconName: "settings-rounded",
- score,
- onSelect: () => openSettings(item.key),
- }));
+ const sections: SuperSearchResult[] = sectionMatches.map(
+ ({ item, score }) => ({
+ key: `setting-section:${item.key}`,
+ group: "settings",
+ title: t(item.labelKey, item.labelFallback),
+ subtitle: groupTitle(item),
+ iconName: "settings",
+ score,
+ onSelect: () => openSettings(item.key),
+ }),
+ );
// Content matches: sections whose rendered copy contains the query, so terms
// with no curated keyword ("SMTP", a field label) still find their section.
@@ -389,7 +391,7 @@ export function rankSettingsResults(
...sectionMatches.map(({ item }) => item.key),
...rowMatches.map(({ item }) => item.section),
]);
- const contentMatches =
+ const contentMatches: SuperSearchResult[] =
trimmed.length < 3
? []
: visibleSections
@@ -405,7 +407,7 @@ export function rankSettingsResults(
group: "settings",
title: t(s.labelKey, s.labelFallback),
subtitle: group ? `${group} · ${snippet}` : snippet,
- iconName: "settings-rounded",
+ iconName: "settings",
// Always below the weakest possible label/keyword match.
score: FUZZY_MIN_SCORE - 10,
onSelect: () => openSettings(s.key),
@@ -438,9 +440,7 @@ export function rankProcessorResults(
key: `processor:${item.id}`,
group: "processor",
title: t(item.labelKey, item.labelFallback),
- // Must exist in the bundled Material Symbols set (LocalIcon falls back
- // to a network fetch for unknown names — blank when self-hosted offline).
- iconName: "grid-view",
+ iconName: "layout-grid",
score,
onSelect: () => selectEntry(item),
}));
diff --git a/frontend/editor/src/core/icons/LICENSE-lucide.txt b/frontend/editor/src/core/icons/LICENSE-lucide.txt
index 6456b68013..aa6d8c596b 100644
--- a/frontend/editor/src/core/icons/LICENSE-lucide.txt
+++ b/frontend/editor/src/core/icons/LICENSE-lucide.txt
@@ -24,17 +24,48 @@ Lucide icon geometry used in this project. Two places rely on this notice:
the filled state leaves the inner square as a hole)
file-pdf.svg the page outline M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8
- a2.4 2.4 0 0 1 1.704.706l3.588 3.588
+ file-convert.svg a2.4 2.4 0 0 1 1.704.706l3.588 3.588
A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z
the corner fold M14 2v5a1 1 0 0 0 1 1h5
- (from lucide "file"; the PDF letterforms are ours)
+ (from lucide "file"; the PDF letterforms and the exchange
+ arrows are ours)
+
+ overlay-pages.svg
+ both page outlines and the corner fold are the same lucide
+ "file" geometry above, scaled to 13x15 and 15x13 boxes
+
+ file-lock-open.svg
+ the page outline M4 9.8V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1
+ 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8
+ v12a2 2 0 0 1-2 2h-3
+ the corner fold M14 2v5a1 1 0 0 0 1 1h5
+ the padlock body rect 8x5 at 3,17 rx 1
+ (from lucide "file-lock"; the sprung shackle is ours, cut
+ from lucide "lock-open")
+
+ lock-open-password.svg
+ the padlock body rect 18x11 at 3,11 rx 2
+ the shackle M7 11V7a5 5 0 0 1 9.9-1
+ (from lucide "lock-open"; the three dots are ours)
+
+ image-compare.svg
+ the photo frame rect 18x18 at 3,3 rx 2
+ (from lucide "image"; the divider, the two suns and the
+ two hills are ours)
+
+ form-scan.svg the corner M3 7V5a2 2 0 0 1 2-2h2
+ brackets M17 3h2a2 2 0 0 1 2 2v2
+ M21 17v2a2 2 0 0 1-2 2h-2
+ M7 21H5a2 2 0 0 1-2-2v-2
+ (from lucide "scan"; the page inside follows lucide's
+ "file" shape at 12x14, and the field rules are ours)
polyline.svg the zigzag m19 9-5 5-4-4-3 3
(from lucide "chart-line" with its axis dropped and the
zigzag scaled about its centre to fill the box)
-None of the source icons appears in the Feather-derived list below, so only
-the ISC terms apply to them. Keep this file for as long as either of those svgs, or the
+None of the source icons appears in the Feather-derived list below, so only the
+ISC terms apply to them. Keep this file for as long as any of those svgs, or the
icons.ts maps, remains. task frontend:lint:icons fails if it goes missing.
The verbatim upstream notice follows.
diff --git a/frontend/editor/src/core/icons/icons.ts b/frontend/editor/src/core/icons/icons.ts
index bf0558419d..4d0d15ec6b 100644
--- a/frontend/editor/src/core/icons/icons.ts
+++ b/frontend/editor/src/core/icons/icons.ts
@@ -127,6 +127,7 @@ import FolderPlus from "lucide-static/icons/folder-plus.svg?react";
import FolderUp from "lucide-static/icons/folder-up.svg?react";
import Folders from "lucide-static/icons/folders.svg?react";
import Forklift from "lucide-static/icons/forklift.svg?react";
+import FormInput from "lucide-static/icons/form-input.svg?react";
import Fullscreen from "lucide-static/icons/fullscreen.svg?react";
import Gauge from "lucide-static/icons/gauge.svg?react";
import Gavel from "lucide-static/icons/gavel.svg?react";
@@ -136,6 +137,7 @@ import GitBranch from "lucide-static/icons/git-branch.svg?react";
import GitFork from "lucide-static/icons/git-fork.svg?react";
import Globe from "lucide-static/icons/globe.svg?react";
import Grape from "lucide-static/icons/grape.svg?react";
+import Grid2x2Plus from "lucide-static/icons/grid-2x2-plus.svg?react";
import GripVertical from "lucide-static/icons/grip-vertical.svg?react";
import Hand from "lucide-static/icons/hand.svg?react";
import Handshake from "lucide-static/icons/handshake.svg?react";
@@ -247,6 +249,7 @@ import SaveAll from "lucide-static/icons/save-all.svg?react";
import Scale from "lucide-static/icons/scale.svg?react";
import Scan from "lucide-static/icons/scan.svg?react";
import ScanLine from "lucide-static/icons/scan-line.svg?react";
+import ScanText from "lucide-static/icons/scan-text.svg?react";
import School from "lucide-static/icons/school.svg?react";
import Scissors from "lucide-static/icons/scissors.svg?react";
import ScrollText from "lucide-static/icons/scroll-text.svg?react";
@@ -289,6 +292,7 @@ import Sun from "lucide-static/icons/sun.svg?react";
import Sunset from "lucide-static/icons/sunset.svg?react";
import Syringe from "lucide-static/icons/syringe.svg?react";
import Table from "lucide-static/icons/table.svg?react";
+import TableColumnsSplit from "lucide-static/icons/table-columns-split.svg?react";
import TableOfContents from "lucide-static/icons/table-of-contents.svg?react";
import TabletSmartphone from "lucide-static/icons/tablet-smartphone.svg?react";
import Tag from "lucide-static/icons/tag.svg?react";
@@ -327,6 +331,7 @@ import Volume2 from "lucide-static/icons/volume-2.svg?react";
import Wallet from "lucide-static/icons/wallet.svg?react";
import WalletCards from "lucide-static/icons/wallet-cards.svg?react";
import Warehouse from "lucide-static/icons/warehouse.svg?react";
+import Waypoints from "lucide-static/icons/waypoints.svg?react";
import WholeWord from "lucide-static/icons/whole-word.svg?react";
import Workflow from "lucide-static/icons/workflow.svg?react";
import Webhook from "lucide-static/icons/webhook.svg?react";
@@ -340,11 +345,18 @@ import AnnotationOff from "@app/icons/svg/stirling/annotation-off.svg?react";
import Api from "@app/icons/svg/stirling/api.svg?react";
import Cpu from "@app/icons/svg/stirling/cpu.svg?react";
import Editor from "@app/icons/svg/stirling/editor.svg?react";
+import FileConvert from "@app/icons/svg/stirling/file-convert.svg?react";
import FileHtml from "@app/icons/svg/stirling/file-html.svg?react";
+import FileLockOpen from "@app/icons/svg/stirling/file-lock-open.svg?react";
+import FormScan from "@app/icons/svg/stirling/form-scan.svg?react";
import FilePdf from "@app/icons/svg/stirling/file-pdf.svg?react";
import Ftp from "@app/icons/svg/stirling/ftp.svg?react";
+import ImageCompare from "@app/icons/svg/stirling/image-compare.svg?react";
import LineWeight from "@app/icons/svg/stirling/line-weight.svg?react";
+import LockOpenPassword from "@app/icons/svg/stirling/lock-open-password.svg?react";
import MoveItemDown from "@app/icons/svg/stirling/move-item-down.svg?react";
+import OverlayPages from "@app/icons/svg/stirling/overlay-pages.svg?react";
+import Password from "@app/icons/svg/stirling/password.svg?react";
import Polyline from "@app/icons/svg/stirling/polyline.svg?react";
import RadioChecked from "@app/icons/svg/stirling/radio-checked.svg?react";
import RemoveSelection from "@app/icons/svg/stirling/remove-selection.svg?react";
@@ -519,6 +531,7 @@ export const ICONS = {
"folder-up": { Component: FolderUp, kind: "lucide" },
folders: { Component: Folders, kind: "lucide" },
forklift: { Component: Forklift, kind: "lucide" },
+ "form-input": { Component: FormInput, kind: "lucide" },
fullscreen: { Component: Fullscreen, kind: "lucide" },
gauge: { Component: Gauge, kind: "lucide" },
gavel: { Component: Gavel, kind: "lucide" },
@@ -528,6 +541,7 @@ export const ICONS = {
"git-fork": { Component: GitFork, kind: "lucide" },
globe: { Component: Globe, kind: "lucide" },
grape: { Component: Grape, kind: "lucide" },
+ "grid-2x2-plus": { Component: Grid2x2Plus, kind: "lucide" },
"grip-vertical": { Component: GripVertical, kind: "lucide" },
hand: { Component: Hand, kind: "lucide" },
handshake: { Component: Handshake, kind: "lucide" },
@@ -639,6 +653,7 @@ export const ICONS = {
scale: { Component: Scale, kind: "lucide" },
scan: { Component: Scan, kind: "lucide" },
"scan-line": { Component: ScanLine, kind: "lucide" },
+ "scan-text": { Component: ScanText, kind: "lucide" },
school: { Component: School, kind: "lucide" },
scissors: { Component: Scissors, kind: "lucide" },
"scroll-text": { Component: ScrollText, kind: "lucide" },
@@ -681,6 +696,7 @@ export const ICONS = {
sunset: { Component: Sunset, kind: "lucide" },
syringe: { Component: Syringe, kind: "lucide" },
table: { Component: Table, kind: "lucide" },
+ "table-columns-split": { Component: TableColumnsSplit, kind: "lucide" },
"table-of-contents": { Component: TableOfContents, kind: "lucide" },
"tablet-smartphone": { Component: TabletSmartphone, kind: "lucide" },
tag: { Component: Tag, kind: "lucide" },
@@ -719,6 +735,7 @@ export const ICONS = {
wallet: { Component: Wallet, kind: "lucide" },
"wallet-cards": { Component: WalletCards, kind: "lucide" },
warehouse: { Component: Warehouse, kind: "lucide" },
+ waypoints: { Component: Waypoints, kind: "lucide" },
"whole-word": { Component: WholeWord, kind: "lucide" },
workflow: { Component: Workflow, kind: "lucide" },
webhook: { Component: Webhook, kind: "lucide" },
@@ -731,11 +748,18 @@ export const ICONS = {
api: { Component: Api, kind: "stirling" },
cpu: { Component: Cpu, kind: "stirling" },
editor: { Component: Editor, kind: "stirling" },
+ "file-convert": { Component: FileConvert, kind: "stirling" },
"file-html": { Component: FileHtml, kind: "stirling" },
+ "file-lock-open": { Component: FileLockOpen, kind: "stirling" },
"file-pdf": { Component: FilePdf, kind: "stirling" },
+ "form-scan": { Component: FormScan, kind: "stirling" },
ftp: { Component: Ftp, kind: "stirling" },
+ "image-compare": { Component: ImageCompare, kind: "stirling" },
"line-weight": { Component: LineWeight, kind: "stirling" },
+ "lock-open-password": { Component: LockOpenPassword, kind: "stirling" },
"move-item-down": { Component: MoveItemDown, kind: "stirling" },
+ "overlay-pages": { Component: OverlayPages, kind: "stirling" },
+ password: { Component: Password, kind: "stirling" },
polyline: { Component: Polyline, kind: "stirling" },
"radio-checked": { Component: RadioChecked, kind: "stirling" },
"remove-selection": { Component: RemoveSelection, kind: "stirling" },
diff --git a/frontend/editor/src/core/icons/svg/stirling/file-convert.svg b/frontend/editor/src/core/icons/svg/stirling/file-convert.svg
new file mode 100644
index 0000000000..e5c16d003e
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/file-convert.svg
@@ -0,0 +1,10 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
+ <!-- The page outline and corner fold are Lucide geometry (ISC). Full notice and the exact
+ paths: src/core/icons/LICENSE-lucide.txt, which must stay with this file. -->
+ <path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" />
+ <path d="M14 2v5a1 1 0 0 0 1 1h5" />
+ <path d="M8 13h7" />
+ <path d="m13.5 11.5 1.5 1.5-1.5 1.5" />
+ <path d="M16 18H9" />
+ <path d="m10.5 16.5-1.5 1.5 1.5 1.5" />
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/file-lock-open.svg b/frontend/editor/src/core/icons/svg/stirling/file-lock-open.svg
new file mode 100644
index 0000000000..ddb051d842
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/file-lock-open.svg
@@ -0,0 +1,8 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
+ <!-- The page outline, corner fold and padlock body are Lucide geometry (ISC). Full notice and
+ the exact paths: src/core/icons/LICENSE-lucide.txt, which must stay with this file. -->
+ <path d="M4 9.8V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3" />
+ <path d="M14 2v5a1 1 0 0 0 1 1h5" />
+ <path d="M5 17v-2a2 2 0 0 1 3.96-.4" />
+ <rect width="8" height="5" x="3" y="17" rx="1" />
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/form-scan.svg b/frontend/editor/src/core/icons/svg/stirling/form-scan.svg
new file mode 100644
index 0000000000..e7aedc1ed9
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/form-scan.svg
@@ -0,0 +1,16 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
+ <!-- The four corner brackets are Lucide geometry (ISC). Full notice and the exact paths:
+ src/core/icons/LICENSE-lucide.txt, which must stay with this file. -->
+ <path d="M3 7V5a2 2 0 0 1 2-2h2" />
+ <path d="M17 3h2a2 2 0 0 1 2 2v2" />
+ <path d="M21 17v2a2 2 0 0 1-2 2h-2" />
+ <path d="M7 21H5a2 2 0 0 1-2-2v-2" />
+ <path d="M13.5 5H7.5A1.5 1.5 0 0 0 6 6.5v11A1.5 1.5 0 0 0 7.5 19h9a1.5 1.5 0 0 0 1.5-1.5V9.5Z" />
+ <path d="M13.5 5v3A1.5 1.5 0 0 0 15 9.5h3" />
+ <!-- Lighter than the frame, and on the group: <Icon> passes strokeWidth as a prop, so a root
+ stroke-width is overwritten and the field rules would render at the page's weight. -->
+ <g stroke-width="1.25">
+ <path d="M8.4 12.6h7.8" />
+ <path d="M8.4 16h4.6" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/image-compare.svg b/frontend/editor/src/core/icons/svg/stirling/image-compare.svg
new file mode 100644
index 0000000000..72d0792af0
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/image-compare.svg
@@ -0,0 +1,10 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
+ <!-- The photo frame is Lucide geometry (ISC). Full notice and the exact paths:
+ src/core/icons/LICENSE-lucide.txt, which must stay with this file. -->
+ <rect width="18" height="18" x="3" y="3" rx="2" ry="2" />
+ <path d="M12 3v18" />
+ <circle cx="7.4" cy="8" r="1.4" />
+ <path d="m3.4 17.2 2.7-2.7a1.8 1.8 0 0 1 2.5 0l2.4 2.4" />
+ <circle cx="16.6" cy="8" r="1.4" fill="currentColor" />
+ <path d="m12.5 17.4 2.7-2.7a1.8 1.8 0 0 1 2.5 0l2.9 2.9v.4a2 2 0 0 1-2 2h-6.1z" fill="currentColor" />
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/lock-open-password.svg b/frontend/editor/src/core/icons/svg/stirling/lock-open-password.svg
new file mode 100644
index 0000000000..17570b3b09
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/lock-open-password.svg
@@ -0,0 +1,9 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
+ <!-- The padlock body and sprung shackle are Lucide geometry (ISC). Full notice and the exact
+ paths: src/core/icons/LICENSE-lucide.txt, which must stay with this file. -->
+ <rect width="18" height="11" x="3" y="11" rx="2" ry="2" />
+ <path d="M7 11V7a5 5 0 0 1 9.9-1" />
+ <path d="M8 16.5h.01" />
+ <path d="M12 16.5h.01" />
+ <path d="M16 16.5h.01" />
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/overlay-pages.svg b/frontend/editor/src/core/icons/svg/stirling/overlay-pages.svg
new file mode 100644
index 0000000000..4b7b2b6407
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/overlay-pages.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
+ <!-- Both page outlines follow Lucide's file geometry (ISC). Full notice and the exact paths:
+ src/core/icons/LICENSE-lucide.txt, which must stay with this file. -->
+ <path d="M9 22a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h5.2a2 2 0 0 1 1.4.6l2.8 2.8a2 2 0 0 1 .6 1.4V20a2 2 0 0 1-2 2z" />
+ <path d="M14 7v3.5a1.5 1.5 0 0 0 1.5 1.5H19" />
+ <path d="M4 15a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h6l3 3" stroke-dasharray="4 3" />
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/password.svg b/frontend/editor/src/core/icons/svg/stirling/password.svg
new file mode 100644
index 0000000000..7c49dc1100
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/password.svg
@@ -0,0 +1,16 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
+ <rect width="20" height="14" x="2" y="5" rx="2" />
+ <!-- Hairline, and on the group rather than the root: <Icon> passes strokeWidth as a prop, so a
+ root stroke-width is overwritten and the asterisks would render at the frame's weight. -->
+ <g stroke-width="0.55">
+ <path d="M6.8 10.3v3.4" />
+ <path d="m5.33 11.15 2.94 1.7" />
+ <path d="m8.27 11.15-2.94 1.7" />
+ <path d="M12 10.3v3.4" />
+ <path d="m10.53 11.15 2.94 1.7" />
+ <path d="m13.47 11.15-2.94 1.7" />
+ <path d="M17.2 10.3v3.4" />
+ <path d="m15.73 11.15 2.94 1.7" />
+ <path d="m18.67 11.15-2.94 1.7" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/pages/HomePage.tsx b/frontend/editor/src/core/pages/HomePage.tsx
index a216640d01..7706681d07 100644
--- a/frontend/editor/src/core/pages/HomePage.tsx
+++ b/frontend/editor/src/core/pages/HomePage.tsx
@@ -694,7 +694,7 @@ export default function HomePage() {
}
}}
>
- <Icon name="workflow" size="1.5rem" />
+ <Icon name="waypoints" size="1.5rem" />
<span className="mobile-bottom-button-label">
{t("quickAccess.automate", "Automate")}
</span>
diff --git a/frontend/editor/src/core/types/automation.ts b/frontend/editor/src/core/types/automation.ts
index d73a3a8cef..fff6c17942 100644
--- a/frontend/editor/src/core/types/automation.ts
+++ b/frontend/editor/src/core/types/automation.ts
@@ -1,9 +1,9 @@
+import type { IconName } from "@app/ui/Icon";
+
/**
* Types for automation functionality
*/
-import { type ComponentType } from "react";
-
export interface AutomationOperation {
operation: string;
parameters: Record<string, unknown>;
@@ -67,5 +67,5 @@ export interface SuggestedAutomation {
operations: AutomationOperation[];
createdAt: string;
updatedAt: string;
- icon: ComponentType;
+ icon: IconName;
}
diff --git a/frontend/editor/src/core/types/superSearch.ts b/frontend/editor/src/core/types/superSearch.ts
index 51c4e8c597..cc37146d8f 100644
--- a/frontend/editor/src/core/types/superSearch.ts
+++ b/frontend/editor/src/core/types/superSearch.ts
@@ -1,4 +1,5 @@
import type React from "react";
+import type { IconName } from "@app/ui/Icon";
/**
* The super search's shared contract: what a results provider returns and the
@@ -17,8 +18,8 @@ export interface SuperSearchResult {
group: string;
title: string;
subtitle?: string;
- /** LocalIcon name (files/settings); tools provide a React node via `icon`. */
- iconName?: string;
+ /** Registry icon name (files/settings); tools provide a node via `icon`. */
+ iconName?: IconName;
icon?: React.ReactNode;
score: number;
onSelect: () => void | Promise<void>;
diff --git a/frontend/editor/src/proprietary/components/policies/ClassificationLabelsSection.tsx b/frontend/editor/src/proprietary/components/policies/ClassificationLabelsSection.tsx
index 0b89566c62..07f1c88659 100644
--- a/frontend/editor/src/proprietary/components/policies/ClassificationLabelsSection.tsx
+++ b/frontend/editor/src/proprietary/components/policies/ClassificationLabelsSection.tsx
@@ -3,10 +3,8 @@
import { useState } from "react";
import { useTranslation } from "react-i18next";
-import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
-import KeyboardArrowRightIcon from "@mui/icons-material/KeyboardArrowRight";
+import { Icon } from "@app/ui/Icon";
import { Button, Card, Chip } from "@app/ui";
-import { LocalIcon } from "@app/components/shared/LocalIcon";
import {
DEFAULT_CLASSIFICATION_LABELS,
LABEL_FAMILIES,
@@ -54,11 +52,11 @@ export function ClassificationLabelsSection() {
leftSection={
<span className="classification-category-lead">
{open ? (
- <KeyboardArrowDownIcon sx={{ fontSize: "1.1rem" }} />
+ <Icon name="chevron-down" size={"1.1rem"} />
) : (
- <KeyboardArrowRightIcon sx={{ fontSize: "1.1rem" }} />
+ <Icon name="chevron-right" size={"1.1rem"} />
)}
- <LocalIcon icon={family.icon} width="1.1rem" />
+ <Icon name={family.icon} size="1.1rem" />
<span className="classification-category-name">
{t(`classification.families.${family.id}`, family.name)}
</span>
diff --git a/frontend/editor/src/proprietary/components/shared/FileSidebarGroupControls.tsx b/frontend/editor/src/proprietary/components/shared/FileSidebarGroupControls.tsx
index 1b37a13bb7..4afadc3e75 100644
--- a/frontend/editor/src/proprietary/components/shared/FileSidebarGroupControls.tsx
+++ b/frontend/editor/src/proprietary/components/shared/FileSidebarGroupControls.tsx
@@ -5,8 +5,7 @@
import { useMemo, useState, useSyncExternalStore } from "react";
import { useTranslation } from "react-i18next";
-import TuneIcon from "@mui/icons-material/Tune";
-import RestartAltIcon from "@mui/icons-material/RestartAlt";
+import { Icon } from "@app/ui/Icon";
import { Modal } from "@app/ui/Modal";
import { Button } from "@app/ui/Button";
import { ActionIcon } from "@app/ui/ActionIcon";
@@ -68,7 +67,7 @@ export function FileSidebarGroupControls({
aria-label={t("fileSidebar.customizeGroups", "Customize groups")}
data-testid="customize-groups"
>
- <TuneIcon sx={{ fontSize: "1rem" }} />
+ <Icon name="sliders-horizontal" size={"1rem"} />
</ActionIcon>
<Modal
@@ -85,7 +84,7 @@ export function FileSidebarGroupControls({
<Button
variant="tertiary"
size="sm"
- leftSection={<RestartAltIcon sx={{ fontSize: "1rem" }} />}
+ leftSection={<Icon name="rotate-ccw" size={"1rem"} />}
onClick={resetHiddenCategories}
>
{t("fileSidebar.groupsModal.reset", "Show all")}
diff --git a/frontend/editor/src/proprietary/components/watchedFolders/CardExpansionModal.tsx b/frontend/editor/src/proprietary/components/watchedFolders/CardExpansionModal.tsx
index b3d379438b..f0ca2bcbf5 100644
--- a/frontend/editor/src/proprietary/components/watchedFolders/CardExpansionModal.tsx
+++ b/frontend/editor/src/proprietary/components/watchedFolders/CardExpansionModal.tsx
@@ -3,7 +3,7 @@ import { createPortal } from "react-dom";
import { useTranslation } from "react-i18next";
import { Text, ScrollArea } from "@mantine/core";
import { ActionIcon } from "@app/ui/ActionIcon";
-import CloseIcon from "@mui/icons-material/Close";
+import { Icon } from "@app/ui/Icon";
import {
CardModalPhase,
CARD_MODAL_TIMINGS,
@@ -209,7 +209,7 @@ export function CardExpansionModal({
right: "0.375rem",
}}
>
- <CloseIcon style={{ fontSize: "1.25rem" }} />
+ <Icon name="x" size={"1.25rem"} />
</ActionIcon>
</div>
</div>
diff --git a/frontend/editor/src/proprietary/components/watchedFolders/WatchedFolderCard.tsx b/frontend/editor/src/proprietary/components/watchedFolders/WatchedFolderCard.tsx
index 90e083fb23..51f79f6f87 100644
--- a/frontend/editor/src/proprietary/components/watchedFolders/WatchedFolderCard.tsx
+++ b/frontend/editor/src/proprietary/components/watchedFolders/WatchedFolderCard.tsx
@@ -3,14 +3,14 @@ import { Box, Text, Group, Loader } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { ActionIcon } from "@app/ui/ActionIcon";
import { useTranslation } from "react-i18next";
-import EditIcon from "@mui/icons-material/Edit";
-import DeleteIcon from "@mui/icons-material/Delete";
-import CheckCircleIcon from "@mui/icons-material/CheckCircle";
-import PauseCircleOutlineIcon from "@mui/icons-material/PauseCircleOutlined";
+import { Icon } from "@app/ui/Icon";
import { WatchedFolder } from "@app/types/watchedFolders";
import { FolderRunStatus } from "@app/hooks/useFolderRunStatuses";
import { iconMap } from "@app/components/tools/automate/iconMap";
+// The 12px status glyphs scale the app stroke to under 1px; this keeps them legible.
+const STATUS_DOT_STROKE = 2.5;
+
interface WatchedFolderCardProps {
folder: WatchedFolder;
isActive: boolean;
@@ -33,8 +33,7 @@ export function WatchedFolderCard({
const { t } = useTranslation();
const [isHovered, setIsHovered] = useState(false);
const [isDragOver, setIsDragOver] = useState(false);
- const IconComponent =
- iconMap[folder.icon as keyof typeof iconMap] || iconMap.FolderIcon;
+ const folderIcon = iconMap[folder.icon ?? ""] ?? iconMap.FolderIcon;
const handleDragOver = (e: React.DragEvent) => {
const types = e.dataTransfer.types;
@@ -110,8 +109,10 @@ export function WatchedFolderCard({
flexShrink: 0,
}}
>
- <IconComponent
- style={{ fontSize: 11, color: folder.accentColor }}
+ <Icon
+ name={folderIcon}
+ size={11}
+ style={{ color: folder.accentColor }}
/>
</Box>
}
@@ -125,7 +126,7 @@ export function WatchedFolderCard({
onClick={onEdit}
aria-label={t("watchedFolders.card.edit", "Edit folder")}
>
- <EditIcon style={{ fontSize: 11 }} />
+ <Icon name="pencil" size={11} />
</ActionIcon>
{!folder.isDefault && (
<ActionIcon
@@ -136,19 +137,25 @@ export function WatchedFolderCard({
onClick={onDelete}
aria-label={t("watchedFolders.card.delete", "Delete folder")}
>
- <DeleteIcon style={{ fontSize: 11 }} />
+ <Icon name="trash" size={11} />
</ActionIcon>
)}
</Group>
) : folder.isPaused ? (
- <PauseCircleOutlineIcon
- style={{ fontSize: 12, color: "var(--mantine-color-dimmed)" }}
+ <Icon
+ name="circle-pause"
+ size={12}
+ strokeWidth={STATUS_DOT_STROKE}
+ style={{ color: "var(--mantine-color-dimmed)" }}
/>
) : status === "processing" ? (
<Loader size={10} color={folder.accentColor} />
) : status === "done" ? (
- <CheckCircleIcon
- style={{ fontSize: 12, color: "var(--color-green-500)" }}
+ <Icon
+ name="circle-check"
+ size={12}
+ strokeWidth={STATUS_DOT_STROKE}
+ style={{ color: "var(--color-green-500)" }}
/>
) : null
}
diff --git a/frontend/editor/src/proprietary/components/watchedFolders/WatchedFolderHomePage.tsx b/frontend/editor/src/proprietary/components/watchedFolders/WatchedFolderHomePage.tsx
index 2c83f955ac..9be89f1c80 100644
--- a/frontend/editor/src/proprietary/components/watchedFolders/WatchedFolderHomePage.tsx
+++ b/frontend/editor/src/proprietary/components/watchedFolders/WatchedFolderHomePage.tsx
@@ -3,14 +3,7 @@ import { Box, Text, Stack, Group, Loader, ScrollArea } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { ActionIcon } from "@app/ui/ActionIcon";
import { useTranslation } from "react-i18next";
-import AddIcon from "@mui/icons-material/Add";
-import EditIcon from "@mui/icons-material/Edit";
-import DeleteOutlineIcon from "@mui/icons-material/DeleteOutlined";
-import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined";
-import CloseIcon from "@mui/icons-material/Close";
-import FolderPlusIcon from "@mui/icons-material/CreateNewFolder";
-import PauseCircleOutlineIcon from "@mui/icons-material/PauseCircleOutlined";
-import PlayCircleOutlineIcon from "@mui/icons-material/PlayCircleOutlined";
+import { Icon } from "@app/ui/Icon";
import { useWatchedFolders } from "@app/hooks/useWatchedFolders";
import { useFolderRunStatuses } from "@app/hooks/useFolderRunStatuses";
import {
@@ -241,9 +234,9 @@ function FolderCard({
}
>
{isPaused ? (
- <PlayCircleOutlineIcon style={{ fontSize: "1.125rem" }} />
+ <Icon name="circle-play" size={"1.125rem"} />
) : (
- <PauseCircleOutlineIcon style={{ fontSize: "1.125rem" }} />
+ <Icon name="circle-pause" size={"1.125rem"} />
)}
</ActionIcon>
<ActionIcon
@@ -252,7 +245,7 @@ function FolderCard({
onClick={() => onEdit(folder)}
aria-label={t("watchedFolders.home.editFolder", "Edit folder")}
>
- <EditIcon style={{ fontSize: "1.125rem" }} />
+ <Icon name="pencil" size={"1.125rem"} />
</ActionIcon>
<ActionIcon
size="md"
@@ -261,7 +254,7 @@ function FolderCard({
onClick={() => onDelete(folder)}
aria-label={t("watchedFolders.home.deleteFolder", "Delete folder")}
>
- <DeleteOutlineIcon style={{ fontSize: "1.125rem" }} />
+ <Icon name="trash" size={"1.125rem"} />
</ActionIcon>
</div>
</div>
@@ -316,11 +309,10 @@ function HowItWorks() {
>
<Group gap="xs" mb="sm" justify="space-between">
<Group gap="xs">
- <InfoOutlinedIcon
- style={{
- fontSize: "1rem",
- color: "var(--c-accent-text)",
- }}
+ <Icon
+ name="info"
+ size={"1rem"}
+ style={{ color: "var(--c-accent-text)" }}
/>
<Text fw={600} size="xs">
{t("watchedFolders.howItWorks.title", "How Watched Folders work")}
@@ -335,11 +327,10 @@ function HowItWorks() {
}}
aria-label={t("watchedFolders.actions.dismiss", "Dismiss")}
>
- <CloseIcon
- style={{
- fontSize: "0.75rem",
- color: "var(--mantine-color-text)",
- }}
+ <Icon
+ name="x"
+ size={"0.75rem"}
+ style={{ color: "var(--mantine-color-text)" }}
/>
</ActionIcon>
</Group>
@@ -390,7 +381,7 @@ function EmptyState({ onCreate }: { onCreate: () => void }) {
return (
<div className="wf-empty">
<span className="wf-empty-icon">
- <FolderPlusIcon style={{ fontSize: "2.5rem" }} />
+ <Icon name="folder-plus" size={"2.5rem"} />
</span>
<div className="wf-empty-title">
{t("watchedFolders.home.emptyTitle", "Automate your PDF workflows")}
@@ -405,7 +396,7 @@ function EmptyState({ onCreate }: { onCreate: () => void }) {
<Button
size="md"
variant="primary"
- leftSection={<AddIcon style={{ fontSize: "1.125rem" }} />}
+ leftSection={<Icon name="plus" size={"1.125rem"} />}
onClick={onCreate}
style={{ marginTop: "var(--mantine-spacing-sm)" }}
>
@@ -627,7 +618,7 @@ export function WatchedFolderHomePage() {
}}
>
<span className="wf-new-tile-icon">
- <FolderPlusIcon style={{ fontSize: "1.5rem" }} />
+ <Icon name="folder-plus" size={"1.5rem"} />
</span>
<Text size="sm" fw={600}>
{t(
diff --git a/frontend/editor/src/proprietary/components/watchedFolders/WatchedFolderManagementModal.tsx b/frontend/editor/src/proprietary/components/watchedFolders/WatchedFolderManagementModal.tsx
index bd3fb7a322..d61f3478f9 100644
--- a/frontend/editor/src/proprietary/components/watchedFolders/WatchedFolderManagementModal.tsx
+++ b/frontend/editor/src/proprietary/components/watchedFolders/WatchedFolderManagementModal.tsx
@@ -28,8 +28,7 @@ import {
canWriteLocalFolder,
FS_WRITE_UNSUPPORTED_MSG,
} from "@app/utils/fsAccessCapability";
-import FolderSpecialIcon from "@mui/icons-material/FolderSpecial";
-import ChevronRightIcon from "@mui/icons-material/ChevronRight";
+import { Icon } from "@app/ui/Icon";
import {
Z_INDEX_AUTOMATE_MODAL,
Z_INDEX_AUTOMATE_DROPDOWN,
@@ -453,9 +452,10 @@ export function WatchedFolderManagementModal({
}}
>
<Group gap="xs" align="center" wrap="nowrap">
- <FolderSpecialIcon
+ <Icon
+ name="folder-bookmark"
+ size={"1rem"}
style={{
- fontSize: "1rem",
color: inputDirName
? "var(--color-green-500)"
: "var(--mantine-color-yellow-6)",
@@ -537,9 +537,10 @@ export function WatchedFolderManagementModal({
}}
>
<Group gap="xs" align="center" wrap="nowrap">
- <FolderSpecialIcon
+ <Icon
+ name="folder-bookmark"
+ size={"1rem"}
style={{
- fontSize: "1rem",
color: outputDirName
? "var(--color-green-500)"
: "var(--mantine-color-dimmed)",
@@ -632,9 +633,10 @@ export function WatchedFolderManagementModal({
textTransform: "uppercase",
}}
>
- <ChevronRightIcon
- sx={{
- fontSize: "1rem",
+ <Icon
+ name="chevron-right"
+ size={"1rem"}
+ style={{
transform: showAdvanced ? "rotate(90deg)" : "none",
transition: "transform 160ms ease",
}}
diff --git a/frontend/editor/src/proprietary/components/watchedFolders/WatchedFolderSection.tsx b/frontend/editor/src/proprietary/components/watchedFolders/WatchedFolderSection.tsx
index 544e8d14ef..a4824cc151 100644
--- a/frontend/editor/src/proprietary/components/watchedFolders/WatchedFolderSection.tsx
+++ b/frontend/editor/src/proprietary/components/watchedFolders/WatchedFolderSection.tsx
@@ -2,7 +2,7 @@ import { useState } from "react";
import { Box, Text, Stack } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { useTranslation } from "react-i18next";
-import AddIcon from "@mui/icons-material/Add";
+import { Icon } from "@app/ui/Icon";
import { useWatchedFolders } from "@app/hooks/useWatchedFolders";
import { useFolderRunStatuses } from "@app/hooks/useFolderRunStatuses";
import { useToolWorkflow } from "@app/contexts/ToolWorkflowContext";
@@ -140,8 +140,10 @@ export function WatchedFolderSection() {
fullWidth
justify="start"
leftSection={
- <AddIcon
- style={{ fontSize: 14, color: "var(--mantine-color-gray-5)" }}
+ <Icon
+ name="plus"
+ size={14}
+ style={{ color: "var(--mantine-color-gray-5)" }}
/>
}
onClick={() => setCreateModalOpen(true)}
diff --git a/frontend/editor/src/proprietary/components/watchedFolders/WatchedFolderWorkbenchView.tsx b/frontend/editor/src/proprietary/components/watchedFolders/WatchedFolderWorkbenchView.tsx
index 6330ebf481..e1674dd338 100644
--- a/frontend/editor/src/proprietary/components/watchedFolders/WatchedFolderWorkbenchView.tsx
+++ b/frontend/editor/src/proprietary/components/watchedFolders/WatchedFolderWorkbenchView.tsx
@@ -24,21 +24,7 @@ import { useCardModalAnimation } from "@app/hooks/useCardModalAnimation";
import { CardExpansionModal } from "@app/components/watchedFolders/CardExpansionModal";
import { StatCard } from "@app/components/watchedFolders/StatCard";
import { useTranslation } from "react-i18next";
-import SearchIcon from "@mui/icons-material/Search";
-import DownloadIcon from "@mui/icons-material/Download";
-import HistoryIcon from "@mui/icons-material/History";
-import ArrowBackIcon from "@mui/icons-material/ArrowBack";
-import CheckCircleOutlineIcon from "@mui/icons-material/CheckCircleOutlined";
-import ErrorOutlineIcon from "@mui/icons-material/ErrorOutlined";
-import ReplayIcon from "@mui/icons-material/Replay";
-import ChevronRightIcon from "@mui/icons-material/ChevronRight";
-import VisibilityIcon from "@mui/icons-material/Visibility";
-import FolderOpenIcon from "@mui/icons-material/FolderOpen";
-import TaskAltIcon from "@mui/icons-material/TaskAlt";
-import PauseIcon from "@mui/icons-material/Pause";
-import PlayArrowIcon from "@mui/icons-material/PlayArrow";
-import DeleteOutlineIcon from "@mui/icons-material/DeleteOutlined";
-import CloseIcon from "@mui/icons-material/Close";
+import { Icon } from "@app/ui/Icon";
import JSZip from "jszip";
import { useWatchedFolders } from "@app/hooks/useWatchedFolders";
import { useFolderData } from "@app/hooks/useFolderData";
@@ -145,7 +131,7 @@ function FilterSortBar({
placeholder={t("watchedFolders.workbench.search", "Search…")}
value={search}
onChange={(e) => onSearchChange(e.currentTarget.value)}
- leftSection={<SearchIcon style={{ fontSize: "0.875rem" }} />}
+ leftSection={<Icon name="search" size={"0.875rem"} />}
style={{ flex: 1 }}
styles={{ input: { fontSize: "0.75rem" } }}
/>
@@ -767,9 +753,8 @@ export function WatchedFolderWorkbenchView({
// Early returns — after all hooks
if (!folderId) return <WatchedFolderHomePage />;
- const FolderIcon = folder
- ? iconMap[folder.icon as keyof typeof iconMap] || iconMap.FolderIcon
- : iconMap.FolderIcon;
+ const folderIcon =
+ (folder ? iconMap[folder.icon ?? ""] : undefined) ?? iconMap.FolderIcon;
if (!folder) {
return (
@@ -839,7 +824,7 @@ export function WatchedFolderWorkbenchView({
onClick={goHome}
aria-label={t("watchedFolders.actions.back", "Back")}
>
- <ArrowBackIcon style={{ fontSize: "1rem" }} />
+ <Icon name="arrow-left" size={"1rem"} />
</ActionIcon>
{/* Icon with status dot */}
@@ -855,8 +840,10 @@ export function WatchedFolderWorkbenchView({
justifyContent: "center",
}}
>
- <FolderIcon
- style={{ fontSize: "1.25rem", color: folder.accentColor }}
+ <Icon
+ name={folderIcon}
+ size="1.25rem"
+ style={{ color: folder.accentColor }}
/>
</Box>
<Box
@@ -903,11 +890,10 @@ export function WatchedFolderWorkbenchView({
{ops.map((op, i) => (
<Group key={i} gap={4} wrap="nowrap" align="center">
{i > 0 && (
- <ChevronRightIcon
- style={{
- fontSize: "0.625rem",
- color: "var(--mantine-color-gray-5)",
- }}
+ <Icon
+ name="chevron-right"
+ size={"0.625rem"}
+ style={{ color: "var(--mantine-color-gray-5)" }}
/>
)}
<Text
@@ -954,7 +940,7 @@ export function WatchedFolderWorkbenchView({
variant="secondary"
accent="success"
onClick={handlePauseResume}
- leftSection={<PlayArrowIcon style={{ fontSize: "0.875rem" }} />}
+ leftSection={<Icon name="play" size={"0.875rem"} />}
>
{t("watchedFolders.workbench.resume", "Resume")}
</Button>
@@ -963,7 +949,7 @@ export function WatchedFolderWorkbenchView({
size="sm"
variant="tertiary"
onClick={handlePauseResume}
- leftSection={<PauseIcon style={{ fontSize: "0.875rem" }} />}
+ leftSection={<Icon name="pause" size={"0.875rem"} />}
>
{t("watchedFolders.workbench.pause", "Pause")}
</Button>
@@ -1032,11 +1018,10 @@ export function WatchedFolderWorkbenchView({
{/* Inputs */}
<StatCard
icon={
- <FolderOpenIcon
- style={{
- fontSize: "1.125rem",
- color: "var(--c-accent-text)",
- }}
+ <Icon
+ name="folder-open"
+ size={"1.125rem"}
+ style={{ color: "var(--c-accent-text)" }}
/>
}
count={inputFiles.length}
@@ -1059,11 +1044,10 @@ export function WatchedFolderWorkbenchView({
{/* Outputs */}
<StatCard
icon={
- <TaskAltIcon
- style={{
- fontSize: "1.125rem",
- color: "var(--color-green-500)",
- }}
+ <Icon
+ name="circle-check-big"
+ size={"1.125rem"}
+ style={{ color: "var(--color-green-500)" }}
/>
}
count={outputFiles.length}
@@ -1081,9 +1065,10 @@ export function WatchedFolderWorkbenchView({
{/* Failed */}
<StatCard
icon={
- <ErrorOutlineIcon
+ <Icon
+ name="circle-alert"
+ size={"1.125rem"}
style={{
- fontSize: "1.125rem",
color:
failedFileIds.length > 0
? "var(--color-red-500)"
@@ -1111,9 +1096,10 @@ export function WatchedFolderWorkbenchView({
{hasCompressStep && (
<StatCard
icon={
- <DownloadIcon
+ <Icon
+ name="download"
+ size={"1.125rem"}
style={{
- fontSize: "1.125rem",
color:
dataSavedBytes > 0
? "var(--color-green-500)"
@@ -1129,11 +1115,10 @@ export function WatchedFolderWorkbenchView({
{/* Days running */}
<StatCard
icon={
- <HistoryIcon
- style={{
- fontSize: "1.125rem",
- color: "var(--mantine-color-dimmed)",
- }}
+ <Icon
+ name="rotate-ccw-clock"
+ size={"1.125rem"}
+ style={{ color: "var(--mantine-color-dimmed)" }}
/>
}
count={
@@ -1252,7 +1237,7 @@ export function WatchedFolderWorkbenchView({
size="sm"
variant="secondary"
onClick={handleRetryAllFiltered}
- leftSection={<ReplayIcon style={{ fontSize: "0.75rem" }} />}
+ leftSection={<Icon name="rotate-ccw" size={"0.75rem"} />}
>
{t("watchedFolders.workbench.retryAll", "Retry all")}
</Button>
@@ -1266,9 +1251,7 @@ export function WatchedFolderWorkbenchView({
onClick={() =>
void handleBatchDownload(filteredActivityIds)
}
- leftSection={
- <DownloadIcon style={{ fontSize: "0.75rem" }} />
- }
+ leftSection={<Icon name="download" size={"0.75rem"} />}
>
{t("watchedFolders.workbench.exportZip", "Export zip")}
</Button>
@@ -1278,9 +1261,7 @@ export function WatchedFolderWorkbenchView({
onClick={() =>
void handleBatchDownloadSeparate(filteredActivityIds)
}
- leftSection={
- <DownloadIcon style={{ fontSize: "0.75rem" }} />
- }
+ leftSection={<Icon name="download" size={"0.75rem"} />}
>
{t(
"watchedFolders.workbench.exportSeparately",
@@ -1374,9 +1355,7 @@ export function WatchedFolderWorkbenchView({
size="sm"
variant="secondary"
onClick={handleBatchRetry}
- leftSection={
- <ReplayIcon style={{ fontSize: "0.75rem" }} />
- }
+ leftSection={<Icon name="rotate-ccw" size={"0.75rem"} />}
>
{t("watchedFolders.actions.retry", "Retry")}
</Button>
@@ -1387,9 +1366,7 @@ export function WatchedFolderWorkbenchView({
size="sm"
variant="secondary"
onClick={() => void handleBatchDownload()}
- leftSection={
- <DownloadIcon style={{ fontSize: "0.75rem" }} />
- }
+ leftSection={<Icon name="download" size={"0.75rem"} />}
>
{t("watchedFolders.workbench.exportZip", "Export zip")}
</Button>
@@ -1397,9 +1374,7 @@ export function WatchedFolderWorkbenchView({
size="sm"
variant="secondary"
onClick={() => void handleBatchDownloadSeparate()}
- leftSection={
- <DownloadIcon style={{ fontSize: "0.75rem" }} />
- }
+ leftSection={<Icon name="download" size={"0.75rem"} />}
>
{t(
"watchedFolders.workbench.exportSeparately",
@@ -1413,9 +1388,7 @@ export function WatchedFolderWorkbenchView({
variant="secondary"
accent="danger"
onClick={() => void handleBatchDelete()}
- leftSection={
- <DeleteOutlineIcon style={{ fontSize: "0.75rem" }} />
- }
+ leftSection={<Icon name="trash" size={"0.75rem"} />}
>
{t("watchedFolders.workbench.delete", "Delete")}
</Button>
@@ -1428,7 +1401,7 @@ export function WatchedFolderWorkbenchView({
"Clear selection",
)}
>
- <CloseIcon style={{ fontSize: "0.875rem" }} />
+ <Icon name="x" size={"0.875rem"} />
</ActionIcon>
</Box>
);
@@ -1523,9 +1496,10 @@ export function WatchedFolderWorkbenchView({
: t("watchedFolders.actions.expand", "Expand")
}
>
- <ChevronRightIcon
+ <Icon
+ name="chevron-right"
+ size={"0.75rem"}
style={{
- fontSize: "0.75rem",
transform: isExpanded
? "rotate(90deg)"
: "none",
@@ -1534,9 +1508,10 @@ export function WatchedFolderWorkbenchView({
/>
</ActionIcon>
{status === "processed" && (
- <CheckCircleOutlineIcon
+ <Icon
+ name="circle-check"
+ size={"0.875rem"}
style={{
- fontSize: "0.875rem",
color: "var(--color-green-500)",
flexShrink: 0,
}}
@@ -1546,18 +1521,20 @@ export function WatchedFolderWorkbenchView({
<Loader size="0.625rem" style={{ flexShrink: 0 }} />
)}
{status === "error" && !meta?.nextRetryAt && (
- <ErrorOutlineIcon
+ <Icon
+ name="circle-alert"
+ size={"0.875rem"}
style={{
- fontSize: "0.875rem",
color: "var(--color-red-500)",
flexShrink: 0,
}}
/>
)}
{status === "error" && meta?.nextRetryAt && (
- <ReplayIcon
+ <Icon
+ name="rotate-ccw"
+ size={"0.875rem"}
style={{
- fontSize: "0.875rem",
color: "var(--color-yellow-500)",
flexShrink: 0,
}}
@@ -1647,9 +1624,7 @@ export function WatchedFolderWorkbenchView({
"Preview",
)}
>
- <VisibilityIcon
- style={{ fontSize: "0.875rem" }}
- />
+ <Icon name="eye" size={"0.875rem"} />
</ActionIcon>
)}
{!isExpanded && primaryFile && (
@@ -1668,9 +1643,7 @@ export function WatchedFolderWorkbenchView({
"Export",
)}
>
- <DownloadIcon
- style={{ fontSize: "0.875rem" }}
- />
+ <Icon name="download" size={"0.875rem"} />
</ActionIcon>
)}
<ActionIcon
@@ -1685,9 +1658,7 @@ export function WatchedFolderWorkbenchView({
"Delete",
)}
>
- <DeleteOutlineIcon
- style={{ fontSize: "0.875rem" }}
- />
+ <Icon name="trash" size={"0.875rem"} />
</ActionIcon>
</Box>
)}
@@ -1755,9 +1726,7 @@ export function WatchedFolderWorkbenchView({
"Preview input",
)}
>
- <VisibilityIcon
- style={{ fontSize: "0.875rem" }}
- />
+ <Icon name="eye" size={"0.875rem"} />
</ActionIcon>
<ActionIcon
variant="tertiary"
@@ -1771,9 +1740,7 @@ export function WatchedFolderWorkbenchView({
"Download input",
)}
>
- <DownloadIcon
- style={{ fontSize: "0.875rem" }}
- />
+ <Icon name="download" size={"0.875rem"} />
</ActionIcon>
</Box>
)}
@@ -1828,9 +1795,7 @@ export function WatchedFolderWorkbenchView({
"Preview output",
)}
>
- <VisibilityIcon
- style={{ fontSize: "0.875rem" }}
- />
+ <Icon name="eye" size={"0.875rem"} />
</ActionIcon>
<ActionIcon
variant="tertiary"
@@ -1844,9 +1809,7 @@ export function WatchedFolderWorkbenchView({
"Download output",
)}
>
- <DownloadIcon
- style={{ fontSize: "0.875rem" }}
- />
+ <Icon name="download" size={"0.875rem"} />
</ActionIcon>
</Box>
))}
@@ -1882,8 +1845,9 @@ export function WatchedFolderWorkbenchView({
variant="secondary"
style={{ flexShrink: 0 }}
leftSection={
- <ReplayIcon
- style={{ fontSize: "0.75rem" }}
+ <Icon
+ name="rotate-ccw"
+ size={"0.75rem"}
/>
}
onClick={(e) => {
@@ -1944,11 +1908,10 @@ export function WatchedFolderWorkbenchView({
textExpanded={statsTextExpanded}
onClose={closeStatsModal}
icon={
- <HistoryIcon
- style={{
- fontSize: "1.125rem",
- color: "var(--mantine-color-dimmed)",
- }}
+ <Icon
+ name="rotate-ccw-clock"
+ size={"1.125rem"}
+ style={{ color: "var(--mantine-color-dimmed)" }}
/>
}
count={daysRunning !== null && daysRunning > 0 ? daysRunning : 0}
diff --git a/frontend/editor/src/prototypes/data/usePrototypeToolRegistry.tsx b/frontend/editor/src/prototypes/data/usePrototypeToolRegistry.tsx
index 7267bed751..c650eb67fc 100644
--- a/frontend/editor/src/prototypes/data/usePrototypeToolRegistry.tsx
+++ b/frontend/editor/src/prototypes/data/usePrototypeToolRegistry.tsx
@@ -1,7 +1,7 @@
import { useMemo } from "react";
import { useTranslation } from "react-i18next";
-import LocalIcon from "@app/components/shared/LocalIcon";
+import { Icon } from "@app/ui/Icon";
import {
SubcategoryId,
ToolCategoryId,
@@ -26,13 +26,7 @@ export function usePrototypeToolRegistry(): PrototypeToolRegistry {
() =>
({
pdfCommentAgent: {
- icon: (
- <LocalIcon
- icon="add-comment-outline-rounded"
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name="message-square-plus" size="1.5rem" />,
name: t("home.pdfCommentAgent.title", "Add AI comments"),
component: PdfCommentAgent,
description: t(