How gyalzin/reflections works
Reflections is a single-user Flask activity tracker. A user opens a day timeline, adds or edits an activity with times and optional mood and notes, and the app validates and persists it before showing the timeline. The timeline supports day navigation and side-by-side display of overlapping entries. The sampled routes and database module establish the main request and persistence flow; several presentation details and capabilities are documented in the README but their implementation is not fully sampled.
Main entry points: main.py Flask routes · db.py Database operations · index.html Timeline view · edit.html Edit view
Components 13
Web application
- Flask routes
main.py - Entry operations
main.py - Day timeline
main.py - Overlap layout
main.py
User interface
- Timeline view
templates/index.html - Edit view
templates/edit.html - Mood choices
templates/mood.html - Styles
static/style.css
Persistence
- Database operations
db.py - Table definitions
schema.sql - SQLite database
Other components
- User
- Web browser
Connections 13
- User → Web browser: uses
README.md - Web browser → Flask routes: requests pages
README.md - Flask routes → Entry operations: routes actions
main.py - Flask routes → Day timeline: renders day
main.py - Entry operations → Database operations: reads and writes
main.py - Day timeline → Database operations: loads entries
main.py - Day timeline → Overlap layout: lays out entries
main.py - Day timeline → Timeline view: renders
main.py - Flask routes → Edit view: renders edit form
main.py - Timeline view → Styles: styled by
- Edit view → Mood choices: uses mood choices
- Database operations → SQLite database: queries and updates
db.py - Database operations → Table definitions: loads schema
db.py