How aabaniel/ccm-app-teamnieric works
1440 is a local-first daily time-budget planner: users set personal targets, plan tomorrow in activity blocks, then execute today and review how actual time compared with the plan. The UI also exposes history, progress, XP/streaks, and optional alerts. Planning uses deterministic schedule and scoring logic; optional server routes provide AI classification and optimization, with deterministic fallbacks. The README documents these capabilities; unsampled route and screen internals are represented only where the README or source index supports them.
Main entry points: store.ts App state store · time-budget-app.tsx App shell · tomorrow-screen.tsx Tomorrow planner · today-screen.tsx Today execution
Components 24
Product UI
- App shell
components/time-budget-app.tsx - Onboarding
components/onboarding-screen.tsx - Tomorrow planner
components/tomorrow-screen.tsx - Activity form
components/add-activity-form.tsx - Day timeline
components/day-timeline.tsx - Today execution
components/today-screen.tsx - History
components/history-screen.tsx - Progress
components/progress-screen.tsx - Score display
components/score-ring.tsx
State and persistence
- App state store
lib/storage/store.ts - Browser storage
Planning domain
- Plan lifecycle
lib/domain/plans.ts - Schedule validation
lib/domain/schedule.ts - Balance scoring
lib/domain/scoring.ts - Time categories
lib/domain/categories.ts - Focus recommendations
lib/domain/recommendations.ts - XP and streaks
lib/domain/xp.ts - Plan optimizer
lib/domain/optimizer.ts - Activity classifier
lib/domain/classifier.ts
AI services
- Classify API
app/api/classify/route.ts - Optimize API
app/api/optimize/route.ts - Structured AI client
lib/ai/openai.ts
Other components
- User
- OpenAI service
Connections 37
- User → App shell: uses
README.md - App shell → App state store: loads state
components/time-budget-app.tsx - App shell → Onboarding: shows setup
components/time-budget-app.tsx - App shell → Tomorrow planner: opens planner
components/time-budget-app.tsx - App shell → Today execution: opens execution
components/time-budget-app.tsx - App shell → History: opens history
components/time-budget-app.tsx - App shell → Progress: opens progress
components/time-budget-app.tsx - Onboarding → App state store: completes setup
components/time-budget-app.tsx - Tomorrow planner → App state store: edits plan
components/tomorrow-screen.tsx - Tomorrow planner → Activity form: renders form
components/tomorrow-screen.tsx - Tomorrow planner → Day timeline: renders schedule
components/tomorrow-screen.tsx - Tomorrow planner → Score display: shows score
components/tomorrow-screen.tsx - Today execution → App state store: updates activity
components/today-screen.tsx - Today execution → Score display: shows score
components/today-screen.tsx - Today execution → Focus recommendations: gets focus
components/today-screen.tsx - Today execution → Balance scoring: calculates actuals
components/today-screen.tsx - Today execution → XP and streaks: reads level
components/today-screen.tsx - History → App state store: reads plans
components/history-screen.tsx - History → Day timeline: renders schedule
components/history-screen.tsx - History → Balance scoring: shows balance
components/history-screen.tsx - Progress → App state store: reads progress
components/progress-screen.tsx - Progress → XP and streaks: shows levels
components/progress-screen.tsx - App state store → Browser storage: persists state
lib/storage/store.ts - App state store → Plan lifecycle: creates plans
lib/storage/store.ts - App state store → Schedule validation: shifts activities
lib/storage/store.ts - App state store → XP and streaks: awards XP
lib/storage/store.ts - Plan lifecycle → Balance scoring: recalculates score
lib/domain/plans.ts - Plan lifecycle → XP and streaks: updates progress
lib/domain/plans.ts - Balance scoring → Time categories: scores categories
lib/domain/scoring.ts - Plan optimizer → Schedule validation: validates intervals
lib/domain/optimizer.ts - Classify API → Activity classifier: uses fallback
app/api/classify/route.ts - Classify API → Structured AI client: requests AI
app/api/classify/route.ts - Optimize API → Plan optimizer: uses fallback
app/api/optimize/route.ts - Optimize API → Structured AI client: requests AI
app/api/optimize/route.ts - Structured AI client → OpenAI service: sends request
lib/ai/openai.ts - Tomorrow planner → Optimize API: requests optimization
- User → Classify API: requests classification