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): show busy-only teammates' out-of-office without titles (#8081)

gbirmanf3c5bcecca06
diff --git a/.sqlx/query-9e1ae17b9304f7cfd5e102fafde29a567e00c33e110104de975d847ba207e483.json b/.sqlx/query-9e1ae17b9304f7cfd5e102fafde29a567e00c33e110104de975d847ba207e483.json
new file mode 100644
index 0000000000..47328322ce
--- /dev/null
+++ b/.sqlx/query-9e1ae17b9304f7cfd5e102fafde29a567e00c33e110104de975d847ba207e483.json
@@ -0,0 +1,57 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "\n SELECT owner_id AS \"owner_id!\", event_id AS \"event_id!\", ical_uid AS \"ical_uid!\",\n occurrence_key AS \"occurrence_key!\", title AS \"title?\", time AS \"time!\"\n FROM (\n SELECT DISTINCT ON (event.owner_id,event.ical_uid,occurrence.value->>'occurrenceKey')\n event.owner_id, event.id AS event_id, event.ical_uid,\n occurrence.value->>'occurrenceKey' AS occurrence_key,\n CASE WHEN sharing.sharing='all'\n THEN COALESCE(exception.value->>'title',source.normalized_payload->'event'->>'title')\n END AS title,\n occurrence.value->'time' AS time\n FROM calendar_event_sources source\n JOIN calendar_events event ON event.id=source.event_id\n JOIN calendars calendar ON calendar.id=source.calendar_id AND calendar.is_primary\n AND NOT calendar.is_deleted AND calendar.synced_at IS NOT NULL AND calendar.last_sync_error IS NULL\n AND calendar.snapshot_normalization_version >= 1\n JOIN calendar_accounts account ON account.id=source.account_id\n AND account.owner_id=event.owner_id\n AND account.sync_status IN ('ready','syncing') AND account.last_sync_error IS NULL\n AND account.last_synced_at > now() - interval '15 minutes'\n LEFT JOIN calendar_team_sharing sharing ON sharing.user_id=event.owner_id\n CROSS JOIN LATERAL jsonb_array_elements(source.normalized_payload->'occurrences') occurrence(value)\n LEFT JOIN LATERAL (\n SELECT candidate.value FROM jsonb_array_elements(source.normalized_payload->'overrides') candidate(value)\n WHERE candidate.value->>'recurrenceId'=occurrence.value->>'recurrenceId'\n LIMIT 1\n ) exception ON true\n WHERE event.owner_id IN (\n SELECT teammate.user_id FROM team_user viewer JOIN team_user teammate ON teammate.team_id=viewer.team_id\n WHERE viewer.user_id=$1 AND teammate.user_id<>$1\n )\n AND COALESCE(sharing.sharing,'busy_only')<>'none'\n AND source.provider_access_role = calendar.access_role\n AND source.normalized_payload->'event'->>'eventType'='out_of_office'\n AND source.normalized_payload->'event'->>'visibility' IN ('default','public')\n AND COALESCE(exception.value->>'visibility','default') IN ('default','public')\n AND source.normalized_payload->'event'->>'status'<>'cancelled'\n AND COALESCE(exception.value->>'status','confirmed')<>'cancelled'\n AND NOT COALESCE((occurrence.value->>'isCancelled')::boolean,false)\n AND (\n (occurrence.value->'time'->>'kind'='timed'\n AND (occurrence.value->'time'->>'endsAt')::timestamptz>(occurrence.value->'time'->>'startsAt')::timestamptz\n AND (occurrence.value->'time'->>'startsAt')::timestamptz<$3\n AND (occurrence.value->'time'->>'endsAt')::timestamptz>$2)\n OR (occurrence.value->'time'->>'kind'='allDay'\n AND (occurrence.value->'time'->>'startDate')::date<$5\n AND (occurrence.value->'time'->>'endDate')::date>$4)\n )\n ORDER BY event.owner_id,event.ical_uid,occurrence.value->>'occurrenceKey',source.source_updated_at DESC,source.id DESC\n ) sources\n ORDER BY COALESCE((time->>'startsAt')::timestamptz,(time->>'startDate')::date::timestamp AT TIME ZONE 'UTC'),event_id,occurrence_key\n LIMIT $6\n ",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "owner_id!",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 1,
+ "name": "event_id!",
+ "type_info": "Uuid"
+ },
+ {
+ "ordinal": 2,
+ "name": "ical_uid!",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 3,
+ "name": "occurrence_key!",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 4,
+ "name": "title?",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 5,
+ "name": "time!",
+ "type_info": "Jsonb"
+ }
+ ],
+ "parameters": {
+ "Left": [
+ "Text",
+ "Timestamptz",
+ "Timestamptz",
+ "Date",
+ "Date",
+ "Int8"
+ ]
+ },
+ "nullable": [
+ false,
+ false,
+ false,
+ null,
+ null,
+ null
+ ]
+ },
+ "hash": "9e1ae17b9304f7cfd5e102fafde29a567e00c33e110104de975d847ba207e483"
+}
diff --git a/.sqlx/query-daf4ceb8675891ee6383e3e5c6edb5a6fe628ce324423e8aefd430af3c490b7a.json b/.sqlx/query-daf4ceb8675891ee6383e3e5c6edb5a6fe628ce324423e8aefd430af3c490b7a.json
deleted file mode 100644
index f5dc6c417f..0000000000
--- a/.sqlx/query-daf4ceb8675891ee6383e3e5c6edb5a6fe628ce324423e8aefd430af3c490b7a.json
+++ /dev/null
@@ -1,57 +0,0 @@
-{
- "db_name": "PostgreSQL",
- "query": "\n SELECT owner_id AS \"owner_id!\", event_id AS \"event_id!\", ical_uid AS \"ical_uid!\",\n occurrence_key AS \"occurrence_key!\", title AS \"title!\", time AS \"time!\"\n FROM (\n SELECT DISTINCT ON (event.owner_id,event.ical_uid,occurrence.value->>'occurrenceKey')\n event.owner_id, event.id AS event_id, event.ical_uid,\n occurrence.value->>'occurrenceKey' AS occurrence_key,\n COALESCE(exception.value->>'title',source.normalized_payload->'event'->>'title') AS title,\n occurrence.value->'time' AS time\n FROM calendar_event_sources source\n JOIN calendar_events event ON event.id=source.event_id\n JOIN calendars calendar ON calendar.id=source.calendar_id AND calendar.is_primary\n AND NOT calendar.is_deleted AND calendar.synced_at IS NOT NULL AND calendar.last_sync_error IS NULL\n AND calendar.snapshot_normalization_version >= 1\n JOIN calendar_accounts account ON account.id=source.account_id\n AND account.owner_id=event.owner_id\n AND account.sync_status IN ('ready','syncing') AND account.last_sync_error IS NULL\n AND account.last_synced_at > now() - interval '15 minutes'\n JOIN calendar_team_sharing sharing ON sharing.user_id=event.owner_id AND sharing.sharing='all'\n CROSS JOIN LATERAL jsonb_array_elements(source.normalized_payload->'occurrences') occurrence(value)\n LEFT JOIN LATERAL (\n SELECT candidate.value FROM jsonb_array_elements(source.normalized_payload->'overrides') candidate(value)\n WHERE candidate.value->>'recurrenceId'=occurrence.value->>'recurrenceId'\n LIMIT 1\n ) exception ON true\n WHERE event.owner_id IN (\n SELECT teammate.user_id FROM team_user viewer JOIN team_user teammate ON teammate.team_id=viewer.team_id\n WHERE viewer.user_id=$1 AND teammate.user_id<>$1\n )\n AND source.provider_access_role = calendar.access_role\n AND source.normalized_payload->'event'->>'eventType'='out_of_office'\n AND source.normalized_payload->'event'->>'visibility' IN ('default','public')\n AND COALESCE(exception.value->>'visibility','default') IN ('default','public')\n AND source.normalized_payload->'event'->>'status'<>'cancelled'\n AND COALESCE(exception.value->>'status','confirmed')<>'cancelled'\n AND NOT COALESCE((occurrence.value->>'isCancelled')::boolean,false)\n AND (\n (occurrence.value->'time'->>'kind'='timed'\n AND (occurrence.value->'time'->>'endsAt')::timestamptz>(occurrence.value->'time'->>'startsAt')::timestamptz\n AND (occurrence.value->'time'->>'startsAt')::timestamptz<$3\n AND (occurrence.value->'time'->>'endsAt')::timestamptz>$2)\n OR (occurrence.value->'time'->>'kind'='allDay'\n AND (occurrence.value->'time'->>'startDate')::date<$5\n AND (occurrence.value->'time'->>'endDate')::date>$4)\n )\n ORDER BY event.owner_id,event.ical_uid,occurrence.value->>'occurrenceKey',source.source_updated_at DESC,source.id DESC\n ) sources\n ORDER BY COALESCE((time->>'startsAt')::timestamptz,(time->>'startDate')::date::timestamp AT TIME ZONE 'UTC'),event_id,occurrence_key\n LIMIT $6\n ",
- "describe": {
- "columns": [
- {
- "ordinal": 0,
- "name": "owner_id!",
- "type_info": "Text"
- },
- {
- "ordinal": 1,
- "name": "event_id!",
- "type_info": "Uuid"
- },
- {
- "ordinal": 2,
- "name": "ical_uid!",
- "type_info": "Text"
- },
- {
- "ordinal": 3,
- "name": "occurrence_key!",
- "type_info": "Text"
- },
- {
- "ordinal": 4,
- "name": "title!",
- "type_info": "Text"
- },
- {
- "ordinal": 5,
- "name": "time!",
- "type_info": "Jsonb"
- }
- ],
- "parameters": {
- "Left": [
- "Text",
- "Timestamptz",
- "Timestamptz",
- "Date",
- "Date",
- "Int8"
- ]
- },
- "nullable": [
- false,
- false,
- false,
- null,
- null,
- null
- ]
- },
- "hash": "daf4ceb8675891ee6383e3e5c6edb5a6fe628ce324423e8aefd430af3c490b7a"
-}
diff --git a/apps/web/src/features/calendar-team/components/team-sharing-settings.tsx b/apps/web/src/features/calendar-team/components/team-sharing-settings.tsx
index c948c78a34..f2e3ab8a91 100644
--- a/apps/web/src/features/calendar-team/components/team-sharing-settings.tsx
+++ b/apps/web/src/features/calendar-team/components/team-sharing-settings.tsx
@@ -17,7 +17,7 @@ const choices: {
value: 'busy_only',
title: 'Busy blocks',
description:
- 'Share time blocks from all synced calendars without event details. Calendars you follow are distinguished from your own availability. This is the default.',
+ 'Share time blocks from all synced calendars without event details. Out-of-office time on your primary calendar shows as "Out of office". Calendars you follow are distinguished from your own availability. This is the default.',
},
{
value: 'all',
diff --git a/apps/web/src/features/calendar/hooks/use-team-ooo.ts b/apps/web/src/features/calendar/hooks/use-team-ooo.ts
index 9b1d6f7d7b..e94bd4c0e7 100644
--- a/apps/web/src/features/calendar/hooks/use-team-ooo.ts
+++ b/apps/web/src/features/calendar/hooks/use-team-ooo.ts
@@ -59,7 +59,10 @@ function mapTeamOooItem(item: TeamOutOfOfficeItem): CalendarEvent {
id: JSON.stringify([item.eventId, item.occurrenceKey]),
eventId: item.eventId,
occurrenceKey: item.occurrenceKey,
- teamProjection: { ownerId: item.ownerId, kind: 'details' },
+ teamProjection: {
+ ownerId: item.ownerId,
+ kind: item.title === undefined ? 'busy' : 'details',
+ },
isCancelled: false,
isReadOnly: true,
attendees: [],
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/teamOutOfOfficeItem.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/teamOutOfOfficeItem.ts
index 5ad1378ecf..8f2f7d4c90 100644
--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/teamOutOfOfficeItem.ts
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/teamOutOfOfficeItem.ts
@@ -19,6 +19,6 @@ export interface TeamOutOfOfficeItem {
ownerId: string;
/** Occurrence time span. */
time: EventTime;
- /** Event title, absent when the event's visibility withholds details. */
+ /** Event title, absent unless the teammate shares event details. */
title?: TeamOutOfOfficeItemTitle;
}
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/teamOutOfOfficeItemTitle.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/teamOutOfOfficeItemTitle.ts
index 6858dd6558..4369f30d45 100644
--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/teamOutOfOfficeItemTitle.ts
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/teamOutOfOfficeItemTitle.ts
@@ -6,6 +6,6 @@
*/
/**
- * Event title, absent when the event's visibility withholds details.
+ * Event title, absent unless the teammate shares event details.
*/
export type TeamOutOfOfficeItemTitle = string | null;
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/zod.ts b/apps/web/src/lib/service-clients/service-storage/generated/zod.ts
index 5b92403565..3d38c3a1e9 100644
--- a/apps/web/src/lib/service-clients/service-storage/generated/zod.ts
+++ b/apps/web/src/lib/service-clients/service-storage/generated/zod.ts
@@ -1707,7 +1707,7 @@ export const listTeamOutOfOfficeResponse = zod
.string()
.nullish()
.describe(
- "Event title, absent when the event's visibility withholds details."
+ 'Event title, absent unless the teammate shares event details.'
),
})
.describe("One teammate's out-of-office occurrence.")
diff --git a/apps/web/src/lib/service-clients/service-storage/openapi.json b/apps/web/src/lib/service-clients/service-storage/openapi.json
index 240366a38d..63b50faa39 100644
--- a/apps/web/src/lib/service-clients/service-storage/openapi.json
+++ b/apps/web/src/lib/service-clients/service-storage/openapi.json
@@ -39015,7 +39015,7 @@
},
"title": {
"type": ["string", "null"],
- "description": "Event title, absent when the event's visibility withholds details."
+ "description": "Event title, absent unless the teammate shares event details."
}
}
},
diff --git a/crates/calendar_events/src/domain/service.rs b/crates/calendar_events/src/domain/service.rs
index 5e058da900..5bc3c3f29a 100644
--- a/crates/calendar_events/src/domain/service.rs
+++ b/crates/calendar_events/src/domain/service.rs
@@ -119,10 +119,11 @@ where
/// Query teammates' out-of-office occurrences in a bounded viewport.
///
- /// This compatibility view requires explicit detail sharing. Private and
- /// confidential events are omitted because even their out-of-office type
- /// would disclose metadata beyond a generic busy block. Provider copies
- /// synced through multiple connected inboxes collapse to one occurrence.
+ /// Busy-only sharers' occurrences carry no title; only explicit detail
+ /// sharing adds it, and `none` omits the sharer. Private and confidential
+ /// events are omitted because even their out-of-office type would disclose
+ /// metadata beyond a generic busy block. Provider copies synced through
+ /// multiple connected inboxes collapse to one occurrence.
#[tracing::instrument(skip(self, requester_id, range), err)]
pub async fn list_team_out_of_office(
&self,
diff --git a/crates/calendar_events/src/inbound/axum_router.rs b/crates/calendar_events/src/inbound/axum_router.rs
index 41c6f497e0..9e6f696f5b 100644
--- a/crates/calendar_events/src/inbound/axum_router.rs
+++ b/crates/calendar_events/src/inbound/axum_router.rs
@@ -274,7 +274,7 @@ pub struct TeamOutOfOfficeItem {
event_id: Uuid,
/// Stable occurrence key within the event.
occurrence_key: String,
- /// Event title, absent when the event's visibility withholds details.
+ /// Event title, absent unless the teammate shares event details.
#[serde(skip_serializing_if = "Option::is_none")]
title: Option<String>,
/// Occurrence time span.
diff --git a/crates/calendar_events/src/outbound/pg/test.rs b/crates/calendar_events/src/outbound/pg/test.rs
index 7cf1002544..e74f5fdb59 100644
--- a/crates/calendar_events/src/outbound/pg/test.rs
+++ b/crates/calendar_events/src/outbound/pg/test.rs
@@ -9,6 +9,8 @@ use crate::domain::models::{
};
use crate::domain::ports::GoogleCalendarSyncRepository;
use crate::domain::service::{CalendarService, GoogleCalendarBackfillFailureService};
+use crate::domain::team::{CalendarTeamRepository, TeamCalendarSharing};
+use crate::outbound::pg_team::PgCalendarTeamRepository;
use chrono::{Duration, SubsecRound, TimeZone};
use macro_db_migrator::MACRO_DB_MIGRATIONS;
@@ -4714,11 +4716,16 @@ fn july_2026_range() -> OccurrenceRange {
/// An explicit detail grant and successful provider snapshot for OOO fixtures.
async fn enable_team_details(repo: &PgCalendarRepository, users: &[&str]) {
sqlx::query!(
- "UPDATE calendar_accounts SET sync_status='ready',last_synced_at=now(),last_sync_error=NULL WHERE owner_id=ANY($1::text[]) AND sync_status<>'disabled'",
+ "INSERT INTO calendar_team_sharing(user_id,sharing) SELECT unnest($1::text[]),'all' ON CONFLICT(user_id) DO UPDATE SET sharing='all'",
users as &[&str]
).execute(&repo.pool).await.unwrap();
+ mark_team_sources_verified(repo, users).await;
+}
+
+/// A successful provider snapshot for OOO fixtures, leaving sharing untouched.
+async fn mark_team_sources_verified(repo: &PgCalendarRepository, users: &[&str]) {
sqlx::query!(
- "INSERT INTO calendar_team_sharing(user_id,sharing) SELECT unnest($1::text[]),'all' ON CONFLICT(user_id) DO UPDATE SET sharing='all'",
+ "UPDATE calendar_accounts SET sync_status='ready',last_synced_at=now(),last_sync_error=NULL WHERE owner_id=ANY($1::text[]) AND sync_status<>'disabled'",
users as &[&str]
).execute(&repo.pool).await.unwrap();
sqlx::query!(
@@ -4922,6 +4929,51 @@ async fn team_out_of_office_hides_private_status_even_with_detail_sharing(pool:
);
}
+#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")]
+async fn team_out_of_office_shows_busy_only_status_without_its_title(pool: PgPool) {
+ let viewer = "macro|[email protected]";
+ let unset = "macro|[email protected]";
+ let busy = "macro|[email protected]";
+ let hidden = "macro|[email protected]";
+ insert_team(&pool, viewer, &[viewer, unset, busy, hidden]).await;
+ let repo = PgCalendarRepository::new(pool.clone());
+ for (owner, uid) in [
+ (unset, "[email protected]"),
+ (busy, "[email protected]"),
+ (hidden, "[email protected]"),
+ ] {
+ let link = insert_link(&pool, owner).await;
+ let provider = provider_ids(&repo, link).await;
+ repo.upsert_event_fixture(ooo_upsert(owner, link, provider, uid, "Beach trip"))
+ .await
+ .unwrap();
+ }
+ mark_team_sources_verified(&repo, &[unset, busy, hidden]).await;
+ let team = PgCalendarTeamRepository::new(pool);
+ team.set_sharing(busy, TeamCalendarSharing::BusyOnly)
+ .await
+ .unwrap();
+ team.set_sharing(hidden, TeamCalendarSharing::None)
+ .await
+ .unwrap();
+
+ let rows = CalendarService::new(repo)
+ .with_team_sharing_enabled(true)
+ .list_team_out_of_office(viewer, july_2026_range(), 100)
+ .await
+ .unwrap();
+
+ // A member who never chose a setting shares busy blocks by default.
+ let mut owners: Vec<_> = rows.iter().map(|row| row.owner_id.as_str()).collect();
+ owners.sort_unstable();
+ owners.dedup();
+ assert_eq!(owners, [busy, unset]);
+ assert!(
+ rows.iter().all(|row| row.title.is_none()),
+ "busy-only sharing discloses the status, never the title"
+ );
+}
+
fn shift_upsert_days(upsert: &mut CalendarEventUpsert, days: i64) {
let delta = Duration::days(days);
if let EventTime::Timed {
diff --git a/crates/calendar_events/src/outbound/pg_team/ooo.rs b/crates/calendar_events/src/outbound/pg_team/ooo.rs
index 9a10f5b13f..48d4893849 100644
--- a/crates/calendar_events/src/outbound/pg_team/ooo.rs
+++ b/crates/calendar_events/src/outbound/pg_team/ooo.rs
@@ -1,4 +1,5 @@
-//! Compatibility projection for explicit detail-sharers' public OOO sources.
+//! Compatibility projection for teammates' public OOO sources. Busy-only
+//! sharers disclose the out-of-office status without its title.
use crate::domain::models::{EventVisibility, OccurrenceRange, TeamOutOfOffice};
use rootcause::Report;
@@ -12,12 +13,14 @@ pub(in crate::outbound) async fn list_team_out_of_office(
) -> Result<Vec<TeamOutOfOffice>, Report> {
let rows = sqlx::query!(r#"
SELECT owner_id AS "owner_id!", event_id AS "event_id!", ical_uid AS "ical_uid!",
- occurrence_key AS "occurrence_key!", title AS "title!", time AS "time!"
+ occurrence_key AS "occurrence_key!", title AS "title?", time AS "time!"
FROM (
SELECT DISTINCT ON (event.owner_id,event.ical_uid,occurrence.value->>'occurrenceKey')
event.owner_id, event.id AS event_id, event.ical_uid,
occurrence.value->>'occurrenceKey' AS occurrence_key,
- COALESCE(exception.value->>'title',source.normalized_payload->'event'->>'title') AS title,
+ CASE WHEN sharing.sharing='all'
+ THEN COALESCE(exception.value->>'title',source.normalized_payload->'event'->>'title')
+ END AS title,
occurrence.value->'time' AS time
FROM calendar_event_sources source
JOIN calendar_events event ON event.id=source.event_id
@@ -28,7 +31,7 @@ pub(in crate::outbound) async fn list_team_out_of_office(
AND account.owner_id=event.owner_id
AND account.sync_status IN ('ready','syncing') AND account.last_sync_error IS NULL
AND account.last_synced_at > now() - interval '15 minutes'
- JOIN calendar_team_sharing sharing ON sharing.user_id=event.owner_id AND sharing.sharing='all'
+ LEFT JOIN calendar_team_sharing sharing ON sharing.user_id=event.owner_id
CROSS JOIN LATERAL jsonb_array_elements(source.normalized_payload->'occurrences') occurrence(value)
LEFT JOIN LATERAL (
SELECT candidate.value FROM jsonb_array_elements(source.normalized_payload->'overrides') candidate(value)
@@ -39,6 +42,7 @@ pub(in crate::outbound) async fn list_team_out_of_office(
SELECT teammate.user_id FROM team_user viewer JOIN team_user teammate ON teammate.team_id=viewer.team_id
WHERE viewer.user_id=$1 AND teammate.user_id<>$1
)
+ AND COALESCE(sharing.sharing,'busy_only')<>'none'
AND source.provider_access_role = calendar.access_role
AND source.normalized_payload->'event'->>'eventType'='out_of_office'
AND source.normalized_payload->'event'->>'visibility' IN ('default','public')
@@ -68,7 +72,7 @@ pub(in crate::outbound) async fn list_team_out_of_office(
event_id: row.event_id,
ical_uid: row.ical_uid,
occurrence_key: row.occurrence_key,
- title: Some(row.title),
+ title: row.title,
visibility: EventVisibility::Default,
time: serde_json::from_value(row.time)
.map_err(|error| rootcause::report!(error))?,
diff --git a/docs/calendar-team-sharing.md b/docs/calendar-team-sharing.md
index ca8aa667fe..953cc28301 100644
--- a/docs/calendar-team-sharing.md
+++ b/docs/calendar-team-sharing.md
@@ -85,10 +85,12 @@ actions. A team view does not expand calendar search or generic event-detail
authorization. Attendee `self` flags in detailed projections describe the viewer,
not the source calendar account.
-The existing team out-of-office overlay also follows the server gate and requires
-explicit `all` sharing. Gate-off deployment suppresses that overlay; busy-only
-sharing does not disclose an out-of-office label. This is an intentional privacy
-change to the older overlay, not a claim that the person has no time off.
+The existing team out-of-office overlay also follows the server gate and reads
+only primary-calendar out-of-office events with default or public visibility.
+Busy-only sharing, including the default for a member who never chose, shows
+each one as a plain out-of-office block without its title; `all` adds the title;
+`none` hides it. Gate-off deployment suppresses that overlay, and its absence is
+not a claim that the person has no time off.
Team projections and availability use server-confirmed source copies. An offline
edit can appear immediately in the editor's own calendar through the mutation
diff --git a/packages/sdk/generated/storage/types.gen.ts b/packages/sdk/generated/storage/types.gen.ts
index f739c4edf7..81e520d901 100644
--- a/packages/sdk/generated/storage/types.gen.ts
+++ b/packages/sdk/generated/storage/types.gen.ts
@@ -13442,7 +13442,7 @@ export type TeamOutOfOfficeItem = {
*/
time: EventTime;
/**
- * Event title, absent when the event's visibility withholds details.
+ * Event title, absent unless the teammate shares event details.
*/
title?: string | null;
};
diff --git a/packages/sdk/specs/storage.json b/packages/sdk/specs/storage.json
index 240366a38d..63b50faa39 100644
--- a/packages/sdk/specs/storage.json
+++ b/packages/sdk/specs/storage.json
@@ -39015,7 +39015,7 @@
},
"title": {
"type": ["string", "null"],
- "description": "Event title, absent when the event's visibility withholds details."
+ "description": "Event title, absent unless the teammate shares event details."
}
}
},