How xoaicatchu/todolist-frontend works
This is an offline-first Todo frontend with calendar-based task management, local event sourcing, NgRx UI state, and background synchronization across devices and browser tabs. The main workflow is user action → NgRx effect → local event and projection → refreshed UI, with sync and realtime notifications running alongside it. The README documents PWA caching and backend sync capabilities; source excerpts do not show the full HTTP or SignalR implementations, so those links rely on the README.
Main entry points: todo.effects.ts Todo effects · sync.service.ts Sync coordinator · app.ts Todo calendar UI · todo.actions.ts Todo actions
Components 18
Todo experience
- Todo calendar UI
src/app/app.ts - Todo model
src/app/core/models/todo.model.ts
UI state
- Todo actions
src/app/state/todo.actions.ts - Todo effects
src/app/state/todo.effects.ts - Todo reducer
src/app/state/todo.reducer.ts - Todo selectors
src/app/state/todo.selectors.ts
Local persistence
- Event sourcing
src/app/core/services/event-sourcing.service.ts - IndexedDB
src/app/infrastructure/db/app-db.service.ts
Synchronization
- Sync coordinator
src/app/core/services/sync.service.ts - Sync API client
src/app/core/services/sync-api.service.ts - Network status
src/app/core/services/network.service.ts - Tab sync
src/app/core/services/tab-realtime.service.ts - Device realtime
src/app/core/services/realtime-sync.service.ts
Other components
- User
- Sync backend
- SignalR hub
- PWA service worker
- App configuration
src/app/app.config.ts
Connections 24
- User → Todo calendar UI: uses
src/app/app.ts - Todo calendar UI → Todo actions: dispatches
src/app/app.ts - Todo calendar UI → Todo selectors: selects
src/app/app.ts - Todo actions → Todo effects: triggers
src/app/state/todo.effects.ts - Todo effects → Event sourcing: appends events
src/app/state/todo.effects.ts - Todo effects → Sync coordinator: starts sync
src/app/state/todo.effects.ts - Todo effects → Tab sync: notifies tabs
src/app/state/todo.effects.ts - Todo effects → Event sourcing: loads projection
src/app/state/todo.effects.ts - Event sourcing → IndexedDB: reads and writes
src/app/core/services/event-sourcing.service.ts - Sync coordinator → Event sourcing: gets and applies events
src/app/core/services/sync.service.ts - Sync coordinator → Sync API client: pushes and pulls
src/app/core/services/sync.service.ts - Sync coordinator → IndexedDB: stores watermark
src/app/core/services/sync.service.ts - Sync coordinator → Network status: checks status
src/app/core/services/sync.service.ts - Sync API client → Sync backend: calls sync endpoints
README.md - Sync backend → SignalR hub: publishes changes
README.md - SignalR hub → Device realtime: signals changes
README.md - Device realtime → Sync coordinator: triggers sync
src/app/core/services/realtime-sync.service.ts - Tab sync → Todo actions: dispatches load
src/app/core/services/tab-realtime.service.ts - Todo actions → Todo reducer: updates state
src/app/state/todo.reducer.ts - Todo reducer → Todo selectors: provides state
src/app/state/todo.selectors.ts - Todo calendar UI → Todo model: uses task types
src/app/app.ts - App configuration → Todo reducer: registers
src/app/app.config.ts - App configuration → Todo effects: registers
src/app/app.config.ts - App configuration → PWA service worker: configures
src/app/app.config.ts