How haimgoldest/baby-log works
Baby-Log is a shared baby-record web app for tracking events and growth and sharing updates with family. The main workflow is sign-in, select or create a baby, then record events or measurements; Firebase-backed services persist baby data. Preferences customize event favorites, while baby information supports profile and image management. The graph follows documented routes and sampled service/store calls; some feature-page-to-service links are unverified because those page sources were not sampled.
Main entry points: session.store.ts Session store · app.routes.ts Routes and guard · app.component.ts App shell · babies.store.ts Selected baby state
Components 22
App shell
- App shell
src/app/app.component.ts - Routes and guard
src/app/app.routes.ts - Navigation bar
src/app/features/navbar/navbar.component.ts
Identity and state
- Sign-in page
src/app/features/login/login.page.ts - Session store
src/app/core/stores/session/session.store.ts - Authentication
src/app/core/services/auth.service.ts - User profile data
src/app/core/services/user.service.ts
Baby records
- Selected baby state
src/app/core/stores/babies/babies.store.ts - Baby records service
src/app/core/services/babies.service.ts - Baby profile
src/app/features/baby-info/baby-info.page.ts - Add or link baby
src/app/features/add-baby/add-baby.page.ts
Tracking features
- Baby event log
src/app/features/baby-events/pages/baby-events.page.ts - Event operations
src/app/features/baby-events/services/baby-events.service.ts - Event preferences
src/app/features/baby-events/pages/baby-event-preferences.page.ts - Growth tracking
src/app/features/growth-tracking/pages/growth-tracking.page.ts - Measurement operations
src/app/features/growth-tracking/services/baby-measurements.service.ts
Persistence and feedback
- Firestore adapter
src/app/core/firebase/fire-store-helper.service.ts - Cloud Firestore
- Firebase Storage
- Notifications
src/app/core/services/notification.service.ts - Notification display
src/app/shared/components/notification-host/notification-host.component.ts
Other components
- Family user
Connections 32
- Family user → App shell: uses
README.md - App shell → Session store: observes
src/app/app.component.ts - App shell → Navigation bar: renders
src/app/app.component.ts - App shell → Notification display: renders
src/app/app.component.ts - App shell → Routes and guard: navigates via
src/app/app.component.ts - Routes and guard → Sign-in page: routes to
src/app/app.routes.ts - Routes and guard → Baby event log: routes to
src/app/app.routes.ts - Routes and guard → Event preferences: routes to
src/app/app.routes.ts - Routes and guard → Growth tracking: routes to
src/app/app.routes.ts - Routes and guard → Add or link baby: routes to
src/app/app.routes.ts - Routes and guard → Baby profile: routes to
src/app/app.routes.ts - Sign-in page → Session store: signs in via
src/app/features/login/login.page.ts - Session store → Authentication: authenticates with
src/app/core/stores/session/session.store.ts - Session store → User profile data: loads and saves
src/app/core/stores/session/session.store.ts - Session store → Selected baby state: selects or clears
src/app/core/stores/session/session.store.ts - Session store → Firestore adapter: persists user data through
- Navigation bar → Session store: reads state
src/app/features/navbar/navbar.component.ts - Selected baby state → Baby records service: loads and updates
src/app/core/stores/babies/babies.store.ts - Baby records service → Firestore adapter: reads and writes
src/app/core/services/babies.service.ts - Baby records service → Firebase Storage: manages baby images
src/app/core/services/babies.service.ts - Add or link baby → Session store: creates or links baby through
src/app/features/add-baby/add-baby.page.ts - Baby profile → Selected baby state: reads and updates
src/app/features/baby-info/baby-info.page.ts - Baby event log → Event operations: uses
- Event operations → Firestore adapter: persists events through
src/app/features/baby-events/services/baby-events.service.ts - Event operations → Selected baby state: uses baby state
src/app/features/baby-events/services/baby-events.service.ts - Event preferences → Session store: saves favorites through
src/app/features/baby-events/pages/baby-event-preferences.page.ts - Event preferences → Notifications: reports outcomes via
src/app/features/baby-events/pages/baby-event-preferences.page.ts - Growth tracking → Measurement operations: uses
src/app/features/growth-tracking/pages/growth-tracking.page.ts - Measurement operations → Firestore adapter: writes measurements through
src/app/features/growth-tracking/services/baby-measurements.service.ts - Measurement operations → Selected baby state: reads selected baby
src/app/features/growth-tracking/services/baby-measurements.service.ts - Firestore adapter → Cloud Firestore: reads and writes
src/app/core/firebase/fire-store-helper.service.ts - Notification display → Notifications: renders messages from
src/app/core/services/notification.service.ts