How escall-dev/seijun works
Seijun is a reproductive-health tracking app whose main workflow is signing in, recording cycle and symptom data, and reviewing it through a dashboard and calendar. Notes, partner sharing, reminders, notifications, and account settings extend that workflow. Supabase provides server-side identity and data access; cycle calculations and cycle-context resolution supply shared domain logic. The graph follows documented and indexed references; unsampled modules are represented at subsystem level, and edges are limited to evidenced relationships.
Main entry points: server.ts Server client · page.tsx Dashboard · calendar-view.tsx Calendar · processor.ts Reminder processor
Components 22
User experience
- Authentication
app/actions/auth.ts - Dashboard
app/dashboard/page.tsx - Settings
app/settings/page.tsx
Health tracking
- Calendar
components/calendar/calendar-view.tsx - Cycle tracking
app/actions/cycles.ts - Symptom logging
app/actions/symptoms.ts - Cycle calculations
lib/calculations/cycle-calculations.ts - Daily notes
lib/notes/server.ts
Partner sharing
- Partner dashboard
components/partner/partner-dashboard-view.tsx - Partner actions
app/actions/partner-shared.ts - Partner services
lib/partner/service.ts - Cycle context
lib/cycle-context/server.ts
Notifications
- Notifications
app/actions/notifications.ts - Reminder endpoint
app/api/cron/reminders/route.ts - Reminder processor
lib/reminders/processor.ts - Reminder engine
lib/reminders/engine.ts - Push delivery
lib/server/web-push.ts
Server and data
- Server client
lib/supabase/server.ts - Profile lookup
lib/server/profile.ts - Supabase data
lib/supabase/types.ts
Other components
- User
- Browser
Connections 29
- User → Authentication: signs in
- Authentication → Server client: authenticates with
lib/supabase/server.ts - User → Dashboard: views
app/dashboard/page.tsx - Dashboard → Cycle tracking: loads
app/dashboard/page.tsx - Dashboard → Symptom logging: loads
app/dashboard/page.tsx - Dashboard → Cycle calculations: calculates with
app/dashboard/page.tsx - User → Calendar: reviews and logs
components/calendar/calendar-view.tsx - Calendar → Cycle tracking: calls actions
components/calendar/calendar-view.tsx - Calendar → Symptom logging: calls actions
components/calendar/calendar-view.tsx - Calendar → Daily notes: opens editor
components/calendar/calendar-view.tsx - Cycle tracking → Cycle calculations: calculates with
app/actions/cycles.ts - Cycle tracking → Server client: queries through
app/actions/cycles.ts - Symptom logging → Server client: queries through
app/actions/symptoms.ts - Daily notes → Server client: queries through
lib/notes/server.ts - User → Partner dashboard: views sharing
- Partner dashboard → Partner actions: calls
components/partner/partner-dashboard-view.tsx - Partner actions → Partner services: delegates to
- Cycle context → Profile lookup: loads profile
lib/cycle-context/server.ts - Cycle context → Server client: reads relationship data
lib/cycle-context/server.ts - Partner actions → Server client: queries through
app/actions/partner-shared.ts - User → Settings: configures account
app/settings/page.tsx - Settings → Server client: loads preferences
app/settings/page.tsx - Reminder endpoint → Reminder processor: invokes
app/api/cron/reminders/route.ts - Reminder processor → Reminder engine: uses
- Reminder processor → Push delivery: sends via
lib/reminders/processor.ts - Reminder processor → Server client: reads and writes
lib/reminders/processor.ts - Notifications → Server client: queries through
- Server client → Supabase data: accesses typed data
lib/supabase/server.ts - Browser → Push delivery: receives push