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.

497 B
Raw Blame
import { SYSTEM_PROPERTY_IDS } from '@property/identifiers';
import type { Property } from '@property/types';
import type { Project } from '../core/project';

export function projectTimelineDates(row: {
  project: Project;
  properties: readonly Property[];
}) {
  const due = row.properties.find(
    (property) => property.propertyDefinitionId === SYSTEM_PROPERTY_IDS.DUE_DATE
  );

  return {
    start: row.project.createdAt,
    end: due?.valueType === 'DATE' ? due.value : undefined,
  };
}