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
fix(calendar): prefill Email guests with the event title (#8652)
gbirmanc30d07f881c0
diff --git a/apps/web/src/features/calendar-view/components/use-open-event-email.ts b/apps/web/src/features/calendar-view/components/use-open-event-email.tsindex e60ddf4cec..29d21d031c 100644--- a/apps/web/src/features/calendar-view/components/use-open-event-email.ts+++ b/apps/web/src/features/calendar-view/components/use-open-event-email.ts@@ -1,12 +1,15 @@import type { CalendarEvent } from '@app/features/calendar/types';+import { eventDisplayTitle } from '@app/features/calendar/utils/event-forward-summary';import { eventEmailRecipients } from '@app/features/calendar/utils/guest-emails';import { useSplitLayout } from '@components/app/split-layout/layout';import { focusNewComposerTo } from './focus-new-composer';/**- * Opens a new email addressed to the event's other guests. Desktop gets the- * composer in a split beside the calendar; on touch devices `openWithSplit`- * never inserts a split, so the composer takes over the screen instead.+ * Opens a new email addressed to the event's other guests, with the event's+ * title as the subject, as Forward by email and Google Calendar's own+ * email-guests action fill it in. Desktop gets the composer in a split beside+ * the calendar; on touch devices `openWithSplit` never inserts a split, so the+ * composer takes over the screen instead.* `preserveParams` keeps the recipients on the history entry the same way* `mailto:` links do — the in-place replace path would otherwise drop them.*/@@ -19,7 +22,10 @@ export function useOpenEventEmail() {{type: 'component',id: 'email-compose',- params: { initialTo: eventEmailRecipients(event) },+ params: {+ initialTo: eventEmailRecipients(event),+ initialSubject: eventDisplayTitle(event),+ },preserveParams: true,},// A composer already open holds another message; reusing it woulddiff --git a/docs/agent-guide/calendar.md b/docs/agent-guide/calendar.mdindex 751474114d..1e3c15c945 100644--- a/docs/agent-guide/calendar.md+++ b/docs/agent-guide/calendar.md@@ -451,7 +451,8 @@ an untouched rule must not be reformatted and included in a reminder-only PATCH.As in Google Calendar, the guests row of the details popover (a bottom sheet on phones)carries `Copy guest emails` and `Email guests` icon buttons, both hidden when you are theonly guest (always so on a snapshot). Copying puts every guest's address on the clipboard,-comma-separated. Emailing opens a new email addressed to every guest but you — in a split+comma-separated. Emailing opens a new email addressed to every guest but you, with the event+title as its subject (as `Forward by email` fills it in) — in a splitbeside the calendar on desktop, as the full-screen composer on touch devices, in its owncomposer even when another one is open. Deleting an event asks first, and says guests will benotified only when someone besides you is on it.