Skip to content

Gmail-based Luma event importer#78

Draft
snackman wants to merge 1 commit into
masterfrom
luma-gmail-importer
Draft

Gmail-based Luma event importer#78
snackman wants to merge 1 commit into
masterfrom
luma-gmail-importer

Conversation

@snackman

Copy link
Copy Markdown
Owner

Summary

  • Gmail OAuth integration (read-only scope, Luma emails only)
  • Parse email bodies + ICS attachments for event data
  • Extract event name, date, location with confidence scoring
  • Deduplicate across confirmation/approval/reminder emails
  • Review screen before import, privacy controls, disconnect option
  • Supabase tables: gmail_connections, imported_events, imported_event_sources

New files

  • src/lib/gmail/ - auth, fetch, normalize, ICS parser, extractor, dedup, constants, crypto, types
  • src/app/api/gmail/ - connect, callback, sync, import, disconnect routes
  • src/app/import/page.tsx - multi-step import flow UI
  • src/components/LumaImportReview.tsx - review table component
  • src/components/LumaEventHistory.tsx - imported events list
  • supabase/migrations/20260322120000_gmail_luma_importer.sql - DB schema

Test plan

  • OAuth flow: connect Gmail, verify only gmail.readonly scope requested
  • Sync: fetches only Luma-related emails
  • Parse: extracts event data from body and ICS attachments
  • Dedup: multiple emails for same event merge correctly
  • Review: shows candidates with confidence scores, allows selection
  • Import: saves selected events to DB
  • Disconnect: revokes token, offers data deletion
  • Build passes with zero TS errors

Generated with Claude Code

Gmail OAuth integration to scan Luma emails, extract event data
(names, dates, locations) from confirmations, approvals, reminders,
and ICS attachments. Includes review screen, confidence scoring,
deduplication, and privacy controls.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Mar 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sheeets Ready Ready Preview, Comment Mar 23, 2026 3:24am

Request Review

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