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.

2.4 KB
Raw Blame
import type { CalendarInvitation } from './calendar-invitation';

/** Synthetic scheduling corpus shared by UI tests and browser verification. */
export const invitationFixture: CalendarInvitation = {
  id: 'product-review',
  uid: '[email protected]',
  method: 'request',
  sequence: 0,
  title: 'Product review',
  organizer: { name: 'Alex Chen', email: '[email protected]' },
  start: {
    kind: 'zoned',
    value: '2026-09-24T17:00:00Z',
    time_zone: 'America/Los_Angeles',
  },
  end: {
    kind: 'zoned',
    value: '2026-09-24T17:30:00Z',
    time_zone: 'America/Los_Angeles',
  },
  attendees: [
    { name: 'Alex', email: '[email protected]' },
    { name: 'You', email: '[email protected]' },
    { name: 'Sam', email: '[email protected]' },
    { name: 'Riley', email: '[email protected]' },
    { name: 'Morgan', email: '[email protected]' },
    { name: 'Taylor', email: '[email protected]' },
  ],
  location: 'Google Meet',
  conference_url: 'https://meet.google.com/abc-defg-hij',
  description:
    'Review the new calendar experience and open questions.\nBring your notes on the updated invitation cards, timezone handling, and the mobile RSVP experience.\nMeeting password: 123456. Dial-in instructions stay available here.',
};
export const invitationFixtures = {
  new: invitationFixture,
  updated: {
    ...invitationFixture,
    sequence: 2,
    title: 'Product review — new time',
  },
  cancelled: {
    ...invitationFixture,
    method: 'cancel',
    status: 'CANCELLED',
    sequence: 3,
  },
  reply: {
    ...invitationFixture,
    method: 'reply',
    attendees: [
      {
        name: 'Sam',
        email: '[email protected]',
        participation_status: 'ACCEPTED',
      },
    ],
    comment: 'See you there.',
  },
  counter: {
    ...invitationFixture,
    method: 'counter',
    comment: 'Can we start half an hour later?',
  },
  shared: {
    ...invitationFixture,
    method: 'publish',
    attendees: [],
    location: 'Room 4',
    conference_url: undefined,
    recurrence: [],
  },
  allDay: {
    ...invitationFixture,
    title: 'Team offsite',
    start: { kind: 'date', value: '2026-09-24' },
    end: { kind: 'date', value: '2026-09-26' },
  },
  floating: {
    ...invitationFixture,
    start: {
      kind: 'unresolved',
      value: '2026-09-24T10:00:00',
      time_zone: 'Pacific Standard Time',
    },
    end: undefined,
  },
} satisfies Record<string, CalendarInvitation>;