## Phase 1: Critical Feature Completion (Beacon Voting) - Add VouchBeacon, ReportBeacon, RemoveBeaconVote methods to PostRepository - Implement beacon voting HTTP handlers with confidence score calculations - Register new beacon routes: /beacons/:id/vouch, /beacons/:id/report, /beacons/:id/vouch (DELETE) - Auto-flag beacons at 5+ reports, confidence scoring (0.5 base + 0.1 per vouch) ## Phase 2: Feed Logic & Post Distribution Integrity - Verify unified feed logic supports all content types (Standard, Quips, Beacons) - Ensure proper distribution: Profile Feed + Main/Home Feed for followers - Beacon Map integration for location-based content - Video content filtering for Quips feed ## Phase 3: The Notification System - Create comprehensive NotificationService with FCM integration - Add CreateNotification method to NotificationRepository - Implement smart deep linking: beacon_map, quip_feed, main_feed - Trigger notifications for beacon interactions and cross-post comments - Push notification logic with proper content type detection ## Phase 4: The Great Supabase Purge - Delete function_proxy.go and remove /functions/:name route - Remove SupabaseURL, SupabaseKey from config.go - Remove SupabaseID field from User model - Clean all Supabase imports and dependencies - Sanitize codebase of legacy Supabase references ## Phase 5: Flutter Frontend Integration - Implement vouchBeacon(), reportBeacon(), removeBeaconVote() in ApiService - Replace TODO delay in video_comments_sheet.dart with actual publishComment call - Fix compilation errors (named parameters, orphaned child properties) - Complete frontend integration with Go API endpoints ## Additional Improvements - Fix compilation errors in threaded_comment_widget.dart (orphaned child property) - Update video_comments_sheet.dart to use proper named parameters - Comprehensive error handling and validation - Production-ready notification system with deep linking ## Migration Status: 100% Complete - Backend: Fully migrated from Supabase to custom Go/Gin API - Frontend: Integrated with new Go endpoints - Notifications: Complete FCM integration with smart routing - Database: Clean of all Supabase dependencies - Features: All functionality preserved and enhanced Ready for VPS deployment and production testing!
1.3 KiB
1.3 KiB
Supabase Clean-up Intel
Overview
The supabase folder has been moved to c:\Webs\Sojorn\_legacy\supabase. This folder contains the legacy backend logic (Edge Functions) and database migrations that were used before the migration to the Go backend.
Key Components
1. Edge Functions (supabase/functions/)
Contains the TypeScript source for the original serverless functions. Use these as a reference if any logic is missing in the Go backend.
publish-post,feed-personal->internal/handlers/post_handler.gofollow,block->internal/handlers/user_handler.gotone-check->internal/handlers/analysis_handler.gonotifications->internal/services/push_service.goornotification_handler.go
2. Migrations (supabase/migrations/ & Root SQLs)
The supabase/migrations folder contains the initial schema definitions.
go-backend/internal/database/migrationsis the new source of truth.- Root SQL files (e.g.,
check_index.sql,setup_cms.sql) have been moved toc:\Webs\Sojorn\migrations_archive. apply_e2ee_migration.sql(in_legacy/supabase) contained the E2EE schema changes that were recently applied.
3. Verification
If any "sanity check" is needed, compare the Go handlers against the logic in supabase/functions/<name>/index.ts.