How mahimjain93/mms works
MMS is a one-screen focus app designed to help a user begin one real task quickly. The main workflow is a daily battery-and-mood check-in, choosing or splitting a task, running a 25-minute focus cycle, and reflecting afterward; task management and a journal are supporting branches. The graph follows the App orchestration and the documented product behavior. Unsampled modules are included where the SOURCE INDEX or README establishes their role; their internal behavior is not inferred.
Main entry points: App.tsx App orchestration · useAppState.ts App state lifecycle · cycles.ts Cycle and split logic · Journal.tsx Journal and check-ins
Components 19
Focus flow
- App orchestration
src/App.tsx - Battery check-in
src/components/CheckIn.tsx - Task doorway
src/components/Doorway.tsx - Task splitting
src/components/Split.tsx - Focus timer
src/components/Timer.tsx - Cycle reflection
src/components/HowWasThat.tsx - Task entry
src/components/AddTask.tsx
Task and cycle logic
- Check-in and task state
src/logic/state.ts - Task selection
src/logic/pickDoorway.ts - Cycle and split logic
src/logic/cycles.ts - Task management
src/logic/tasks.ts
History and persistence
- App state lifecycle
src/useAppState.ts - Local state storage
src/storage.ts - Journal and check-ins
src/components/Journal.tsx - Task list
src/components/TaskList.tsx
App experience
- Theme preference
src/theme.ts - Focus sounds
src/sound.ts - Battery indicator
src/components/BatteryIcon.tsx
Other components
- User
Connections 25
- User → App orchestration: uses
README.md - App orchestration → App state lifecycle: loads state
src/App.tsx - App state lifecycle → Local state storage: loads and saves
src/useAppState.ts - App state lifecycle → Check-in and task state: records opens
src/useAppState.ts - App state lifecycle → Cycle and split logic: checks active cycle
src/useAppState.ts - App orchestration → Check-in and task state: updates check-in and tasks
src/App.tsx - App orchestration → Task selection: selects task
src/App.tsx - App orchestration → Cycle and split logic: starts and ends cycles
src/App.tsx - App orchestration → Task management: manages tasks
src/App.tsx - App orchestration → Battery check-in: renders
src/App.tsx - App orchestration → Task doorway: renders
src/App.tsx - App orchestration → Task splitting: renders
src/App.tsx - App orchestration → Focus timer: renders
src/App.tsx - App orchestration → Cycle reflection: renders
src/App.tsx - App orchestration → Task entry: renders
src/App.tsx - App orchestration → Journal and check-ins: renders
src/App.tsx - App orchestration → Task list: renders
src/App.tsx - App orchestration → Theme preference: uses preference
src/App.tsx - App orchestration → Focus sounds: plays and schedules
src/App.tsx - App orchestration → Battery indicator: renders
src/App.tsx - Task management → Cycle and split logic: completes tasks
src/logic/tasks.ts - Cycle and split logic → Check-in and task state: marks action
src/logic/cycles.ts - Task list → Task management: builds open task tree
src/components/TaskList.tsx - Journal and check-ins → Battery check-in: uses mood labels
src/components/Journal.tsx - Journal and check-ins → Battery indicator: shows battery
src/components/Journal.tsx