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
import { cn } from '@ui';
import { Show } from 'solid-js';
import { Entity } from '../../entity';
import { isChannelEntity } from '../../types/entity';
import { ChannelActiveCallBadge, ChannelJoinButton } from './channel';
import { SOUP_ROW_CLASS } from './row-geometry';
import { type LayoutProps, RowIndicator } from './shared';
/** Condensed row used for maximum density. */
export function NarrowCondensedLayout(props: LayoutProps) {
return (
<Entity.Layout
class={cn(
SOUP_ROW_CLASS.narrow,
'w-full gap-x-(--soup-row-column-gap) items-center pr-2 pl-(--soup-row-padding-l) grid text-sm'
)}
style={{
'grid-template-columns': 'var(--soup-row-indicator-width) 1fr auto',
'grid-template-rows': '36px',
'grid-template-areas': '"indicator title timestamp"',
}}
>
<Entity.Slot placement="indicator" class="relative">
<RowIndicator
checked={props.checked}
hideCheckbox={props.hideCheckbox}
onChecked={props.onChecked}
unread={props.unread}
/>
</Entity.Slot>
<Entity.Slot
placement="title"
class="ph-no-capture flex min-w-0 items-center gap-2 truncate font-normal"
>
<div class="size-4 shrink-0">
<Show
when={props.icon}
fallback={
<Entity.Icon
entity={props.entity}
streamState={props.streamState}
/>
}
>
{props.icon}
</Show>
</div>
<Entity.Title entity={props.entity} />
{props.titleTrailing}
<Show when={isChannelEntity(props.entity) && props.entity}>
{(entity) => (
<span class="ml-auto shrink-0 flex items-center">
<ChannelActiveCallBadge channelId={entity().id} />
</span>
)}
</Show>
<Show
when={
isChannelEntity(props.entity) &&
props.entity.isParticipant === false &&
props.entity
}
>
{(entity) => (
<ChannelJoinButton entity={entity()} class="ml-auto shrink-0" />
)}
</Show>
</Entity.Slot>
<Entity.Slot placement="timestamp" class="flex items-center gap-1">
{props.referenceProperties}
{props.scheduleStatus}
</Entity.Slot>
</Entity.Layout>
);
}