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.

feat(email): show owning inbox icon in narrow email list rows (#3937)

gbirmanc4ccfc81456d
diff --git a/js/app/packages/entity/src/composed/list-entity/narrow-layout.tsx b/js/app/packages/entity/src/composed/list-entity/narrow-layout.tsx
index 48dcdc3b0f..a6649f0b08 100644
--- a/js/app/packages/entity/src/composed/list-entity/narrow-layout.tsx
+++ b/js/app/packages/entity/src/composed/list-entity/narrow-layout.tsx
@@ -9,9 +9,11 @@ import { SearchSender } from '../../extractors-search/search-sender';
import {
isChannelEntity,
isChannelMessageEntity,
+ isEmailEntity,
isTaskEntity,
} from '../../types/entity';
import { isSearchEntity } from '../../types/search';
+import { EmailInboxChip } from './email';
import type { LayoutProps } from './shared';
export function NarrowLayout(props: LayoutProps) {
@@ -84,6 +86,9 @@ export function NarrowLayout(props: LayoutProps) {
);
}}
</Show>
+ <Show when={isEmailEntity(props.entity) && props.entity}>
+ {(entity) => <EmailInboxChip entity={entity()} class="ml-auto" />}
+ </Show>
</Entity.Slot>
<Show