o2o-infinith-demo/supabase/functions
Haewon Kam bd7bc45192 fix: Instagram data collection pipeline — handle normalization + DB persistence
- Add normalizeInstagramHandle() utility (Edge + browser) to strip URLs, @ prefixes
- generate-report: normalize handles before saving, persist socialHandles in report JSONB
- enrich-channels: normalize Instagram handle before Apify call (defense in depth)
- useReport: recover socialHandles + channelEnrichment from DB on direct URL access
- ReportPage: skip redundant enrichment when data already exists in DB

Fixes: Instagram enrichment failing due to URL-format handles passed to Apify

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 13:34:54 +09:00
..
_shared fix: Instagram data collection pipeline — handle normalization + DB persistence 2026-04-02 13:34:54 +09:00
analyze-market feat: real API integration + YouTube Data API v3 + progressive loading 2026-04-02 10:57:14 +09:00
enrich-channels fix: Instagram data collection pipeline — handle normalization + DB persistence 2026-04-02 13:34:54 +09:00
generate-report fix: Instagram data collection pipeline — handle normalization + DB persistence 2026-04-02 13:34:54 +09:00
scrape-website feat: real API integration + YouTube Data API v3 + progressive loading 2026-04-02 10:57:14 +09:00