Sanctiv App - Navigation Flow Map
Generated: 2025-11-20Status: Current as of Flow Engine v1.0
Table of Contents
- Authentication Flows
- Main App Structure
- Journal Flow
- Guided Journal Flow Engine
- Companions Flow
- Goals & Progress
- Settings & Profile
- Flow Engine Templates
Authentication Flows
Unauthenticated Users
First-Time Users (Authenticated)
Returning Users
Main App Structure
Bottom Tab Navigation (4 Tabs)
Journal Flow
Journal Stack Structure
User Journey: Creating a Journal Entry
WriteJournal Screen (Blank Page)
Guided Journal Flow Engine
Flow Container Architecture
Guided Session Flow (13 Steps)
Session Persistence
Flow Engine Templates
Available Templates
| Template ID | Name | Steps | Duration | Category |
|---|---|---|---|---|
sanctiv-journal-v1 | Sanctiv Journal | 13 | ~12 min | Spiritual Growth |
quick-gratitude-v1 | Quick Gratitude | 3 | ~2 min | Gratitude |
prayer-focus-v1 | Prayer Focus | 3 | ~5 min | Prayer |
win-tracker-v1 | Win Tracker | 4 | ~3 min | Coaching |
Template Structure
Companions Flow
Companions Stack Structure
User Journey: Companion Interaction
Goals & Progress
Simple Stack Structures
Goals Stack
Progress Stack
Settings & Profile
Global Modals (Available from any tab)
Complete User Journey Map
New User (Full Journey)
Returning User (Typical Session)
Navigation Stack Depth
Maximum Depth by Tab
| Tab | Max Depth | Example Path |
|---|---|---|
| Journal | 3 levels | Journal → Guided Intro → Step 1-13 → Complete |
| Journal (Alt) | 2 levels | Journal → WriteJournal → Save |
| Companions | 3 levels | Companions → CompanionProfile → Chat |
| Goals | 1 level | Goals (single screen) |
| Progress | 1 level | Progress (single screen) |
Global Modals (Overlay)
- Settings (any tab)
- Profile (any tab)
Deep Linking (Future)
Structure ready for deep links:Technical Details
Navigation Libraries
expo-router- File-based routing (built on React Navigation)- Hooks:
useRouter,useLocalSearchParams,useFocusEffect,usePathname
Presentation Modes
| Screen | Mode | Behavior |
|---|---|---|
| guided-journal | fullScreenModal | Full screen, slide up |
| companions/add | modal | Card modal (iOS) |
| companions/[id] | modal | Card modal (iOS) |
| profile | modal | Card modal (iOS) |
State Management
- Auth State: Zustand (
authStore) - Journal State: Zustand (
journalStore) - Flow Engine State: React Context (
FlowContext) - Navigation State: Expo Router built-in
Key Files
| File | Purpose |
|---|---|
src/navigation/AppNavigator.tsx | Main navigation container |
src/flow-engine/FlowContainer.tsx | Flow engine orchestrator |
src/flow-engine/FlowContext.tsx | Flow session state |
src/templates/index.ts | Template registry |
src/screens/GuidedJournalTestScreen.tsx | Entry point for guided flow |
Future Enhancements
Planned Navigation Features
- Deep Linking - Direct links to specific entries/sessions
- Tab Badge Counts - Unread companion messages
- Onboarding Flow - First-time setup wizard
- Template Selection - Choose from multiple templates
- History/Drafts - Resume incomplete sessions
Debugging Tips
View Navigation State
Check Current Route
Test Flow Engine State
Last Updated: November 20, 2025
Flow Engine Version: 1.0.0
Templates: 4 (1 main + 3 quick)