Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

Add skill icon (#5576)

Aidan Holloway-Bidwellc0363d2b54d6
diff --git a/apps/web/src/components/icon/skill.svg b/apps/web/src/components/icon/skill.svg
new file mode 100644
index 0000000000..8e99eda4ef
--- /dev/null
+++ b/apps/web/src/components/icon/skill.svg
@@ -0,0 +1,17 @@
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 24 24"
+ fill="currentColor"
+>
+ <g transform="translate(0 .188) scale(1.1086)">
+ <path d="M10.824172 12.447266c-.414062 0-.75-.835449-.75-1.249512 0-3.39502-.829102-4.224121-4.223633-4.224121-.414062 0-1.25-.335938-1.25-.75s.835938-.75 1.25-.75c3.394531 0 4.223633-.829102 4.223633-4.223633 0-.414062.335938-1.25.75-1.25s.75.835938.75 1.25c0 3.394531.829102 4.223633 4.223633 4.223633.414062 0 1.25.335938 1.25.75s-.835938.75-1.25.75c-3.394531 0-4.223633.829102-4.223633 4.224121 0 .414062-.335938 1.249512-.75 1.249512ZM9.612258 6.223633c.511719.30127.911133.700684 1.211914 1.212402.300781-.511719.700195-.911133 1.211914-1.212402-.511719-.30127-.911133-.700684-1.211914-1.211914-.300781.51123-.700195.910645-1.211914 1.211914Z" />
+ <path
+ d="m17.824172 9.143484 3.074172 1.849407-10.074082 5.816275L.75 10.992788l3.098822-1.789106M20.898344 14.742891l-10.074082 5.816275L.75 14.742788"
+ fill="none"
+ stroke="currentColor"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ stroke-width="1.5"
+ />
+ </g>
+</svg>
diff --git a/apps/web/src/features/command/Launcher.tsx b/apps/web/src/features/command/Launcher.tsx
index 9013ab905b..54e3f06e80 100644
--- a/apps/web/src/features/command/Launcher.tsx
+++ b/apps/web/src/features/command/Launcher.tsx
@@ -34,6 +34,7 @@ import {
createSnippet,
} from '@core/util/create';
import { createControlledOpenSignal } from '@core/util/createControlledOpenSignal';
+import SkillIcon from '@icon/skill.svg';
import WideAutomation from '@icon/wide-automation.svg';
import { AnimatedChannelIcon } from '@icon/wide-channel';
import WideChannel from '@icon/wide-channel.svg';
@@ -449,7 +450,7 @@ export const CREATABLE_BLOCKS: CreatableBlock[] = [
},
{
label: 'Skill',
- icon: getIconConfig('skill').icon,
+ icon: SkillIcon,
description: 'Create skill',
launcherHint: 'Custom agent skill',
keywords: ['new', 'make', 'add', 'instruction', 'prompt'],
diff --git a/apps/web/src/lib/core/component/EntityIcon.tsx b/apps/web/src/lib/core/component/EntityIcon.tsx
index e5df8e9dbf..196f6b9e74 100644
--- a/apps/web/src/lib/core/component/EntityIcon.tsx
+++ b/apps/web/src/lib/core/component/EntityIcon.tsx
@@ -15,6 +15,7 @@ import type {
ReminderEntity,
} from '@entity';
import GithubIcon from '@icon/mcp-github.svg';
+import SkillIcon from '@icon/skill.svg';
import WideAutomation from '@icon/wide-automation.svg';
import WideBook from '@icon/wide-book.svg';
import WideCalendar from '@icon/wide-calendar.svg';
@@ -58,7 +59,6 @@ import FolderUser from '@phosphor/folder-user.svg';
import GlobeIcon from '@phosphor/globe.svg';
import FileImage from '@phosphor/image.svg';
import Canvas from '@phosphor/pencil-circle.svg';
-import ScrollIcon from '@phosphor/scroll.svg';
import Users from '@phosphor/users.svg';
import type { PreviewItem } from '@queries/preview';
import type { ChannelType } from '@service-cognition/generated/schemas/channelType';
@@ -286,7 +286,7 @@ export const ENTITY_ICON_CONFIGS: Record<EntityWithValidIcon, IconConfig> = {
prettyName: 'Snippet',
},
skill: {
- icon: ScrollIcon,
+ icon: SkillIcon,
foreground: 'text-default',
background: 'bg-default/20',
prettyName: 'Skill',
@@ -377,7 +377,7 @@ const WIDE_ICONS: Record<
pr: GithubIcon,
task: WideTask,
snippet: WideSnippet,
- skill: ScrollIcon,
+ skill: SkillIcon,
automation: WideAutomation,
crm_company: AnimatedCompanyIcon,
company: AnimatedCompanyIcon,