How rittbala/shopping-list works
Shopping List App is a collaborative React application for organizing grocery lists and groups. Users authenticate, reach a protected dashboard, create or open a list, add and check off items, and share lists with people or groups; Firestore synchronizes shared data. Separate branches cover group membership, account/preferences and admin management, while theme context supplies presentation customization. The graph reflects documented capabilities and visible imports/calls; for features documented but not sampled, some internal links are intentionally omitted.
Main entry points: firestoreService.js Firestore operations · App.jsx Routes and providers · ListPage.jsx List workspace · DashboardPage.jsx List dashboard
Components 22
Application access
- Routes and providers
src/App.jsx - Theme state
src/context/ThemeContext.jsx
Shopping lists
- List dashboard
src/pages/DashboardPage.jsx - Create list
src/components/CreateListDialog.jsx - List workspace
src/pages/ListPage.jsx - Item entry
src/components/AddItemForm.jsx - Item list and checks
src/components/ItemList.jsx - List actions
src/components/ListCard.jsx
Groups and sharing
- Share list
src/components/ShareListDialog.jsx - Group management
src/pages/GroupsPage.jsx - Group membership
src/components/GroupModal.jsx - Group selection
src/components/GroupPicker.jsx
Identity and preferences
- Sign-in and registration
src/pages/LoginPage.jsx - Authentication state
src/context/AuthContext.jsx - Account settings
src/pages/SettingsPage.jsx - User preferences
src/hooks/useUserPreferences.js - Admin management
src/pages/AdminPage.jsx
Firebase services
- Firestore operations
src/firebase/firestoreService.js - Firebase initialization
src/firebase/firebase.js - Firebase Authentication
- Cloud Firestore
Other components
- User
Connections 35
- User → Routes and providers: opens app
README.md - Routes and providers → Sign-in and registration: routes to
src/App.jsx - Routes and providers → List dashboard: routes to
src/App.jsx - Routes and providers → List workspace: routes to
src/App.jsx - Routes and providers → Account settings: routes to
src/App.jsx - Routes and providers → Group management: routes to
src/App.jsx - Routes and providers → Admin management: routes to
src/App.jsx - Sign-in and registration → Authentication state: uses
src/pages/LoginPage.jsx - Authentication state → Firebase Authentication: authenticates
src/context/AuthContext.jsx - Authentication state → Firestore operations: creates user record
src/context/AuthContext.jsx - List dashboard → Create list: opens dialog
src/pages/DashboardPage.jsx - List dashboard → List actions: renders
src/pages/DashboardPage.jsx - List dashboard → Group management: offers groups view
README.md - Create list → Group selection: selects group
src/components/CreateListDialog.jsx - Create list → Firestore operations: creates list
src/components/CreateListDialog.jsx - List actions → List workspace: opens list
README.md - List workspace → Firestore operations: loads list and items
src/pages/ListPage.jsx - List workspace → Item entry: renders entry form
src/pages/ListPage.jsx - List workspace → Item list and checks: renders items
src/pages/ListPage.jsx - Item entry → Firestore operations: writes items
src/components/AddItemForm.jsx - Item list and checks → Firestore operations: updates item state
src/components/ItemList.jsx - List workspace → Share list: opens sharing
src/pages/ListPage.jsx - Share list → Firestore operations: shares with members
src/components/ShareListDialog.jsx - Group management → Group membership: opens manager
src/pages/GroupsPage.jsx - Group management → Firestore operations: loads groups
src/pages/GroupsPage.jsx - Group membership → Cloud Firestore: looks up members
src/components/GroupModal.jsx - Share list → Group selection: offers group sharing
src/components/ShareListDialog.jsx - Account settings → User preferences: manages preferences
src/pages/SettingsPage.jsx - User preferences → Firestore operations: loads and saves
src/hooks/useUserPreferences.js - Admin management → Firestore operations: manages users
src/pages/AdminPage.jsx - Routes and providers → Theme state: provides theme
src/App.jsx - Firestore operations → Firebase initialization: uses database config
src/firebase/firestoreService.js - Firebase initialization → Firebase Authentication: initializes
src/firebase/firebase.js - Firebase initialization → Cloud Firestore: initializes
src/firebase/firebase.js - Firestore operations → Cloud Firestore: reads and writes
src/firebase/firestoreService.js