How olive644/olena works
OlenaStudy is a student study and routine app: learners enter a workspace, then use planning, notebooks, focus and practice activities; selected progress can sync through Firebase. The graph preserves the documented math-practice, room, notebook-sharing, social-profile, listening-voice and Helena capabilities. Source excerpts confirm app routing, workspace/domain dependencies, math assessment, room persistence and Helena’s disconnected contract; other documented branches are represented without claiming unsampled implementation details.
Main entry points: app.tsx App shell · math-challenge-engine.ts Math challenge engine · workspace.ts Workspace model · listening-quiz.tsx Listening quiz voice
Components 27
Study workspace
- App shell
src/app.tsx - Agenda and focus
src/views/planner-view.tsx - Notebook workspace
src/views/notes-view.tsx - Workspace model
src/domain/workspace.ts - Local workspace data
src/data/local-workspace.ts
Learning activities
- Practice activities
src/views/learn-view.tsx - Math challenge bank
src/data/math-challenge-bank.ts - Math challenge engine
src/domain/math-challenge-engine.ts - Math progress
src/domain/math-challenge-progress.ts - Number bingo
src/domain/number-bingo.ts - Helena chat
src/components/helena-chat.tsx - Listening quiz voice
src/components/listening-quiz.tsx - Adaptive math
src/domain/adaptive-math.ts
Sharing and social
- Room experience
src/components/local-room.tsx - Room state and rules
src/domain/local-room.ts - Notebook sharing
src/backend/notebook-collab-handler.ts - Profiles and social
src/backend/profile-social-handler.ts
Backend services
- Cloud sync
src/hooks/use-cloud-sync.ts - Room API
src/backend/local-room-handler.ts - Key-value store
src/backend/kv-store.ts - Helena client
src/data/helena-client.ts - Helena contract
src/ai/helena-contract.ts
Speech services
- Speech endpoint
api/speech.ts
Other components
- Student
- Firebase
- Cloudflare TTS
- Device voice
Connections 26
- Student → App shell: opens
- App shell → Agenda and focus: routes to
src/app.tsx - App shell → Workspace model: uses
src/app.tsx - Student → Notebook workspace: uses
- Workspace model → Local workspace data: uses
src/domain/workspace.ts - Workspace model → Cloud sync: syncs through
- Cloud sync → Firebase: syncs with
- Student → Practice activities: practices
- Practice activities → Math challenge engine: runs
- Math challenge engine → Math challenge bank: selects questions
src/domain/math-challenge-engine.ts - Math challenge engine → Math progress: assesses progress
src/domain/math-challenge-engine.ts - Math challenge engine → Adaptive math: assesses answers
src/domain/math-challenge-engine.ts - Student → Room experience: joins room
- Room experience → Room API: requests room actions
- Room API → Room state and rules: updates state
src/backend/local-room-handler.ts - Room API → Key-value store: reads and writes
src/backend/local-room-handler.ts - Room state and rules → Number bingo: uses rules
src/domain/local-room.ts - Student → Notebook sharing: shares notebooks
- Student → Profiles and social: uses profiles
- App shell → Helena chat: renders chat
src/app.tsx - Helena chat → Helena client: sends requests
src/components/helena-chat.tsx - Helena client → Helena contract: uses contract
src/data/helena-client.ts - Student → Listening quiz voice: takes quiz
- Listening quiz voice → Speech endpoint: requests speech
- Speech endpoint → Cloudflare TTS: synthesizes with
- Listening quiz voice → Device voice: falls back to