How avinaashv23/flora works
FloraVeda is a plant-care web app whose main user journey moves from onboarding or sign-in into plant browsing, scanning a leaf, and viewing a disease report; signed-in users can also manage care tasks and favorites. The React app coordinates screens and state, with feature hooks and libraries connecting to Supabase, weather services, and AI diagnosis. The README documents major capabilities and integrations; sampled source confirms several service calls, but unsampled screen wiring and some backend details are represented only where documented.
Main entry points: App.tsx App coordinator · supabase.ts Supabase client · CategoryList.tsx Plant catalog · diagnosis.ts Diagnosis service
Components 33
App experience
- App coordinator
src/App.tsx - Onboarding
src/components/OnboardingScreens.tsx - Navigation
src/components/Navigation.tsx - Home dashboard
src/components/HomeDashboard.tsx
Plant knowledge
- Plant catalog
src/components/CategoryList.tsx - Plant details
src/components/PlantDetail.tsx - Plant fallback data
src/data/plantData.ts - Leaf scanner
src/components/ScanCamera.tsx - Diagnosis report
src/components/DiagnosisDetail.tsx - Plant and favorites service
src/lib/plants.ts - Static plant data
src/data/plantData.ts
Care and alerts
- Care schedule
src/components/CareScheduleModal.tsx - Care task service
src/lib/careTasks.ts - Weather state
src/hooks/useWeather.ts - Weather service
src/lib/weather.ts - Notification service
src/lib/notifications.ts - Notification view
src/components/NotificationModal.tsx
Identity and preferences
- Authentication screens
src/components/AuthScreens.tsx - Authentication state
src/hooks/useAuth.ts - Auth service
src/lib/auth.ts - Profile screen
src/components/ProfileScreen.tsx - Profile service
src/lib/profile.ts - Settings
src/components/SettingsScreen.tsx - Language hook
src/i18n/useLanguage.ts - Translations
src/i18n/translations.ts
Data and diagnosis
- Diagnosis service
src/lib/diagnosis.ts - Diagnosis Edge Function
supabase/functions/diagnose-plant/index.ts - Image storage service
src/lib/storage.ts - Supabase client
src/lib/supabase.ts - Supabase database
supabase/migrations
Other components
- Gardener
- Gemini Vision
- Weather and geocoding
Connections 37
- Gardener → App coordinator: uses
README.md - App coordinator → Onboarding: routes to
src/App.tsx - App coordinator → Navigation: renders
src/App.tsx - App coordinator → Home dashboard: routes to
README.md - App coordinator → Plant catalog: renders
src/App.tsx - Plant catalog → Plant details: opens
README.md - Plant catalog → Plant and favorites service: fetches plants
src/components/CategoryList.tsx - Plant catalog → Plant fallback data: falls back to
src/components/CategoryList.tsx - Home dashboard → Leaf scanner: starts scan
README.md - Leaf scanner → Diagnosis service: requests diagnosis
src/components/ScanCamera.tsx - Diagnosis service → Diagnosis Edge Function: invokes
README.md - Diagnosis Edge Function → Gemini Vision: analyzes image
README.md - Leaf scanner → Diagnosis report: shows result
README.md - Home dashboard → Weather state: displays weather
src/components/HomeDashboard.tsx - Settings → Weather state: controls weather
src/components/SettingsScreen.tsx - Weather state → Weather service: fetches and caches
src/hooks/useWeather.ts - Weather service → Weather and geocoding: requests conditions
README.md - Weather state → Notification service: adds alerts
src/hooks/useWeather.ts - App coordinator → Care schedule: routes to
README.md - Care schedule → Care task service: manages tasks
README.md - Care task service → Supabase client: reads and writes
src/lib/careTasks.ts - App coordinator → Notification service: loads notifications
src/App.tsx - Notification view → Notification service: manages notifications
README.md - Notification service → Supabase client: reads and writes
src/lib/notifications.ts - Authentication screens → Authentication state: submits credentials
README.md - Authentication state → Auth service: calls auth actions
src/hooks/useAuth.ts - Authentication state → Profile service: loads profile
src/hooks/useAuth.ts - Auth service → Supabase client: uses auth
src/lib/auth.ts - Profile screen → Profile service: reads and updates
src/components/ProfileScreen.tsx - Profile service → Image storage service: uploads avatar
src/lib/profile.ts - Settings → Language hook: changes language
README.md - Language hook → Translations: selects strings
src/i18n/useLanguage.ts - Plant and favorites service → Supabase client: reads and writes
src/lib/plants.ts - Diagnosis service → Plant fallback data: uses fallback results
src/lib/diagnosis.ts - Diagnosis service → Supabase client: uses client
src/lib/diagnosis.ts - Image storage service → Supabase client: uploads images
src/lib/storage.ts - Supabase client → Supabase database: accesses tables
README.md