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.

fix(icon): Add new files icon and swap it into the unified filter dropdown (#3725)

Aidan Holloway-Bidwell264f49f76928
diff --git a/js/app/packages/app/component/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsx b/js/app/packages/app/component/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsx
index d324de5f05..6fbd46205c 100644
--- a/js/app/packages/app/component/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsx
+++ b/js/app/packages/app/component/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsx
@@ -125,7 +125,7 @@ const INBOX_FILTER_CATEGORIES: FilterCategory[] = [
{
id: 'file',
label: 'Files',
- icon: () => <EntityIcon targetType="unknown" size="xs" />,
+ icon: () => <EntityIcon targetType="files" size="xs" />,
},
],
multiple: true,
diff --git a/js/app/packages/core/component/EntityIcon.tsx b/js/app/packages/core/component/EntityIcon.tsx
index 0708b4421f..c26168fc3d 100644
--- a/js/app/packages/core/component/EntityIcon.tsx
+++ b/js/app/packages/core/component/EntityIcon.tsx
@@ -24,6 +24,7 @@ import WideEmail from '@icon/wide-email.svg';
import WideFileCode from '@icon/wide-file-code.svg';
import WideFileImage from '@icon/wide-file-image.svg';
import WideFileMd from '@icon/wide-file-md.svg';
+import WideFiles from '@icon/wide-files.svg';
import WideFolder from '@icon/wide-folder.svg';
import WideGlobe from '@icon/wide-globe.svg';
import WideStar from '@icon/wide-star.svg';
@@ -44,6 +45,7 @@ import FileHtml from '@phosphor/file-html.svg';
import FileMd from '@phosphor/file-md.svg';
import FilePdf from '@phosphor/file-pdf.svg';
import FileVideo from '@phosphor/file-video.svg';
+import Files from '@phosphor/files.svg';
import Folder from '@phosphor/folder-simple.svg';
import FolderUser from '@phosphor/folder-user.svg';
import GlobeIcon from '@phosphor/globe.svg';
@@ -78,6 +80,7 @@ export type EntityWithValidIcon =
| 'emailRead'
| 'emailInvite'
| 'archive'
+ | 'files'
| 'html';
const ARCHIVE_EXTENSIONS = new Set(
@@ -207,6 +210,12 @@ export const ENTITY_ICON_CONFIGS: Record<EntityWithValidIcon, IconConfig> = {
background: 'bg-default/20',
prettyName: 'File',
},
+ files: {
+ icon: Files,
+ foreground: 'text-default',
+ background: 'bg-default/20',
+ prettyName: 'Files',
+ },
archive: {
icon: FileArchive,
foreground: 'text-default',
@@ -303,6 +312,7 @@ const WIDE_ICONS: Record<EntityWithValidIcon, Component> = {
project: WideFolder,
sharedProject: WideFolder,
unknown: WideUnknown,
+ files: WideFiles,
archive: WideUnknown,
video: WideVideo,
contact: WideUser,
diff --git a/js/app/packages/icon/wide-files.svg b/js/app/packages/icon/wide-files.svg
new file mode 100644
index 0000000000..8fe38442f5
--- /dev/null
+++ b/js/app/packages/icon/wide-files.svg
@@ -0,0 +1,5 @@
+<svg width="100%" height="100%" viewBox="0 -3 18 18" fill="none" stroke="currentColor" stroke-width="1.5" xmlns="http://www.w3.org/2000/svg">
+<path d="M12.75 12V8L9.5 4.75H0.75V12" stroke-linejoin="round"/>
+<path d="M17.25 12V4.5L13.5 0.75H5.25V2.5" stroke-linejoin="round"/>
+<path d="M12.75 9H8.5V4.75" stroke-miterlimit="10"/>
+</svg>