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.

fix(calendar): keep RSVP saving feedback inside the footer (#8460)

gbirman269b9cc17003
diff --git a/apps/web/src/features/calendar-view/components/EventRsvpSection.tsx b/apps/web/src/features/calendar-view/components/EventRsvpSection.tsx
index 7dec8cded9..b27d829355 100644
--- a/apps/web/src/features/calendar-view/components/EventRsvpSection.tsx
+++ b/apps/web/src/features/calendar-view/components/EventRsvpSection.tsx
@@ -1,5 +1,6 @@
import type { CalendarEvent } from '@app/features/calendar/types';
import { OutlookRsvpAction } from '@app/features/calendar/views/event-replacement';
+import SpinnerIcon from '@phosphor/spinner-gap.svg';
import type { AttendeeResponseStatus } from '@service-storage/generated/schemas/attendeeResponseStatus';
import { Button } from '@ui';
import { createMemo, For, Show } from 'solid-js';
@@ -55,8 +56,19 @@ export function EventRsvpSection(props: {
return (
<Show when={canRespond()}>
- <div class="border-edge-muted flex items-center gap-3 border-t bg-active px-4 py-2.5 text-sm text-ink-muted sm:text-xs mobile:border-0 mobile:bg-transparent mobile:px-6 mobile:pt-4 mobile:pb-2">
- <span>Going?</span>
+ <div class="border-edge-muted flex flex-wrap items-center gap-x-3 gap-y-2 border-t bg-active px-4 py-2.5 text-sm text-ink-muted sm:text-xs mobile:border-0 mobile:bg-transparent mobile:px-6 mobile:pt-4 mobile:pb-2">
+ <span class="flex shrink-0 items-center gap-2">
+ Going?
+ <span role="status" class="size-3.5">
+ <Show when={rsvp.pending()}>
+ <SpinnerIcon
+ aria-hidden="true"
+ class="size-3.5 animate-spin motion-reduce:animate-none"
+ />
+ <span class="sr-only">Saving response…</span>
+ </Show>
+ </span>
+ </span>
<div class="ml-auto flex shrink-0 gap-3 lg:gap-2">
<For each={RSVP_OPTIONS}>
{(option) => (
@@ -75,10 +87,14 @@ export function EventRsvpSection(props: {
)}
</For>
</div>
+ <Show when={rsvp.error()}>
+ {(error) => (
+ <p role="alert" class="basis-full text-xs text-failure">
+ {error()}
+ </p>
+ )}
+ </Show>
</div>
- <p role="status" aria-live="polite" class="text-xs text-ink-muted">
- {rsvp.pending() ? 'Saving response…' : rsvp.error()}
- </p>
<Show
when={
props.event.calendar.provider === 'outlook' &&
diff --git a/docs/agent-guide/calendar.md b/docs/agent-guide/calendar.md
index ea9ab55505..5ccf0a40f6 100644
--- a/docs/agent-guide/calendar.md
+++ b/docs/agent-guide/calendar.md
@@ -119,6 +119,10 @@ footer. Answering a recurring invitation opens a rounded glass sheet: choose
`This event` or `All events`, then `Save response`. Cancel or Close returns to
the event details without sending a response.
+While an event response saves, a small spinner appears beside `Going?` within
+the RSVP footer on desktop and mobile; the row and buttons stay in place.
+Failures appear below the buttons inside the padded footer and allow retrying.
+
Calendar scheduling is on by default in dev. Production uses the PostHog flag
`enable-calendar-scheduling` and stays off unless enabled remotely. Set
`VITE_ENABLE_CALENDAR_SCHEDULING=false` to test the disabled state locally.