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
style(nits): soup width and fix reactive name for prop chips (#3997)
Seamus03ab3008dec1
diff --git a/js/app/packages/app/component/next-soup/soup-view/views/tasks/list-property-value.css b/js/app/packages/app/component/next-soup/soup-view/views/tasks/list-property-value.cssindex 0fe7e147ee..5739b2bc22 100644--- a/js/app/packages/app/component/next-soup/soup-view/views/tasks/list-property-value.css+++ b/js/app/packages/app/component/next-soup/soup-view/views/tasks/list-property-value.css@@ -1,5 +1,5 @@.task-grid-row {- --task-col-status: 7rem;+ --task-col-status: 7.25rem;--task-col-priority: 7rem;--task-col-assignees: 9rem;--task-col-created-by: 7rem;diff --git a/js/app/packages/property/src/extractors/PropertyText.tsx b/js/app/packages/property/src/extractors/PropertyText.tsxindex 8118c11f12..a85b074307 100644--- a/js/app/packages/property/src/extractors/PropertyText.tsx+++ b/js/app/packages/property/src/extractors/PropertyText.tsx@@ -46,6 +46,39 @@ type Props = {* Caller is responsible for any container/border/padding.*/export function PropertyText(props: Props) {+ const userId = () => {+ if (props.text !== undefined) return undefined;+ if (!isEntityProperty(props.property)) return undefined;+ if (props.property.specificEntityType !== 'USER') return undefined;++ const entities = getEntityValues(props.property);+ return entities.length === 1 ? entities[0].entity_id : undefined;+ };++ return (+ <Show+ when={userId()}+ fallback={+ <PrimitivePropertyText+ property={props.property}+ fallback={props.fallback}+ class={props.class}+ text={props.text}+ />+ }+ >+ {(id) => (+ <UserPropertyText+ id={id()}+ fallback={props.fallback}+ class={props.class}+ />+ )}+ </Show>+ );+}++function PrimitivePropertyText(props: Props) {const text = () => props.text ?? extractText(props.property);const empty = () => !text();@@ -56,6 +89,21 @@ export function PropertyText(props: Props) {);}+function UserPropertyText(props: {+ id: string;+ fallback?: JSX.Element;+ class?: string;+}) {+ const parts = useDisplayNameParts(tryMacroId(props.id));+ const text = () => parts.firstName() || parts.fullName();++ return (+ <Show when={text()} fallback={props.fallback ?? null}>+ <span class={cn('truncate', props.class)}>{text()}</span>+ </Show>+ );+}+function extractText(property: Property): string {if (!hasValue(property)) return '';@@ -76,10 +124,6 @@ function extractText(property: Property): string {const entities = getEntityValues(property);if (entities.length === 0) return '';if (property.specificEntityType === 'USER') {- if (entities.length === 1) {- const parts = useDisplayNameParts(tryMacroId(entities[0].entity_id));- return parts.firstName() || 'Unknown';- }return entities.length === 2 ? '2 people' : `${entities.length} people`;}return entities.length === 1 ? '1 item' : `${entities.length} items`;