Skip to content

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

Add the icon system, with nothing migrated onto it yet (#7894)

EthanHealy010581cbf10dde
diff --git a/.taskfiles/frontend.yml b/.taskfiles/frontend.yml
index 9727538961..f10eadae2d 100644
--- a/.taskfiles/frontend.yml
+++ b/.taskfiles/frontend.yml
@@ -342,8 +342,21 @@ tasks:
cmds:
- task: lint:oxlint
- task: lint:colors
+ - task: lint:icons
- task: lint:css
+ lint:icons:
+ desc: "Enforce one icon system - no inline svg, no retired icon libraries"
+ deps: [install]
+ cmds:
+ - npx tsx editor/scripts/lint/icon-lint.mts
+
+ lint:unused-icons:
+ desc: "Report icons we draw ourselves that nothing renders"
+ deps: [install]
+ cmds:
+ - npx tsx editor/scripts/lint/icon-lint.mts unused
+
lint:css:
desc: "Lint stylesheets for duplicate selectors"
deps: [install]
diff --git a/ADDING_TOOLS.md b/ADDING_TOOLS.md
index 9c22246a7c..c341140c5e 100644
--- a/ADDING_TOOLS.md
+++ b/ADDING_TOOLS.md
@@ -134,12 +134,13 @@ Update these files to register your new tool:
import [ToolName] from "../tools/[ToolName]";
import { [toolName]OperationConfig } from "../hooks/tools/[toolName]/use[ToolName]Operation";
import [ToolName]Settings from "../components/tools/[toolName]/[ToolName]Settings";
+import { Icon } from "@app/ui/Icon";
```
2. Add tool entry in the `allTools` object:
```typescript
[toolName]: {
- icon: <LocalIcon icon="your-icon-name" width="1.5rem" height="1.5rem" />,
+ icon: <Icon name="your-icon-name" size="1.5rem" />,
name: t("home.[toolName].title", "Tool Name"),
component: [ToolName],
description: t("home.[toolName].desc", "Tool description"),
diff --git a/AGENTS.md b/AGENTS.md
index 88543ca3c8..a131a8db13 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -194,6 +194,8 @@ For a broader explanation of the frontend layering and override architecture, re
Before touching colours or theming (tokens, dark mode, accent colours), read @frontend/editor/src/core/theme/README.md — it explains the palette/`--c-*` token system and the rule that literal colours live only in `primitives.css`.
+Before adding or styling an icon, read @frontend/editor/src/core/icons/README.md — `<Icon name="…" />` comes from `@app/ui/Icon`, icon sources live as `.svg` files in `core/icons/svg/`, and inline `<svg>` in TS/TSX is linted out.
+
```typescript
// ✅ CORRECT - Use @app/* for all imports
import { AppLayout } from "@app/components/AppLayout";
diff --git a/docker/frontend/Dockerfile b/docker/frontend/Dockerfile
index fee78ec38a..c6a6891f06 100644
--- a/docker/frontend/Dockerfile
+++ b/docker/frontend/Dockerfile
@@ -11,7 +11,7 @@ RUN npm ci
COPY frontend .
-# Generate material-symbols icon subset (normally done by task prepare:icons).
+# Generate the material-symbols icon subset (normally done by task prepare:icons).
RUN node editor/scripts/generate-icons.js
# Defaults match prior behaviour. Supabase values are client-publishable build args.
diff --git a/frontend/.storybook/main.ts b/frontend/.storybook/main.ts
index e86a8636e3..f7a772470a 100644
--- a/frontend/.storybook/main.ts
+++ b/frontend/.storybook/main.ts
@@ -1,6 +1,13 @@
import { resolve } from "node:path";
import type { StorybookConfig } from "@storybook/react-vite";
import tsconfigPaths from "vite-tsconfig-paths";
+// oxlint-disable-next-line no-restricted-imports -- config runs in node, before the aliases exist
+import { iconSvgr } from "../editor/scripts/icons/svgrOptions.mts";
+// By path, not @app/*: this file runs in node, before the aliases exist.
+// oxlint-disable-next-line no-restricted-imports -- config runs before aliases exist
+import { legacyIconsPlugin } from "../editor/scripts/icons/legacyIcons.vite.mts";
+// oxlint-disable-next-line no-restricted-imports -- config runs before aliases exist
+import { usedIconsPlugin } from "../editor/scripts/icons/usedIcons.vite.mts";
/**
* Storybook 9 ships essentials, interactions, and docs as built-ins, so the
@@ -60,7 +67,12 @@ const config: StorybookConfig = {
"@public": resolve(__dirname, "../editor/public"),
};
config.plugins = config.plugins ?? [];
+ config.plugins.push(iconSvgr());
config.plugins.push(editorPathAliases());
+ // Reads the audit's "before" glyphs from the icon packages, so none of their artwork is checked in.
+ config.plugins.push(legacyIconsPlugin(resolve(__dirname, "..")));
+ // Scanned at startup rather than committed, so the gallery's "in use" view cannot go stale.
+ config.plugins.push(usedIconsPlugin(resolve(__dirname, "../editor/src")));
// Worker bundles are a separate Rollup pass and do NOT inherit `plugins`, so
// without this a worker importing @app/* fails to resolve while the same
// import works everywhere else. Mirrors editor/vite.config.ts.
diff --git a/frontend/.storybook/tsconfig.json b/frontend/.storybook/tsconfig.json
index 52a07ca25f..aea7777db5 100644
--- a/frontend/.storybook/tsconfig.json
+++ b/frontend/.storybook/tsconfig.json
@@ -5,10 +5,14 @@
// The per-layer typecheck projects also cover story files, but each resolves
// @app/* its own way - not the way the single Storybook build renders them.
"extends": "../editor/tsconfig.proprietary.vite.json",
+ // main.ts loads the icon Vite plugins from editor/scripts by their real .mts paths.
+ "compilerOptions": { "allowImportingTsExtensions": true, "noEmit": true },
"exclude": [],
"include": [
"./**/*",
"../editor/src/global.d.ts",
+ "../editor/src/core/icons/legacyIcons.d.ts",
+ "../editor/src/core/icons/usedIcons.d.ts",
"../editor/src/**/*.stories.ts",
"../editor/src/**/*.stories.tsx"
]
diff --git a/frontend/editor/scripts/icons/legacyIcons.vite.mts b/frontend/editor/scripts/icons/legacyIcons.vite.mts
new file mode 100644
index 0000000000..bbc31b12c9
--- /dev/null
+++ b/frontend/editor/scripts/icons/legacyIcons.vite.mts
@@ -0,0 +1,122 @@
+/** Serves the audit's "before" glyphs as `virtual:legacy-icons`, read from the icon packages so none are checked in. */
+import fs from "node:fs";
+import path from "node:path";
+import type { Plugin } from "vite";
+
+const VIRTUAL_ID = "virtual:legacy-icons";
+const RESOLVED_ID = "\0" + VIRTUAL_ID;
+
+const ATTR: Record<string, string> = {
+ clipRule: "clip-rule",
+ fillRule: "fill-rule",
+ fillOpacity: "fill-opacity",
+ strokeWidth: "stroke-width",
+};
+
+interface LegacyGlyph {
+ viewBox: string;
+ body: string;
+}
+
+interface LegacyGlyphs {
+ mui: Record<string, LegacyGlyph>;
+ materialSymbols: Record<string, LegacyGlyph>;
+}
+
+interface IconMap {
+ mui: Record<string, string>;
+ materialSymbols: Record<string, string>;
+}
+
+interface IconifySet {
+ width?: number;
+ height?: number;
+ icons?: Record<string, { body: string; width?: number; height?: number }>;
+}
+
+/** MUI ships each icon as `createSvgIcon(_jsx("path", {…}), 'Name')`. */
+function muiBody(modules: string, name: string): string | null {
+ const file = path.join(modules, "@mui/icons-material", `${name}.mjs`);
+ if (!fs.existsSync(file)) return null;
+ const src = fs.readFileSync(file, "utf8");
+ const els: string[] = [];
+ const re = /_jsxs?\(\s*"([a-zA-Z]+)"\s*,\s*\{/g;
+ let m: RegExpExecArray | null;
+ while ((m = re.exec(src))) {
+ // Brace-match: an icon with several paths nests braces, and a lazy regex stops at the first inner one.
+ let depth = 0;
+ let end = -1;
+ let inStr: string | null = null;
+ for (let i = re.lastIndex - 1; i < src.length; i++) {
+ const c = src[i];
+ if (inStr) {
+ if (c === "\\") i++;
+ else if (c === inStr) inStr = null;
+ continue;
+ }
+ if (c === '"' || c === "'") inStr = c;
+ else if (c === "{") depth++;
+ else if (c === "}" && --depth === 0) {
+ end = i;
+ break;
+ }
+ }
+ if (end === -1) continue;
+ const attrs: string[] = [];
+ for (const p of src
+ .slice(re.lastIndex, end)
+ .matchAll(/([a-zA-Z][a-zA-Z0-9]*)\s*:\s*"((?:[^"\\]|\\.)*)"/g))
+ attrs.push(`${ATTR[p[1]] ?? p[1]}="${p[2].replace(/\\"/g, '"')}"`);
+ if (attrs.length) els.push(`<${m[1]} ${attrs.join(" ")}/>`);
+ }
+ return els.length ? els.join("") : null;
+}
+
+function buildLegacyGlyphs(root: string): LegacyGlyphs {
+ const modules = path.join(root, "node_modules");
+ const map: IconMap = JSON.parse(
+ fs.readFileSync(
+ path.join(root, "editor/src/core/icons/icon-map.json"),
+ "utf8",
+ ),
+ );
+ const out: LegacyGlyphs = { mui: {}, materialSymbols: {} };
+
+ for (const name of Object.keys(map.mui)) {
+ const body = muiBody(modules, name);
+ if (body) out.mui[name] = { viewBox: "0 0 24 24", body };
+ }
+
+ let symbols: IconifySet = {};
+ try {
+ symbols = JSON.parse(
+ fs.readFileSync(
+ path.join(modules, "@iconify-json/material-symbols/icons.json"),
+ "utf8",
+ ),
+ );
+ } catch {
+ return out;
+ }
+ for (const name of Object.keys(map.materialSymbols)) {
+ const icon = symbols.icons?.[name];
+ if (icon) {
+ out.materialSymbols[name] = {
+ viewBox: `0 0 ${icon.width ?? symbols.width ?? 24} ${icon.height ?? symbols.height ?? 24}`,
+ body: icon.body,
+ };
+ }
+ }
+ return out;
+}
+
+export function legacyIconsPlugin(frontendRoot: string): Plugin {
+ return {
+ name: "legacy-icons",
+ resolveId: (id) => (id === VIRTUAL_ID ? RESOLVED_ID : null),
+ load(id) {
+ if (id !== RESOLVED_ID) return null;
+ return `export default ${JSON.stringify(buildLegacyGlyphs(frontendRoot))};`;
+ },
+ };
+}
diff --git a/frontend/editor/scripts/icons/svgrOptions.mts b/frontend/editor/scripts/icons/svgrOptions.mts
new file mode 100644
index 0000000000..1fc4d93303
--- /dev/null
+++ b/frontend/editor/scripts/icons/svgrOptions.mts
@@ -0,0 +1,25 @@
+import type { Plugin } from "vite";
+import svgr from "vite-plugin-svgr";
+
+/**
+ * The `?react` transform, configured the same way for the app build, Storybook and the tests.
+ *
+ * `prefixIds` namespaces ids per file, so two marks that both declare `clip0_1_2` cannot collide
+ * once they are inline in the same document. `removeViewBox` stays off: `<Icon>` sets width and
+ * height, and without a viewBox the artwork would not scale to them.
+ */
+export function iconSvgr(): Plugin {
+ return svgr({
+ svgrOptions: {
+ svgoConfig: {
+ plugins: [
+ {
+ name: "preset-default",
+ params: { overrides: { removeViewBox: false } },
+ },
+ "prefixIds",
+ ],
+ },
+ },
+ });
+}
diff --git a/frontend/editor/scripts/icons/usedIcons.mts b/frontend/editor/scripts/icons/usedIcons.mts
new file mode 100644
index 0000000000..be18a37439
--- /dev/null
+++ b/frontend/editor/scripts/icons/usedIcons.mts
@@ -0,0 +1,60 @@
+/** Which icons source references. A heuristic, and only ever a report: nothing is dropped on its say-so. */
+import fs from "node:fs";
+import path from "node:path";
+
+// Icon-shaped positions only: a bare literal scan sweeps in "grape" (a Mantine colour) and "cat" (a language code).
+const PATTERNS = [
+ /\bname\s*[:=]\s*"([a-z0-9-]+)"/g,
+ /\bname\s*=\s*\{([^}]*)\}/g,
+ /\b\w*icon\w*\s*[:=]\s*"([a-z0-9-]+)"/gi,
+ /\b\w*icon\w*\s*=\s*\{([^}]*)\}/gi,
+];
+
+/** The names src/core/icons/icons.ts maps. */
+export function iconNames(file: string): string[] {
+ const src = fs.readFileSync(file, "utf8");
+ return [...src.matchAll(/^ {2}"?([a-z0-9][a-z0-9-]*)"?: \{/gm)].map(
+ (m) => m[1],
+ );
+}
+
+/** The members of `known` that anything under `srcDir` references. */
+export function scanUsedIcons(
+ srcDir: string,
+ known: ReadonlySet<string>,
+): Set<string> {
+ const found = new Set<string>();
+ // core/icons writes every name down, so reading it back reports the whole set as used.
+ const iconsDir = path.join(srcDir, "core/icons");
+ const collect = (chunk: string): void => {
+ for (const m of chunk.matchAll(/"([a-z0-9][a-z0-9-]*)"/g))
+ if (known.has(m[1])) found.add(m[1]);
+ if (known.has(chunk)) found.add(chunk);
+ };
+ const walk = (dir: string): void => {
+ for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
+ const p = path.join(dir, entry.name);
+ if (entry.isDirectory()) {
+ if (entry.name !== "node_modules") walk(p);
+ continue;
+ }
+ if (!/\.(tsx?|json)$/.test(entry.name)) continue;
+ if (p.startsWith(iconsDir)) continue;
+ const text = fs.readFileSync(p, "utf8");
+ if (entry.name.endsWith(".json")) {
+ for (const m of text.matchAll(/"icon(?:Name)?"\s*:\s*"([^"]+)"/g))
+ if (known.has(m[1])) found.add(m[1]);
+ continue;
+ }
+ // A file naming IconName is a lookup table, so every literal in it counts.
+ if (text.includes("IconName")) {
+ collect(text);
+ continue;
+ }
+ for (const re of PATTERNS)
+ for (const m of text.matchAll(re)) collect(m[1]);
+ }
+ };
+ walk(srcDir);
+ return found;
+}
diff --git a/frontend/editor/scripts/icons/usedIcons.vite.mts b/frontend/editor/scripts/icons/usedIcons.vite.mts
new file mode 100644
index 0000000000..309abb73ce
--- /dev/null
+++ b/frontend/editor/scripts/icons/usedIcons.vite.mts
@@ -0,0 +1,23 @@
+/** Serves the gallery's "in use" list as `virtual:used-icons`, rescanned at every Storybook start. */
+import path from "node:path";
+import type { Plugin } from "vite";
+
+// oxlint-disable-next-line no-restricted-imports -- sibling build script; no alias covers scripts/
+import { iconNames, scanUsedIcons } from "./usedIcons.mts";
+
+const VIRTUAL_ID = "virtual:used-icons";
+const RESOLVED_ID = "\0" + VIRTUAL_ID;
+
+export function usedIconsPlugin(srcDir: string): Plugin {
+ const iconsDir = path.join(srcDir, "core/icons");
+ return {
+ name: "used-icons",
+ resolveId: (id) => (id === VIRTUAL_ID ? RESOLVED_ID : null),
+ load(id) {
+ if (id !== RESOLVED_ID) return null;
+ const known = new Set(iconNames(path.join(iconsDir, "icons.ts")));
+ const used = [...scanUsedIcons(srcDir, known)].sort();
+ return `export default ${JSON.stringify(used)};`;
+ },
+ };
+}
diff --git a/frontend/editor/scripts/lint/icon-lint.mts b/frontend/editor/scripts/lint/icon-lint.mts
new file mode 100644
index 0000000000..236ab43cff
--- /dev/null
+++ b/frontend/editor/scripts/lint/icon-lint.mts
@@ -0,0 +1,296 @@
+#!/usr/bin/env node
+/** Keeps the app on one icon system; pass "unused" to report svgs of our own that nothing renders. */
+import fs from "node:fs";
+import path from "node:path";
+// oxlint-disable-next-line no-restricted-imports -- sibling build script; no alias covers scripts/
+import { iconNames } from "../icons/usedIcons.mts";
+
+const EDITOR = path.join(import.meta.dirname, "..", "..");
+const SRC = path.join(EDITOR, "src");
+const ICONS_DIR = path.join(SRC, "core/icons");
+
+// The four rules it gates only hold once every call site renders through <Icon>, so the last migration PR flips it.
+const MIGRATION_COMPLETE = false;
+
+const BANNED_IMPORTS = [
+ "@mui/icons-material",
+ "@iconify/react",
+ "@iconify-json/",
+ "lucide-react",
+ "components/shared/LocalIcon",
+ "components/icons",
+];
+
+const ICON_SVG_DIR = path.join(ICONS_DIR, "svg");
+
+/** The frame every icon is drawn on, so one `size` renders them all alike. */
+const ICON_FRAME = "0 0 24 24";
+
+/** Directories where a .svg file is allowed to live. */
+const SVG_ALLOWED = [
+ ICON_SVG_DIR,
+ path.join(SRC, "core/assets"),
+ path.join(SRC, "assets"),
+ path.join(SRC, "core/tests"),
+];
+
+const OPT_OUT = /icon-lint-disable/;
+
+const mode = process.argv[2];
+const problems: string[] = [];
+const files: string[] = [];
+
+(function walk(dir: string) {
+ for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
+ const p = path.join(dir, entry.name);
+ if (entry.isDirectory()) {
+ if (entry.name !== "node_modules") walk(p);
+ } else {
+ files.push(p);
+ }
+ }
+})(SRC);
+
+const rel = (f: string) => path.relative(EDITOR, f);
+
+// An svg citing the vendored notice is only safe to trust while that notice is still here.
+const licenceFile = path.join(ICONS_DIR, "LICENSE-lucide.txt");
+const citing = fs
+ .readdirSync(path.join(ICONS_DIR, "svg/stirling"))
+ .filter((f) => f.endsWith(".svg"))
+ .filter((f) =>
+ fs
+ .readFileSync(path.join(ICONS_DIR, "svg/stirling", f), "utf8")
+ .includes("LICENSE-lucide.txt"),
+ );
+if (citing.length && !fs.existsSync(licenceFile)) {
+ problems.push(
+ `src/core/icons/LICENSE-lucide.txt is missing, but ${citing.join(", ")} ` +
+ `reuse lucide geometry and cite it. Restore it, or redraw those icons.`,
+ );
+}
+
+// Reused lucide geometry has to declare itself; primitives are excluded, since nobody can claim `M4 12h16`.
+const lucidePath = new Map<string, string>();
+try {
+ const nodes: Record<string, [string, Record<string, string>][]> = JSON.parse(
+ fs.readFileSync(
+ path.join(EDITOR, "../node_modules/lucide-static/icon-nodes.json"),
+ "utf8",
+ ),
+ );
+ for (const [name, els] of Object.entries(nodes))
+ for (const [, a] of els)
+ if (a.d) lucidePath.set(a.d.replace(/\s+/g, " ").trim(), name);
+} catch {
+ // lucide not installed: the icons still carry their notices, nothing to check
+}
+if (lucidePath.size) {
+ for (const svg of fs
+ .readdirSync(path.join(ICONS_DIR, "svg/stirling"))
+ .filter((f) => f.endsWith(".svg"))) {
+ const raw = fs.readFileSync(
+ path.join(ICONS_DIR, "svg/stirling", svg),
+ "utf8",
+ );
+ const copied = [...raw.matchAll(/\sd="([^"]+)"/g)]
+ .map((m) => m[1].replace(/\s+/g, " ").trim())
+ .filter((d) => lucidePath.has(d))
+ .filter(
+ (d) =>
+ /[aAcCsSqQtT]/.test(d) || d.split(/[ ,]/).filter(Boolean).length > 6,
+ );
+ if (copied.length && !raw.includes("LICENSE-lucide.txt")) {
+ problems.push(
+ `src/core/icons/svg/stirling/${svg}: undeclared lucide geometry ` +
+ `(from ${[...new Set(copied.map((d) => lucidePath.get(d)))].join(", ")}). ` +
+ `Add a comment citing src/core/icons/LICENSE-lucide.txt, or redraw it.`,
+ );
+ }
+ }
+}
+
+// Every Material Symbols name, so a leftover is caught wherever it sits, not only in `<Icon name>`.
+function legacyIconNames(): Set<string> {
+ try {
+ const set: { icons: Record<string, unknown> } = JSON.parse(
+ fs.readFileSync(
+ path.join(
+ EDITOR,
+ "../node_modules/@iconify-json/material-symbols/icons.json",
+ ),
+ "utf8",
+ ),
+ );
+ return new Set(Object.keys(set.icons));
+ } catch {
+ try {
+ const map: { materialSymbols?: Record<string, string> } = JSON.parse(
+ fs.readFileSync(path.join(ICONS_DIR, "icon-map.json"), "utf8"),
+ );
+ return new Set(Object.keys(map.materialSymbols ?? {}));
+ } catch {
+ return new Set();
+ }
+ }
+}
+const legacy = legacyIconNames();
+
+// Positions where a hyphenated literal is an identifier, not an icon name.
+const NOT_AN_ICON_POSITION =
+ /(?:\b(?:id|key|type|kind|variant|mode|status|action|value|label|className|class|href|path|to|for|role)|data-[\w-]*|aria-[\w-]*|testid)\s*[:=]\s*$/i;
+
+const ourNames = fs
+ .readdirSync(path.join(ICONS_DIR, "svg/stirling"))
+ .filter((f) => f.endsWith(".svg"))
+ .map((f) => path.basename(f, ".svg"));
+const known = new Set(iconNames(path.join(ICONS_DIR, "icons.ts")));
+
+const referenced = new Set<string>();
+
+for (const file of files) {
+ const isCode = /\.tsx?$/.test(file);
+
+ if (file.endsWith(".svg")) {
+ if (!SVG_ALLOWED.some((dir) => file.startsWith(dir))) {
+ problems.push(
+ `${rel(file)}: .svg outside src/core/icons/svg/. Icons belong there so ` +
+ `icons.ts can map them; other artwork belongs under assets/.`,
+ );
+ }
+ if (file.startsWith(ICON_SVG_DIR)) {
+ const viewBox = fs
+ .readFileSync(file, "utf8")
+ .match(/<svg\b[^>]*\bviewBox="([^"]*)"/)?.[1]
+ ?.trim()
+ .split(/[\s,]+/)
+ .join(" ");
+ if (viewBox !== ICON_FRAME) {
+ problems.push(
+ `${rel(file)}: viewBox is ${viewBox ? `"${viewBox}"` : "missing"}, not ` +
+ `"${ICON_FRAME}". <Icon> gives every icon the same width and height, and a ` +
+ `stroke weight is measured in viewBox units, so another frame renders at the ` +
+ `wrong size and weight. Redraw it on the 24 grid, or wrap brand art in a ` +
+ `transform that fits it there.`,
+ );
+ }
+ }
+ continue;
+ }
+
+ // A stylesheet fill beats <Icon>'s fill="none" attribute and solidifies every stroke icon in scope.
+ if (
+ MIGRATION_COMPLETE &&
+ file.endsWith(".css") &&
+ !file.startsWith(ICONS_DIR)
+ ) {
+ const css = fs.readFileSync(file, "utf8");
+ for (const m of css.matchAll(/([^{}]*svg[^{}]*)\{([^}]*)\}/g)) {
+ const decl = /(^|[;\s])fill\s*:\s*(?!none|transparent)/.test(m[2]);
+ if (decl && !OPT_OUT.test(m[0])) {
+ const line = css.slice(0, m.index).split("\n").length;
+ problems.push(
+ `${rel(file)}:${line}: sets fill on an svg. Icons are strokes with ` +
+ `fill="none"; a css fill overrides that and renders them solid. ` +
+ `Colour them with \`color\` instead.`,
+ );
+ }
+ }
+ continue;
+ }
+
+ if (!isCode) continue;
+ const text = fs.readFileSync(file, "utf8");
+ const lines = text.split("\n");
+ const inIconsDir = file.startsWith(ICONS_DIR);
+
+ lines.forEach((line, i) => {
+ // No inline svg outside core/icons
+ if (MIGRATION_COMPLETE && /<svg[\s>]/.test(line) && !inIconsDir) {
+ const context = lines.slice(Math.max(0, i - 6), i + 1).join("\n");
+ if (!OPT_OUT.test(context)) {
+ problems.push(
+ `${rel(file)}:${i + 1}: inline <svg>. Move it to src/core/icons/svg/ and render ` +
+ `via <Icon>, or add "// icon-lint-disable -- <reason>" if the geometry is ` +
+ `computed at runtime.`,
+ );
+ }
+ }
+
+ // Leftovers the type system cannot see: ReactNode admits any string, and an unchecked `?? fallback`.
+ for (const m of line.matchAll(/"([a-z0-9]+(?:-[a-z0-9]+)+)"/g)) {
+ if (!MIGRATION_COMPLETE) break;
+ const name = m[1];
+ const isLegacy =
+ /-(?:rounded|outlined|sharp|twotone)$/.test(name) || legacy.has(name);
+ if (!isLegacy || known.has(name)) continue;
+ if (NOT_AN_ICON_POSITION.test(line.slice(0, m.index))) continue;
+ if (OPT_OUT.test(line)) continue;
+ problems.push(
+ `${rel(file)}:${i + 1}: "${name}" is a Material Symbols name, not a registry ` +
+ `icon; <Icon> would draw the placeholder. Use the lucide equivalent, or ` +
+ `add "// icon-lint-disable -- <reason>" if it is not an icon name.`,
+ );
+ }
+
+ // No retired icon library
+ if (
+ MIGRATION_COMPLETE &&
+ (/^\s*(import|export)\b/.test(line) || /\brequire\(/.test(line))
+ ) {
+ for (const banned of BANNED_IMPORTS) {
+ if (
+ line.includes(banned) &&
+ !inIconsDir &&
+ !OPT_OUT.test(lines[i - 1] ?? "")
+ ) {
+ problems.push(
+ `${rel(file)}:${i + 1}: imports ${banned}. Use <Icon name="…" /> from @app/ui/Icon.`,
+ );
+ }
+ }
+ }
+ });
+
+ // Skipped in core/icons, whose galleries build names from the registry rather than writing them out.
+ if (inIconsDir) continue;
+ for (const m of text.matchAll(/<Icon\b[^>]*?\bname="([^"]+)"/gs)) {
+ // `name="${x}"` inside a template literal is a placeholder, not a name.
+ if (m[1].includes("${")) continue;
+ referenced.add(m[1]);
+ if (!known.has(m[1])) {
+ problems.push(
+ `${rel(file)}: <Icon name="${m[1]}" /> is not in the icon map. Add it to ` +
+ `src/core/icons/icons.ts, or fix the name.`,
+ );
+ }
+ }
+ // Count any matching literal: names reach <Icon> indirectly, and over-counting beats deleting a live icon.
+ for (const m of text.matchAll(/"([a-z0-9][a-z0-9-]*)"/g)) {
+ if (known.has(m[1])) referenced.add(m[1]);
+ }
+}
+
+if (mode === "unused") {
+ // Only the svgs we draw: lucide's cost nothing unused, and brand marks resolve from ids, never literals.
+ const unused = ourNames.filter((n) => !referenced.has(n)).sort();
+ console.log(
+ unused.length
+ ? `${unused.length} of our own svgs that nothing references:\n ${unused.join("\n ")}`
+ : "✅ every svg in svg/stirling is referenced",
+ );
+ process.exit(0);
+}
+
+if (problems.length) {
+ console.error(`\n✖ icon-lint: ${problems.length} problem(s)\n`);
+ for (const p of problems) console.error(` ${p}`);
+ console.error("");
+ process.exit(1);
+}
+
+console.log(
+ MIGRATION_COMPLETE
+ ? `✅ icon-lint: ${known.size} icons, one system, no inline svg`
+ : `✅ icon-lint: ${known.size} icons; migration in progress, so the retired-library, inline-svg, legacy-name and css-fill rules are still off`,
+);
diff --git a/frontend/editor/src/core/assets/login/oidc.svg b/frontend/editor/src/core/assets/login/oidc.svg
deleted file mode 100644
index 6c697d709a..0000000000
--- a/frontend/editor/src/core/assets/login/oidc.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="660" height="600" version="1.1"><path fill="#FE6200" d="M0 0 C0 57.09 0 114.18 0 173 C8.415 173.495 8.415 173.495 17 174 C22.13212507 174.61353778 27.20920013 175.27424487 32.3125 176.0625 C33.35173111 176.22247467 33.35173111 176.22247467 34.41195679 176.38568115 C87.28212498 184.61044341 143.75115649 199.67402182 188.89135742 229.19360352 C192.39340352 231.47487198 192.39340352 231.47487198 196.44140625 231.74584961 C199.00353686 230.99896898 200.92235962 230.0848876 203.1953125 228.69921875 C203.98349365 228.22299072 204.7716748 227.7467627 205.58374023 227.25610352 C206.42235596 226.73846436 207.26097168 226.2208252 208.125 225.6875 C209.44963257 224.88107056 209.44963257 224.88107056 210.80102539 224.05834961 C218.2788882 219.48880349 225.68697393 214.80908891 233.0859375 210.11328125 C238.56516867 206.63801776 244.05794024 203.18499956 249.5625 199.75 C250.47378662 199.17644775 251.38507324 198.60289551 252.32397461 198.01196289 C253.16710205 197.48723389 254.01022949 196.96250488 254.87890625 196.421875 C255.6272876 195.95362305 256.37566895 195.48537109 257.14672852 195.00292969 C259 194 259 194 261 194 C261 234.92 261 275.84 261 318 C195 318 129 318 61 318 C66.62046022 312.37953978 66.62046022 312.37953978 70.1953125 310.30859375 C70.98373535 309.84509521 71.7721582 309.38159668 72.58447266 308.90405273 C73.42284668 308.42009033 74.2612207 307.93612793 75.125 307.4375 C76.92821049 306.37691406 78.73026666 305.31436348 80.53125 304.25 C81.44390625 303.71117187 82.3565625 303.17234375 83.296875 302.6171875 C87.45315513 300.13062684 91.54077364 297.5401891 95.625 294.9375 C104.68061691 289.17639009 113.82499619 283.56858057 123 278 C95.41546967 253.17980426 47.87307254 244.92506981 12.4230957 238.65087891 C9.69549527 238.13224381 6.99469148 237.56557616 4.28605652 236.95932007 C3.48163211 236.77956823 2.6772077 236.5998164 1.84840679 236.41461754 C1.23843255 236.27779375 0.62845831 236.14096996 0 236 C0.00968287 236.95226887 0.00968287 236.95226887 0.01956135 237.92377549 C0.40016641 275.5678774 0.69175834 313.21169428 0.8681106 350.857327 C0.88937207 355.37957866 0.9113756 359.90182642 0.93383789 364.42407227 C0.94052681 365.77449264 0.94052681 365.77449264 0.94735085 367.15219422 C1.02128165 381.72092042 1.15529296 396.28850378 1.31159753 410.85655246 C1.47069632 425.80998832 1.56502392 440.76282661 1.59950441 455.7170741 C1.6228081 464.94203832 1.69633253 474.16377254 1.83457994 483.38774201 C1.92459849 489.71710549 1.95157012 496.04480499 1.92952342 502.3747618 C1.91865239 506.0258425 1.93502576 509.67129285 2.02649307 513.32136536 C2.53404806 534.611025 2.53404806 534.611025 -1.66046834 540.22067046 C-5.61382003 543.84486231 -9.99337264 546.11440877 -14.93325436 548.1178354 C-17.9472021 549.4043014 -20.51710879 551.11902775 -23.2421875 552.93359375 C-25.11898742 554.10285441 -26.99659067 555.27082661 -28.875 556.4375 C-30.94554208 557.72749617 -33.01585201 559.01786502 -35.0859375 560.30859375 C-36.08850586 560.93362793 -37.09107422 561.55866211 -38.12402344 562.20263672 C-42.25887824 564.78674547 -46.38050299 567.39150173 -50.5 570 C-55.66368756 573.26924126 -60.83510492 576.52543937 -66.01953125 579.76171875 C-67.57365723 580.73226196 -67.57365723 580.73226196 -69.15917969 581.72241211 C-71.24494276 583.02221909 -73.33280531 584.31866375 -75.42285156 585.61157227 C-79.75754504 588.30094736 -84.06005599 590.99141777 -88.21484375 593.953125 C-88.82610107 594.38020752 -89.4373584 594.80729004 -90.06713867 595.24731445 C-91.59690593 596.32922587 -93.10452179 597.4422887 -94.609375 598.55859375 C-104.17888449 602.62673776 -116.13257118 599.41829489 -126.125 597.9375 C-126.8782254 597.82773834 -127.63145081 597.71797668 -128.40750122 597.60488892 C-155.10921512 593.68788246 -181.21892048 588.0366224 -207 580 C-208.55702637 579.51877686 -208.55702637 579.51877686 -210.14550781 579.02783203 C-252.4892261 565.81471296 -293.49031089 546.13359294 -328 518 C-328.55075195 517.55221191 -329.10150391 517.10442383 -329.66894531 516.64306641 C-344.0262393 504.87499381 -357.05375247 492.02119149 -368 477 C-368.39912598 476.45633789 -368.79825195 475.91267578 -369.20947266 475.35253906 C-392.91190201 442.83128247 -403.85540073 404.17862698 -398.31640625 364.015625 C-397.49292051 359.26188702 -396.34256653 354.631548 -395 350 C-394.78569336 349.2373584 -394.57138672 348.4747168 -394.35058594 347.68896484 C-391.13292385 336.49740216 -386.62671929 326.17910618 -381 316 C-380.65066406 315.36465332 -380.30132812 314.72930664 -379.94140625 314.07470703 C-371.83738068 299.52530948 -361.49162018 286.98857593 -350 275 C-349.49742676 274.47019531 -348.99485352 273.94039063 -348.47705078 273.39453125 C-341.05202995 265.6016144 -333.26048878 258.6983199 -324.64941406 252.24365234 C-323.12444203 251.09382885 -321.619807 249.91716565 -320.1171875 248.73828125 C-266.81422583 207.38765499 -198.78193787 186.43202299 -133 176.25 C-132.31911316 176.1429071 -131.63822632 176.03581421 -130.93670654 175.92547607 C-129.93815643 175.76973114 -129.93815643 175.76973114 -128.91943359 175.61083984 C-128.34196381 175.52039398 -127.76449402 175.42994812 -127.16952515 175.33676147 C-120.94349948 174.44098127 -114.78189332 173.78966702 -108.50390625 173.43652344 C-107.77659302 173.39341034 -107.04927979 173.35029724 -106.29992676 173.30587769 C-104.53342535 173.20150671 -102.76673142 173.10040225 -101 173 C-101.02074034 172.17119166 -101.02074034 172.17119166 -101.04189968 171.32563972 C-101.37399305 157.84546534 -101.62081125 144.36601235 -101.77718258 130.88261604 C-101.85535887 124.36159622 -101.96130923 117.8435353 -102.1315918 111.32421875 C-102.29500975 105.02805601 -102.38434565 98.73473139 -102.42315865 92.43661118 C-102.45080164 90.03850484 -102.50479107 87.64054815 -102.58595085 85.24365616 C-103.18130054 66.92673567 -103.18130054 66.92673567 -99.52549744 62.02160263 C-95.51009029 58.30398314 -90.97637623 56.16816603 -86 54 C-84.54249937 53.09533774 -83.09809025 52.16707622 -81.6953125 51.1796875 C-80.5060068 50.4102228 -79.31590351 49.64198945 -78.125 48.875 C-77.4441333 48.43526855 -76.7632666 47.99553711 -76.06176758 47.54248047 C-68.5391438 42.69050798 -60.992142 37.87650432 -53.44970703 33.05541992 C-44.38499907 27.25678412 -35.3589696 21.4002907 -26.34326172 15.52587891 C-22.4194515 12.97078265 -18.49180794 10.42163155 -14.5625 7.875 C-13.87027344 7.42535889 -13.17804688 6.97571777 -12.46484375 6.51245117 C-2.41141154 0 -2.41141154 0 0 0 Z M-202 265 C-203.40740081 265.66438305 -204.8149486 266.32845483 -206.22265625 266.9921875 C-226.15067623 276.52952704 -243.53669409 289.35049348 -260 304 C-260.72832031 304.64195312 -261.45664062 305.28390625 -262.20703125 305.9453125 C-283.6307223 326.06103084 -297.78356798 354.67970444 -299.03125 384.125 C-298.92387323 397.4397192 -296.55043235 409.51957444 -292 422 C-291.64164062 423.02351562 -291.28328125 424.04703125 -290.9140625 425.1015625 C-285.07813826 440.45707947 -275.06824297 453.08794049 -264 465 C-263.22914063 465.84175781 -262.45828125 466.68351563 -261.6640625 467.55078125 C-255.39484224 474.11132215 -248.25461404 479.58481164 -241 485 C-239.99324219 485.75152344 -238.98648438 486.50304687 -237.94921875 487.27734375 C-198.06145792 515.88685314 -149.30111356 530.9623608 -101 537 C-101 437.67 -101 338.34 -101 236 C-134.31853884 236 -172.60102557 250.75734058 -202 265 Z" transform="translate(399,0)"/><path fill="#CCCBCB" d="M0 0 C0 20.79 0 41.58 0 63 C-5.24841939 64.16631542 -10.39838479 65.29253106 -15.67578125 66.2265625 C-40.87427673 70.80660183 -65.31370876 77.09720394 -89 87 C-89.8343457 87.34643555 -90.66869141 87.69287109 -91.52832031 88.04980469 C-122.35826708 100.99530289 -153.08258507 120.19644793 -173.5 147.1875 C-174.34800171 148.30777588 -174.34800171 148.30777588 -175.21313477 149.45068359 C-192.44810623 172.52486636 -200.77216074 199.73105012 -196.79296875 228.50390625 C-195.64830139 235.59656473 -193.45505231 242.26655244 -191 249 C-190.64164062 250.02351562 -190.28328125 251.04703125 -189.9140625 252.1015625 C-184.07517346 267.46488046 -174.05844002 280.07060885 -163 292 C-162.30261719 292.76828125 -161.60523438 293.5365625 -160.88671875 294.328125 C-123.17922705 334.05421904 -64.42812654 352.62435588 -12.08764648 361.42504883 C-8.03764151 362.17920094 -4.02152172 363.10632851 0 364 C0 384.79 0 405.58 0 427 C-6.20846882 427 -11.44016669 426.97826822 -17.4375 426.15234375 C-18.44259865 426.01478668 -18.44259865 426.01478668 -19.46800232 425.87445068 C-21.64682203 425.57172093 -23.82347704 425.25630365 -26 424.9375 C-26.75822052 424.82773834 -27.51644104 424.71797668 -28.29763794 424.60488892 C-55.0409923 420.70221143 -81.18121046 415.04837758 -107 407 C-108.55702637 406.51877686 -108.55702637 406.51877686 -110.14550781 406.02783203 C-152.4892261 392.81471296 -193.49031089 373.13359294 -228 345 C-228.55075195 344.55221191 -229.10150391 344.10442383 -229.66894531 343.64306641 C-244.0262393 331.87499381 -257.05375247 319.02119149 -268 304 C-268.39912598 303.45633789 -268.79825195 302.91267578 -269.20947266 302.35253906 C-292.91190201 269.83128247 -303.85540073 231.17862698 -298.31640625 191.015625 C-297.49292051 186.26188702 -296.34256653 181.631548 -295 177 C-294.78569336 176.2373584 -294.57138672 175.4747168 -294.35058594 174.68896484 C-291.13292385 163.49740216 -286.62671929 153.17910618 -281 143 C-280.65066406 142.36465332 -280.30132812 141.72930664 -279.94140625 141.07470703 C-271.83738068 126.52530948 -261.49162018 113.98857593 -250 102 C-249.49742676 101.47019531 -248.99485352 100.94039063 -248.47705078 100.39453125 C-241.05202995 92.6016144 -233.26048878 85.6983199 -224.64941406 79.24365234 C-223.12444203 78.09382885 -221.619807 76.91716565 -220.1171875 75.73828125 C-161.40086551 30.18815403 -74.50051823 0 0 0 Z" transform="translate(299,173)"/><path fill="#CCC" d="M0 0 C10.97163436 0.64539026 21.50993823 1.39393751 32.3125 3.0625 C33.00532074 3.16914978 33.69814148 3.27579956 34.41195679 3.38568115 C87.28212498 11.61044341 143.75115649 26.67402182 188.89135742 56.19360352 C192.39340352 58.47487198 192.39340352 58.47487198 196.44140625 58.74584961 C199.00353686 57.99896898 200.92235962 57.0848876 203.1953125 55.69921875 C204.37758423 54.98487671 204.37758423 54.98487671 205.58374023 54.25610352 C206.42235596 53.73846436 207.26097168 53.2208252 208.125 52.6875 C209.44963257 51.88107056 209.44963257 51.88107056 210.80102539 51.05834961 C218.2788882 46.48880349 225.68697393 41.80908891 233.0859375 37.11328125 C238.56516867 33.63801776 244.05794024 30.18499956 249.5625 26.75 C250.47378662 26.17644775 251.38507324 25.60289551 252.32397461 25.01196289 C253.16710205 24.48723389 254.01022949 23.96250488 254.87890625 23.421875 C255.6272876 22.95362305 256.37566895 22.48537109 257.14672852 22.00292969 C259 21 259 21 261 21 C261 61.92 261 102.84 261 145 C195 145 129 145 61 145 C66.62046022 139.37953978 66.62046022 139.37953978 70.1953125 137.30859375 C71.37794678 136.61334595 71.37794678 136.61334595 72.58447266 135.90405273 C73.42284668 135.42009033 74.2612207 134.93612793 75.125 134.4375 C76.92821049 133.37691406 78.73026666 132.31436348 80.53125 131.25 C81.44390625 130.71117187 82.3565625 130.17234375 83.296875 129.6171875 C87.45315513 127.13062684 91.54077364 124.5401891 95.625 121.9375 C104.68061691 116.17639009 113.82499619 110.56858057 123 105 C95.41546967 80.17980426 47.87307254 71.92506981 12.4230957 65.65087891 C8.26336652 64.85993404 4.13342785 63.91853952 0 63 C0 42.21 0 21.42 0 0 Z" transform="translate(399,173)"/></svg>
\ No newline at end of file
diff --git a/frontend/editor/src/core/auth/ui/ProviderMark.tsx b/frontend/editor/src/core/auth/ui/ProviderMark.tsx
new file mode 100644
index 0000000000..34a12a7888
--- /dev/null
+++ b/frontend/editor/src/core/auth/ui/ProviderMark.tsx
@@ -0,0 +1,23 @@
+import type { CSSProperties } from "react";
+
+import { Icon } from "@app/ui/Icon";
+import { oauthIconUrl, hasProviderArtwork } from "@app/auth/ui/oauthIcons";
+
+interface ProviderMarkProps {
+ /** Provider icon filename, e.g. "google.svg". */
+ file: string;
+ className?: string;
+ style?: CSSProperties;
+}
+
+/** A sign-in provider's mark: its own artwork where we have it, a neutral glyph otherwise. */
+export function ProviderMark({ file, className, style }: ProviderMarkProps) {
+ if (!hasProviderArtwork(file)) {
+ return (
+ <Icon name="shield-user" className={className} style={style} size="1em" />
+ );
+ }
+ return (
+ <img src={oauthIconUrl(file)} alt="" className={className} style={style} />
+ );
+}
diff --git a/frontend/editor/src/core/auth/ui/oauthIcons.ts b/frontend/editor/src/core/auth/ui/oauthIcons.ts
index f0d879786f..c4b1fb2d7e 100644
--- a/frontend/editor/src/core/auth/ui/oauthIcons.ts
+++ b/frontend/editor/src/core/auth/ui/oauthIcons.ts
@@ -13,9 +13,8 @@ import microsoftIcon from "@app/assets/login/microsoft.svg";
import keycloakIcon from "@app/assets/login/keycloak.svg";
import cloudronIcon from "@app/assets/login/cloudron.svg";
import authentikIcon from "@app/assets/login/authentik.svg";
-import oidcIcon from "@app/assets/login/oidc.svg";
-/** Generic fallback icon (filename) for unknown providers. */
+/** Filename used for a provider with no bundled artwork. */
export const GENERIC_PROVIDER_ICON = "oidc.svg";
const ICON_BY_FILE: Record<string, string> = {
@@ -26,10 +25,14 @@ const ICON_BY_FILE: Record<string, string> = {
"keycloak.svg": keycloakIcon,
"cloudron.svg": cloudronIcon,
"authentik.svg": authentikIcon,
- "oidc.svg": oidcIcon,
};
+/** Whether a bundled mark exists for this filename. */
+export function hasProviderArtwork(file: string): boolean {
+ return Object.hasOwn(ICON_BY_FILE, file);
+}
+
/** Resolve a provider icon filename (e.g. "google.svg") to its bundled URL. */
export function oauthIconUrl(file: string): string {
- return ICON_BY_FILE[file] ?? ICON_BY_FILE[GENERIC_PROVIDER_ICON];
+ return ICON_BY_FILE[file] ?? "";
}
diff --git a/frontend/editor/src/core/icons/IconAudit.css b/frontend/editor/src/core/icons/IconAudit.css
new file mode 100644
index 0000000000..a442eed649
--- /dev/null
+++ b/frontend/editor/src/core/icons/IconAudit.css
@@ -0,0 +1,74 @@
+/* Styles for the migration audit story. Delete with IconAudit.stories.tsx. */
+
+.icon-audit {
+ padding: 1.5rem 2rem 5rem;
+ background: var(--c-bg);
+ color: var(--c-text);
+ font-size: 0.875rem;
+}
+
+.icon-audit__h1 {
+ margin: 0 0 0.25rem;
+ font-size: 1.25rem;
+}
+
+.icon-audit__h2 {
+ margin: 2rem 0 0.5rem;
+ padding-bottom: 0.5rem;
+ border-bottom: 1px solid var(--c-border);
+ font-size: 0.9375rem;
+}
+
+.icon-audit__count {
+ margin-left: 0.5rem;
+ color: var(--c-text-subtle);
+ font-weight: 400;
+}
+
+.icon-audit__note {
+ max-width: 60ch;
+ margin: 0 0 1rem;
+ color: var(--c-text-muted);
+}
+
+.icon-audit__table {
+ width: 100%;
+ max-width: 46rem;
+ border-collapse: collapse;
+}
+
+.icon-audit__table td {
+ padding: 0.375rem 0.5rem;
+ border-bottom: 1px solid var(--c-border-subtle);
+ vertical-align: middle;
+}
+
+.icon-audit__cell {
+ width: 2.75rem;
+ line-height: 0;
+ text-align: center;
+}
+
+/* The legacy Material glyphs are filled shapes, not strokes. */
+.icon-audit__legacy {
+ fill: currentColor;
+}
+
+.icon-audit__arrow {
+ width: 1.5rem;
+ color: var(--c-text-subtle);
+ text-align: center;
+}
+
+.icon-audit__name {
+ font-family: ui-monospace, monospace;
+ font-size: 0.75rem;
+}
+
+.icon-audit__name--target {
+ color: var(--c-text-muted);
+}
+
+.icon-audit__absent {
+ color: var(--c-text-subtle);
+}
diff --git a/frontend/editor/src/core/icons/IconAudit.stories.tsx b/frontend/editor/src/core/icons/IconAudit.stories.tsx
new file mode 100644
index 0000000000..2190b922c1
--- /dev/null
+++ b/frontend/editor/src/core/icons/IconAudit.stories.tsx
@@ -0,0 +1,123 @@
+import type { Meta, StoryObj } from "@storybook/react-vite";
+
+import { Icon, isIconName } from "@app/ui/Icon";
+import { ICONS } from "@app/icons/icons";
+import { STROKE_WIDTH } from "@app/icons/icons.config";
+import iconMap from "@app/icons/icon-map.json";
+import legacyGlyphs from "virtual:legacy-icons";
+
+import "@app/icons/IconAudit.css";
+
+/** Every legacy icon beside its replacement. Delete with its css and icon-map.json once signed off. */
+const meta = {
+ title: "Migration/Icon audit",
+ parameters: { layout: "fullscreen", a11y: { disable: true } },
+} satisfies Meta;
+export default meta;
+
+type LegacyEntry = { viewBox: string; body: string };
+const legacy = legacyGlyphs as {
+ mui: Record<string, LegacyEntry>;
+ materialSymbols: Record<string, LegacyEntry>;
+};
+
+function LegacyGlyph({ entry }: { entry: LegacyEntry }) {
+ return (
+ <svg
+ className="icon-audit__legacy"
+ width={24}
+ height={24}
+ viewBox={entry.viewBox}
+ // icon-lint-disable -- upstream glyph read from node_modules for the diff
+ dangerouslySetInnerHTML={{ __html: entry.body }}
+ />
+ );
+}
+
+/** A mapping target the app never uses is absent from the bundle by design. */
+function Replacement({ target }: { target: string }) {
+ return isIconName(target) ? (
+ <Icon name={target} size={24} />
+ ) : (
+ <span className="icon-audit__absent" title="not bundled: nothing uses it">
+ –
+ </span>
+ );
+}
+
+function Section({
+ title,
+ note,
+ store,
+ section,
+}: {
+ title: string;
+ note?: string;
+ store: Record<string, LegacyEntry>;
+ section: Record<string, string>;
+}) {
+ const rows = Object.entries(section).filter(([name]) => store[name]);
+ return (
+ <section>
+ <h2 className="icon-audit__h2">
+ {title} <span className="icon-audit__count">{rows.length}</span>
+ </h2>
+ {note && <p className="icon-audit__note">{note}</p>}
+ <table className="icon-audit__table">
+ <tbody>
+ {rows.map(([name, target]) => (
+ <tr key={name}>
+ <td className="icon-audit__cell">
+ <LegacyGlyph entry={store[name]} />
+ </td>
+ <td className="icon-audit__arrow">→</td>
+ <td className="icon-audit__cell">
+ <Replacement target={target} />
+ </td>
+ <td className="icon-audit__name">{name}</td>
+ <td className="icon-audit__name icon-audit__name--target">
+ {target}
+ </td>
+ </tr>
+ ))}
+ </tbody>
+ </table>
+ </section>
+ );
+}
+
+export const BeforeAfter: StoryObj = {
+ render: () => {
+ const total =
+ Object.keys(iconMap.mui).length +
+ Object.keys(iconMap.materialSymbols).length +
+ Object.keys(iconMap.portal).length +
+ Object.keys(iconMap.labelIcons).length;
+ return (
+ <div className="icon-audit">
+ <h1 className="icon-audit__h1">Icon consolidation: before / after</h1>
+ <p className="icon-audit__note">
+ Left glyph is what the app used before. Right glyph is its
+ replacement, drawn from Lucide at stroke {STROKE_WIDTH}. {total}{" "}
+ legacy names map onto {Object.keys(ICONS).length} icons.
+ </p>
+ <Section
+ title="@mui/icons-material → Lucide"
+ store={legacy.mui}
+ section={iconMap.mui}
+ />
+ <Section
+ title="Material Symbols → Lucide"
+ store={legacy.materialSymbols}
+ section={iconMap.materialSymbols}
+ />
+ <Section
+ title="Classification label palette → Lucide"
+ note="Icons users pick for classification labels, mirrored in the backend resource."
+ store={legacy.materialSymbols}
+ section={iconMap.labelIcons}
+ />
+ </div>
+ );
+ },
+};
diff --git a/frontend/editor/src/core/icons/IconRegistry.css b/frontend/editor/src/core/icons/IconRegistry.css
new file mode 100644
index 0000000000..37a9474351
--- /dev/null
+++ b/frontend/editor/src/core/icons/IconRegistry.css
@@ -0,0 +1,89 @@
+/* Styles for the icon registry story. */
+
+.icon-registry {
+ padding: 1.5rem 2rem 5rem;
+ color: var(--c-text);
+ background: var(--c-bg);
+ font-size: 0.875rem;
+}
+
+.icon-registry__h1 {
+ margin: 0 0 0.25rem;
+ font-size: 1.25rem;
+}
+
+.icon-registry__note {
+ max-width: 60ch;
+ margin: 0 0 1rem;
+ color: var(--c-text-muted);
+}
+
+.icon-registry__cell {
+ width: 2.75rem;
+ line-height: 0;
+ text-align: center;
+}
+
+.icon-registry__grid {
+ display: grid;
+ gap: 0.5rem;
+ grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
+}
+
+.icon-registry__tile {
+ display: flex;
+ flex-direction: column;
+ gap: 0.375rem;
+ align-items: center;
+ padding: 0.625rem 0.5rem;
+ border: 1px solid var(--c-border-subtle);
+ border-radius: 0.375rem;
+ background: var(--c-surface);
+}
+
+.icon-registry__sizes {
+ display: flex;
+ gap: 0.5rem;
+ align-items: flex-end;
+ min-height: 1.5rem;
+}
+
+.icon-registry__tile code {
+ overflow: hidden;
+ width: 100%;
+ color: var(--c-text-muted);
+ font-size: 0.625rem;
+ text-align: center;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.icon-registry__search {
+ width: 100%;
+ max-width: 22rem;
+ margin-bottom: 1rem;
+ padding: 0.5rem 0.75rem;
+ border: 1px solid var(--c-border);
+ border-radius: 0.375rem;
+ background: var(--c-input-bg);
+ color: var(--c-text);
+ font: inherit;
+}
+
+.icon-registry__tag {
+ padding: 0 0.375rem;
+ border-radius: 0.25rem;
+ font-size: 0.5625rem;
+ letter-spacing: 0.04em;
+ text-transform: uppercase;
+}
+
+.icon-registry__tag--custom {
+ background: var(--c-primary-subtle);
+ color: var(--c-accent-fg, var(--c-primary));
+}
+
+.icon-registry__tag--brand {
+ background: var(--c-surface-raised);
+ color: var(--c-text-subtle);
+}
diff --git a/frontend/editor/src/core/icons/IconRegistry.stories.tsx b/frontend/editor/src/core/icons/IconRegistry.stories.tsx
new file mode 100644
index 0000000000..83d78bf14e
--- /dev/null
+++ b/frontend/editor/src/core/icons/IconRegistry.stories.tsx
@@ -0,0 +1,124 @@
+import type { Meta, StoryObj } from "@storybook/react-vite";
+import { createElement, type ReactNode, useMemo, useState } from "react";
+
+import { Icon } from "@app/ui/Icon";
+import { ICONS, type IconName } from "@app/icons/icons";
+import { STROKE_WIDTH } from "@app/icons/icons.config";
+import usedIcons from "virtual:used-icons";
+
+import "@app/icons/IconRegistry.css";
+
+const meta = {
+ title: "Icons/Registry",
+ parameters: { layout: "fullscreen", a11y: { disable: true } },
+} satisfies Meta;
+export default meta;
+
+const ALL = Object.keys(ICONS).sort() as IconName[];
+const BRAND = new Set(ALL.filter((name) => ICONS[name].kind === "brand"));
+const CUSTOM = new Set(ALL.filter((name) => ICONS[name].kind === "stirling"));
+
+// Brand marks resolve from a connector id, never a literal, so the scan cannot see them.
+const USED = new Set([...usedIcons, ...BRAND]);
+const IN_USE = ALL.filter((name) => USED.has(name));
+
+const SIZES = [16, 20, 24] as const;
+
+function Tile({ name, sizes }: { name: IconName; sizes: readonly number[] }) {
+ const kind = CUSTOM.has(name) ? "custom" : BRAND.has(name) ? "brand" : null;
+ return (
+ <div className="icon-registry__tile">
+ <div className="icon-registry__sizes">
+ {sizes.map((size) => createElement(Icon, { key: size, name, size }))}
+ </div>
+ <code>{name}</code>
+ {kind && (
+ <span className={`icon-registry__tag icon-registry__tag--${kind}`}>
+ {kind}
+ </span>
+ )}
+ </div>
+ );
+}
+
+function Gallery({
+ heading,
+ note,
+ names,
+ sizes = SIZES,
+}: {
+ heading: string;
+ note: ReactNode;
+ names: readonly IconName[];
+ sizes?: readonly number[];
+}) {
+ const [query, setQuery] = useState("");
+ const shown = useMemo(() => {
+ const q = query.trim().toLowerCase();
+ return q ? names.filter((n) => n.includes(q)) : names;
+ }, [names, query]);
+ return (
+ <div className="icon-registry">
+ <h1 className="icon-registry__h1">{heading}</h1>
+ <p className="icon-registry__note">{note}</p>
+ <input
+ className="icon-registry__search"
+ placeholder="Filter by name..."
+ value={query}
+ onChange={(e) => setQuery(e.target.value)}
+ />
+ <div className="icon-registry__grid">
+ {shown.map((name) => (
+ <Tile key={name} name={name} sizes={sizes} />
+ ))}
+ </div>
+ </div>
+ );
+}
+
+/** What the app renders today: check here before adding a name. */
+export const InUse: StoryObj = {
+ render: () => (
+ <Gallery
+ heading={`${IN_USE.length} icons in use`}
+ note={
+ <>
+ Names the app references, out of {ALL.length} bundled. Rendered at 16,
+ 20 and 24px. Reach for one of these before adding a new name, so the
+ same idea does not end up drawn two ways.
+ </>
+ }
+ names={IN_USE}
+ />
+ ),
+};
+
+/** The catalogue: everything IconName accepts. */
+export const AllIcons: StoryObj = {
+ render: () => (
+ <Gallery
+ heading={`${ALL.length} icons available`}
+ note={
+ <>
+ Lucide at stroke {STROKE_WIDTH}, plus {CUSTOM.size} of our own
+ drawings and {BRAND.size} brand marks. Every name here type-checks in{" "}
+ <code>&lt;Icon name=&quot;…&quot; /&gt;</code>. Rendered at 24px;
+ filter to see a name at all three sizes in <em>In use</em>.
+ </>
+ }
+ names={ALL}
+ sizes={[24]}
+ />
+ ),
+};
+
+/** Just our own drawings, where quality problems show up first. */
+export const CustomIcons: StoryObj = {
+ render: () => (
+ <Gallery
+ heading="Our own icons"
+ note="Drawn in Lucide's grammar and living in src/core/icons/svg/stirling."
+ names={[...CUSTOM].sort() as IconName[]}
+ />
+ ),
+};
diff --git a/frontend/editor/src/core/icons/LICENSE-lucide.txt b/frontend/editor/src/core/icons/LICENSE-lucide.txt
new file mode 100644
index 0000000000..91b171e4e3
--- /dev/null
+++ b/frontend/editor/src/core/icons/LICENSE-lucide.txt
@@ -0,0 +1,82 @@
+WHAT THIS COVERS
+================
+
+Lucide icon geometry used in this project. Two places rely on this notice:
+
+1. The lucide icons src/core/icons/icons.ts maps. Their geometry is read from
+ the lucide-static package at build time and is not checked in; it disappears
+ if that package is removed.
+
+2. Two icons in src/core/icons/svg/stirling/ that reuse lucide geometry so they
+ sit in the same visual family. These are checked in and do NOT disappear
+ with the package:
+
+ users-plus.svg the person body M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2
+ the second head M16 3.128a4 4 0 0 1 0 7.744
+ (from lucide "users"; head circle and plus are ours)
+
+ cpu.svg the body, inner M6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6
+ square and the a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z
+ twelve pins M9 8h6a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H9
+ a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z
+ plus the twelve 2-unit pins
+ (from lucide "cpu", redrawn as a single evenodd path so
+ 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
+ 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)
+
+Neither source icon 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
+icons.ts maps, remains. task frontend:lint:icons fails if it goes missing.
+
+The verbatim upstream notice follows.
+
+================
+
+ISC License
+
+Copyright (c) 2026 Lucide Icons and Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+---
+
+The following Lucide icons are derived from the Feather project:
+
+airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
+
+The MIT License (MIT) (for the icons listed above)
+
+Copyright (c) 2013-present Cole Bemis
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/frontend/editor/src/core/icons/README.md b/frontend/editor/src/core/icons/README.md
new file mode 100644
index 0000000000..7e521aa6f9
--- /dev/null
+++ b/frontend/editor/src/core/icons/README.md
@@ -0,0 +1,75 @@
+# Icon system (`core/icons/`)
+
+Read this before adding, changing or styling any icon.
+
+## TL;DR rules
+
+1. **Render every icon with `<Icon name="…" />`** from `@app/ui/Icon`. There is one icon component and one icon set.
+2. **Never write an `<svg>` in a `.ts`/`.tsx` file.** Icons are `.svg` files under `svg/stirling/` or `svg/third-party/`. Geometry computed at runtime (charts, overlays, previews) is the only exception and needs a `// icon-lint-disable -- <reason>` comment.
+3. **Size with the `size` prop, never `fontSize`.** The old icons were font glyphs; `<Icon>` sizes via `width`/`height`, so `style={{ fontSize }}` does nothing at all.
+4. **A name has to be in `icons.ts`.** Adding one is two lines: the `?react` import and the map entry. `IconName` comes from that map, so anything missing is a compile error.
+5. `task frontend:lint:icons` enforces 1–3 (see [Linter](#linter)).
+
+## The standard
+
+**Lucide**, rendered at **stroke width 1.75** — the weight the processor chrome was drawn at. Every monochrome icon inherits colour from `currentColor`, so it themes automatically.
+
+`icons.ts` maps a name to the component `?react` compiles from its svg, and `IconName` is `keyof` that map, so an unknown name is a compile error at the call site rather than a placeholder someone notices in production. Browse the set in Storybook under **Icons/Registry**: *In use* is what the app renders today, *All icons* is everything the map accepts.
+
+One `--c-*` note: colour icons the same way you colour text. `<Icon name="x" style={{ color: "var(--c-danger)" }} />`, not a `fill`.
+
+## Filled and colourless states
+
+Two props cover the cases one outline glyph cannot:
+
+- **`filled`** paints a mono icon with `currentColor` instead of `fill="none"`. Use it for the on state of a toggle whose off state is the same outline, so favourited/pinned reads at a glance: `<Icon name="star" filled={isFavorite} />`. Only meaningful on a closed shape; on `pin` the open needle line stays a stroke, which is what you want.
+- **`colorless`** dims a brand mark, for a source that is off or unavailable (the Google Drive entry in the file-source list). Opacity only: the mark keeps its own colours. The rule lives in `colorless.css`.
+
+Neither is a styling escape hatch: reach for `filled` only where the outline already carries the off state, and `colorless` only where a source is genuinely unavailable.
+
+## Files
+
+The component lives with the other shared primitives, in `core/ui/Icon.tsx` — import it from `@app/ui/Icon`, the same way you import `@app/ui/Button`. This folder holds the icon sources and the map that names them.
+
+| File | Role |
+|---|---|
+| `core/ui/Icon.tsx` | The only icon component, plus `isIconName()`. Re-exports `IconName`, so `@app/ui/Icon` is the single import. |
+| `icons.ts` | Name → component and where it came from (lucide, ours, a brand mark). Every icon the app can render, and the source of `IconName`. |
+| `icons.config.ts` | Stroke weight and default size. |
+| `colorless.ts` / `colorless.css` | The `colorless` class, which dims a brand mark for a disabled source. |
+| `svg/stirling/*.svg` | Our own drawings, for glyphs lucide has no equivalent for. |
+| `svg/third-party/*.svg` | Brand marks (S3, Slack, Jira…), which keep their own colours. |
+| `icon-map.json` | Temporary: legacy name → lucide name, for the migration audit story only. |
+
+`?react` compiles each svg into a component at build time, configured once in `editor/scripts/icons/svgrOptions.mts` so the app, Storybook and the tests transform them the same way. Lucide's own svgs are read from `lucide-static` in `node_modules`, so none of its artwork is checked in.
+
+## Adding an icon
+
+**It exists in lucide** — add two lines to `icons.ts`: an import from `lucide-static/icons/<name>.svg?react`, and an entry pointing at it. Check *Icons/Registry → In use* first, so the same idea does not end up drawn two ways.
+
+**It does not exist in lucide** — draw it. Put a kebab-case `.svg` in `svg/stirling/` using lucide's grammar (`viewBox="0 0 24 24"`, `fill="none"`, `stroke="currentColor"`, stroke width 1.75, round caps and joins), then add it to `icons.ts`. See `users-plus.svg` or `line-weight.svg`. Draw inside the 2..22 box lucide keeps its glyphs in: nothing rescales our drawings, because a glyph that is small on purpose (a dot, a chevron) would be inflated to fill the box.
+
+**It is a brand mark** — put it in `svg/third-party/`, named after the connector `type`/`kind` the API returns, so `<BrandMark id={type} />` resolves it, and add it to `icons.ts` with `kind: "brand"` so `<Icon>` leaves its colours alone. Brand art arrives on its owner's grid (Drive on 87.3x78, Dropbox on 16x16), so wrap the geometry in a `translate`/`scale` that fits its ink into the middle 20 units of a `0 0 24 24` frame, the way the committed marks do. Keep the owner's path data exactly as published.
+
+## Names that come from data
+
+An icon name is often not a literal: a tool registry entry, a saved automation, a classification label. Type those fields `IconName` rather than `string` — that is what makes the compiler catch a name `icons.ts` does not map.
+
+For a prop that takes *either* a name or your own node, narrow with `isIconName()`. `typeof x === "string"` does not work, because `ReactNode` already includes `string`.
+
+## Linter
+
+`editor/scripts/lint/icon-lint.mts`, run by `task frontend:lint:icons` (part of `task frontend:lint`). Blocking: no inline `<svg>`, no retired icon library, `.svg` only in the icon dirs or `assets/`, every `<Icon name="…">` literal must resolve, and every icon svg must be on the `0 0 24 24` frame.
+
+`task frontend:lint:unused-icons` reports svgs in `svg/stirling/` that nothing renders, each of which is a drawing to keep on style for no reason. It deliberately over-counts references, because a false "unused" gets a live icon deleted.
+
+## Gotchas
+
+- **A css `fill` breaks every icon in its scope.** Stroke icons render with `fill="none"`; a stylesheet fill overrides that presentation attribute and renders them solid. Colour them with `color`. icon-lint blocks this.
+- **An unknown name never throws.** `<Icon>` draws a dashed-circle placeholder (`MISSING_ICON`) and, in dev, logs the name once; the svg carries `data-missing-icon` so a screenshot or e2e run can spot it. Seeing it means a typo, or a name from data that `icons.ts` does not map. `task frontend:lint:icons` catches Material Symbols names left in any position, and `isIconName` is the guard for names that arrive from data.
+- **`fontSize` is inert on `<Icon>`.** The most likely regression when porting old code: the icon silently renders at the default size. Use `size`.
+- **A filled/outline pair is one icon plus `filled`, not two.** MUI shipped `Star` and `StarBorder` as separate glyphs, so a component that rendered both collapsed to one name here. If a legacy diff shows a filled variant, check whether the difference encoded state before treating it as a duplicate.
+- **`iconMap.ts` keys are persisted.** A saved automation or watched folder stores `"SettingsIcon"`, so those keys must never be renamed — only their values.
+- **The classification label palette is mirrored in the backend** (`app/proprietary/src/main/resources/classification/classification-labels.json`) and a drift test enforces icon parity. Change both sides together.
+- **Brand marks look unreferenced.** They resolve from connector ids the API returns, never from literals; the unused report and the gallery's *In use* view both allow for that.
+- **No third-party icon artwork is checked in.** `Migration/Icon audit` gets its "before" glyphs from `virtual:legacy-icons`, served straight out of the icon packages by `editor/scripts/icons/legacyIcons.vite.mts`; never commit another icon set's geometry. The audit and everything it needs go once the mapping is signed off.
diff --git a/frontend/editor/src/core/icons/colorless.css b/frontend/editor/src/core/icons/colorless.css
new file mode 100644
index 0000000000..781a2cd219
--- /dev/null
+++ b/frontend/editor/src/core/icons/colorless.css
@@ -0,0 +1,5 @@
+/* Dims a brand mark for a source that is off or unavailable. */
+
+.icon-colorless {
+ opacity: 0.3;
+}
diff --git a/frontend/editor/src/core/icons/colorless.ts b/frontend/editor/src/core/icons/colorless.ts
new file mode 100644
index 0000000000..ac3503e31f
--- /dev/null
+++ b/frontend/editor/src/core/icons/colorless.ts
@@ -0,0 +1,8 @@
+import "@app/icons/colorless.css";
+
+/**
+ * Class that dims a brand mark, for `<Icon colorless />`. Only meaningful on the marks in
+ * svg/third-party: a stroke icon takes its colour from the text around it, which already dims
+ * with the control it sits in.
+ */
+export const COLORLESS_CLASS = "icon-colorless";
diff --git a/frontend/editor/src/core/icons/icon-map.json b/frontend/editor/src/core/icons/icon-map.json
new file mode 100644
index 0000000000..c0becdde90
--- /dev/null
+++ b/frontend/editor/src/core/icons/icon-map.json
@@ -0,0 +1,638 @@
+{
+ "$comment": "Legacy icon name -> lucide name. Consumed by generate-icon-registry.mjs and the migration codemod. needsReview lists picks where the legacy vocabulary had no clean lucide equivalent.",
+ "needsReview": ["materialSymbols:screen-rotation-alt-rounded"],
+ "mui": {
+ "Close": "x",
+ "CloseRounded": "x",
+ "Delete": "trash",
+ "DeleteOutlined": "trash",
+ "DeleteOutlineRounded": "trash",
+ "DeleteSweep": "trash",
+ "DeleteSweepRounded": "trash",
+ "Download": "download",
+ "DownloadRounded": "download",
+ "DownloadOutlined": "download",
+ "FileDownload": "download",
+ "FileDownloadOutlined": "download",
+ "FileDownloadRounded": "download",
+ "OpenInNew": "external-link",
+ "OpenInNewRounded": "external-link",
+ "PictureAsPdf": "file-pdf",
+ "ArrowBack": "arrow-left",
+ "ArrowBackRounded": "arrow-left",
+ "ArrowBackIos": "chevron-left",
+ "KeyboardArrowDown": "chevron-down",
+ "KeyboardArrowUp": "chevron-up",
+ "KeyboardArrowRight": "chevron-right",
+ "CheckCircle": "circle-check",
+ "CheckCircleOutlined": "circle-check",
+ "CheckCircleRounded": "circle-check",
+ "CheckCircleOutlineRounded": "circle-check",
+ "History": "rotate-ccw-clock",
+ "HistoryRounded": "rotate-ccw-clock",
+ "Restore": "rotate-ccw-clock",
+ "Visibility": "eye",
+ "VisibilityOutlined": "eye",
+ "VisibilityOff": "eye-off",
+ "VisibilityOffOutlined": "eye-off",
+ "MoreVert": "ellipsis-vertical",
+ "MoreHoriz": "ellipsis",
+ "MoreHorizRounded": "ellipsis",
+ "Settings": "settings",
+ "CloudUpload": "cloud-upload",
+ "CloudUploadOutlined": "cloud-upload",
+ "Check": "check",
+ "CheckRounded": "check",
+ "Add": "plus",
+ "AddRounded": "plus",
+ "Link": "link",
+ "LinkRounded": "link",
+ "UploadFile": "file-up",
+ "UploadFileOutlined": "file-up",
+ "CreateNewFolder": "folder-plus",
+ "InfoOutlined": "info",
+ "Info": "info",
+ "InfoRounded": "info",
+ "Edit": "pencil",
+ "EditOutlined": "pencil",
+ "EditNote": "file-pen",
+ "ShieldOutlined": "shield",
+ "Search": "search",
+ "SearchRounded": "search",
+ "ErrorOutlined": "circle-alert",
+ "Error": "circle-alert",
+ "ErrorRounded": "circle-alert",
+ "ErrorOutlineRounded": "circle-alert",
+ "ErrorOutlineOutlined": "circle-alert",
+ "Folder": "folder",
+ "FolderOutlined": "folder",
+ "FolderOpen": "folder-open",
+ "FolderOpenOutlined": "folder-open",
+ "Cancel": "circle-x",
+ "Draw": "pen-tool",
+ "DrawRounded": "pen-tool",
+ "TextFields": "type",
+ "ChevronLeft": "chevron-left",
+ "ChevronRight": "chevron-right",
+ "ChevronRightRounded": "chevron-right",
+ "ArrowForwardIos": "chevron-right",
+ "ExpandMore": "chevron-down",
+ "ExpandMoreRounded": "chevron-down",
+ "ExpandLess": "chevron-up",
+ "WarningAmber": "triangle-alert",
+ "Warning": "triangle-alert",
+ "WarningAmberRounded": "triangle-alert",
+ "WarningRounded": "triangle-alert",
+ "ContentCut": "scissors",
+ "RotateLeft": "rotate-ccw",
+ "RotateRight": "rotate-cw",
+ "ContentCopy": "copy",
+ "ContentCopyRounded": "copy",
+ "FileCopy": "files",
+ "Compress": "shrink",
+ "Upload": "upload",
+ "UploadRounded": "upload",
+ "Description": "file-text",
+ "DescriptionOutlined": "file-text",
+ "Article": "file-text",
+ "ArticleOutlined": "file-text",
+ "Storage": "server",
+ "StorageRounded": "server",
+ "StorageOutlined": "server",
+ "PushPin": "pin",
+ "PushPinOutlined": "pin",
+ "Cloud": "cloud",
+ "CloudOutlined": "cloud",
+ "CloudRounded": "cloud",
+ "CloudQueueRounded": "cloud",
+ "DriveFileMove": "folder-input",
+ "InsertDriveFile": "file",
+ "InsertDriveFileOutlined": "file",
+ "Autorenew": "refresh-cw",
+ "Refresh": "refresh-cw",
+ "PlayArrow": "play",
+ "PlayArrowRounded": "play",
+ "TuneRounded": "sliders-horizontal",
+ "Tune": "sliders-horizontal",
+ "Replay": "rotate-ccw",
+ "RestartAlt": "rotate-ccw",
+ "BoltRounded": "zap",
+ "DragIndicator": "grip-vertical",
+ "CloudDone": "cloud-check",
+ "ArrowForward": "arrow-right",
+ "ArrowForwardRounded": "arrow-right",
+ "Sort": "list-sort-descending",
+ "SwapVertRounded": "arrow-up-down",
+ "SwapHoriz": "arrow-left-right",
+ "FolderSpecial": "folder-bookmark",
+ "Star": "star",
+ "StarRounded": "star",
+ "StarBorderRounded": "star",
+ "ZoomIn": "zoom-in",
+ "ZoomOut": "zoom-out",
+ "HomeRounded": "house",
+ "Home": "house",
+ "CleaningServices": "brush-cleaning",
+ "Crop": "crop",
+ "Security": "shield-check",
+ "SecurityRounded": "shield-check",
+ "VerifiedUserRounded": "shield-check",
+ "Layers": "layers",
+ "LayersOutlined": "layers",
+ "LayersRounded": "layers",
+ "Code": "code",
+ "CodeRounded": "code",
+ "Send": "send",
+ "SendRounded": "send",
+ "Lock": "lock",
+ "LockRounded": "lock",
+ "LockOutlined": "lock",
+ "LockOpen": "lock-open",
+ "HelpOutlineRounded": "circle-question-mark",
+ "AllInclusiveRounded": "infinity",
+ "Unarchive": "archive-restore",
+ "DriveFileRenameOutline": "file-pen",
+ "GridView": "layout-grid",
+ "AppsRounded": "layout-grid",
+ "ViewList": "list",
+ "List": "list",
+ "Computer": "monitor",
+ "Undo": "undo-2",
+ "UndoRounded": "undo-2",
+ "Redo": "redo-2",
+ "LabelOutlined": "tag",
+ "Share": "share-2",
+ "GroupAddOutlined": "users-plus",
+ "GroupAddRounded": "users-plus",
+ "PersonAdd": "user-plus",
+ "PersonAddAltRounded": "user-plus",
+ "AddCircleOutlined": "circle-plus",
+ "Work": "briefcase",
+ "Build": "wrench",
+ "BuildRounded": "wrench",
+ "BuildOutlined": "wrench",
+ "BuildCircle": "wrench",
+ "AutoAwesome": "sparkles",
+ "SmartToy": "bot",
+ "SmartToyRounded": "bot",
+ "Image": "image",
+ "ArrowUpward": "arrow-up",
+ "ArrowUpwardRounded": "arrow-up",
+ "ArrowDownward": "arrow-down",
+ "ArrowDownwardRounded": "arrow-down",
+ "FirstPage": "chevron-first",
+ "LastPage": "chevron-last",
+ "ViewWeek": "columns-3",
+ "DarkMode": "moon",
+ "WbSunny": "sun",
+ "WbTwilight": "sun",
+ "Stop": "square",
+ "PhotoCameraRounded": "camera",
+ "AddPhotoAlternateRounded": "image-plus",
+ "Save": "save",
+ "SaveOutlined": "save",
+ "TerminalRounded": "terminal",
+ "VpnKeyRounded": "key",
+ "MoveToInboxRounded": "import",
+ "PauseCircleOutlined": "circle-pause",
+ "CelebrationOutlined": "party-popper",
+ "TrendingUpOutlined": "trending-up",
+ "Colorize": "pipette",
+ "Opacity": "droplet",
+ "FormatAlignLeft": "text-align-start",
+ "FormatAlignCenter": "text-align-center",
+ "FormatAlignRight": "text-align-end",
+ "LineWeight": "line-weight",
+ "SelectAll": "select-all",
+ "Phonelink": "monitor-smartphone",
+ "QrCode2": "qr-code",
+ "Group": "users",
+ "Groups": "users",
+ "GroupsRounded": "users",
+ "People": "users",
+ "DevicesOther": "tablet-smartphone",
+ "DiamondOutlined": "gem",
+ "InsertPageBreak": "square-split-vertical",
+ "AltRouteOutlined": "git-fork",
+ "ScheduleOutlined": "clock",
+ "Schedule": "clock",
+ "ScheduleRounded": "clock",
+ "Pending": "clock",
+ "UnfoldMore": "chevrons-up-down",
+ "SystemUpdateAlt": "square-arrow-down",
+ "Print": "printer",
+ "CalendarToday": "calendar",
+ "ThumbUpRounded": "thumbs-up",
+ "OpenWith": "move",
+ "FontDownload": "case-sensitive",
+ "MergeType": "merge",
+ "CallSplit": "split",
+ "ChatBubbleOutlineRounded": "message-square",
+ "ChatBubbleOutlined": "message-square",
+ "AddCommentOutlined": "message-square-plus",
+ "AttachmentRounded": "paperclip",
+ "BookmarksRounded": "bookmark",
+ "TableChart": "table",
+ "DataObject": "braces",
+ "Html": "file-html",
+ "Straighten": "ruler",
+ "VolumeUp": "volume-2",
+ "RateReviewRounded": "message-square-text",
+ "ViewAgendaRounded": "rows-3",
+ "CompareRounded": "columns-2",
+ "MenuBookRounded": "book-open",
+ "PostAdd": "file-plus",
+ "CheckBox": "square-check",
+ "ArrowDropDownCircle": "circle-chevron-down",
+ "RadioButtonChecked": "radio-checked",
+ "RadioButtonUnchecked": "circle",
+ "DnsRounded": "server",
+ "HubRounded": "network",
+ "Inventory2Rounded": "package",
+ "CastRounded": "cast",
+ "ScienceOutlined": "flask-conical",
+ "AccountTreeRounded": "workflow",
+ "PlayCircleOutlined": "circle-play",
+ "TaskAlt": "circle-check-big",
+ "Pause": "pause",
+ "Public": "globe",
+ "EmailOutlined": "mail",
+ "Login": "log-in"
+ },
+ "materialSymbols": {
+ "close-rounded": "x",
+ "close": "x",
+ "add": "plus",
+ "add-rounded": "plus",
+ "info-rounded": "info",
+ "info": "info",
+ "info-outline-rounded": "info",
+ "edit": "pencil",
+ "edit-rounded": "pencil",
+ "edit-outline-rounded": "pencil",
+ "open-in-new-rounded": "external-link",
+ "error-rounded": "circle-alert",
+ "error": "circle-alert",
+ "error-outline-rounded": "circle-alert",
+ "warning-rounded": "triangle-alert",
+ "warning": "triangle-alert",
+ "delete-outline-rounded": "trash",
+ "delete": "trash",
+ "delete-rounded": "trash",
+ "lock": "lock",
+ "lock-outline": "lock",
+ "lock-open": "lock-open",
+ "lock-open-right-outline-rounded": "lock-open",
+ "expand-more-rounded": "chevron-down",
+ "keyboard-arrow-down": "chevron-down",
+ "keyboard-arrow-up": "chevron-up",
+ "bookmark-add-rounded": "bookmark-plus",
+ "chevron-right-rounded": "chevron-right",
+ "chevron-left-rounded": "chevron-left",
+ "person-add": "user-plus",
+ "group-add": "users-plus",
+ "more-vert": "ellipsis-vertical",
+ "more-horiz": "ellipsis",
+ "qr-code-rounded": "qr-code",
+ "check-circle-outline-rounded": "circle-check",
+ "check-circle-rounded": "circle-check",
+ "check-circle": "circle-check",
+ "check": "check",
+ "download": "download",
+ "download-rounded": "download",
+ "refresh-rounded": "refresh-cw",
+ "refresh": "refresh-cw",
+ "sync-alt-rounded": "refresh-cw",
+ "attachment-rounded": "paperclip",
+ "comment": "message-square",
+ "touch-app-rounded": "pointer",
+ "search": "search",
+ "search-rounded": "search",
+ "arrow-forward": "arrow-right",
+ "arrow-back": "arrow-left",
+ "person-remove": "user-minus",
+ "person-off": "user-x",
+ "person-check": "user-check",
+ "person-rounded": "user",
+ "language": "globe",
+ "dashboard-customize-outline-rounded": "layout-dashboard",
+ "dashboard-customize-rounded": "layout-dashboard",
+ "dashboard-outline-rounded": "layout-dashboard",
+ "build-outline-rounded": "wrench",
+ "rotate-right-rounded": "rotate-cw",
+ "rotate-right": "rotate-cw",
+ "rotate-left": "rotate-ccw",
+ "zoom-in-map-rounded": "shrink",
+ "zoom-in": "zoom-in",
+ "zoom-out": "zoom-out",
+ "folder-rounded": "folder",
+ "folder": "folder",
+ "upload-rounded": "upload",
+ "upload": "upload",
+ "upload-file-rounded": "file-up",
+ "content-copy-rounded": "copy",
+ "content-copy": "copy",
+ "pause-circle-rounded": "circle-pause",
+ "play-arrow-rounded": "play",
+ "play-circle": "circle-play",
+ "text-fields-rounded": "type",
+ "automation-outline": "workflow",
+ "scanner-outline-rounded": "scan-line",
+ "crop-free-rounded": "scan",
+ "key-rounded": "key",
+ "key": "key",
+ "save-rounded": "save",
+ "save": "save",
+ "backup": "cloud-upload",
+ "swap-horiz": "arrow-left-right",
+ "group": "users",
+ "groups-rounded": "users",
+ "logout": "log-out",
+ "logout-rounded": "log-out",
+ "login": "log-in",
+ "undo": "undo-2",
+ "redo": "redo-2",
+ "description": "file-text",
+ "article-outline-rounded": "file-text",
+ "picture-as-pdf-rounded": "file-pdf",
+ "pin-end": "picture-in-picture",
+ "gpp-maybe-outline-rounded": "shield-alert",
+ "select-all": "select-all",
+ "crop-square-outline": "square",
+ "crop-rounded": "crop",
+ "admin-panel-settings-rounded": "shield-user",
+ "system-update-alt-rounded": "square-arrow-down",
+ "opacity": "droplet",
+ "subdirectory-arrow-right-rounded": "corner-down-right",
+ "content-paste-rounded": "clipboard",
+ "menu-book-rounded": "book-open",
+ "menu-book-outline-rounded": "book-open",
+ "link": "link",
+ "unfold-more": "chevrons-up-down",
+ "unfold-less": "chevrons-down-up",
+ "scan-delete-rounded": "file-x",
+ "scan-delete-outline-rounded": "file-x",
+ "find-in-page-rounded": "file-search",
+ "quick-reference-all-outline-rounded": "file-search",
+ "pan-tool-rounded": "hand",
+ "view-list": "list",
+ "edit-square-outline-rounded": "square-pen",
+ "edit-document": "file-pen",
+ "library-add-outline-rounded": "copy-plus",
+ "workspace-premium-outline-rounded": "award",
+ "workspace-premium-rounded": "award",
+ "schedule-outline-rounded": "clock",
+ "signature-rounded": "signature",
+ "image-outline-rounded": "image",
+ "photo-library-outline-rounded": "images",
+ "password-rounded": "file-lock",
+ "branding-watermark-outline-rounded": "watermark",
+ "approval-outline-rounded": "badge-check",
+ "verified-outline-rounded": "badge-check",
+ "cleaning-services-outline-rounded": "brush-cleaning",
+ "layers-clear-outline-rounded": "layers-minus",
+ "layers-outline-rounded": "layers",
+ "preview-off-rounded": "eye-off",
+ "visibility-off-outline-rounded": "eye-off",
+ "visibility": "eye",
+ "fact-check-outline-rounded": "clipboard-check",
+ "assignment-outline-rounded": "clipboard-list",
+ "toc-rounded": "table-of-contents",
+ "screen-rotation-alt-rounded": "rotate-cw-square",
+ "content-cut-rounded": "scissors",
+ "move-down-rounded": "move-item-down",
+ "123-rounded": "file-digit",
+ "looks-one-outline-rounded": "single-page",
+ "thread-unread-rounded": "annotation-off",
+ "remove-selection-rounded": "remove-selection",
+ "remove-moderator-outline-rounded": "shield-off",
+ "match-word-rounded": "whole-word",
+ "palette-outline": "palette",
+ "format-color-fill-rounded": "paint-bucket",
+ "javascript-rounded": "braces",
+ "compare-rounded": "columns-2",
+ "settings-rounded": "settings",
+ "format-align-left": "text-align-start",
+ "format-align-center": "text-align-center",
+ "format-align-right": "text-align-end",
+ "rocket-launch": "rocket",
+ "cloud": "cloud",
+ "database": "database",
+ "cancel": "circle-x",
+ "analytics": "chart-column",
+ "speed": "gauge",
+ "add-comment-outline-rounded": "message-square-plus",
+ "smart-toy-rounded": "bot",
+ "compress": "shrink",
+ "security": "shield-check",
+ "star": "star",
+ "shield-lock": "shield",
+ "highlight": "highlighter",
+ "format-underlined": "underline",
+ "strikethrough-s": "strikethrough",
+ "show-chart": "pen-line",
+ "radio-button-unchecked": "circle",
+ "change-history": "triangle",
+ "text-fields": "type",
+ "add-photo-alternate": "image-plus",
+ "add-comment": "message-square-plus",
+ "find-replace": "replace",
+ "storage-rounded": "server",
+ "keyboard-rounded": "keyboard",
+ "tune-rounded": "sliders-horizontal",
+ "help-rounded": "circle-question-mark",
+ "extension-rounded": "puzzle",
+ "gavel-rounded": "gavel",
+ "visibility-rounded": "eye",
+ "star-rounded": "star",
+ "shield-rounded": "shield",
+ "link-rounded": "link",
+ "group-rounded": "users",
+ "fact-check-rounded": "clipboard-check",
+ "code-rounded": "code",
+ "article-rounded": "file-text",
+ "api-rounded": "api",
+ "analytics-rounded": "chart-column",
+ "account-circle": "circle-user",
+ "check-rounded": "check"
+ },
+ "portal": {
+ "HomeIcon": "house",
+ "EditorIcon": "file-code",
+ "SourcesIcon": "plug",
+ "PipelinesIcon": "workflow",
+ "DocumentsIcon": "file-text",
+ "InfrastructureIcon": "server",
+ "UsageIcon": "chart-column",
+ "DocsIcon": "book-open",
+ "SettingsIcon": "settings",
+ "SearchIcon": "search",
+ "MenuIcon": "menu",
+ "SunIcon": "sun",
+ "MoonIcon": "moon",
+ "BellIcon": "bell",
+ "ChevronDownIcon": "chevron-down",
+ "SparklesIcon": "sparkles",
+ "CloseIcon": "x",
+ "SendIcon": "send",
+ "UsersIcon": "users",
+ "PoliciesIcon": "shield-check",
+ "ProcurementIcon": "file-check",
+ "DownloadIcon": "download",
+ "LinkIcon": "link",
+ "LockIcon": "lock",
+ "UserPlusIcon": "user-plus",
+ "ExternalLinkIcon": "external-link",
+ "IntegrationsIcon": "plug-zap",
+ "CalendarIcon": "calendar",
+ "KeyIcon": "key",
+ "CheckIcon": "check"
+ },
+ "labelIcons": {
+ "account-balance": "landmark",
+ "account-balance-wallet": "wallet-cards",
+ "agriculture": "tractor",
+ "airplane-ticket": "ticket",
+ "alternate-email": "at-sign",
+ "analytics": "chart-column",
+ "apartment": "building",
+ "api": "api",
+ "approval": "badge-check",
+ "architecture": "drafting-compass",
+ "article": "file-text",
+ "assignment": "clipboard-list",
+ "assured-workload": "shield-check",
+ "attach-money": "dollar-sign",
+ "auto-stories": "book-open",
+ "badge": "badge",
+ "balance": "scale",
+ "bar-chart": "chart-column",
+ "bolt": "bolt",
+ "brush": "brush",
+ "bug-report": "bug",
+ "build": "wrench",
+ "business-center": "briefcase-business",
+ "calculate": "calculator",
+ "calendar-month": "calendar",
+ "call": "phone",
+ "campaign": "megaphone",
+ "celebration": "party-popper",
+ "chat": "message-circle",
+ "checklist": "list-checks",
+ "cloud": "cloud",
+ "code": "code",
+ "confirmation-number": "ticket",
+ "construction": "construction",
+ "contact-page": "contact",
+ "copyright": "copyright",
+ "credit-card": "credit-card",
+ "currency-exchange": "coins",
+ "database": "database",
+ "description": "file-text",
+ "design-services": "pencil-ruler",
+ "diversity-3": "users",
+ "draft": "file",
+ "eco": "leaf",
+ "edit-document": "file-pen",
+ "emergency": "siren",
+ "encrypted": "lock-keyhole",
+ "engineering": "hard-hat",
+ "event": "calendar-days",
+ "fact-check": "clipboard-check",
+ "factory": "factory",
+ "flight": "plane",
+ "folder": "folder",
+ "folder-open": "folder-open",
+ "forklift": "forklift",
+ "format-list-bulleted": "list",
+ "forum": "messages-square",
+ "functions": "sigma",
+ "gavel": "gavel",
+ "groups": "users",
+ "handshake": "handshake",
+ "health-and-safety": "shield-plus",
+ "history-edu": "book-open-text",
+ "home": "house",
+ "home-work": "building-2",
+ "hotel": "hotel",
+ "how-to-reg": "user-check",
+ "image": "image",
+ "inbox": "inbox",
+ "insights": "lightbulb",
+ "inventory-2": "package",
+ "leaderboard": "trophy",
+ "library-books": "library",
+ "local-shipping": "truck",
+ "location-on": "map-pin",
+ "lock": "lock",
+ "luggage": "luggage",
+ "mail": "mail",
+ "manage-accounts": "user-cog",
+ "map": "map",
+ "medical-information": "clipboard-plus",
+ "medical-services": "briefcase-medical",
+ "medication": "pill",
+ "menu-book": "book-open",
+ "monitor-heart": "heart-pulse",
+ "monitoring": "activity",
+ "movie": "film",
+ "music-note": "music",
+ "newspaper": "newspaper",
+ "note-add": "file-plus",
+ "package-2": "package-2",
+ "paid": "circle-dollar-sign",
+ "palette": "palette",
+ "pallet": "boxes",
+ "payments": "banknote",
+ "pending-actions": "clipboard-clock",
+ "percent": "percent",
+ "person": "user",
+ "photo-camera": "camera",
+ "pie-chart": "chart-pie",
+ "point-of-sale": "credit-card",
+ "policy": "scroll-text",
+ "precision-manufacturing": "cog",
+ "price-check": "badge-dollar-sign",
+ "privacy-tip": "shield-alert",
+ "psychology": "brain",
+ "public": "globe",
+ "query-stats": "chart-line",
+ "real-estate-agent": "house-plus",
+ "receipt": "receipt",
+ "receipt-long": "receipt-text",
+ "recycling": "recycle",
+ "redeem": "gift",
+ "request-quote": "file-text",
+ "restaurant": "utensils",
+ "rule": "list-checks",
+ "savings": "piggy-bank",
+ "schedule": "clock",
+ "school": "school",
+ "science": "flask-conical",
+ "security": "shield-check",
+ "sell": "tag",
+ "send": "send",
+ "shield": "shield",
+ "shopping-cart": "shopping-cart",
+ "slideshow": "presentation",
+ "stethoscope": "stethoscope",
+ "sticky-note-2": "sticky-note",
+ "storefront": "store",
+ "summarize": "file-text",
+ "supervisor-account": "users-round",
+ "table-chart": "table",
+ "task": "list-todo",
+ "terminal": "terminal",
+ "text-snippet": "file-text",
+ "timeline": "timeline",
+ "topic": "folder-open",
+ "trending-up": "trending-up",
+ "vaccines": "syringe",
+ "verified": "badge-check",
+ "videocam": "video",
+ "volunteer-activism": "heart-handshake",
+ "wallet": "wallet",
+ "warehouse": "warehouse",
+ "work": "briefcase"
+ }
+}
diff --git a/frontend/editor/src/core/icons/icons.config.ts b/frontend/editor/src/core/icons/icons.config.ts
new file mode 100644
index 0000000000..08b6fca24b
--- /dev/null
+++ b/frontend/editor/src/core/icons/icons.config.ts
@@ -0,0 +1,5 @@
+// Changing this re-weights every monochrome icon in the app at once.
+export const STROKE_WIDTH = 1.75;
+
+// Rendered px when a call site passes no size; 24 is what @mui/icons-material defaulted to.
+export const DEFAULT_SIZE = 24;
diff --git a/frontend/editor/src/core/icons/icons.ts b/frontend/editor/src/core/icons/icons.ts
new file mode 100644
index 0000000000..98de889f18
--- /dev/null
+++ b/frontend/editor/src/core/icons/icons.ts
@@ -0,0 +1,773 @@
+/** Every icon the app can render, by name. Add one by dropping an svg in svg/ and adding two lines here. */
+import type { ComponentType, SVGProps } from "react";
+
+import Activity from "lucide-static/icons/activity.svg?react";
+import AlignCenterHorizontal from "lucide-static/icons/align-center-horizontal.svg?react";
+import AlignCenterVertical from "lucide-static/icons/align-center-vertical.svg?react";
+import AlignEndHorizontal from "lucide-static/icons/align-end-horizontal.svg?react";
+import AlignEndVertical from "lucide-static/icons/align-end-vertical.svg?react";
+import AlignStartHorizontal from "lucide-static/icons/align-start-horizontal.svg?react";
+import AlignStartVertical from "lucide-static/icons/align-start-vertical.svg?react";
+import ArchiveRestore from "lucide-static/icons/archive-restore.svg?react";
+import ArrowDown from "lucide-static/icons/arrow-down.svg?react";
+import ArrowLeft from "lucide-static/icons/arrow-left.svg?react";
+import ArrowLeftRight from "lucide-static/icons/arrow-left-right.svg?react";
+import ArrowRight from "lucide-static/icons/arrow-right.svg?react";
+import ArrowUp from "lucide-static/icons/arrow-up.svg?react";
+import ArrowUpDown from "lucide-static/icons/arrow-up-down.svg?react";
+import AtSign from "lucide-static/icons/at-sign.svg?react";
+import Award from "lucide-static/icons/award.svg?react";
+import Badge from "lucide-static/icons/badge.svg?react";
+import BadgeCheck from "lucide-static/icons/badge-check.svg?react";
+import BadgeDollarSign from "lucide-static/icons/badge-dollar-sign.svg?react";
+import Banknote from "lucide-static/icons/banknote.svg?react";
+import Bell from "lucide-static/icons/bell.svg?react";
+import Bolt from "lucide-static/icons/bolt.svg?react";
+import BookOpen from "lucide-static/icons/book-open.svg?react";
+import BookOpenText from "lucide-static/icons/book-open-text.svg?react";
+import Bookmark from "lucide-static/icons/bookmark.svg?react";
+import BookmarkPlus from "lucide-static/icons/bookmark-plus.svg?react";
+import Bot from "lucide-static/icons/bot.svg?react";
+import Boxes from "lucide-static/icons/boxes.svg?react";
+import Braces from "lucide-static/icons/braces.svg?react";
+import Brain from "lucide-static/icons/brain.svg?react";
+import Briefcase from "lucide-static/icons/briefcase.svg?react";
+import BriefcaseBusiness from "lucide-static/icons/briefcase-business.svg?react";
+import BriefcaseMedical from "lucide-static/icons/briefcase-medical.svg?react";
+import BringToFront from "lucide-static/icons/bring-to-front.svg?react";
+import Brush from "lucide-static/icons/brush.svg?react";
+import BrushCleaning from "lucide-static/icons/brush-cleaning.svg?react";
+import Bug from "lucide-static/icons/bug.svg?react";
+import Building from "lucide-static/icons/building.svg?react";
+import Building2 from "lucide-static/icons/building-2.svg?react";
+import Calculator from "lucide-static/icons/calculator.svg?react";
+import Calendar from "lucide-static/icons/calendar.svg?react";
+import CalendarDays from "lucide-static/icons/calendar-days.svg?react";
+import Camera from "lucide-static/icons/camera.svg?react";
+import CaseSensitive from "lucide-static/icons/case-sensitive.svg?react";
+import ChartColumn from "lucide-static/icons/chart-column.svg?react";
+import ChartLine from "lucide-static/icons/chart-line.svg?react";
+import ChartPie from "lucide-static/icons/chart-pie.svg?react";
+import Check from "lucide-static/icons/check.svg?react";
+import ChevronDown from "lucide-static/icons/chevron-down.svg?react";
+import ChevronFirst from "lucide-static/icons/chevron-first.svg?react";
+import ChevronLast from "lucide-static/icons/chevron-last.svg?react";
+import ChevronLeft from "lucide-static/icons/chevron-left.svg?react";
+import ChevronRight from "lucide-static/icons/chevron-right.svg?react";
+import ChevronUp from "lucide-static/icons/chevron-up.svg?react";
+import ChevronsDownUp from "lucide-static/icons/chevrons-down-up.svg?react";
+import ChevronsUpDown from "lucide-static/icons/chevrons-up-down.svg?react";
+import Circle from "lucide-static/icons/circle.svg?react";
+import CircleAlert from "lucide-static/icons/circle-alert.svg?react";
+import CircleArrowUp from "lucide-static/icons/circle-arrow-up.svg?react";
+import CircleCheck from "lucide-static/icons/circle-check.svg?react";
+import CircleCheckBig from "lucide-static/icons/circle-check-big.svg?react";
+import CircleChevronDown from "lucide-static/icons/circle-chevron-down.svg?react";
+import CircleDashed from "lucide-static/icons/circle-dashed.svg?react";
+import CircleDollarSign from "lucide-static/icons/circle-dollar-sign.svg?react";
+import CirclePause from "lucide-static/icons/circle-pause.svg?react";
+import CirclePlay from "lucide-static/icons/circle-play.svg?react";
+import CirclePlus from "lucide-static/icons/circle-plus.svg?react";
+import CircleQuestionMark from "lucide-static/icons/circle-question-mark.svg?react";
+import CircleUser from "lucide-static/icons/circle-user.svg?react";
+import CircleX from "lucide-static/icons/circle-x.svg?react";
+import Clipboard from "lucide-static/icons/clipboard.svg?react";
+import ClipboardCheck from "lucide-static/icons/clipboard-check.svg?react";
+import ClipboardClock from "lucide-static/icons/clipboard-clock.svg?react";
+import ClipboardList from "lucide-static/icons/clipboard-list.svg?react";
+import ClipboardPlus from "lucide-static/icons/clipboard-plus.svg?react";
+import Clock from "lucide-static/icons/clock.svg?react";
+import Cloud from "lucide-static/icons/cloud.svg?react";
+import CloudCheck from "lucide-static/icons/cloud-check.svg?react";
+import CloudUpload from "lucide-static/icons/cloud-upload.svg?react";
+import Code from "lucide-static/icons/code.svg?react";
+import Cog from "lucide-static/icons/cog.svg?react";
+import Coins from "lucide-static/icons/coins.svg?react";
+import Columns2 from "lucide-static/icons/columns-2.svg?react";
+import Columns3 from "lucide-static/icons/columns-3.svg?react";
+import Construction from "lucide-static/icons/construction.svg?react";
+import Contact from "lucide-static/icons/contact.svg?react";
+import Copy from "lucide-static/icons/copy.svg?react";
+import CopyPlus from "lucide-static/icons/copy-plus.svg?react";
+import Copyright from "lucide-static/icons/copyright.svg?react";
+import CornerDownRight from "lucide-static/icons/corner-down-right.svg?react";
+import CreditCard from "lucide-static/icons/credit-card.svg?react";
+import Crop from "lucide-static/icons/crop.svg?react";
+import Database from "lucide-static/icons/database.svg?react";
+import Delete from "lucide-static/icons/delete.svg?react";
+import Diamond from "lucide-static/icons/diamond.svg?react";
+import DollarSign from "lucide-static/icons/dollar-sign.svg?react";
+import Download from "lucide-static/icons/download.svg?react";
+import DraftingCompass from "lucide-static/icons/drafting-compass.svg?react";
+import Droplet from "lucide-static/icons/droplet.svg?react";
+import Ellipsis from "lucide-static/icons/ellipsis.svg?react";
+import EllipsisVertical from "lucide-static/icons/ellipsis-vertical.svg?react";
+import ExternalLink from "lucide-static/icons/external-link.svg?react";
+import Eye from "lucide-static/icons/eye.svg?react";
+import EyeOff from "lucide-static/icons/eye-off.svg?react";
+import Factory from "lucide-static/icons/factory.svg?react";
+import File from "lucide-static/icons/file.svg?react";
+import FileDigit from "lucide-static/icons/file-digit.svg?react";
+import FileLock from "lucide-static/icons/file-lock.svg?react";
+import FilePen from "lucide-static/icons/file-pen.svg?react";
+import FilePlus from "lucide-static/icons/file-plus.svg?react";
+import FileSearch from "lucide-static/icons/file-search.svg?react";
+import FileText from "lucide-static/icons/file-text.svg?react";
+import FileUp from "lucide-static/icons/file-up.svg?react";
+import FileX from "lucide-static/icons/file-x.svg?react";
+import Files from "lucide-static/icons/files.svg?react";
+import Film from "lucide-static/icons/film.svg?react";
+import FlaskConical from "lucide-static/icons/flask-conical.svg?react";
+import FlipHorizontal2 from "lucide-static/icons/flip-horizontal-2.svg?react";
+import Folder from "lucide-static/icons/folder.svg?react";
+import FolderBookmark from "lucide-static/icons/folder-bookmark.svg?react";
+import FolderInput from "lucide-static/icons/folder-input.svg?react";
+import FolderOpen from "lucide-static/icons/folder-open.svg?react";
+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 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";
+import Gem from "lucide-static/icons/gem.svg?react";
+import Gift from "lucide-static/icons/gift.svg?react";
+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 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";
+import HardDrive from "lucide-static/icons/hard-drive.svg?react";
+import HardHat from "lucide-static/icons/hard-hat.svg?react";
+import HeartHandshake from "lucide-static/icons/heart-handshake.svg?react";
+import HeartPulse from "lucide-static/icons/heart-pulse.svg?react";
+import Highlighter from "lucide-static/icons/highlighter.svg?react";
+import Hotel from "lucide-static/icons/hotel.svg?react";
+import House from "lucide-static/icons/house.svg?react";
+import HousePlus from "lucide-static/icons/house-plus.svg?react";
+import Image from "lucide-static/icons/image.svg?react";
+import ImagePlus from "lucide-static/icons/image-plus.svg?react";
+import Images from "lucide-static/icons/images.svg?react";
+import Import from "lucide-static/icons/import.svg?react";
+import Inbox from "lucide-static/icons/inbox.svg?react";
+import InfinityIcon from "lucide-static/icons/infinity.svg?react";
+import Info from "lucide-static/icons/info.svg?react";
+import Italic from "lucide-static/icons/italic.svg?react";
+import Key from "lucide-static/icons/key.svg?react";
+import Keyboard from "lucide-static/icons/keyboard.svg?react";
+import Landmark from "lucide-static/icons/landmark.svg?react";
+import Layers from "lucide-static/icons/layers.svg?react";
+import LayersMinus from "lucide-static/icons/layers-minus.svg?react";
+import LayoutDashboard from "lucide-static/icons/layout-dashboard.svg?react";
+import LayoutGrid from "lucide-static/icons/layout-grid.svg?react";
+import Leaf from "lucide-static/icons/leaf.svg?react";
+import Library from "lucide-static/icons/library.svg?react";
+import Lightbulb from "lucide-static/icons/lightbulb.svg?react";
+import Link from "lucide-static/icons/link.svg?react";
+import List from "lucide-static/icons/list.svg?react";
+import ListChecks from "lucide-static/icons/list-checks.svg?react";
+import ListSortDescending from "lucide-static/icons/list-sort-descending.svg?react";
+import ListTodo from "lucide-static/icons/list-todo.svg?react";
+import LocateFixed from "lucide-static/icons/locate-fixed.svg?react";
+import Lock from "lucide-static/icons/lock.svg?react";
+import LockKeyhole from "lucide-static/icons/lock-keyhole.svg?react";
+import LockOpen from "lucide-static/icons/lock-open.svg?react";
+import LogIn from "lucide-static/icons/log-in.svg?react";
+import LogOut from "lucide-static/icons/log-out.svg?react";
+import Luggage from "lucide-static/icons/luggage.svg?react";
+import Mail from "lucide-static/icons/mail.svg?react";
+import Map from "lucide-static/icons/map.svg?react";
+import MapPin from "lucide-static/icons/map-pin.svg?react";
+import Maximize2 from "lucide-static/icons/maximize-2.svg?react";
+import Megaphone from "lucide-static/icons/megaphone.svg?react";
+import Menu from "lucide-static/icons/menu.svg?react";
+import Merge from "lucide-static/icons/merge.svg?react";
+import MessageCircle from "lucide-static/icons/message-circle.svg?react";
+import MessageSquare from "lucide-static/icons/message-square.svg?react";
+import MessageSquarePlus from "lucide-static/icons/message-square-plus.svg?react";
+import MessageSquareText from "lucide-static/icons/message-square-text.svg?react";
+import MessagesSquare from "lucide-static/icons/messages-square.svg?react";
+import Minus from "lucide-static/icons/minus.svg?react";
+import Monitor from "lucide-static/icons/monitor.svg?react";
+import MonitorCloud from "lucide-static/icons/monitor-cloud.svg?react";
+import MonitorSmartphone from "lucide-static/icons/monitor-smartphone.svg?react";
+import Moon from "lucide-static/icons/moon.svg?react";
+import Move from "lucide-static/icons/move.svg?react";
+import Music from "lucide-static/icons/music.svg?react";
+import Network from "lucide-static/icons/network.svg?react";
+import Newspaper from "lucide-static/icons/newspaper.svg?react";
+import Package from "lucide-static/icons/package.svg?react";
+import Package2 from "lucide-static/icons/package-2.svg?react";
+import PaintBucket from "lucide-static/icons/paint-bucket.svg?react";
+import Palette from "lucide-static/icons/palette.svg?react";
+import Paperclip from "lucide-static/icons/paperclip.svg?react";
+import PartyPopper from "lucide-static/icons/party-popper.svg?react";
+import Pause from "lucide-static/icons/pause.svg?react";
+import PenLine from "lucide-static/icons/pen-line.svg?react";
+import PenTool from "lucide-static/icons/pen-tool.svg?react";
+import Pencil from "lucide-static/icons/pencil.svg?react";
+import PencilRuler from "lucide-static/icons/pencil-ruler.svg?react";
+import Percent from "lucide-static/icons/percent.svg?react";
+import Phone from "lucide-static/icons/phone.svg?react";
+import PictureInPicture from "lucide-static/icons/picture-in-picture.svg?react";
+import PiggyBank from "lucide-static/icons/piggy-bank.svg?react";
+import Pill from "lucide-static/icons/pill.svg?react";
+import Pin from "lucide-static/icons/pin.svg?react";
+import Pipette from "lucide-static/icons/pipette.svg?react";
+import Plane from "lucide-static/icons/plane.svg?react";
+import Play from "lucide-static/icons/play.svg?react";
+import Plug from "lucide-static/icons/plug.svg?react";
+import PlugZap from "lucide-static/icons/plug-zap.svg?react";
+import Plus from "lucide-static/icons/plus.svg?react";
+import Pointer from "lucide-static/icons/pointer.svg?react";
+import Power from "lucide-static/icons/power.svg?react";
+import Presentation from "lucide-static/icons/presentation.svg?react";
+import Printer from "lucide-static/icons/printer.svg?react";
+import Puzzle from "lucide-static/icons/puzzle.svg?react";
+import QrCode from "lucide-static/icons/qr-code.svg?react";
+import Receipt from "lucide-static/icons/receipt.svg?react";
+import ReceiptText from "lucide-static/icons/receipt-text.svg?react";
+import Recycle from "lucide-static/icons/recycle.svg?react";
+import Redo2 from "lucide-static/icons/redo-2.svg?react";
+import RefreshCw from "lucide-static/icons/refresh-cw.svg?react";
+import Replace from "lucide-static/icons/replace.svg?react";
+import Rocket from "lucide-static/icons/rocket.svg?react";
+import RotateCcw from "lucide-static/icons/rotate-ccw.svg?react";
+import RotateCcwClock from "lucide-static/icons/rotate-ccw-clock.svg?react";
+import RotateCw from "lucide-static/icons/rotate-cw.svg?react";
+import RotateCwSquare from "lucide-static/icons/rotate-cw-square.svg?react";
+import Route from "lucide-static/icons/route.svg?react";
+import Rows2 from "lucide-static/icons/rows-2.svg?react";
+import Rows3 from "lucide-static/icons/rows-3.svg?react";
+import Ruler from "lucide-static/icons/ruler.svg?react";
+import Save from "lucide-static/icons/save.svg?react";
+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 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";
+import Search from "lucide-static/icons/search.svg?react";
+import Send from "lucide-static/icons/send.svg?react";
+import SendToBack from "lucide-static/icons/send-to-back.svg?react";
+import Server from "lucide-static/icons/server.svg?react";
+import Settings from "lucide-static/icons/settings.svg?react";
+import Shapes from "lucide-static/icons/shapes.svg?react";
+import Share2 from "lucide-static/icons/share-2.svg?react";
+import Shield from "lucide-static/icons/shield.svg?react";
+import ShieldAlert from "lucide-static/icons/shield-alert.svg?react";
+import ShieldCheck from "lucide-static/icons/shield-check.svg?react";
+import ShieldOff from "lucide-static/icons/shield-off.svg?react";
+import ShieldPlus from "lucide-static/icons/shield-plus.svg?react";
+import ShieldUser from "lucide-static/icons/shield-user.svg?react";
+import ShoppingCart from "lucide-static/icons/shopping-cart.svg?react";
+import Shrink from "lucide-static/icons/shrink.svg?react";
+import Sigma from "lucide-static/icons/sigma.svg?react";
+import Signature from "lucide-static/icons/signature.svg?react";
+import Siren from "lucide-static/icons/siren.svg?react";
+import SlidersHorizontal from "lucide-static/icons/sliders-horizontal.svg?react";
+import Sparkle from "lucide-static/icons/sparkle.svg?react";
+import Sparkles from "lucide-static/icons/sparkles.svg?react";
+import Spline from "lucide-static/icons/spline.svg?react";
+import Split from "lucide-static/icons/split.svg?react";
+import Square from "lucide-static/icons/square.svg?react";
+import SquareArrowDown from "lucide-static/icons/square-arrow-down.svg?react";
+import SquareCheck from "lucide-static/icons/square-check.svg?react";
+import SquareDashed from "lucide-static/icons/square-dashed.svg?react";
+import SquarePen from "lucide-static/icons/square-pen.svg?react";
+import SquareSplitVertical from "lucide-static/icons/square-split-vertical.svg?react";
+import Stamp from "lucide-static/icons/stamp.svg?react";
+import Star from "lucide-static/icons/star.svg?react";
+import Stethoscope from "lucide-static/icons/stethoscope.svg?react";
+import StickyNote from "lucide-static/icons/sticky-note.svg?react";
+import Store from "lucide-static/icons/store.svg?react";
+import Strikethrough from "lucide-static/icons/strikethrough.svg?react";
+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 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";
+import Tags from "lucide-static/icons/tags.svg?react";
+import Terminal from "lucide-static/icons/terminal.svg?react";
+import TextAlignCenter from "lucide-static/icons/text-align-center.svg?react";
+import TextAlignEnd from "lucide-static/icons/text-align-end.svg?react";
+import TextAlignStart from "lucide-static/icons/text-align-start.svg?react";
+import ThumbsUp from "lucide-static/icons/thumbs-up.svg?react";
+import Ticket from "lucide-static/icons/ticket.svg?react";
+import Timeline from "lucide-static/icons/timeline.svg?react";
+import Tractor from "lucide-static/icons/tractor.svg?react";
+import Trash from "lucide-static/icons/trash.svg?react";
+import TrendingDown from "lucide-static/icons/trending-down.svg?react";
+import TrendingUp from "lucide-static/icons/trending-up.svg?react";
+import Triangle from "lucide-static/icons/triangle.svg?react";
+import TriangleAlert from "lucide-static/icons/triangle-alert.svg?react";
+import Trophy from "lucide-static/icons/trophy.svg?react";
+import Truck from "lucide-static/icons/truck.svg?react";
+import Type from "lucide-static/icons/type.svg?react";
+import Underline from "lucide-static/icons/underline.svg?react";
+import Undo2 from "lucide-static/icons/undo-2.svg?react";
+import Unlink from "lucide-static/icons/unlink.svg?react";
+import Upload from "lucide-static/icons/upload.svg?react";
+import User from "lucide-static/icons/user.svg?react";
+import UserCheck from "lucide-static/icons/user-check.svg?react";
+import UserCog from "lucide-static/icons/user-cog.svg?react";
+import UserMinus from "lucide-static/icons/user-minus.svg?react";
+import UserPlus from "lucide-static/icons/user-plus.svg?react";
+import UserX from "lucide-static/icons/user-x.svg?react";
+import Users from "lucide-static/icons/users.svg?react";
+import UsersRound from "lucide-static/icons/users-round.svg?react";
+import Utensils from "lucide-static/icons/utensils.svg?react";
+import Video from "lucide-static/icons/video.svg?react";
+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 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";
+import Wrench from "lucide-static/icons/wrench.svg?react";
+import X from "lucide-static/icons/x.svg?react";
+import Zap from "lucide-static/icons/zap.svg?react";
+import ZoomIn from "lucide-static/icons/zoom-in.svg?react";
+import ZoomOut from "lucide-static/icons/zoom-out.svg?react";
+
+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 FileHtml from "@app/icons/svg/stirling/file-html.svg?react";
+import FilePdf from "@app/icons/svg/stirling/file-pdf.svg?react";
+import Ftp from "@app/icons/svg/stirling/ftp.svg?react";
+import LineWeight from "@app/icons/svg/stirling/line-weight.svg?react";
+import MoveItemDown from "@app/icons/svg/stirling/move-item-down.svg?react";
+import RadioChecked from "@app/icons/svg/stirling/radio-checked.svg?react";
+import RemoveSelection from "@app/icons/svg/stirling/remove-selection.svg?react";
+import SelectAll from "@app/icons/svg/stirling/select-all.svg?react";
+import Sftp from "@app/icons/svg/stirling/sftp.svg?react";
+import SinglePage from "@app/icons/svg/stirling/single-page.svg?react";
+import UsersPlus from "@app/icons/svg/stirling/users-plus.svg?react";
+import Watermark from "@app/icons/svg/stirling/watermark.svg?react";
+
+import Box from "@app/icons/svg/third-party/box.svg?react";
+import Clamav from "@app/icons/svg/third-party/clamav.svg?react";
+import Cloudmersive from "@app/icons/svg/third-party/cloudmersive.svg?react";
+import Cloudmersiveadvanced from "@app/icons/svg/third-party/cloudmersiveadvanced.svg?react";
+import Confluence from "@app/icons/svg/third-party/confluence.svg?react";
+import Consigno from "@app/icons/svg/third-party/consigno.svg?react";
+import Discord from "@app/icons/svg/third-party/discord.svg?react";
+import Dropbox from "@app/icons/svg/third-party/dropbox.svg?react";
+import Elastic from "@app/icons/svg/third-party/elastic.svg?react";
+import Googlechat from "@app/icons/svg/third-party/googlechat.svg?react";
+import Googledrive from "@app/icons/svg/third-party/googledrive.svg?react";
+import Jira from "@app/icons/svg/third-party/jira.svg?react";
+import Mailgun from "@app/icons/svg/third-party/mailgun.svg?react";
+import N8n from "@app/icons/svg/third-party/n8n.svg?react";
+import Nextcloud from "@app/icons/svg/third-party/nextcloud.svg?react";
+import Onedrive from "@app/icons/svg/third-party/onedrive.svg?react";
+import Presidio from "@app/icons/svg/third-party/presidio.svg?react";
+import Purview from "@app/icons/svg/third-party/purview.svg?react";
+import S3 from "@app/icons/svg/third-party/s3.svg?react";
+import Sendgrid from "@app/icons/svg/third-party/sendgrid.svg?react";
+import Sharepoint from "@app/icons/svg/third-party/sharepoint.svg?react";
+import Slack from "@app/icons/svg/third-party/slack.svg?react";
+import Splunk from "@app/icons/svg/third-party/splunk.svg?react";
+import Sumologic from "@app/icons/svg/third-party/sumologic.svg?react";
+import Teams from "@app/icons/svg/third-party/teams.svg?react";
+import Zapier from "@app/icons/svg/third-party/zapier.svg?react";
+
+type IconComponent = ComponentType<SVGProps<SVGSVGElement>>;
+
+interface IconEntry {
+ Component: IconComponent;
+ /** Where the drawing comes from: lucide, our own svg/stirling, or a brand mark that keeps its own colours. */
+ kind: "lucide" | "stirling" | "brand";
+}
+
+export const ICONS = {
+ activity: { Component: Activity, kind: "lucide" },
+ "align-center-horizontal": {
+ Component: AlignCenterHorizontal,
+ kind: "lucide",
+ },
+ "align-center-vertical": { Component: AlignCenterVertical, kind: "lucide" },
+ "align-end-horizontal": { Component: AlignEndHorizontal, kind: "lucide" },
+ "align-end-vertical": { Component: AlignEndVertical, kind: "lucide" },
+ "align-start-horizontal": { Component: AlignStartHorizontal, kind: "lucide" },
+ "align-start-vertical": { Component: AlignStartVertical, kind: "lucide" },
+ "archive-restore": { Component: ArchiveRestore, kind: "lucide" },
+ "arrow-down": { Component: ArrowDown, kind: "lucide" },
+ "arrow-left": { Component: ArrowLeft, kind: "lucide" },
+ "arrow-left-right": { Component: ArrowLeftRight, kind: "lucide" },
+ "arrow-right": { Component: ArrowRight, kind: "lucide" },
+ "arrow-up": { Component: ArrowUp, kind: "lucide" },
+ "arrow-up-down": { Component: ArrowUpDown, kind: "lucide" },
+ "at-sign": { Component: AtSign, kind: "lucide" },
+ award: { Component: Award, kind: "lucide" },
+ badge: { Component: Badge, kind: "lucide" },
+ "badge-check": { Component: BadgeCheck, kind: "lucide" },
+ "badge-dollar-sign": { Component: BadgeDollarSign, kind: "lucide" },
+ banknote: { Component: Banknote, kind: "lucide" },
+ bell: { Component: Bell, kind: "lucide" },
+ bolt: { Component: Bolt, kind: "lucide" },
+ "book-open": { Component: BookOpen, kind: "lucide" },
+ "book-open-text": { Component: BookOpenText, kind: "lucide" },
+ bookmark: { Component: Bookmark, kind: "lucide" },
+ "bookmark-plus": { Component: BookmarkPlus, kind: "lucide" },
+ bot: { Component: Bot, kind: "lucide" },
+ boxes: { Component: Boxes, kind: "lucide" },
+ braces: { Component: Braces, kind: "lucide" },
+ brain: { Component: Brain, kind: "lucide" },
+ briefcase: { Component: Briefcase, kind: "lucide" },
+ "briefcase-business": { Component: BriefcaseBusiness, kind: "lucide" },
+ "briefcase-medical": { Component: BriefcaseMedical, kind: "lucide" },
+ "bring-to-front": { Component: BringToFront, kind: "lucide" },
+ brush: { Component: Brush, kind: "lucide" },
+ "brush-cleaning": { Component: BrushCleaning, kind: "lucide" },
+ bug: { Component: Bug, kind: "lucide" },
+ building: { Component: Building, kind: "lucide" },
+ "building-2": { Component: Building2, kind: "lucide" },
+ calculator: { Component: Calculator, kind: "lucide" },
+ calendar: { Component: Calendar, kind: "lucide" },
+ "calendar-days": { Component: CalendarDays, kind: "lucide" },
+ camera: { Component: Camera, kind: "lucide" },
+ "case-sensitive": { Component: CaseSensitive, kind: "lucide" },
+ "chart-column": { Component: ChartColumn, kind: "lucide" },
+ "chart-line": { Component: ChartLine, kind: "lucide" },
+ "chart-pie": { Component: ChartPie, kind: "lucide" },
+ check: { Component: Check, kind: "lucide" },
+ "chevron-down": { Component: ChevronDown, kind: "lucide" },
+ "chevron-first": { Component: ChevronFirst, kind: "lucide" },
+ "chevron-last": { Component: ChevronLast, kind: "lucide" },
+ "chevron-left": { Component: ChevronLeft, kind: "lucide" },
+ "chevron-right": { Component: ChevronRight, kind: "lucide" },
+ "chevron-up": { Component: ChevronUp, kind: "lucide" },
+ "chevrons-down-up": { Component: ChevronsDownUp, kind: "lucide" },
+ "chevrons-up-down": { Component: ChevronsUpDown, kind: "lucide" },
+ circle: { Component: Circle, kind: "lucide" },
+ "circle-alert": { Component: CircleAlert, kind: "lucide" },
+ "circle-arrow-up": { Component: CircleArrowUp, kind: "lucide" },
+ "circle-check": { Component: CircleCheck, kind: "lucide" },
+ "circle-check-big": { Component: CircleCheckBig, kind: "lucide" },
+ "circle-chevron-down": { Component: CircleChevronDown, kind: "lucide" },
+ "circle-dashed": { Component: CircleDashed, kind: "lucide" },
+ "circle-dollar-sign": { Component: CircleDollarSign, kind: "lucide" },
+ "circle-pause": { Component: CirclePause, kind: "lucide" },
+ "circle-play": { Component: CirclePlay, kind: "lucide" },
+ "circle-plus": { Component: CirclePlus, kind: "lucide" },
+ "circle-question-mark": { Component: CircleQuestionMark, kind: "lucide" },
+ "circle-user": { Component: CircleUser, kind: "lucide" },
+ "circle-x": { Component: CircleX, kind: "lucide" },
+ clipboard: { Component: Clipboard, kind: "lucide" },
+ "clipboard-check": { Component: ClipboardCheck, kind: "lucide" },
+ "clipboard-clock": { Component: ClipboardClock, kind: "lucide" },
+ "clipboard-list": { Component: ClipboardList, kind: "lucide" },
+ "clipboard-plus": { Component: ClipboardPlus, kind: "lucide" },
+ clock: { Component: Clock, kind: "lucide" },
+ cloud: { Component: Cloud, kind: "lucide" },
+ "cloud-check": { Component: CloudCheck, kind: "lucide" },
+ "cloud-upload": { Component: CloudUpload, kind: "lucide" },
+ code: { Component: Code, kind: "lucide" },
+ cog: { Component: Cog, kind: "lucide" },
+ coins: { Component: Coins, kind: "lucide" },
+ "columns-2": { Component: Columns2, kind: "lucide" },
+ "columns-3": { Component: Columns3, kind: "lucide" },
+ construction: { Component: Construction, kind: "lucide" },
+ contact: { Component: Contact, kind: "lucide" },
+ copy: { Component: Copy, kind: "lucide" },
+ "copy-plus": { Component: CopyPlus, kind: "lucide" },
+ copyright: { Component: Copyright, kind: "lucide" },
+ "corner-down-right": { Component: CornerDownRight, kind: "lucide" },
+ "credit-card": { Component: CreditCard, kind: "lucide" },
+ crop: { Component: Crop, kind: "lucide" },
+ database: { Component: Database, kind: "lucide" },
+ delete: { Component: Delete, kind: "lucide" },
+ diamond: { Component: Diamond, kind: "lucide" },
+ "dollar-sign": { Component: DollarSign, kind: "lucide" },
+ download: { Component: Download, kind: "lucide" },
+ "drafting-compass": { Component: DraftingCompass, kind: "lucide" },
+ droplet: { Component: Droplet, kind: "lucide" },
+ ellipsis: { Component: Ellipsis, kind: "lucide" },
+ "ellipsis-vertical": { Component: EllipsisVertical, kind: "lucide" },
+ "external-link": { Component: ExternalLink, kind: "lucide" },
+ eye: { Component: Eye, kind: "lucide" },
+ "eye-off": { Component: EyeOff, kind: "lucide" },
+ factory: { Component: Factory, kind: "lucide" },
+ file: { Component: File, kind: "lucide" },
+ "file-digit": { Component: FileDigit, kind: "lucide" },
+ "file-lock": { Component: FileLock, kind: "lucide" },
+ "file-pen": { Component: FilePen, kind: "lucide" },
+ "file-plus": { Component: FilePlus, kind: "lucide" },
+ "file-search": { Component: FileSearch, kind: "lucide" },
+ "file-text": { Component: FileText, kind: "lucide" },
+ "file-up": { Component: FileUp, kind: "lucide" },
+ "file-x": { Component: FileX, kind: "lucide" },
+ files: { Component: Files, kind: "lucide" },
+ film: { Component: Film, kind: "lucide" },
+ "flask-conical": { Component: FlaskConical, kind: "lucide" },
+ "flip-horizontal-2": { Component: FlipHorizontal2, kind: "lucide" },
+ folder: { Component: Folder, kind: "lucide" },
+ "folder-bookmark": { Component: FolderBookmark, kind: "lucide" },
+ "folder-input": { Component: FolderInput, kind: "lucide" },
+ "folder-open": { Component: FolderOpen, kind: "lucide" },
+ "folder-plus": { Component: FolderPlus, kind: "lucide" },
+ "folder-up": { Component: FolderUp, kind: "lucide" },
+ folders: { Component: Folders, kind: "lucide" },
+ forklift: { Component: Forklift, kind: "lucide" },
+ fullscreen: { Component: Fullscreen, kind: "lucide" },
+ gauge: { Component: Gauge, kind: "lucide" },
+ gavel: { Component: Gavel, kind: "lucide" },
+ gem: { Component: Gem, kind: "lucide" },
+ gift: { Component: Gift, kind: "lucide" },
+ "git-branch": { Component: GitBranch, kind: "lucide" },
+ "git-fork": { Component: GitFork, kind: "lucide" },
+ globe: { Component: Globe, kind: "lucide" },
+ grape: { Component: Grape, kind: "lucide" },
+ "grip-vertical": { Component: GripVertical, kind: "lucide" },
+ hand: { Component: Hand, kind: "lucide" },
+ handshake: { Component: Handshake, kind: "lucide" },
+ "hard-drive": { Component: HardDrive, kind: "lucide" },
+ "hard-hat": { Component: HardHat, kind: "lucide" },
+ "heart-handshake": { Component: HeartHandshake, kind: "lucide" },
+ "heart-pulse": { Component: HeartPulse, kind: "lucide" },
+ highlighter: { Component: Highlighter, kind: "lucide" },
+ hotel: { Component: Hotel, kind: "lucide" },
+ house: { Component: House, kind: "lucide" },
+ "house-plus": { Component: HousePlus, kind: "lucide" },
+ image: { Component: Image, kind: "lucide" },
+ "image-plus": { Component: ImagePlus, kind: "lucide" },
+ images: { Component: Images, kind: "lucide" },
+ import: { Component: Import, kind: "lucide" },
+ inbox: { Component: Inbox, kind: "lucide" },
+ infinity: { Component: InfinityIcon, kind: "lucide" },
+ info: { Component: Info, kind: "lucide" },
+ italic: { Component: Italic, kind: "lucide" },
+ key: { Component: Key, kind: "lucide" },
+ keyboard: { Component: Keyboard, kind: "lucide" },
+ landmark: { Component: Landmark, kind: "lucide" },
+ layers: { Component: Layers, kind: "lucide" },
+ "layers-minus": { Component: LayersMinus, kind: "lucide" },
+ "layout-dashboard": { Component: LayoutDashboard, kind: "lucide" },
+ "layout-grid": { Component: LayoutGrid, kind: "lucide" },
+ leaf: { Component: Leaf, kind: "lucide" },
+ library: { Component: Library, kind: "lucide" },
+ lightbulb: { Component: Lightbulb, kind: "lucide" },
+ link: { Component: Link, kind: "lucide" },
+ list: { Component: List, kind: "lucide" },
+ "list-checks": { Component: ListChecks, kind: "lucide" },
+ "list-sort-descending": { Component: ListSortDescending, kind: "lucide" },
+ "list-todo": { Component: ListTodo, kind: "lucide" },
+ "locate-fixed": { Component: LocateFixed, kind: "lucide" },
+ lock: { Component: Lock, kind: "lucide" },
+ "lock-keyhole": { Component: LockKeyhole, kind: "lucide" },
+ "lock-open": { Component: LockOpen, kind: "lucide" },
+ "log-in": { Component: LogIn, kind: "lucide" },
+ "log-out": { Component: LogOut, kind: "lucide" },
+ luggage: { Component: Luggage, kind: "lucide" },
+ mail: { Component: Mail, kind: "lucide" },
+ map: { Component: Map, kind: "lucide" },
+ "map-pin": { Component: MapPin, kind: "lucide" },
+ "maximize-2": { Component: Maximize2, kind: "lucide" },
+ megaphone: { Component: Megaphone, kind: "lucide" },
+ menu: { Component: Menu, kind: "lucide" },
+ merge: { Component: Merge, kind: "lucide" },
+ "message-circle": { Component: MessageCircle, kind: "lucide" },
+ "message-square": { Component: MessageSquare, kind: "lucide" },
+ "message-square-plus": { Component: MessageSquarePlus, kind: "lucide" },
+ "message-square-text": { Component: MessageSquareText, kind: "lucide" },
+ "messages-square": { Component: MessagesSquare, kind: "lucide" },
+ minus: { Component: Minus, kind: "lucide" },
+ monitor: { Component: Monitor, kind: "lucide" },
+ "monitor-cloud": { Component: MonitorCloud, kind: "lucide" },
+ "monitor-smartphone": { Component: MonitorSmartphone, kind: "lucide" },
+ moon: { Component: Moon, kind: "lucide" },
+ move: { Component: Move, kind: "lucide" },
+ music: { Component: Music, kind: "lucide" },
+ network: { Component: Network, kind: "lucide" },
+ newspaper: { Component: Newspaper, kind: "lucide" },
+ package: { Component: Package, kind: "lucide" },
+ "package-2": { Component: Package2, kind: "lucide" },
+ "paint-bucket": { Component: PaintBucket, kind: "lucide" },
+ palette: { Component: Palette, kind: "lucide" },
+ paperclip: { Component: Paperclip, kind: "lucide" },
+ "party-popper": { Component: PartyPopper, kind: "lucide" },
+ pause: { Component: Pause, kind: "lucide" },
+ "pen-line": { Component: PenLine, kind: "lucide" },
+ "pen-tool": { Component: PenTool, kind: "lucide" },
+ pencil: { Component: Pencil, kind: "lucide" },
+ "pencil-ruler": { Component: PencilRuler, kind: "lucide" },
+ percent: { Component: Percent, kind: "lucide" },
+ phone: { Component: Phone, kind: "lucide" },
+ "picture-in-picture": { Component: PictureInPicture, kind: "lucide" },
+ "piggy-bank": { Component: PiggyBank, kind: "lucide" },
+ pill: { Component: Pill, kind: "lucide" },
+ pin: { Component: Pin, kind: "lucide" },
+ pipette: { Component: Pipette, kind: "lucide" },
+ plane: { Component: Plane, kind: "lucide" },
+ play: { Component: Play, kind: "lucide" },
+ plug: { Component: Plug, kind: "lucide" },
+ "plug-zap": { Component: PlugZap, kind: "lucide" },
+ plus: { Component: Plus, kind: "lucide" },
+ pointer: { Component: Pointer, kind: "lucide" },
+ power: { Component: Power, kind: "lucide" },
+ presentation: { Component: Presentation, kind: "lucide" },
+ printer: { Component: Printer, kind: "lucide" },
+ puzzle: { Component: Puzzle, kind: "lucide" },
+ "qr-code": { Component: QrCode, kind: "lucide" },
+ receipt: { Component: Receipt, kind: "lucide" },
+ "receipt-text": { Component: ReceiptText, kind: "lucide" },
+ recycle: { Component: Recycle, kind: "lucide" },
+ "redo-2": { Component: Redo2, kind: "lucide" },
+ "refresh-cw": { Component: RefreshCw, kind: "lucide" },
+ replace: { Component: Replace, kind: "lucide" },
+ rocket: { Component: Rocket, kind: "lucide" },
+ "rotate-ccw": { Component: RotateCcw, kind: "lucide" },
+ "rotate-ccw-clock": { Component: RotateCcwClock, kind: "lucide" },
+ "rotate-cw": { Component: RotateCw, kind: "lucide" },
+ "rotate-cw-square": { Component: RotateCwSquare, kind: "lucide" },
+ route: { Component: Route, kind: "lucide" },
+ "rows-2": { Component: Rows2, kind: "lucide" },
+ "rows-3": { Component: Rows3, kind: "lucide" },
+ ruler: { Component: Ruler, kind: "lucide" },
+ save: { Component: Save, kind: "lucide" },
+ "save-all": { Component: SaveAll, kind: "lucide" },
+ scale: { Component: Scale, kind: "lucide" },
+ scan: { Component: Scan, kind: "lucide" },
+ "scan-line": { Component: ScanLine, kind: "lucide" },
+ school: { Component: School, kind: "lucide" },
+ scissors: { Component: Scissors, kind: "lucide" },
+ "scroll-text": { Component: ScrollText, kind: "lucide" },
+ search: { Component: Search, kind: "lucide" },
+ send: { Component: Send, kind: "lucide" },
+ "send-to-back": { Component: SendToBack, kind: "lucide" },
+ server: { Component: Server, kind: "lucide" },
+ settings: { Component: Settings, kind: "lucide" },
+ shapes: { Component: Shapes, kind: "lucide" },
+ "share-2": { Component: Share2, kind: "lucide" },
+ shield: { Component: Shield, kind: "lucide" },
+ "shield-alert": { Component: ShieldAlert, kind: "lucide" },
+ "shield-check": { Component: ShieldCheck, kind: "lucide" },
+ "shield-off": { Component: ShieldOff, kind: "lucide" },
+ "shield-plus": { Component: ShieldPlus, kind: "lucide" },
+ "shield-user": { Component: ShieldUser, kind: "lucide" },
+ "shopping-cart": { Component: ShoppingCart, kind: "lucide" },
+ shrink: { Component: Shrink, kind: "lucide" },
+ sigma: { Component: Sigma, kind: "lucide" },
+ signature: { Component: Signature, kind: "lucide" },
+ siren: { Component: Siren, kind: "lucide" },
+ "sliders-horizontal": { Component: SlidersHorizontal, kind: "lucide" },
+ sparkle: { Component: Sparkle, kind: "lucide" },
+ sparkles: { Component: Sparkles, kind: "lucide" },
+ spline: { Component: Spline, kind: "lucide" },
+ split: { Component: Split, kind: "lucide" },
+ square: { Component: Square, kind: "lucide" },
+ "square-arrow-down": { Component: SquareArrowDown, kind: "lucide" },
+ "square-check": { Component: SquareCheck, kind: "lucide" },
+ "square-dashed": { Component: SquareDashed, kind: "lucide" },
+ "square-pen": { Component: SquarePen, kind: "lucide" },
+ "square-split-vertical": { Component: SquareSplitVertical, kind: "lucide" },
+ stamp: { Component: Stamp, kind: "lucide" },
+ star: { Component: Star, kind: "lucide" },
+ stethoscope: { Component: Stethoscope, kind: "lucide" },
+ "sticky-note": { Component: StickyNote, kind: "lucide" },
+ store: { Component: Store, kind: "lucide" },
+ strikethrough: { Component: Strikethrough, kind: "lucide" },
+ sun: { Component: Sun, kind: "lucide" },
+ sunset: { Component: Sunset, kind: "lucide" },
+ syringe: { Component: Syringe, kind: "lucide" },
+ table: { Component: Table, kind: "lucide" },
+ "table-of-contents": { Component: TableOfContents, kind: "lucide" },
+ "tablet-smartphone": { Component: TabletSmartphone, kind: "lucide" },
+ tag: { Component: Tag, kind: "lucide" },
+ tags: { Component: Tags, kind: "lucide" },
+ terminal: { Component: Terminal, kind: "lucide" },
+ "text-align-center": { Component: TextAlignCenter, kind: "lucide" },
+ "text-align-end": { Component: TextAlignEnd, kind: "lucide" },
+ "text-align-start": { Component: TextAlignStart, kind: "lucide" },
+ "thumbs-up": { Component: ThumbsUp, kind: "lucide" },
+ ticket: { Component: Ticket, kind: "lucide" },
+ timeline: { Component: Timeline, kind: "lucide" },
+ tractor: { Component: Tractor, kind: "lucide" },
+ trash: { Component: Trash, kind: "lucide" },
+ "trending-down": { Component: TrendingDown, kind: "lucide" },
+ "trending-up": { Component: TrendingUp, kind: "lucide" },
+ triangle: { Component: Triangle, kind: "lucide" },
+ "triangle-alert": { Component: TriangleAlert, kind: "lucide" },
+ trophy: { Component: Trophy, kind: "lucide" },
+ truck: { Component: Truck, kind: "lucide" },
+ type: { Component: Type, kind: "lucide" },
+ underline: { Component: Underline, kind: "lucide" },
+ "undo-2": { Component: Undo2, kind: "lucide" },
+ unlink: { Component: Unlink, kind: "lucide" },
+ upload: { Component: Upload, kind: "lucide" },
+ user: { Component: User, kind: "lucide" },
+ "user-check": { Component: UserCheck, kind: "lucide" },
+ "user-cog": { Component: UserCog, kind: "lucide" },
+ "user-minus": { Component: UserMinus, kind: "lucide" },
+ "user-plus": { Component: UserPlus, kind: "lucide" },
+ "user-x": { Component: UserX, kind: "lucide" },
+ users: { Component: Users, kind: "lucide" },
+ "users-round": { Component: UsersRound, kind: "lucide" },
+ utensils: { Component: Utensils, kind: "lucide" },
+ video: { Component: Video, kind: "lucide" },
+ "volume-2": { Component: Volume2, kind: "lucide" },
+ wallet: { Component: Wallet, kind: "lucide" },
+ "wallet-cards": { Component: WalletCards, kind: "lucide" },
+ warehouse: { Component: Warehouse, kind: "lucide" },
+ "whole-word": { Component: WholeWord, kind: "lucide" },
+ workflow: { Component: Workflow, kind: "lucide" },
+ webhook: { Component: Webhook, kind: "lucide" },
+ wrench: { Component: Wrench, kind: "lucide" },
+ x: { Component: X, kind: "lucide" },
+ zap: { Component: Zap, kind: "lucide" },
+ "zoom-in": { Component: ZoomIn, kind: "lucide" },
+ "zoom-out": { Component: ZoomOut, kind: "lucide" },
+ "annotation-off": { Component: AnnotationOff, kind: "stirling" },
+ api: { Component: Api, kind: "stirling" },
+ cpu: { Component: Cpu, kind: "stirling" },
+ editor: { Component: Editor, kind: "stirling" },
+ "file-html": { Component: FileHtml, kind: "stirling" },
+ "file-pdf": { Component: FilePdf, kind: "stirling" },
+ ftp: { Component: Ftp, kind: "stirling" },
+ "line-weight": { Component: LineWeight, kind: "stirling" },
+ "move-item-down": { Component: MoveItemDown, kind: "stirling" },
+ "radio-checked": { Component: RadioChecked, kind: "stirling" },
+ "remove-selection": { Component: RemoveSelection, kind: "stirling" },
+ "select-all": { Component: SelectAll, kind: "stirling" },
+ sftp: { Component: Sftp, kind: "stirling" },
+ "single-page": { Component: SinglePage, kind: "stirling" },
+ "users-plus": { Component: UsersPlus, kind: "stirling" },
+ watermark: { Component: Watermark, kind: "stirling" },
+ box: { Component: Box, kind: "brand" },
+ clamav: { Component: Clamav, kind: "brand" },
+ cloudmersive: { Component: Cloudmersive, kind: "brand" },
+ cloudmersiveadvanced: { Component: Cloudmersiveadvanced, kind: "brand" },
+ confluence: { Component: Confluence, kind: "brand" },
+ consigno: { Component: Consigno, kind: "brand" },
+ discord: { Component: Discord, kind: "brand" },
+ dropbox: { Component: Dropbox, kind: "brand" },
+ elastic: { Component: Elastic, kind: "brand" },
+ googlechat: { Component: Googlechat, kind: "brand" },
+ googledrive: { Component: Googledrive, kind: "brand" },
+ jira: { Component: Jira, kind: "brand" },
+ mailgun: { Component: Mailgun, kind: "brand" },
+ n8n: { Component: N8n, kind: "brand" },
+ nextcloud: { Component: Nextcloud, kind: "brand" },
+ onedrive: { Component: Onedrive, kind: "brand" },
+ presidio: { Component: Presidio, kind: "brand" },
+ purview: { Component: Purview, kind: "brand" },
+ s3: { Component: S3, kind: "brand" },
+ sendgrid: { Component: Sendgrid, kind: "brand" },
+ sharepoint: { Component: Sharepoint, kind: "brand" },
+ slack: { Component: Slack, kind: "brand" },
+ splunk: { Component: Splunk, kind: "brand" },
+ sumologic: { Component: Sumologic, kind: "brand" },
+ teams: { Component: Teams, kind: "brand" },
+ zapier: { Component: Zapier, kind: "brand" },
+} as const satisfies Record<string, IconEntry>;
+
+export type IconName = keyof typeof ICONS;
diff --git a/frontend/editor/src/core/icons/legacyIcons.d.ts b/frontend/editor/src/core/icons/legacyIcons.d.ts
new file mode 100644
index 0000000000..bda18994f4
--- /dev/null
+++ b/frontend/editor/src/core/icons/legacyIcons.d.ts
@@ -0,0 +1,12 @@
+/** Shape of `virtual:legacy-icons`; delete with IconAudit.stories.tsx. */
+declare module "virtual:legacy-icons" {
+ interface LegacyGlyph {
+ viewBox: string;
+ body: string;
+ }
+ const glyphs: {
+ mui: Record<string, LegacyGlyph>;
+ materialSymbols: Record<string, LegacyGlyph>;
+ };
+ export default glyphs;
+}
diff --git a/frontend/editor/src/core/icons/svg/stirling/annotation-off.svg b/frontend/editor/src/core/icons/svg/stirling/annotation-off.svg
new file mode 100644
index 0000000000..78b714c1e7
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/annotation-off.svg
@@ -0,0 +1,5 @@
+<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">
+ <path d="M3 17c1.5-3.5 3.2-3.5 4.5 0s3 3.5 4.5 0 3.2-3.5 4.5 0" />
+ <path d="M16.5 4.5 21 9" />
+ <path d="M21 4.5 16.5 9" />
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/api.svg b/frontend/editor/src/core/icons/svg/stirling/api.svg
new file mode 100644
index 0000000000..20e900616b
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/api.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M8.5 4C6.5 4 6 5 6 6.5v2.3C6 10.4 5.4 11.2 4 11.5v1c1.4.3 2 1.1 2 2.7v2.3C6 19 6.5 20 8.5 20" />
+ <path d="M15.5 4c2 0 2.5 1 2.5 2.5v2.3c0 1.6.6 2.4 2 2.7v1c-1.4.3-2 1.1-2 2.7v2.3c0 1.5-.5 2.5-2.5 2.5" />
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/cpu.svg b/frontend/editor/src/core/icons/svg/stirling/cpu.svg
new file mode 100644
index 0000000000..9e22216640
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/cpu.svg
@@ -0,0 +1,6 @@
+<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">
+ <!-- Shadows lucide's cpu with the same geometry drawn as one evenodd path, so `filled` leaves the inner square as a hole instead of a solid block. -->
+ <path fill-rule="evenodd" d="M6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zM9 8h6a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z" />
+ <path d="M12 20v2" /><path d="M12 2v2" /><path d="M17 20v2" /><path d="M17 2v2" /><path d="M7 20v2" /><path d="M7 2v2" />
+ <path d="M2 12h2" /><path d="M2 17h2" /><path d="M2 7h2" /><path d="M20 12h2" /><path d="M20 17h2" /><path d="M20 7h2" />
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/editor.svg b/frontend/editor/src/core/icons/svg/stirling/editor.svg
new file mode 100644
index 0000000000..bee6a086ed
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/editor.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M12 20h9" />
+ <path d="M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4z" />
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/file-html.svg b/frontend/editor/src/core/icons/svg/stirling/file-html.svg
new file mode 100644
index 0000000000..da3d639682
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/file-html.svg
@@ -0,0 +1,12 @@
+<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 x="2" y="4.5" width="20" height="15" rx="2.5" />
+ <g stroke-width="1.3">
+ <path d="M5 9v6" />
+ <path d="M7.3 9v6" />
+ <path d="M5 12h2.3" />
+ <path d="M9.15 9h2.1" />
+ <path d="M10.2 9v6" />
+ <path d="M13.1 15V9l1.3 2.6 1.3-2.6v6" />
+ <path d="M17.55 9v6h1.4" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/file-pdf.svg b/frontend/editor/src/core/icons/svg/stirling/file-pdf.svg
new file mode 100644
index 0000000000..de7ad3bee8
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/file-pdf.svg
@@ -0,0 +1,15 @@
+<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 is 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" />
+ <g stroke-width="1.3">
+ <path d="M6.1 18.4v-5" />
+ <path d="M6.1 13.4h1.1a1.2 1.2 0 0 1 0 2.4H6.1" />
+ <path d="M10.5 18.4v-5" />
+ <path d="M10.5 13.4h0.8a2.5 2.5 0 0 1 0 5h-0.8" />
+ <path d="M15.6 18.4v-5" />
+ <path d="M15.6 13.4h2" />
+ <path d="M15.6 15.9h1.6" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/ftp.svg b/frontend/editor/src/core/icons/svg/stirling/ftp.svg
new file mode 100644
index 0000000000..3516811b64
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/ftp.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
+ <rect x="4" y="13" width="16" height="7" rx="1.5" />
+ <path d="M7.5 16.5h.01" />
+ <path d="M11 16.5h.01" />
+ <path d="M9 4.5h6l-2-2M15 8.5H9l2 2" />
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/line-weight.svg b/frontend/editor/src/core/icons/svg/stirling/line-weight.svg
new file mode 100644
index 0000000000..4850e05d56
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/line-weight.svg
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-linecap="round">
+ <path d="M4 6.5h16" stroke-width="1.25" />
+ <path d="M4 12h16" stroke-width="2.5" />
+ <path d="M4 18h16" stroke-width="4" />
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/move-item-down.svg b/frontend/editor/src/core/icons/svg/stirling/move-item-down.svg
new file mode 100644
index 0000000000..0d041e1b33
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/move-item-down.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">
+ <rect x="3.5" y="3.5" width="8" height="7" rx="1.5" />
+ <path d="M7.5 14v6" />
+ <path d="m4.5 17 3 3 3-3" />
+ <path d="M15 17.5h5.5" />
+ <path d="M15 13.5h5.5" />
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/radio-checked.svg b/frontend/editor/src/core/icons/svg/stirling/radio-checked.svg
new file mode 100644
index 0000000000..c7bca21a55
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/radio-checked.svg
@@ -0,0 +1,4 @@
+<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">
+ <circle cx="12" cy="12" r="9" />
+ <circle cx="12" cy="12" r="5" fill="currentColor" stroke="none" />
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/remove-selection.svg b/frontend/editor/src/core/icons/svg/stirling/remove-selection.svg
new file mode 100644
index 0000000000..18df1ca5a0
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/remove-selection.svg
@@ -0,0 +1,5 @@
+<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 x="3" y="3" width="18" height="18" rx="2.5" stroke-dasharray="4 3.2" />
+ <path d="M9 9l6 6" />
+ <path d="M15 9l-6 6" />
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/select-all.svg b/frontend/editor/src/core/icons/svg/stirling/select-all.svg
new file mode 100644
index 0000000000..c268e374aa
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/select-all.svg
@@ -0,0 +1,4 @@
+<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 x="3" y="3" width="18" height="18" rx="2.5" stroke-dasharray="4 3.2" />
+ <rect x="8.25" y="8.25" width="7.5" height="7.5" rx="1.25" />
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/sftp.svg b/frontend/editor/src/core/icons/svg/stirling/sftp.svg
new file mode 100644
index 0000000000..09a4513c2b
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/sftp.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.7" stroke-linecap="round" stroke-linejoin="round">
+ <rect x="4" y="13" width="16" height="7" rx="1.5" />
+ <path d="M7.5 16.5h.01" />
+ <path d="M11 16.5h.01" />
+ <path d="M12 10V3.5" />
+ <path d="m8.5 6.5 3.5-3 3.5 3" />
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/single-page.svg b/frontend/editor/src/core/icons/svg/stirling/single-page.svg
new file mode 100644
index 0000000000..bc41d19a0d
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/single-page.svg
@@ -0,0 +1,4 @@
+<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 x="3" y="3" width="18" height="18" rx="2.5" />
+ <path d="M10.25 9.75 12.75 8v8" />
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/users-plus.svg b/frontend/editor/src/core/icons/svg/stirling/users-plus.svg
new file mode 100644
index 0000000000..bbe438fb00
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/users-plus.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 person body and second head arc is Lucide geometry (ISC). Full notice and the exact paths:
+ src/core/icons/LICENSE-lucide.txt, which must stay with this file. -->
+ <path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" />
+ <path d="M16 3.128a4 4 0 0 1 0 7.744" />
+ <circle cx="9" cy="7" r="4" />
+ <path d="M20 14.8v4" />
+ <path d="M18 16.8h4" />
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/watermark.svg b/frontend/editor/src/core/icons/svg/stirling/watermark.svg
new file mode 100644
index 0000000000..1348643755
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/watermark.svg
@@ -0,0 +1,6 @@
+<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 x="3" y="3" width="18" height="18" rx="2.5" />
+ <path d="M7.5 16 12 11.5" />
+ <path d="M11 16.5 16.5 11" />
+ <path d="M14.5 16.5 17 14" />
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/box.svg b/frontend/editor/src/core/icons/svg/third-party/box.svg
new file mode 100644
index 0000000000..1ab0f7f461
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/box.svg
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <rect x="2" y="2" width="20" height="20" rx="4.5" fill="#0061D5" />
+ <path d="M8 6.5v11" stroke="#fff" stroke-width="2.1" stroke-linecap="round" />
+ <circle cx="12.6" cy="13.3" r="4.1" fill="none" stroke="#fff" stroke-width="2.1" />
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/clamav.svg b/frontend/editor/src/core/icons/svg/third-party/clamav.svg
new file mode 100644
index 0000000000..610039ef95
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/clamav.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(-1.7931 -1.2184) scale(1.1494)">
+ <path d="M12 2.8l7.2 3v5.1c0 4.5-3 7.6-7.2 9.3-4.2-1.7-7.2-4.8-7.2-9.3V5.8z" fill="#3E8E9E" />
+ <path d="m8.9 11.7 2.2 2.2 4-4" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/cloudmersive.svg b/frontend/editor/src/core/icons/svg/third-party/cloudmersive.svg
new file mode 100644
index 0000000000..94b5da346e
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/cloudmersive.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(-0.6316 -0.6316) scale(1.0526)">
+ <rect x="2.5" y="2.5" width="19" height="19" rx="4.5" fill="#D64541" />
+ <path d="M15.8 8.6a4.9 4.9 0 1 0 0 6.8" fill="none" stroke="#fff" stroke-width="2.2" stroke-linecap="round" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/cloudmersiveadvanced.svg b/frontend/editor/src/core/icons/svg/third-party/cloudmersiveadvanced.svg
new file mode 100644
index 0000000000..bba658da7b
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/cloudmersiveadvanced.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(-0.6316 -0.6316) scale(1.0526)">
+ <rect x="2.5" y="2.5" width="19" height="19" rx="4.5" fill="#B03A37" />
+ <path d="M15.8 8.6a4.9 4.9 0 1 0 0 6.8" fill="none" stroke="#fff" stroke-width="2.2" stroke-linecap="round" />
+ <circle cx="16.9" cy="12" r="1.4" fill="#fff" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/confluence.svg b/frontend/editor/src/core/icons/svg/third-party/confluence.svg
new file mode 100644
index 0000000000..16537e31a6
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/confluence.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(-1.3333 -1.3333) scale(1.1111)">
+ <path d="M3 16.2c2.7-4.3 5.5-5.9 8.7-4.8 2.1.7 3.8 2.1 7.2 2.7l-1.6 4.4c-3.9-.7-5.9-2.2-7.6-2.8-1.7-.5-3.1.1-4.8 2.6z" fill="#2684FF" />
+ <path d="M21 7.8c-2.7 4.3-5.5 5.9-8.7 4.8-2.1-.7-3.8-2.1-7.2-2.7l1.6-4.4c3.9.7 5.9 2.2 7.6 2.8 1.7.5 3.1-.1 4.8-2.6z" fill="#0052CC" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/consigno.svg b/frontend/editor/src/core/icons/svg/third-party/consigno.svg
new file mode 100644
index 0000000000..1486449fef
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/consigno.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(-0.7554 -1.0245) scale(1.081)">
+ <path d="M16.1 3.3a2.35 2.35 0 0 1 3.3 3.3L8.2 17.8 3.6 19l1.2-4.6z" fill="#1B2A4A" />
+ <path d="M12.5 20.4c2.4-1.3 4.2-1.3 6.6 0" fill="none" stroke="#C33E37" stroke-width="1.8" stroke-linecap="round" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/discord.svg b/frontend/editor/src/core/icons/svg/third-party/discord.svg
new file mode 100644
index 0000000000..8c9b75c6c5
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/discord.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(-2.7561 -1.7108) scale(1.2297)">
+ <path d="M5.6 5.6C7.6 4.6 9.8 4.1 12 4.1s4.4.5 6.4 1.5c1.5 3 2 6.1 1.6 9.4-1.5 1.6-3.4 2.7-5.3 3.2l-1.1-2.2h-3.2l-1.1 2.2c-1.9-.5-3.8-1.6-5.3-3.2-.4-3.3.1-6.4 1.6-9.4z" fill="#5865F2" />
+ <ellipse cx="9.2" cy="11.6" rx="1.35" ry="1.5" fill="#fff" />
+ <ellipse cx="14.8" cy="11.6" rx="1.35" ry="1.5" fill="#fff" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/dropbox.svg b/frontend/editor/src/core/icons/svg/third-party/dropbox.svg
new file mode 100644
index 0000000000..b990a010e8
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/dropbox.svg
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(2 1.0019) scale(1.25)">
+ <path d="M8.01 4.555L4.005 7.11 8.01 9.665 4.005 12.22 0 9.651l4.005-2.555L0 4.555 4.005 2 8.01 4.555zm-4.026 8.487l4.006-2.555 4.005 2.555-4.005 2.555-4.006-2.555zm4.026-3.39l4.005-2.556L8.01 4.555 11.995 2 16 4.555l-4.005 2.555L16 9.665l-4.005 2.555L8.01 9.652z" fill="#0061FF" opacity="1" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/elastic.svg b/frontend/editor/src/core/icons/svg/third-party/elastic.svg
new file mode 100644
index 0000000000..796a4efba6
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/elastic.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(-1.908 -1.7931) scale(1.1494)">
+ <path d="M4.6 9.3C6.8 5.6 10.9 3.7 15 4.5c2.9.6 5 2.4 5.8 4.8H4.6z" fill="#FEC514" />
+ <rect x="3.4" y="10.4" width="17.2" height="3.2" rx="1.6" fill="#00BFB3" />
+ <path d="M4.6 14.7h16.2c-.8 2.4-2.9 4.2-5.8 4.8-4.1.8-8.2-1.1-10.4-4.8z" fill="#1BA9F5" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/googlechat.svg b/frontend/editor/src/core/icons/svg/third-party/googlechat.svg
new file mode 100644
index 0000000000..b7deab80c6
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/googlechat.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(0.4211 -0.6316) scale(1.0526)">
+ <path d="M4.5 2.5h13a2.5 2.5 0 0 1 2.5 2.5v16.5l-4.4-4H4.5A2.5 2.5 0 0 1 2 15V5a2.5 2.5 0 0 1 2.5-2.5z" fill="#00AC47" />
+ <path d="M7 8.4h10M7 12.1h6.5" stroke="#fff" stroke-width="1.8" stroke-linecap="round" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/googledrive.svg b/frontend/editor/src/core/icons/svg/third-party/googledrive.svg
new file mode 100644
index 0000000000..40bf037865
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/googledrive.svg
@@ -0,0 +1,10 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(2 3.0653) scale(0.2291)">
+ <path d="M6.6 66.85l3.85 6.65c.8 1.4 1.95 2.5 3.3 3.3l13.75-23.8H0c0 1.55.4 3.1 1.2 4.5z" fill="#0066DA" opacity="1" />
+ <path d="M43.65 25L29.9 1.2c-1.35.8-2.5 1.9-3.3 3.3L1.2 52.35c-.8 1.4-1.2 2.95-1.2 4.5h27.5z" fill="#00AC47" opacity="1" />
+ <path d="M73.55 76.8c1.35-.8 2.5-1.9 3.3-3.3l1.6-2.75 7.65-13.25c.8-1.4 1.2-2.95 1.2-4.5H59.85L73.55 76.8z" fill="#EA4335" opacity="1" />
+ <path d="M43.65 25L57.4 1.2c-1.35-.8-2.9-1.2-4.5-1.2H34.4c-1.6 0-3.15.45-4.5 1.2z" fill="#00832D" opacity="1" />
+ <path d="M59.85 53H27.5l-13.75 23.8c1.35.8 2.9 1.2 4.5 1.2h50.8c1.6 0 3.15-.45 4.5-1.2z" fill="#2684FC" opacity="1" />
+ <path d="M73.4 26.5L60.7 4.5c-.8-1.4-1.95-2.5-3.3-3.3L43.65 25l16.2 28h27.45c0-1.55-.4-3.1-1.2-4.5z" fill="#FFBA00" opacity="1" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/jira.svg b/frontend/editor/src/core/icons/svg/third-party/jira.svg
new file mode 100644
index 0000000000..b708c1430d
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/jira.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(-0.5 -0.5) scale(1.0417)">
+ <path d="M12 2.4 17 7.4a1.6 1.6 0 0 1 0 2.3L12 14.6 7 9.7a1.6 1.6 0 0 1 0-2.3z" fill="#2684FF" />
+ <path d="M12 9.4 17 14.3a1.6 1.6 0 0 1 0 2.3L12 21.6 7 16.6a1.6 1.6 0 0 1 0-2.3z" fill="#0052CC" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/mailgun.svg b/frontend/editor/src/core/icons/svg/third-party/mailgun.svg
new file mode 100644
index 0000000000..f005e9e759
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/mailgun.svg
@@ -0,0 +1,8 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(-0.6316 -0.6316) scale(1.0526)">
+ <circle cx="12" cy="12" r="9.5" fill="#ED413E" />
+ <circle cx="12" cy="12" r="5.2" fill="#fff" />
+ <circle cx="12" cy="12" r="2.2" fill="#ED413E" />
+ <circle cx="17.8" cy="12" r="1.3" fill="#ED413E" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/n8n.svg b/frontend/editor/src/core/icons/svg/third-party/n8n.svg
new file mode 100644
index 0000000000..e0495c2716
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/n8n.svg
@@ -0,0 +1,15 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(1.1589 0.785) scale(0.9346)">
+ <g stroke="#EA4B71" stroke-width="1.6" fill="none" stroke-linecap="round">
+ <path d="M3.6 12h5.2" />
+ <path d="M13.2 12h1.2c1.1 0 1.5-.8 2-1.7s.9-1.7 2-1.7h1" />
+ <path d="M13.2 12h1.2c1.1 0 1.5.8 2 1.7s.9 1.7 2 1.7h1" />
+ </g>
+ <g fill="#EA4B71">
+ <circle cx="2.6" cy="12" r="1.7" />
+ <circle cx="11" cy="12" r="2.4" />
+ <circle cx="20.6" cy="8.6" r="1.7" />
+ <circle cx="20.6" cy="15.4" r="1.7" />
+ </g>
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/nextcloud.svg b/frontend/editor/src/core/icons/svg/third-party/nextcloud.svg
new file mode 100644
index 0000000000..a8c8866782
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/nextcloud.svg
@@ -0,0 +1,9 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(0.2353 0.2353) scale(0.9804)">
+ <g fill="none" stroke="#0082C9" stroke-width="2">
+ <circle cx="4.9" cy="12" r="2.1" />
+ <circle cx="12" cy="12" r="3.4" />
+ <circle cx="19.1" cy="12" r="2.1" />
+ </g>
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/onedrive.svg b/frontend/editor/src/core/icons/svg/third-party/onedrive.svg
new file mode 100644
index 0000000000..bbb8c29e8d
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/onedrive.svg
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(2 2) scale(0.8333)">
+ <path d="M19.35 10.04A7.49 7.49 0 0012 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 000 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z" fill="#0078D4" opacity="1" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/presidio.svg b/frontend/editor/src/core/icons/svg/third-party/presidio.svg
new file mode 100644
index 0000000000..ea18a3094a
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/presidio.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(-0.6316 -0.6316) scale(1.0526)">
+ <rect x="2.5" y="2.5" width="19" height="19" rx="4.5" fill="#6B4EE6" />
+ <path d="M12 6.2l4.6 2v3.2c0 3-1.9 5-4.6 6.1-2.7-1.1-4.6-3.1-4.6-6.1V8.2z" fill="none" stroke="#fff" stroke-width="1.7" stroke-linejoin="round" />
+ <circle cx="12" cy="11.2" r="1.1" fill="#fff" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/purview.svg b/frontend/editor/src/core/icons/svg/third-party/purview.svg
new file mode 100644
index 0000000000..58f7978802
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/purview.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(-0.766 -0.766) scale(1.0638)">
+ <path d="M12 2.6 21.4 12 12 21.4 2.6 12z" fill="#1490DF" />
+ <path d="M12 2.6 21.4 12H12z" fill="#28A8EA" />
+ <path d="M12 12v9.4L2.6 12z" fill="#0F6CBD" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/s3.svg b/frontend/editor/src/core/icons/svg/third-party/s3.svg
new file mode 100644
index 0000000000..cf2b46ec8e
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/s3.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(-0.3711 -0.4742) scale(1.0309)">
+ <path d="M5.2 4.5c0-1.2 3-2.1 6.8-2.1s6.8.9 6.8 2.1l-1.5 14.6c-.1 1.5-2.4 2.7-5.3 2.7s-5.2-1.2-5.3-2.7z" fill="#E25444" />
+ <ellipse cx="12" cy="4.5" rx="6.8" ry="2.1" fill="#F2B0AA" />
+ <ellipse cx="12" cy="4.7" rx="4.6" ry="1.2" fill="#B8352A" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/sendgrid.svg b/frontend/editor/src/core/icons/svg/third-party/sendgrid.svg
new file mode 100644
index 0000000000..bd344d93ce
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/sendgrid.svg
@@ -0,0 +1,12 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(-1.3333 -1.3333) scale(1.1111)">
+ <rect x="3" y="3" width="6" height="6" fill="#51A9E3" />
+ <rect x="9" y="3" width="6" height="6" fill="#1A82E2" />
+ <rect x="15" y="3" width="6" height="6" fill="#51A9E3" />
+ <rect x="3" y="9" width="6" height="6" fill="#1A82E2" />
+ <rect x="9" y="9" width="6" height="6" fill="#51A9E3" />
+ <rect x="15" y="9" width="6" height="6" fill="#1A82E2" />
+ <rect x="3" y="15" width="6" height="6" fill="#51A9E3" />
+ <rect x="9" y="15" width="6" height="6" fill="#1A82E2" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/sharepoint.svg b/frontend/editor/src/core/icons/svg/third-party/sharepoint.svg
new file mode 100644
index 0000000000..8be0f89e06
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/sharepoint.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(-1.5714 -1.2967) scale(1.0989)">
+ <circle cx="10" cy="8.6" r="5.6" fill="#036C70" />
+ <circle cx="15.4" cy="13.4" r="4.9" fill="#1A9BA1" />
+ <circle cx="9.8" cy="17.2" r="4" fill="#37C6D0" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/slack.svg b/frontend/editor/src/core/icons/svg/third-party/slack.svg
new file mode 100644
index 0000000000..c2f93c9c32
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/slack.svg
@@ -0,0 +1,12 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(-0.2449 -0.2449) scale(1.0204)">
+ <rect x="9.6" y="2.2" width="3.4" height="8" rx="1.7" fill="#36C5F0" />
+ <circle cx="5.8" cy="8.5" r="1.7" fill="#36C5F0" />
+ <rect x="13.8" y="9.6" width="8" height="3.4" rx="1.7" fill="#2EB67D" />
+ <circle cx="15.5" cy="5.8" r="1.7" fill="#2EB67D" />
+ <rect x="11" y="13.8" width="3.4" height="8" rx="1.7" fill="#ECB22E" />
+ <circle cx="18.2" cy="15.5" r="1.7" fill="#ECB22E" />
+ <rect x="2.2" y="11" width="8" height="3.4" rx="1.7" fill="#E01E5A" />
+ <circle cx="8.5" cy="18.2" r="1.7" fill="#E01E5A" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/splunk.svg b/frontend/editor/src/core/icons/svg/third-party/splunk.svg
new file mode 100644
index 0000000000..75b6204721
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/splunk.svg
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(-4.9444 -4.6667) scale(1.3889)">
+ <path d="M6 4.8 18.4 12 6 19.2v-3.4l7-3.8-7-3.8z" fill="#65A637" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/sumologic.svg b/frontend/editor/src/core/icons/svg/third-party/sumologic.svg
new file mode 100644
index 0000000000..617aa12e2a
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/sumologic.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(-0.6316 -0.6316) scale(1.0526)">
+ <rect x="2.5" y="2.5" width="19" height="19" rx="4.5" fill="#000099" />
+ <path d="M6.5 9.5c1.8-1.4 3.7-1.4 5.5 0s3.7 1.4 5.5 0M6.5 14.5c1.8-1.4 3.7-1.4 5.5 0s3.7 1.4 5.5 0" stroke="#fff" stroke-width="1.7" stroke-linecap="round" fill="none" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/teams.svg b/frontend/editor/src/core/icons/svg/third-party/teams.svg
new file mode 100644
index 0000000000..c5bf82df05
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/teams.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(-0.6316 -0.6316) scale(1.0526)">
+ <rect x="2.5" y="2.5" width="19" height="19" rx="4.5" fill="#6264A7" />
+ <path d="M7.2 9h7v2.2h-2.3v6.6h-2.4v-6.6H7.2z" fill="#fff" transform="translate(1.3 -0.4)" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/third-party/zapier.svg b/frontend/editor/src/core/icons/svg/third-party/zapier.svg
new file mode 100644
index 0000000000..0923459e2a
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/third-party/zapier.svg
@@ -0,0 +1,11 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <g transform="translate(-0.6316 -0.6316) scale(1.0526)">
+ <g fill="#FF4F00">
+ <rect x="10.6" y="2.5" width="2.8" height="19" rx="1.4" />
+ <rect x="10.6" y="2.5" width="2.8" height="19" rx="1.4" transform="rotate(90 12 12)" />
+ <rect x="10.6" y="2.5" width="2.8" height="19" rx="1.4" transform="rotate(45 12 12)" />
+ <rect x="10.6" y="2.5" width="2.8" height="19" rx="1.4" transform="rotate(135 12 12)" />
+ </g>
+ <circle cx="12" cy="12" r="2.6" fill="#FF4F00" />
+ </g>
+</svg>
diff --git a/frontend/editor/src/core/icons/usedIcons.d.ts b/frontend/editor/src/core/icons/usedIcons.d.ts
new file mode 100644
index 0000000000..4d9d0b00f4
--- /dev/null
+++ b/frontend/editor/src/core/icons/usedIcons.d.ts
@@ -0,0 +1,5 @@
+/** Shape of `virtual:used-icons`: registry names the app references, sorted. */
+declare module "virtual:used-icons" {
+ const usedIcons: string[];
+ export default usedIcons;
+}
diff --git a/frontend/editor/src/core/ui/Icon.test.tsx b/frontend/editor/src/core/ui/Icon.test.tsx
new file mode 100644
index 0000000000..ca59b294a1
--- /dev/null
+++ b/frontend/editor/src/core/ui/Icon.test.tsx
@@ -0,0 +1,143 @@
+import { describe, expect, it, vi } from "vitest";
+import { render } from "@testing-library/react";
+
+import { Icon, isIconName, MISSING_ICON } from "@app/ui/Icon";
+import { ICONS, type IconName } from "@app/icons/icons";
+import { STROKE_WIDTH } from "@app/icons/icons.config";
+
+const names = Object.keys(ICONS) as IconName[];
+
+function renderIcon(
+ name: IconName,
+ props: Partial<{
+ size: number;
+ title: string;
+ filled: boolean;
+ colorless: boolean;
+ className: string;
+ }> = {},
+) {
+ const { container } = render(<Icon name={name} {...props} />);
+ const svg = container.querySelector("svg");
+ if (!svg) throw new Error(`<Icon name="${name}"> rendered no svg`);
+ return svg;
+}
+
+const classes = (svg: SVGSVGElement) => svg.getAttribute("class") ?? "";
+
+describe("icon map", () => {
+ it("covers both kinds", () => {
+ expect(names.length).toBeGreaterThan(100);
+ expect(
+ names.filter((n) => ICONS[n].kind === "brand").length,
+ ).toBeGreaterThan(0);
+ });
+
+ // Per icon, so a bad svg names itself rather than failing one opaque assertion.
+ it.each(names)("%s draws on the 24 grid and paints something", (name) => {
+ const svg = renderIcon(name);
+ expect(svg.getAttribute("viewBox")).toBe("0 0 24 24");
+ expect(svg.innerHTML.trim()).not.toBe("");
+ });
+
+ it("gives stroke icons the app weight and no fill", () => {
+ const svg = renderIcon("circle");
+ expect(svg.getAttribute("stroke-width")).toBe(String(STROKE_WIDTH));
+ expect(svg.getAttribute("fill")).toBe("none");
+ });
+
+ it("leaves brand marks their own colours", () => {
+ const svg = renderIcon("googledrive");
+ expect(svg.getAttribute("stroke-width")).toBeNull();
+ expect(svg.getAttribute("fill")).toBeNull();
+ expect(svg.querySelector('[fill="#0066DA"]')).not.toBeNull();
+ });
+
+ it("is decorative by default and labelled when given a title", () => {
+ expect(renderIcon("circle").getAttribute("aria-hidden")).toBe("true");
+ const labelled = renderIcon("circle", { title: "Round" });
+ expect(labelled.getAttribute("aria-hidden")).toBeNull();
+ expect(labelled.getAttribute("role")).toBe("img");
+ expect(labelled.getAttribute("aria-label")).toBe("Round");
+ });
+
+ it("applies size to both dimensions", () => {
+ const svg = renderIcon("circle", { size: 18 });
+ expect(svg.getAttribute("width")).toBe("18");
+ expect(svg.getAttribute("height")).toBe("18");
+ });
+});
+
+describe("filled state", () => {
+ it("fills a stroke icon on request and leaves it hollow otherwise", () => {
+ expect(renderIcon("star", { filled: true }).getAttribute("fill")).toBe(
+ "currentColor",
+ );
+ expect(renderIcon("star").getAttribute("fill")).toBe("none");
+ });
+
+ it("does not touch a brand mark", () => {
+ expect(
+ renderIcon("googledrive", { filled: true }).getAttribute("fill"),
+ ).toBeNull();
+ });
+});
+
+describe("colorless brand marks", () => {
+ it("dims a brand mark on request", () => {
+ expect(classes(renderIcon("googledrive", { colorless: true }))).toContain(
+ "icon-colorless",
+ );
+ });
+
+ it("keeps the call site's own class", () => {
+ const svg = renderIcon("googledrive", {
+ colorless: true,
+ className: "file-source__mark",
+ });
+ expect(classes(svg)).toContain("file-source__mark");
+ expect(classes(svg)).toContain("icon-colorless");
+ });
+
+ it("is inert without the prop, and on a stroke icon", () => {
+ expect(classes(renderIcon("googledrive"))).not.toContain("icon-colorless");
+ expect(classes(renderIcon("circle", { colorless: true }))).not.toContain(
+ "icon-colorless",
+ );
+ });
+});
+
+describe("isIconName", () => {
+ it("accepts mapped names and rejects everything else", () => {
+ expect(isIconName("circle")).toBe(true);
+ expect(isIconName("googledrive")).toBe(true);
+ expect(isIconName("not-an-icon")).toBe(false);
+ expect(isIconName(42)).toBe(false);
+ expect(isIconName(undefined)).toBe(false);
+ });
+
+ it.each(["constructor", "toString", "hasOwnProperty", "__proto__"])(
+ "rejects inherited key %s",
+ (key) => {
+ expect(isIconName(key)).toBe(false);
+ },
+ );
+});
+
+describe("unknown names", () => {
+ it("draws the placeholder instead of throwing", () => {
+ const spy = vi.spyOn(console, "error").mockImplementation(() => {});
+ const svg = renderIcon("not-an-icon-at-all" as IconName, { size: 20 });
+ expect(svg.getAttribute("data-missing-icon")).toBe("not-an-icon-at-all");
+ expect(svg.innerHTML).toBe(renderIcon(MISSING_ICON).innerHTML);
+ spy.mockRestore();
+ });
+
+ it("reports each unknown name once", () => {
+ const spy = vi.spyOn(console, "error").mockImplementation(() => {});
+ renderIcon("repeated-bad-name" as IconName);
+ renderIcon("repeated-bad-name" as IconName);
+ expect(spy).toHaveBeenCalledTimes(1);
+ spy.mockRestore();
+ });
+});
diff --git a/frontend/editor/src/core/ui/Icon.tsx b/frontend/editor/src/core/ui/Icon.tsx
new file mode 100644
index 0000000000..8111e7df0b
--- /dev/null
+++ b/frontend/editor/src/core/ui/Icon.tsx
@@ -0,0 +1,82 @@
+import type { CSSProperties } from "react";
+
+import { COLORLESS_CLASS } from "@app/icons/colorless";
+import { DEFAULT_SIZE, STROKE_WIDTH } from "@app/icons/icons.config";
+import { ICONS, type IconName } from "@app/icons/icons";
+
+export { DEFAULT_SIZE, ICONS, STROKE_WIDTH, type IconName };
+
+export interface IconProps {
+ name: IconName;
+ /** Rendered width and height in px, or any CSS length. */
+ size?: number | string;
+ /** Overrides the app-wide stroke weight. Ignored by brand marks. */
+ strokeWidth?: number;
+ /** Fills a stroke icon with currentColor, for a toggle's on state. */
+ filled?: boolean;
+ /** Dims a brand mark, for a source that is off or unavailable. Stroke icons ignore it. */
+ colorless?: boolean;
+ className?: string;
+ style?: CSSProperties;
+ /** Accessible label; without one the icon is aria-hidden. */
+ title?: string;
+}
+
+/** Narrows a name-or-node prop: ReactNode includes string, so typeof cannot. */
+export function isIconName(value: unknown): value is IconName {
+ return typeof value === "string" && Object.hasOwn(ICONS, value);
+}
+
+/** Drawn for a name the map cannot resolve, instead of throwing. */
+export const MISSING_ICON: IconName = "circle-dashed";
+
+const reported = new Set<string>();
+
+function resolve(name: string): (typeof ICONS)[IconName] {
+ if (isIconName(name)) return ICONS[name];
+ // Once per name: the same bad value re-renders constantly in a list.
+ if (import.meta.env.DEV && !reported.has(name)) {
+ reported.add(name);
+ console.error(
+ `Icon: "${name}" is not in the icon map, drawing the placeholder instead. Fix the name, or add the svg to src/core/icons/svg/ and a line to src/core/icons/icons.ts.`,
+ );
+ }
+ return ICONS[MISSING_ICON];
+}
+
+/** The only icon component: every name in src/core/icons/icons.ts. */
+export function Icon({
+ name,
+ size = DEFAULT_SIZE,
+ strokeWidth = STROKE_WIDTH,
+ filled = false,
+ colorless = false,
+ className,
+ style,
+ title,
+}: IconProps) {
+ const { Component, kind } = resolve(name);
+ const brand = kind === "brand";
+
+ return (
+ <Component
+ data-missing-icon={isIconName(name) ? undefined : name}
+ width={size}
+ height={size}
+ // A brand mark paints itself, so the weight and fill would flatten it.
+ {...(brand
+ ? {}
+ : { strokeWidth, fill: filled ? "currentColor" : "none" })}
+ className={
+ colorless && brand
+ ? [COLORLESS_CLASS, className].filter(Boolean).join(" ")
+ : className
+ }
+ style={style}
+ focusable={false}
+ aria-hidden={title ? undefined : true}
+ role={title ? "img" : undefined}
+ aria-label={title}
+ />
+ );
+}
diff --git a/frontend/editor/src/global.d.ts b/frontend/editor/src/global.d.ts
index 5060a47b24..03f91e675d 100644
--- a/frontend/editor/src/global.d.ts
+++ b/frontend/editor/src/global.d.ts
@@ -1,3 +1,4 @@
+/// <reference types="vite-plugin-svgr/client" />
/// <reference types="gapi" />
/// <reference types="gapi.client.drive-v3" />
/// <reference types="google.accounts" />
diff --git a/frontend/editor/src/logo.svg b/frontend/editor/src/logo.svg
deleted file mode 100644
index 9dfc1c058c..0000000000
--- a/frontend/editor/src/logo.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3"><g fill="#61DAFB"><path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/><circle cx="420.9" cy="296.5" r="45.7"/><path d="M520.5 78.1z"/></g></svg>
\ No newline at end of file
diff --git a/frontend/editor/src/proprietary/auth/ui/OAuthButtons.tsx b/frontend/editor/src/proprietary/auth/ui/OAuthButtons.tsx
index 6ffb202cd3..615239a43b 100644
--- a/frontend/editor/src/proprietary/auth/ui/OAuthButtons.tsx
+++ b/frontend/editor/src/proprietary/auth/ui/OAuthButtons.tsx
@@ -1,7 +1,8 @@
import { useTranslation } from "react-i18next";
import { type OAuthProvider } from "@app/auth/spring/oauthTypes";
import { Button as DSButton } from "@app/ui/Button";
-import { oauthIconUrl, GENERIC_PROVIDER_ICON } from "@app/auth/ui/oauthIcons";
+import { GENERIC_PROVIDER_ICON } from "@app/auth/ui/oauthIcons";
+import { ProviderMark } from "@app/auth/ui/ProviderMark";
// Debug flag to show all providers for UI testing
// Set to true to see all SSO options regardless of backend configuration
@@ -116,11 +117,7 @@ export default function OAuthButtons({
aria-label={`${t("login.signInWith", "Sign in with")} ${p.label}`}
variant="tertiary"
>
- <img
- src={oauthIconUrl(p.file)}
- alt=""
- className="oauth-icon-small"
- />
+ <ProviderMark file={p.file} className="oauth-icon-small" />
</DSButton>
</div>
))}
@@ -142,11 +139,7 @@ export default function OAuthButtons({
aria-label={`${t("login.signInWith", "Sign in with")} ${p.label}`}
variant="tertiary"
>
- <img
- src={oauthIconUrl(p.file)}
- alt=""
- className="oauth-icon-medium"
- />
+ <ProviderMark file={p.file} className="oauth-icon-medium" />
</DSButton>
</div>
))}
@@ -169,9 +162,8 @@ export default function OAuthButtons({
aria-label={ctaPrefix ? `${ctaPrefix} ${p.label}` : p.label}
>
<span className="oauth-btn-group">
- <img
- src={oauthIconUrl(p.file)}
- alt=""
+ <ProviderMark
+ file={p.file}
className={`oauth-icon-medium oauth-icon--${p.providerId}`}
style={{ marginRight: "0.5rem", flexShrink: 0 }}
/>
@@ -210,11 +202,7 @@ export default function OAuthButtons({
>
<span className="oauth-button-left">
<span className="oauth-icon-wrapper">
- <img
- src={oauthIconUrl(p.file)}
- alt=""
- className="oauth-icon-tiny"
- />
+ <ProviderMark file={p.file} className="oauth-icon-tiny" />
</span>
<span className="oauth-button-text">
{ctaPrefix ? `${ctaPrefix} ${p.label}` : p.label}
diff --git a/frontend/editor/src/proprietary/routes/login/OAuthButtons.test.tsx b/frontend/editor/src/proprietary/routes/login/OAuthButtons.test.tsx
index 15e9045187..7b583907fe 100644
--- a/frontend/editor/src/proprietary/routes/login/OAuthButtons.test.tsx
+++ b/frontend/editor/src/proprietary/routes/login/OAuthButtons.test.tsx
@@ -41,7 +41,7 @@ describe("OAuthButtons", () => {
expect(screen.getByText("Authentik")).toBeTruthy();
});
- it("should render unknown provider with capitalized label and generic icon", () => {
+ it("should render unknown provider with capitalized label and the neutral mark", () => {
// Render the unknown provider alongside oidc so we can assert the unknown
// one falls back to the same (generic OIDC) icon. Icons are bundled assets,
// so we compare resolved srcs rather than filenames.
@@ -60,17 +60,12 @@ describe("OAuthButtons", () => {
// Unknown provider should be capitalized
expect(screen.getByText("Mycompany")).toBeTruthy();
- // Unknown provider falls back to the generic OIDC icon
- const mycompanyImg = screen
- .getByText("Mycompany")
- .closest("button")
- ?.querySelector("img");
- const oidcImg = screen
- .getByText("OIDC")
- .closest("button")
- ?.querySelector("img");
- expect(mycompanyImg?.src).toBeTruthy();
- expect(mycompanyImg?.src).toBe(oidcImg?.src);
+ // An unknown provider and OIDC both fall back to the neutral glyph.
+ const markOf = (label: string) =>
+ screen.getByText(label).closest("button")?.querySelector("svg, img");
+ const mycompanyMark = markOf("Mycompany");
+ expect(mycompanyMark?.tagName.toLowerCase()).toBe("svg");
+ expect(markOf("OIDC")?.tagName.toLowerCase()).toBe("svg");
});
it('should call onProviderClick with actual provider ID (not "oidc")', async () => {
diff --git a/frontend/editor/vite.config.ts b/frontend/editor/vite.config.ts
index 22b8ce4e24..0dc494b6af 100644
--- a/frontend/editor/vite.config.ts
+++ b/frontend/editor/vite.config.ts
@@ -8,6 +8,8 @@ import { promisify } from "node:util";
import { defineConfig, loadEnv } from "vite";
import type { Connect, PluginOption } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
+// oxlint-disable-next-line no-restricted-imports -- config runs in node, before the aliases exist
+import { iconSvgr } from "./scripts/icons/svgrOptions.mts";
import { viteStaticCopy } from "vite-plugin-static-copy";
const gzipPromise = promisify(gzip);
@@ -273,6 +275,7 @@ export default defineConfig(async ({ mode, command }) => {
__DEV_WORKTREE_LABEL__: JSON.stringify(devWorktreeLabel),
},
plugins: [
+ iconSvgr(),
react(),
...(runSubpath ? [subpathBareRedirectPlugin(runSubpath)] : []),
tsconfigPaths({
diff --git a/frontend/editor/vitest.config.ts b/frontend/editor/vitest.config.ts
index 16d457bbd3..1ab4681f7b 100644
--- a/frontend/editor/vitest.config.ts
+++ b/frontend/editor/vitest.config.ts
@@ -1,6 +1,8 @@
import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react-swc";
import tsconfigPaths from "vite-tsconfig-paths";
+// oxlint-disable-next-line no-restricted-imports -- config runs in node, before the aliases exist
+import { iconSvgr } from "./scripts/icons/svgrOptions.mts";
// Projects do NOT inherit the root test.testTimeout, so every project silently
// ran at vitest's 5s default. Spread this into each one instead.
@@ -41,6 +43,7 @@ export default defineConfig({
setupFiles: ["./src/core/setupTests.ts"],
},
plugins: [
+ iconSvgr(),
react(),
tsconfigPaths({
projects: ["./tsconfig.core.vite.json"],
@@ -60,6 +63,7 @@ export default defineConfig({
setupFiles: ["./src/portal/setupTests.ts"],
},
plugins: [
+ iconSvgr(),
react(),
tsconfigPaths({
// Broad project so @app/@portal resolve in every editor file the
@@ -81,6 +85,7 @@ export default defineConfig({
setupFiles: ["./src/core/setupTests.ts"],
},
plugins: [
+ iconSvgr(),
react(),
tsconfigPaths({
projects: ["./tsconfig.proprietary.vite.json"],
@@ -100,6 +105,7 @@ export default defineConfig({
setupFiles: ["./src/core/setupTests.ts"],
},
plugins: [
+ iconSvgr(),
react(),
tsconfigPaths({
projects: ["./tsconfig.desktop.vite.json"],
@@ -125,6 +131,7 @@ export default defineConfig({
setupFiles: ["./src/saas/setupTests.ts"],
},
plugins: [
+ iconSvgr(),
react(),
tsconfigPaths({
projects: ["./tsconfig.saas.vite.json"],
@@ -144,6 +151,7 @@ export default defineConfig({
setupFiles: ["./src/core/setupTests.ts"],
},
plugins: [
+ iconSvgr(),
react(),
tsconfigPaths({
projects: ["./tsconfig.prototypes.vite.json"],
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index 86ce802924..8eadce82b0 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -66,6 +66,7 @@
"i18next-browser-languagedetector": "^8.2.1",
"jszip": "^3.10.1",
"license-report": "^6.8.5",
+ "lucide-static": "^1.41.0",
"pdfjs-dist": "^5.4.149",
"peerjs": "^1.5.5",
"pixelmatch": "^7.1.0",
@@ -136,6 +137,7 @@
"vite": "^7.3.2",
"vite-plugin-compression2": "^2.5.3",
"vite-plugin-static-copy": "^3.1.4",
+ "vite-plugin-svgr": "^5.2.0",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "3.2.7"
}
@@ -4642,6 +4644,271 @@
"acorn": "^8.9.0"
}
},
+ "node_modules/@svgr/babel-plugin-add-jsx-attribute": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-8.0.0.tgz",
+ "integrity": "sha512-b9MIk7yhdS1pMCZM8VeNfUlSKVRhsHZNMl5O9SfaX0l0t5wjdgu4IDzGB8bpnGBBOjGST3rRFVsaaEtI4W6f7g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@svgr/babel-plugin-remove-jsx-attribute": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-8.0.0.tgz",
+ "integrity": "sha512-BcCkm/STipKvbCl6b7QFrMh/vx00vIP63k2eM66MfHJzPr6O2U0jYEViXkHJWqXqQYjdeA9cuCl5KWmlwjDvbA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@svgr/babel-plugin-remove-jsx-empty-expression": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-8.0.0.tgz",
+ "integrity": "sha512-5BcGCBfBxB5+XSDSWnhTThfI9jcO5f0Ai2V24gZpG+wXF14BzwxxdDb4g6trdOux0rhibGs385BeFMSmxtS3uA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@svgr/babel-plugin-replace-jsx-attribute-value": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-8.0.0.tgz",
+ "integrity": "sha512-KVQ+PtIjb1BuYT3ht8M5KbzWBhdAjjUPdlMtpuw/VjT8coTrItWX6Qafl9+ji831JaJcu6PJNKCV0bp01lBNzQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@svgr/babel-plugin-svg-dynamic-title": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-8.0.0.tgz",
+ "integrity": "sha512-omNiKqwjNmOQJ2v6ge4SErBbkooV2aAWwaPFs2vUY7p7GhVkzRkJ00kILXQvRhA6miHnNpXv7MRnnSjdRjK8og==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@svgr/babel-plugin-svg-em-dimensions": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-8.0.0.tgz",
+ "integrity": "sha512-mURHYnu6Iw3UBTbhGwE/vsngtCIbHE43xCRK7kCw4t01xyGqb2Pd+WXekRRoFOBIY29ZoOhUCTEweDMdrjfi9g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@svgr/babel-plugin-transform-react-native-svg": {
+ "version": "8.1.0",
+ "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-8.1.0.tgz",
+ "integrity": "sha512-Tx8T58CHo+7nwJ+EhUwx3LfdNSG9R2OKfaIXXs5soiy5HtgoAEkDay9LIimLOcG8dJQH1wPZp/cnAv6S9CrR1Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@svgr/babel-plugin-transform-svg-component": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-8.0.0.tgz",
+ "integrity": "sha512-DFx8xa3cZXTdb/k3kfPeaixecQLgKh5NVBMwD0AQxOzcZawK4oo1Jh9LbrcACUivsCA7TLG8eeWgrDXjTMhRmw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@svgr/babel-preset": {
+ "version": "8.1.0",
+ "resolved": "https://registry.npmjs.org/@svgr/babel-preset/-/babel-preset-8.1.0.tgz",
+ "integrity": "sha512-7EYDbHE7MxHpv4sxvnVPngw5fuR6pw79SkcrILHJ/iMpuKySNCl5W1qcwPEpU+LgyRXOaAFgH0KhwD18wwg6ug==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@svgr/babel-plugin-add-jsx-attribute": "8.0.0",
+ "@svgr/babel-plugin-remove-jsx-attribute": "8.0.0",
+ "@svgr/babel-plugin-remove-jsx-empty-expression": "8.0.0",
+ "@svgr/babel-plugin-replace-jsx-attribute-value": "8.0.0",
+ "@svgr/babel-plugin-svg-dynamic-title": "8.0.0",
+ "@svgr/babel-plugin-svg-em-dimensions": "8.0.0",
+ "@svgr/babel-plugin-transform-react-native-svg": "8.1.0",
+ "@svgr/babel-plugin-transform-svg-component": "8.0.0"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@svgr/core": {
+ "version": "8.1.0",
+ "resolved": "https://registry.npmjs.org/@svgr/core/-/core-8.1.0.tgz",
+ "integrity": "sha512-8QqtOQT5ACVlmsvKOJNEaWmRPmcojMOzCz4Hs2BGG/toAp/K38LcsMRyLp349glq5AzJbCEeimEoxaX6v/fLrA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/core": "^7.21.3",
+ "@svgr/babel-preset": "8.1.0",
+ "camelcase": "^6.2.0",
+ "cosmiconfig": "^8.1.3",
+ "snake-case": "^3.0.4"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ }
+ },
+ "node_modules/@svgr/core/node_modules/cosmiconfig": {
+ "version": "8.3.6",
+ "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.3.6.tgz",
+ "integrity": "sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "import-fresh": "^3.3.0",
+ "js-yaml": "^4.1.0",
+ "parse-json": "^5.2.0",
+ "path-type": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/d-fischer"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.9.5"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@svgr/hast-util-to-babel-ast": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-8.0.0.tgz",
+ "integrity": "sha512-EbDKwO9GpfWP4jN9sGdYwPBU0kdomaPIL2Eu4YwmgP+sJeXT+L7bMwJUBnhzfH8Q2qMBqZ4fJwpCyYsAN3mt2Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.21.3",
+ "entities": "^4.4.0"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ }
+ },
+ "node_modules/@svgr/hast-util-to-babel-ast/node_modules/entities": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
+ "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.12"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/entities?sponsor=1"
+ }
+ },
+ "node_modules/@svgr/plugin-jsx": {
+ "version": "8.1.0",
+ "resolved": "https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-8.1.0.tgz",
+ "integrity": "sha512-0xiIyBsLlr8quN+WyuxooNW9RJ0Dpr8uOnH/xrCVO8GLUcwHISwj1AG0k+LFzteTkAA0GbX0kj9q6Dk70PTiPA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/core": "^7.21.3",
+ "@svgr/babel-preset": "8.1.0",
+ "@svgr/hast-util-to-babel-ast": "8.0.0",
+ "svg-parser": "^2.0.4"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ },
+ "peerDependencies": {
+ "@svgr/core": "*"
+ }
+ },
"node_modules/@swc/core": {
"version": "1.15.21",
"resolved": "https://registry.npmjs.org/@swc/core/-/core-1.15.21.tgz",
@@ -7852,6 +8119,19 @@
"node": ">=6"
}
},
+ "node_modules/camelcase": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz",
+ "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/camelcase-css": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",
@@ -9067,6 +9347,17 @@
"@types/trusted-types": "^2.0.7"
}
},
+ "node_modules/dot-case": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz",
+ "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "no-case": "^3.0.4",
+ "tslib": "^2.0.3"
+ }
+ },
"node_modules/dotenv": {
"version": "16.6.1",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz",
@@ -11547,6 +11838,16 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/lower-case": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz",
+ "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.0.3"
+ }
+ },
"node_modules/lowercase-keys": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-4.0.1.tgz",
@@ -11569,6 +11870,12 @@
"node": "20 || >=22"
}
},
+ "node_modules/lucide-static": {
+ "version": "1.41.0",
+ "resolved": "https://registry.npmjs.org/lucide-static/-/lucide-static-1.41.0.tgz",
+ "integrity": "sha512-39fX7SH+Rwis0oUmLLOipOoFSiJll9yi2DyEGDaE7Sp0qQAEhEfMQ2scQNdWKeGVENGv1uXc5ZeZqBWsuhQSFg==",
+ "license": "ISC"
+ },
"node_modules/lz-string": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz",
@@ -12761,6 +13068,17 @@
"node": ">= 0.4.0"
}
},
+ "node_modules/no-case": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz",
+ "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "lower-case": "^2.0.2",
+ "tslib": "^2.0.3"
+ }
+ },
"node_modules/node-html-better-parser": {
"version": "1.5.9",
"resolved": "https://registry.npmjs.org/node-html-better-parser/-/node-html-better-parser-1.5.9.tgz",
@@ -15343,6 +15661,17 @@
"url": "https://github.com/sponsors/cyyynthia"
}
},
+ "node_modules/snake-case": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz",
+ "integrity": "sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "dot-case": "^3.0.4",
+ "tslib": "^2.0.3"
+ }
+ },
"node_modules/socks": {
"version": "2.8.7",
"resolved": "https://registry.npmjs.org/socks/-/socks-2.8.7.tgz",
@@ -16480,6 +16809,16 @@
"node": ">= 0.4"
}
},
+ "node_modules/svg-parser": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/svg-parser/-/svg-parser-2.1.0.tgz",
+ "integrity": "sha512-bwLf38YmY+TDYHJw1Ex0Co8c4yeXuJAo8YnXGZrscxrvYoVVIvLeniEkV1Ks/54VteMnL4FtyN1+P+TZJdUPmQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/svg-tags": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/svg-tags/-/svg-tags-1.0.0.tgz",
@@ -17574,6 +17913,21 @@
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"
}
},
+ "node_modules/vite-plugin-svgr": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/vite-plugin-svgr/-/vite-plugin-svgr-5.2.0.tgz",
+ "integrity": "sha512-qj2eAKF8C6PZWemVTvQA0xgQIcP1hHU6Buh7fl6BhvayWwnuxE+z417miKxeDvRWbDrupQ1oK99hfxElopJ3sQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@rollup/pluginutils": "^5.3.0",
+ "@svgr/core": "^8.1.0",
+ "@svgr/plugin-jsx": "^8.1.0"
+ },
+ "peerDependencies": {
+ "vite": ">=3.0.0"
+ }
+ },
"node_modules/vite-tsconfig-paths": {
"version": "5.1.4",
"resolved": "https://registry.npmjs.org/vite-tsconfig-paths/-/vite-tsconfig-paths-5.1.4.tgz",
diff --git a/frontend/package.json b/frontend/package.json
index 9a910e4933..34018f77e0 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -63,6 +63,7 @@
"i18next-browser-languagedetector": "^8.2.1",
"jszip": "^3.10.1",
"license-report": "^6.8.5",
+ "lucide-static": "^1.41.0",
"pdfjs-dist": "^5.4.149",
"peerjs": "^1.5.5",
"pixelmatch": "^7.1.0",
@@ -158,6 +159,7 @@
"vite": "^7.3.2",
"vite-plugin-compression2": "^2.5.3",
"vite-plugin-static-copy": "^3.1.4",
+ "vite-plugin-svgr": "^5.2.0",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "3.2.7"
},