Skip to content

docs(plan): P4.1 — meetings-first orgs & multi-client calendar brief#8

Open
itkujo wants to merge 1 commit into
mainfrom
docs/p4.1-meetings-orgs-brief
Open

docs(plan): P4.1 — meetings-first orgs & multi-client calendar brief#8
itkujo wants to merge 1 commit into
mainfrom
docs/p4.1-meetings-orgs-brief

Conversation

@itkujo

@itkujo itkujo commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Delegation brief for the P4 calendar redesign — the calendar becomes the client-discovery surface.

Context (already done by the orchestrator)

  • Verified P4 is infra-healthy: scan runs, jgrace@/dvelez@ are calendar_connected, kill-switch OFF (fail-safe), per-user opt-out works. The 0-meetings finding was seed-roster mismatch, not a bug.
  • Wiped all seed/test data → clean slate (kept the 9 users + 2 API keys + settings).

What the brief specifies

  • Migration 0004: clients.type (client/prospect/lead/partner/internal), client_domains (domain→org, the match key), meeting_clients junction (many-to-many; meetings.client_id kept as denormalized primary), meetings.is_internal + external_attendees, seeded Grace & Associates internal org + settings.internal_email_domains.
  • Scan rewrite: ingest every meeting; domain-first matching (drop internal + free-email domains); 2+ external domains ⇒ multi-client; GA-only ⇒ internal + linked to the GA org.
  • Bots: auto-join for client + internal meetings (kill-switch + opt-out still gate); leads/prospects manual.
  • Web: calendar shows all meetings (assigned / multi-client / internal / unassigned); create-client/lead from a meeting with retroactive domain linking; the exact clients.type filter blast-radius.

Coordination

Migration 0004 hits the shared dev+prod Supabase — the orchestrator applies it (additive + idempotent) at build-PR review time. Kill-switch stays OFF throughout.

Brief: docs/plan/p4.1-meetings-first-orgs.md

🤖 Generated with Claude Code

Delegation brief for the P4 calendar redesign: ingest every meeting,
domain-driven client detection, multi-client via a meeting_clients junction,
clients.type (client/prospect/lead/partner/internal), a first-class
Grace & Associates internal org, create-client/lead-from-meeting with
retroactive domain linking, and bots for client+internal meetings.

Context: P4 verified infra-healthy and all seed/test data wiped (clean slate;
users + API keys kept). Migration 0004 (clients.type, client_domains,
meeting_clients, meetings.is_internal/external_attendees, GA internal org)
to be applied to the shared Supabase by the orchestrator at PR review.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant