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 { SYSTEM_PROPERTY_IDS } from '@property/constants';
import { DataType } from '@service-storage/generated/schemas/dataType';
import { EntityType } from '@service-storage/generated/schemas/entityType';
export const TASK_GRID_COLUMNS = [
{
id: 'priority',
label: 'Priority',
defId: SYSTEM_PROPERTY_IDS.PRIORITY,
dataType: DataType.SELECT_STRING,
isMultiSelect: false,
specificEntityType: null,
sortKey: 'priority',
width: 'var(--task-col-priority, 7rem)',
},
{
id: 'status',
label: 'Status',
defId: SYSTEM_PROPERTY_IDS.STATUS,
dataType: DataType.SELECT_STRING,
isMultiSelect: false,
specificEntityType: null,
sortKey: 'status',
// CSS variable with fallback - updated by container queries in task-grid.css
width: 'var(--task-col-status, 7rem)',
},
{
id: 'assignees',
label: 'Assignees',
defId: SYSTEM_PROPERTY_IDS.ASSIGNEES,
dataType: DataType.ENTITY,
isMultiSelect: true,
specificEntityType: EntityType.USER,
width: 'var(--task-col-assignees, 7rem)',
},
] as const;
/** Width for the "Created By" column - only shown on wide containers */
const CREATED_BY_COLUMN_WIDTH = 'var(--task-col-created-by, 7rem)';
export type TaskGridColumn = (typeof TASK_GRID_COLUMNS)[number];
/** Grid template for narrow containers (no Created By column) */
const TASK_GRID_TEMPLATE_COLUMNS_NARROW = `1rem minmax(0, 100%) ${TASK_GRID_COLUMNS.map(
(c) => c.width
).join(' ')} var(--task-col-timestamp, 5rem)`;
/** Grid template for wide containers (includes Created By column) */
export const TASK_GRID_TEMPLATE_COLUMNS_WIDE = `1rem minmax(0, 100%) ${TASK_GRID_COLUMNS.map(
(c) => c.width
).join(' ')} ${CREATED_BY_COLUMN_WIDTH} var(--task-col-timestamp, 5rem)`;
/** Wide template without the leading indicator (checkbox) column. */
export const TASK_GRID_TEMPLATE_COLUMNS_WIDE_NO_INDICATOR = `minmax(0, 100%) ${TASK_GRID_COLUMNS.map(
(c) => c.width
).join(' ')} ${CREATED_BY_COLUMN_WIDTH} var(--task-col-timestamp, 5rem)`;
/** @deprecated Use TASK_GRID_TEMPLATE_COLUMNS_NARROW or TASK_GRID_TEMPLATE_COLUMNS_WIDE */
const _TASK_GRID_TEMPLATE_COLUMNS = TASK_GRID_TEMPLATE_COLUMNS_NARROW;
/** Grid template areas for narrow containers (no Created By column) */
const TASK_GRID_TEMPLATE_AREAS_NARROW = `"indicator content ${TASK_GRID_COLUMNS.map(
(c) => c.id
).join(' ')} timestamp"`;
/** Grid template areas for wide containers (includes Created By column) */
export const TASK_GRID_TEMPLATE_AREAS_WIDE = `"indicator content ${TASK_GRID_COLUMNS.map(
(c) => c.id
).join(' ')} createdBy timestamp"`;
/** Wide template areas without the leading indicator (checkbox) column. */
export const TASK_GRID_TEMPLATE_AREAS_WIDE_NO_INDICATOR = `"content ${TASK_GRID_COLUMNS.map(
(c) => c.id
).join(' ')} createdBy timestamp"`;
/** @deprecated Use TASK_GRID_TEMPLATE_AREAS_NARROW or TASK_GRID_TEMPLATE_AREAS_WIDE */
const _TASK_GRID_TEMPLATE_AREAS = TASK_GRID_TEMPLATE_AREAS_NARROW;