How cholmi1/opto-m works
This repository implements a Korean-language eye-pressure and health-management app. The main workflow is to enter the app, record or review eye-pressure measurements, analyze trends, manage reminders, and export records; onboarding, survey, and biometric screens add supporting capabilities. The main app keeps records and alarms in browser local storage. A separate public iDrop script is present, but its relationship to the React app is unclear. The README is empty, and some screen behavior is only partially excerpted, so edges follow shown imports and routing evidence.
Main entry points: App.jsx Screen and state router · main.jsx React entry · RecordScreen.jsx Measurement entry · HistoryScreen.jsx Measurement history
Components 19
App shell
- React entry
src/main.jsx - Screen and state router
src/App.jsx - Splash
src/pages/SplashScreen.jsx - Main menu
src/pages/MenuScreen.jsx
Pressure tracking
- Measurement entry
src/pages/RecordScreen.jsx - Measurement history
src/pages/HistoryScreen.jsx - Pressure analysis
src/pages/AnalysisScreen.jsx - Reminder settings
src/pages/AlarmScreen.jsx - Treatment management
src/pages/ManagementScreen.jsx - Record export
src/pages/SendScreen.jsx
Health and onboarding
- Cover screen
src/pages/CoverScreen.jsx - Login
src/pages/LoginScreen.jsx - Biometric readings
src/pages/BioScreen.jsx - Health questionnaire
src/pages/SurveyScreen.jsx
Management tools
- Usage guide
src/pages/GuideScreen.jsx - iDrop screen
src/pages/IdropScreen.jsx - iDrop script
public/idrop/app.js
Other components
- App user
- Browser local storage
Connections 23
- App user → React entry: opens app
- React entry → Screen and state router: mounts
src/main.jsx - Screen and state router → Browser local storage: reads and writes
src/App.jsx - Screen and state router → Splash: renders
src/App.jsx - Screen and state router → Main menu: renders
src/App.jsx - Screen and state router → Measurement entry: renders
src/App.jsx - Screen and state router → Measurement history: renders
src/App.jsx - Screen and state router → Pressure analysis: renders
src/App.jsx - Screen and state router → Reminder settings: renders
src/App.jsx - Screen and state router → Treatment management: renders
src/App.jsx - Screen and state router → Record export: renders
src/App.jsx - Screen and state router → Cover screen: renders
src/App.jsx - Screen and state router → Login: renders
src/App.jsx - Screen and state router → Biometric readings: renders
src/App.jsx - Screen and state router → Health questionnaire: renders
src/App.jsx - Screen and state router → Usage guide: renders
src/App.jsx - Screen and state router → iDrop screen: renders
src/App.jsx - Measurement history → Screen and state router: uses card
src/pages/HistoryScreen.jsx - Pressure analysis → Screen and state router: uses card
src/pages/AnalysisScreen.jsx - Reminder settings → Screen and state router: uses card
src/pages/AlarmScreen.jsx - Treatment management → Screen and state router: uses card
src/pages/ManagementScreen.jsx - Record export → Screen and state router: uses card
src/pages/SendScreen.jsx - Measurement entry → Screen and state router: uses card
src/pages/RecordScreen.jsx