How abdulrahman-25dev/note-app works
This is an Expo/React Native notes app. The principal flow loads notes on the home screen, filters and presents them, and lets users add, edit, favorite, trash, or restore notes through the notes store, which persists locally and synchronizes with Supabase when available. Separate flows cover authentication and profile management, plus appearance and language settings. The graph preserves these documented-by-source-index branches; unsampled screens are represented at their exact paths, and edges reflect only shown calls or indexed references.
Main entry points: useNotesStore.ts Notes state · settings.tsx Settings · supabase.ts Supabase · index.tsx Notes home
Components 23
App experience
- Notes home
app/index.tsx - Add and edit notes
app/Notes/Add.tsx - Note detail
app/Notes/[id].tsx - Favorites
app/favorites.tsx - Trash and restore
app/TrashPin.tsx - Settings
app/settings.tsx - App shell
app/_layout.tsx
Identity and profile
- Login
app/Auth/Login.tsx - Signup
app/Auth/Signup.tsx - Edit profile
app/EditProfile.tsx - Profile service
profileService.ts - Auth state
store/useAuthStore.ts
Notes domain
- Notes state
store/useNotesStore.ts - Offline queue
store/pendingQueue.ts
State and services
- Supabase
supabase.ts - Theme and language state
store/useThemeStore.tsx - Translations
i18n/i18n.tsx - Alert state
store/useAlertStore.ts - Navigation drawer
components/DrawerMenu.tsx - Shared modal
components/sharedModal.tsx - Alert UI
components/CustomAlert.tsx - Color palette
Constants/Colors.tsx
Other components
- User
Connections 33
- User → Notes home: opens
- Notes home → Notes state: fetches notes
app/index.tsx - User → Add and edit notes: creates notes
- Add and edit notes → Notes state: updates
store/useNotesStore.ts - Note detail → Notes state: reads and updates
store/useNotesStore.ts - Favorites → Notes state: reads favorites
app/favorites.tsx - Trash and restore → Notes state: manages deleted notes
app/TrashPin.tsx - Settings → Profile service: refreshes profile
app/settings.tsx - Settings → Auth state: reads auth state
app/settings.tsx - Settings → Notes state: manages notes
app/settings.tsx - Settings → Supabase: uses service
app/settings.tsx - Settings → Navigation drawer: renders
app/settings.tsx - Settings → Shared modal: renders
app/settings.tsx - Login → Supabase: authenticates
app/Auth/Login.tsx - Login → Profile service: loads profile
app/Auth/Login.tsx - Login → Auth state: updates auth state
app/Auth/Login.tsx - Signup → Supabase: creates account
app/Auth/Signup.tsx - Signup → Alert state: reports outcomes
app/Auth/Signup.tsx - Edit profile → Profile service: updates profile
app/EditProfile.tsx - Profile service → Supabase: reads and writes
profileService.ts - Auth state → Supabase: verifies session
store/useAuthStore.ts - Notes state → Supabase: syncs notes
store/useNotesStore.ts - Notes state → Offline queue: queues offline adds
store/useNotesStore.ts - Notes state → Auth state: reads session
store/useNotesStore.ts - Offline queue → Supabase: flushes operations
store/pendingQueue.ts - App shell → Translations: initializes
app/_layout.tsx - App shell → Alert UI: renders
app/_layout.tsx - Alert UI → Alert state: reads alert state
components/CustomAlert.tsx - Alert UI → Shared modal: uses
components/CustomAlert.tsx - Notes home → Navigation drawer: renders
app/index.tsx - Notes home → Shared modal: uses
app/index.tsx - Notes home → Alert state: uses
app/index.tsx - Theme and language state → Translations: sets language
store/useThemeStore.tsx