Document Path C: user reports stay in Supabase#7
Document Path C: user reports stay in Supabase#7lukesmmr wants to merge 1 commit intochore/beads-and-agents-setupfrom
Conversation
Resolves the schema mismatch identified in disasters-mobile#1. Official government data lives in the API; user reports (with photos, voting, moderation, verification) live exclusively in Supabase. The mobile app merges both sources client-side. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing touches🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
js-0s
left a comment
There was a problem hiding this comment.
user data could be in atproto as it already supports all the social features, mobile/ui could just request events filtered by stored disaster-urn/id. this should concern inputs, updates, me-too's or even initial mentions '@disaster-alert: heavy rain near $city'
a user 'source' is still a valid source imo, even if users should not be able to populate it directly because of validation/input structure/spam. supabase (or atproto) user-data should sync back to form a event in the da-database so that future-tooling (notify when something is near me) uses a single db for evaluation, not requesting multiple data-sources for each user which would scale badly. maybe its a 'social' source then.
Summary
Context
The mobile app plan originally had user reports syncing from Supabase to the API via an Edge Function. Analysis revealed this creates:
Path C keeps the API focused on official government feeds. The mobile app reads from both the API and Supabase, merging client-side into a UnifiedDisasterEvent.
Test plan
Generated with Claude Code