Skip to content

feat: migrate contact export (CSV, VCard, Google) from Express backend to Supabase Edge Function (#2812)#2849

Open
malek10xdev wants to merge 1 commit into
mainfrom
migrate-expoer-contacts-to-edge
Open

feat: migrate contact export (CSV, VCard, Google) from Express backend to Supabase Edge Function (#2812)#2849
malek10xdev wants to merge 1 commit into
mainfrom
migrate-expoer-contacts-to-edge

Conversation

@malek10xdev

Copy link
Copy Markdown
Collaborator

Migrates contact export functionality (CSV, VCard, Google Contacts) from the Express backend to a new Supabase Edge Function.

Changes

  • New edge function supabase/functions/export-contacts/ — Hono-based app with format strategies (factory pattern), Redis-backed Google API rate limiter, Repository-pattern DB client, i18n modal responses
  • Deleted backend/src/services/export/ — entire directory removed
  • Stripped backend/src/controllers/contacts.controller.ts and routes — export POST endpoint removed
  • Updated frontend ExportContacts.vue — now calls edge function via $saasEdgeFunctions, passes miningSourceId, handles ModalResponse (266/400/401/402) via GenericComplianceDialog
  • Added supabase/functions/_shared/rate-limiter.ts — Redis-backed TokenBucketRateLimiter for Google API quota management

Resolves #2812

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.

sub-issue: Create export-contacts edge function

1 participant