Spaces:
Sleeping
Sleeping
Commit History
14 days ago
-
fix(security): close auth takeover, harden RLS, repair adoption and NGO flows
Auth - Never sign in or refresh on a shared Supabase client; use a throwaway client per call so the server cannot hold another user's session - reset-password now requires the recovery token and changes only that user's password; logout revokes only the caller's session - Add POST /api/auth/refresh; frontend refreshes once on 401 Database - Migration 15: block users changing their own role, ban state or NGO approval; hide private profile columns from anon/authenticated; make counter RPCs service-role only - getProfile returns public columns only Adoption and NGO onboarding - Cross-user writes (plant status, adopter garden row) go through the service role and their errors are checked; approval cannot double-adopt - NGO applicants can reach onboarding and their status while still adopters; approved NGOs editing details stay approved Smaller fixes - Like, bookmark and comment counters cannot drift - Credentials bypass the HTML sanitiser - Care tips use a current Gemini mode…55ffa7e
-
Merge branch 'main' into fix/204-map-bbox-pagination
Shardul Chogale2901169 -
fix(#204): bbox-scoped map queries with result cap
ankita01209c3e1e0e -
fix(db): renumber the geo migration to 14, and stop posts writing location
12 is reserved for the storage buckets in #189's set and 13 for the clustering RPC in #205, both of which are in flight; taking 12 here would have collided with #189 when it lands. The README says which numbers are spoken for and why. post.controller still wrote a raw POINT(lng lat) string into location, which is the drift this migration removes for plants. The trigger overwrites it on every insert anyway, so the line was misleading rather than harmful.dd39145
-
feat(edge): implement edge middleware geolocation routing, dynamic leaflet map fly-to, and CDN edge caching headers for plants/posts map endpoints
Shardul Chogale38dccff
-
fix: resolve map 400 error, add NGO darpan_id/questions, and polish auth UI
Shardul Chogale825c78a
-
Build: Final production handover with seeded data, admin fixes, and clean documentation
shard-c671a9cd6
-
## fix(map,plants): improve map rendering and adoption UI feedback
RishabhHatlunkar- Fix "AI Identify" navigation link in Navbar (pointed to wrong route) - Add PostGIS EWKB coordinate parsing to the map for proper marker rendering - Implement stable coordinate jitter to prevent markers from stacking perfectly - Enhance Plant Detail page with status-specific feedback (Pending/Adopted/Role-check) - Ensure "Apply to Adopt" button is only visible when applicable7c69d9c