How zakyprojects/ascendday works
AscendDay is a gamified self-improvement app. Users enter through the app shell, authenticate or continue with a session, choose a tracking or planning area, record activity, and see progress reflected in their saved state. The tree also shows leagues, accountability partners, focus tools, and public feature pages. The README is empty; some domain components are represented by their enclosing directories because their implementation was not sampled. Edges are limited to relationships visible in the excerpts or SOURCE INDEX.
Main entry points: App.tsx App orchestration · store.ts App state · clock.ts Trusted clock · supabase.ts Authentication and persistence
Components 22
App entry and navigation
- Browser entry
src/main.tsx - App orchestration
src/App.tsx - Page routes
src/lib/app/routes.ts - Sign-in experience
src/components/auth/AuthPage.tsx
Growth tracking
- Tracking and planning views
src/components/views - Habit actions
src/lib/actions/useHabitActions.ts - Time tracking actions
src/lib/actions/useTimeTrackerActions.ts - Points and awards
src/lib/points/stateAwards.ts - League standings
src/lib/leagues/leagueStandingsRefresh.ts - Accountability partnerships
src/lib/partners/pactLifecycle.ts - Focus sessions
src/components/pfc/FocusSessionProvider.tsx
State and services
- App state
src/lib/store/store.ts - Authentication and persistence
src/lib/auth/supabase.ts - Offline status
src/lib/store/deviceOffline.ts - Trusted clock
src/lib/time/clock.ts - Date and streak logic
src/lib/time/dates.ts - Push notifications
src/lib/app/push.ts - Push delivery function
supabase/functions/send-push/index.ts
Public site
- Public page routes
src/marketing/routes.ts - Feature catalog
src/marketing/features/catalog.ts - Feedback endpoint
api/feedback.ts
Other components
- User
Connections 20
- User → Browser entry: opens app
src/main.tsx - Browser entry → App orchestration: renders
src/main.tsx - App orchestration → Page routes: resolves paths
src/App.tsx - App orchestration → App state: uses state
src/App.tsx - App orchestration → Sign-in experience: loads sign-in
src/App.tsx - App orchestration → Tracking and planning views: renders selected view
src/App.tsx - App state → Authentication and persistence: loads and saves
src/lib/store/store.ts - App state → Offline status: checks connectivity
src/lib/store/store.ts - App state → Date and streak logic: uses date logic
src/lib/store/store.ts - Authentication and persistence → League standings: parses standings
src/lib/auth/supabase.ts - Trusted clock → Offline status: checks connectivity
src/lib/time/clock.ts - Trusted clock → Authentication and persistence: reads server time
src/lib/time/clock.ts - Date and streak logic → Trusted clock: uses trusted time
src/lib/time/dates.ts - Time tracking actions → Date and streak logic: uses day keys
src/lib/actions/useTimeTrackerActions.ts - Time tracking actions → Trusted clock: gets current time
src/lib/actions/useTimeTrackerActions.ts - Time tracking actions → Points and awards: computes awards
src/lib/actions/useTimeTrackerActions.ts - Browser entry → Push notifications: initializes app
- Push notifications → Authentication and persistence: uses Supabase
src/lib/app/push.ts - User → Public page routes: visits public pages
- Public page routes → Feature catalog: builds feature routes
src/marketing/routes.ts