11 Commits

Author SHA1 Message Date
Yuyao Huang
0fc62f2d16 add gunicorn as project dependency, remove leftover tinydb 2026-05-09 10:22:10 +08:00
Yuyao Huang
2a3482c2c0 fix: prevent UNIQUE constraint race with gunicorn multi-worker
Use INSERT OR IGNORE instead of SELECT-then-INSERT for
default admin user creation, avoiding the race condition
when multiple gunicorn workers initialize simultaneously.
2026-05-09 10:19:58 +08:00
Yuyao Huang
2629e8f2cd feat: move config.py to config.example.py, exclude config.py from git tracking
- Copy config.py to config.example.py as template (tracked in git)
- Add config.py to .gitignore (local config per developer)
- Update README.md with configuration setup instructions
- Fix outdated references (TinyDB -> SQLite, add missing files)
- Persist goal selection across task and note pages
2026-05-09 10:12:37 +08:00
Yuyao Huang
3c325bdb0f feat(notes): add notes feature with CRUD operations and UI
- Implement notes database schema and API endpoints
- Add notes page with filtering, search, and markdown support
- Persist selected goal and task preferences for better UX
- Include responsive design and mobile-friendly layout
2026-05-08 17:42:42 +08:00
Yuyao Huang
594bf65715 Update devdocs: TinyDB→SQLite, project structure, deps, and commands 2026-05-08 16:29:40 +08:00
Yuyao Huang
a5c5f5b077 Remove db.json migration logic 2026-05-08 16:23:00 +08:00
Yuyao Huang
a8fe6ed7b3 Migrate from TinyDB to SQLite
- Replace TinyDB (JSON file) with sqlite3 for data persistence
- Add schema.py: table creation + data migration from db.json
- Rewrite database.py: all CRUD operations use sqlite3 directly
- All data retains original IDs via migration script
- Remove tinydb dependency from pyproject.toml
2026-05-08 16:18:26 +08:00
Yuyao Huang
b060ba6bf8 Fix layout: move create button to header, increase description area height
- Move '+ Create Task' button into tasks-header to avoid breaking scroll/edit height alignment
- Increase edit-task description textarea from rows=3 to rows=6
- Remove unused .create-task-container and #create-task-btn CSS rules
2026-05-08 16:04:12 +08:00
Yuyao Huang
6b05ba3e2c Improve tasks UI: scroll-to-focus picker, landscape layout, height alignment
- Complete tasks now displayed in scroll view alongside unfinished tasks
- Priority order: completed tasks first (by finished_time desc), then unfinished (by order asc)
- Time picker-style scroll: wheel scroll snaps per task, center item gets visual focus
- Landscape mode (>=1024px): scroll view + edit panel side by side, panel always visible
- Portrait mode: edit panel slides in from right on tap
- Fixed flex layout so scroll view and edit panel align perfectly in height
2026-05-08 15:47:25 +08:00
Yuyao Huang
79fde447e9 Add project docs and cleanup uv-generated files 2026-05-08 12:42:50 +08:00
Yuyao Huang
f3bffa40cd Initial commit: GoalsBreakDown web app
- Flask backend with TinyDB database
- Multi-user auth with bcrypt password hashing
- Goal CRUD with activation/deactivation and per-user limits
- Task CRUD with status tracking (todo/doing/pending/done)
- Focus rule: one doing task per goal
- Time picker-style scroll view with drag-and-drop reordering
- Admin panel for user management
- uv environment management
2026-05-08 12:41:19 +08:00