Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
feat: add immutable file type chip to block unknown (#2391)
gbirman4671a6808960
diff --git a/js/app/packages/block-unknown/component/TopBar.tsx b/js/app/packages/block-unknown/component/TopBar.tsxindex 7fa060de4a..27585305f6 100644--- a/js/app/packages/block-unknown/component/TopBar.tsx+++ b/js/app/packages/block-unknown/component/TopBar.tsx@@ -10,6 +10,7 @@ import { BlockItemSplitLabel } from '@app/component/split-layout/components/Spliimport { useIsAuthenticated } from '@core/auth';import { useBlockId } from '@core/block';+import { blockMetadataSignal } from '@core/signal/load';import {ReferencesButton,REFERENCES_DRAWER_ID,@@ -28,9 +29,21 @@ import DownloadSimple from '@icon/regular/download-simple.svg';import Quotes from '@icon/regular/quotes.svg';import IconShared from '@macro-icons/wide/share.svg';import { createCallback } from '@solid-primitives/rootless';+import { Show } from 'solid-js';import { toast } from 'core/component/Toast/Toast';import { useGetFileBlob } from '../signal/blockData';+function FileTypeChip() {+ const fileType = () => blockMetadataSignal()?.fileType;+ return (+ <Show when={fileType()}>+ <span class="shrink-0 rounded px-1 py-0.5 text-[0.625rem] font-mono font-medium uppercase leading-none bg-surface-secondary text-ink-muted">+ {fileType()}+ </span>+ </Show>+ );+}+export function TopBar() {const isAuth = useIsAuthenticated();const blockId = useBlockId();@@ -90,7 +103,7 @@ export function TopBar() {return (<><SplitHeaderLeft>- <BlockItemSplitLabel />+ <BlockItemSplitLabel badges={<FileTypeChip />} /></SplitHeaderLeft><ResponsivePermissionsBadge />